Detecting Insecure Deserialization

| Scan a source tree for unsafe-by-default deserialization APIs: Python pickle.loads / cPickle / shelve / dill, Ruby Marshal.load / YAML.load (pre-3.1 default), Java ObjectInputStream.readObject, PHP unserialize, .NET BinaryFormatter / NetDataContractSerializer, Node.js node-serialize, JavaScript JSON.parse with reviver containing eval. Use when: pre-commit gate on services that accept binary blobs, audit of legacy job-queue code (workers deserializing tasks), post-bug-report when "we accept user-uploaded archives." Threshold: any call to a known-unsafe deserialization API on data that originates from user input, network, file upload, or untrusted storage. Trigger with: "scan deserialization", "pickle audit", "java readObject scan", "yaml.load check".

thedixitjain 36a08b1 4 files · 28.9 KB Updated 2 repo stars

File contents

thedixitjain/the-mega-skill-library/tree/main/library/engineering-core/detecting-insecure-deserialization commit 36a08b1f89

Frequently asked questions

npx skillmds add thedixitjain/detecting-insecure-deserialization