fix: [tracker] fix yara content error on empty message

ocr
terrtia 2024-03-13 10:07:11 +01:00
parent dc0545dfd0
commit 27b2679ba6
No known key found for this signature in database
GPG Key ID: 1E1B1F50D84613D0
1 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,8 @@ class Tracker_Yara(AbstractModule):
return None return None
content = self.obj.get_content(r_type='bytes') content = self.obj.get_content(r_type='bytes')
if not content:
return None
try: try:
yara_match = self.rules[obj_type].match(data=content, callback=self.yara_rules_match, yara_match = self.rules[obj_type].match(data=content, callback=self.yara_rules_match,