Skip to content

Commit

Permalink
Merge pull request #441 from azurda/fix_plugin_virus
Browse files Browse the repository at this point in the history
fix signatures/wndows/virus.py infinite loop
  • Loading branch information
doomedraven authored Jul 25, 2024
2 parents 22e5b71 + 730333e commit 2243332
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/signatures/windows/virus.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,10 @@ def on_call(self, call, process):
if handle in self.handles:
key = self.handles[handle]
if key in self.copydests:
while key in self.readcopyfiles:
key_max_depth = 3
while key_max_depth and key in self.readcopyfiles:
key = self.readcopyfiles[key]
key_max_depth -= 1
self.infected_files.add(key)
self.saw_virus = True
if self.pid:
Expand Down

0 comments on commit 2243332

Please sign in to comment.