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

This commit is contained in:
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

View file

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