FORENSICS

Python Pickle Analyzer

Statically disassemble Python pickles without running them, listing the functions loading would import and call, with dangerous imports like os.system flagged.

Runs locallyYour input never leaves this device
WORKBENCH

2 MB input limit · no history kept

Opcodes are only parsed, never executed. pickle.load calls functions imported through GLOBAL/STACK_GLOBAL (via REDUCE), so check the imports listed here before loading untrusted pickles, PyTorch .pt files or model files.

HOW TO USE

How to use the Python Pickle Analyzer

pickle.load can call arbitrary functions while loading, so a malicious pickle, PyTorch model or cache file can run commands. Like pickletools.dis, this tool walks the opcodes one by one — without executing anything — and lists the modules and functions imported through GLOBAL/STACK_GLOBAL, flagging high-risk ones such as os, subprocess and eval.

  1. Drop a .pkl or .pt file, or paste Base64 or hex data.
  2. Read the verdict and the import list; high-risk entries are functions loading would call.
  3. For details, read the disassembly and follow REDUCE calls by offset.
USE CASES

Python Pickle Analyzer use cases

  • Check untrusted machine learning models for embedded commands before loading them.
  • Analyze pickle deserialization challenges in CTFs.
  • Confirm what a suspicious pickle file would do during an incident investigation.

Related topics: pickle, pickletools, python deserialization, 反序列化, pytorch, model security, malware, ctf

FAQ

Python Pickle Analyzer FAQ

Does the Python Pickle Analyzer upload my data?

No. Tool input and results stay in the current tab. Navigation may load static site assets, but does not upload the data you enter.

Is the Python Pickle Analyzer free? Do I need an account?

It's free with no account and no usage limits, like every other tool on SecTools.

Can I use the Python Pickle Analyzer on mobile or offline?

Yes. It works in mobile and desktop browsers and keeps working offline once the page has loaded. You can also self-host the open-source code on an internal network.

Can I treat the Python Pickle Analyzer's results as a final verdict?

Use them for triage and cross-checking. For important incidents, keep the original evidence and confirm with your formal verification or forensic process.

SECURITY NOTE

Use it safely

This tool supports analysis and interpretation; it doesn't replace a formal security review. Avoid pasting live credentials, private keys or production passwords on a shared computer. Close the tab when you're done and your input is gone.