MCPcopy Create free account
hub / github.com/LCBOWER33/StegoScan / is_suspicious_elf

Function is_suspicious_elf

StegoScan.py:820–824  ·  view source on GitHub ↗

Check if an ELF file has potential malware traits using YARA rules.

(filepath)

Source from the content-addressed store, hash-verified

818
819
820def is_suspicious_elf(filepath):
821 """Check if an ELF file has potential malware traits using YARA rules."""
822 rule = yara.compile(source=YARA_RULES)
823 matches = rule.match(filepath)
824 return any(match.rule == "ELF_Malware" for match in matches)
825
826
827def is_elf_using_magic(filepath):

Callers 1

elf_checkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected