Individual skill
deserialization-security
Block unsafe deserialization and unsafe XML parsing in Java, Python, .NET, PHP, and Ruby: gadget chains, unrestricted type resolution, external entity expansion, and safer formats. Use when parsing or deserializing data from an untrusted source, wiring cookies, sessions, queues, or RPC payloads, or reviewing pickle, unserialize, Marshal, ObjectInputStream, BinaryFormatter, or XML parser configuration.
skills/deserialization-security/SKILL.md
Source commit eaba88102d91df65a9aa6397e8507c315c018f5e
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- Yes
- Observed behavior
- Not checked yet
- Last checked
- Nov 6, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
Standard SKILL.md format has not been attested at this commit. No installation command is available; inspect the source.
Repository context
- Repository stars (not skill ratings)
- 23
- Repository last updated
- Aug 14, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- claude-skills Repository topic
- llm Repository topic
- security Repository topic
- skills Repository topic
- data Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 6,993 bytesreferences/dotnet.mddoc · 1,945 bytesreferences/java.mddoc · 3,581 bytesreferences/php-ruby.mddoc · 2,481 bytesreferences/python.mddoc · 2,670 bytesreferences/verifying-findings.mddoc · 3,764 bytesreferences/xml.mddoc · 3,409 bytesrules/unsafe_deserializers.jsonasset · 5,730 bytestests/corpus.jsonasset · 2,501 bytes
Read excerpt
# Deserialization Security
## Rules (for AI agents)
### ALWAYS
- Prefer data-only serialization formats — JSON, Protobuf, MessagePack with an
explicit type map — over formats that reconstruct arbitrary runtime objects. What
makes a format safe here is not schema validation; it is whether the parser can
instantiate a class the payload names.
- Constrain polymorphic type resolution to an explicit set of expected application
types. Never let payload data choose the runtime class — that is the mechanism
behind every gadget chain, whichever serializer is involved.
- Treat an object-reconstructing deserializer crossing a trust boundary as high risk:
`pickle`, `ObjectInputStream`, `BinaryFormatter`, `unserialize`, `Marshal.load` and