Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update packer_nate.py #458

Merged
merged 1 commit into from
Oct 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions modules/signatures/all/packer_nate.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

from lib.cuckoo.common.abstracts import Signature


class NatePacked(Signature):
name = "packer_nate"
description = "Executable file is packed/obfuscated with Nate"
Expand All @@ -29,9 +28,15 @@ class NatePacked(Signature):
mbcs = ["OB0001", "OB0002", "OB0006", "F0001"]

def run(self):
for section in self.results.get("static", {}).get("pe", {}).get("sections", []):
if ".nate" in section["name"].lower():
self.data.append({"section": section})
return True
ret = False

target = self.results.get("target", {})
if target.get("category") in ("file", "static") and target.get("file"):
pe = self.results["target"]["file"].get("pe", [])
if pe:
for section in pe["sections"]:
if section["name"].lower().startswith(".nate"):
self.data.append({"section": section})
ret = True

return False
return ret
Loading