Pickle-based model files (.pkl, .joblib,
.pt, .pth) can run arbitrary code the moment you
torch.load / joblib.load them. PickleScan statically
disassembles the file and flags code-execution gadgets — without ever
unpickling it.
PickleScan Pro is a CLI + GitHub Action that scans every model artifact in your project, fails the build on dangerous files, and outputs JSON/SARIF. Lifetime license, one-time $29.
Read the plain-English guides:
pickletools to read opcodes — it never executes the file.GLOBAL/STACK_GLOBAL imports of os, subprocess, builtins.eval, etc.