analyzing-packed-malware-with-upx-unpacker

Fail

Audited by Gen Agent Trust Hub on Nov 28, 2026

Risk Level: HIGHCOMMAND_EXECUTIONREMOTE_CODE_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: The skill executes local commands and scripts to perform malware analysis. In scripts/agent.py, the unpack_upx function uses subprocess.run() to execute the upx utility. SKILL.md contains multiple shell command blocks and inline Python scripts for the agent to execute.
  • [REMOTE_CODE_EXECUTION]: A command injection vulnerability exists in scripts/agent.py. The unpack_upx function constructs a shell command using string formatting: cmd = f"upx -d -o {output_path} {filepath}". This command is executed with shell=True, allowing arbitrary shell commands to be executed if a filename contains shell metacharacters such as semicolons, pipes, or ampersands.
  • [EXTERNAL_DOWNLOADS]: The documentation refers to downloading the UPX utility from its official GitHub repository at https://upx.github.io/.
  • [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted binary files which could contain embedded instructions intended to influence the agent. Ingestion points: scripts/agent.py and SKILL.md snippets read metadata like section names and import names from binary files using the pefile library. Boundary markers: No boundary markers or instructions to ignore embedded content were identified. Capability inventory: The skill can run shell commands, write files, and perform analysis on external binaries. Sanitization: No sanitization is performed on the data read from the binary files before it is printed to the agent context.
Recommendations
  • AI detected serious security threats
Audit Metadata
Risk Level
HIGH
Analyzed
Nov 28, 2026, 10:40 PM