hunt-deserialization is a skill for Claude covering insecure deserialization across Java, PHP, Python, .NET and Ruby: Java gadget chains built with ysoserial, PHP object injection through magic methods and the phar:// filesystem trick, Python pickle and unsafe YAML loading, .NET BinaryFormatter and unsigned ViewState, Ruby Marshal.load gadgets, and JNDI injection in the Log4Shell pattern.
The skill gives byte-level and header signals for spotting a serialized payload in a cookie or request body, a phase for each language with the exact gadget-chain tool and command to run, and out-of-band confirmation via a DNS or HTTP callback for blind cases where the response gives no direct feedback. It names the specific CVEs behind the Python YAML and Node deserialization variants. It is for assets covered by a program or engagement you are authorized to test.
What You Get
- Byte-level and cookie-header signals for identifying serialized Java, PHP, Python pickle, and ASP.NET ViewState payloads in traffic
- A phase per platform: Java ysoserial gadget generation, PHP phpggc object injection and the phar:// filesystem-trigger variant, Python pickle and unsafe YAML payloads, .NET YSoSerial.Net ViewState payloads, and Ruby Marshal gadgets
- Named CVE coverage for Python’s unsafe yaml.load (CVE-2017-18342) and the Node node-serialize IIFE-marker pattern (CVE-2017-5941)
- A Log4Shell-pattern JNDI injection phase testing every commonly user-controlled header and body field
- A chain table and validation section requiring either a DNS/HTTP out-of-band callback or direct command output before a finding counts as confirmed
Common Use Cases
- Testing a Java application’s cookie or request body for an unsafe deserialize call using a ysoserial-generated gadget chain
- Checking whether a PHP application can be reached through the phar:// filesystem trick even when no direct unserialize() call is visible in the code
- Confirming blind RCE in a deserialization sink through a DNS or HTTP callback when the application gives no direct response output
What Makes It Unique
The skill gives each of five languages its own phase with the specific tool, exact command, and gadget chain name to try first, and adds the less commonly covered phar:// and unsafe-YAML variants alongside the standard ysoserial path. Its validation section states the severity bar directly: deserialization RCE is almost always Critical, since it reaches code execution with no further chaining required.
Under The Hood
The skill is a single SKILL.md of guidance with no bundled scripts. Following it, the agent downloads and runs external gadget-chain generators such as ysoserial, phpggc, and YSoSerial.Net, crafts Python pickle and YAML payloads directly, sends the resulting serialized data as a cookie, header, or request body to the target, and listens for an out-of-band DNS or HTTP callback to confirm blind execution. Use it only against assets you are authorized to test.