Skip to content

Commit

Permalink
catch and log extractor handle_yara exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
jbremer committed Nov 18, 2018
1 parent 2f69368 commit f061a53
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cuckoo/core/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,12 @@ def peek_procmem(self, process):
def handle_yara(self, filepath, match):
for plugin in self.extractors:
if match.name in plugin.yara_rules:
plugin(self).handle_yara(filepath, match)
try:
plugin(self).handle_yara(filepath, match)
except Exception as e:
log.exception(
"Exception in an Extractor's handle_yara: %s", e
)

def results(self):
# TODO Apply some sort of sorting here.
Expand Down

0 comments on commit f061a53

Please sign in to comment.