analyzing-linux-elf-malware
Fail
Audited by Gen Agent Trust Hub on Jul 16, 2026
Risk Level: CRITICALCOMMAND_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/agent.pyis vulnerable to command injection due to unsafe use of the subprocess module. - The functions
extract_strings,check_packing, andanalyze_dynamic_linkingutilizesubprocess.runwithshell=Trueto execute utilities such asstrings,upx, andreadelf. - The
filepathvariable, which originates from the first command-line argument (sys.argv[1]), is interpolated directly into these shell command strings without any sanitization, escaping, or validation. - If an AI agent or user provides a malicious filename containing shell metacharacters (e.g.,
"; touch /tmp/pwned ;"), the script will execute the injected command with the privileges of the running process.
Recommendations
- CRITICAL: 1 file(s) identified as malware by FileRep - DO NOT USE
Audit Metadata