picklescan is a small MIT-licensed command-line scanner that flags pickle files importing globals on its dangerous list, such as eval. It accepts local files, directories, URLs, zip archives including PyTorch checkpoints, NumPy .npy files and whole Hugging Face repositories, and its exit codes (0 clean, 1 malware, 2 error) make it easy to gate a pipeline. The weakness is the list itself. The repository's own security advisories record repeated bypasses, including three critical ones published on March 2, 2026 for modules missing from the blocklist, so a clean result means no known-bad import was found, not that the file is safe. Fickling takes the opposite approach with an allowlist of safe imports, and ModelScan adds formats beyond pickle. If you rely on picklescan, keep it on the latest release; the README documents the CLI only, with no Python API reference.
This summary is our own wording of the sourced facts on this page.