mirror of https://github.com/CIRCL/AIL-framework
fix: [tracker] fix yara content error on empty message
parent
dc0545dfd0
commit
27b2679ba6
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue