/indra:sh-kb-deserializationfrom Indra
Knowledge base for hunting insecure deserialization (CWE-502) — untrusted data fed to object-deserialization APIs that can trigger RCE or object injection via gadget chains. Covers Python, Java, PHP, Ruby, .NET, and Node sinks, detection recipes, and false-positive filters.
Ships in Indra. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Deserializing attacker-controlled bytes into live objects can execute code during reconstruction (magic methods / gadget chains) or corrupt application state. Confirmed native-object deserialization of untrusted input is typically critical (RCE).
pickle.load(s), cPickle, yaml.load( without SafeLoader, jsonpickle.decode,
shelve, dill, marshal.loads, pandas.read_pickle, numpy.load(allow_pickle=True).ObjectInputStream.readObject(, readUnshared, XMLDecoder, XStream (default), Kryo,
SnakeYAML new Yaml().load(, Jackson polymorphic typing (enableDefaultTyping/@JsonTypeInfo),
Fastjson parseObject with autotype.unserialize( on user input (POP chains via __wakeup/__destruct).Marshal.load(, YAML.load( (Psych, pre-safe), Oj in object mode.BinaryFormatter.Deserialize, LosFormatter, NetDataContractSerializer, TypeNameHandling in JSON.node-serialize unserialize(, funcster, serialize-javascript misuse, vm on decoded input.graft grep "pickle.load|yaml.load\(|readObject|unserialize\(|Marshal.load|BinaryFormatter|TypeNameHandling|enableDefaultTyping" --json.__reduce__ returning (os.system, ('id',)) - describe the gadget; do not
ship a live malicious blob.ysoserial gadget families (CommonsCollections, etc.) conceptually - the PoC is that the
endpoint deserializes attacker bytes with vulnerable classpath gadgets present.__destruct/__wakeup (POP chain).yaml.safe_load, SafeLoader; JSON (json.loads, JSON.parse of plain data) with no
polymorphic typing; protobuf/avro/thrift schema-bound decoders; pickle of a trusted, integrity-checked
source only (e.g. a file the app itself wrote, signature-verified before load).ObjectInputFilter (Java) / custom find_class.CWE-502. OWASP A08:2021. Untrusted native deserialization with reachable gadgets -> critical; object injection with limited impact -> high.
Deserialization RCE -> read secrets, pivot; often reachable via access-control gaps (an endpoint that
accepts serialized state); cache/queue poisoning feeds it a stored payload (second-order).
Never deserialize untrusted data with native/polymorphic deserializers. Prefer schema-bound formats (JSON
without type info, protobuf). If unavoidable, sign+verify integrity with a secret key and restrict to an
allowlist of expected classes; disable polymorphic typing (Jackson TypeNameHandling.None, remove XStream
default). Keep gadget-prone libraries patched.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
insecure-deserialization, rce, object-injection, gadget-chains, cwe-502
npx claudepluginhub dmdhrumilmistry/indra --plugin indra20 skills in this plugin
/indraindra - the entry point for application-security work. Dispatcher for the indra security harness. Use when the user asks for any application-security work - 'security review', 'audit this codebase', 'pentest', 'find vulnerabilities', 'check for SQLi/XSS/IDOR/SSRF', 'generate a security report/SARIF'. Interprets the request and routes it to the full sh-security-review pipeline, a single stage, or a single vulnerability-class knowledge base./sh-kb-access-controlKnowledge base for finding broken access control - IDOR/BOLA, missing function-level authorization, privilege escalation, and multi-tenant isolation failures. Use when hunting authorization issues or reviewing whether users can access resources/actions they shouldn't. CWE-284/285/639/862/863, OWASP A01:2021-Broken Access Control./sh-kb-authKnowledge base for finding authentication and session-management failures - weak login, broken JWT/session handling, password/reset flaws, MFA bypass, credential storage issues. Use when hunting authentication (not authorization - see sh-kb-access-control). CWE-287/384/613/620/640, OWASP A07:2021-Identification and Authentication Failures./sh-kb-cryptoKnowledge base for finding cryptographic failures - weak hashing/encryption, insecure randomness, hardcoded/static keys and IVs, ECB mode, missing integrity, and predictable tokens. Use when hunting crypto misuse. CWE-327/328/330/326/916, OWASP A02:2021-Cryptographic Failures./sh-kb-csrfKnowledge base for finding Cross-Site Request Forgery - state-changing requests that rely only on ambient credentials (cookies) with no anti-CSRF token or SameSite protection. Use when hunting CSRF. CWE-352, OWASP A01:2021-Broken Access Control./sh-kb-file-uploadKnowledge base for finding unrestricted/insecure file upload - uploads that allow dangerous file types, execution in the upload dir, path control over the stored name, or missing content validation, leading to RCE, XSS, or overwrite. Use when hunting file-upload issues. CWE-434/436/616, OWASP A04/A05:2021.Other plugins' skills for the same job