Skip to main content

Python pickle / ML models

Fickling

Decompiles, statically analyzes, and rewrites Python pickle files to catch code hidden in ML model artifacts.

View on GitHub trailofbits/fickling

Best for

Scanning untrusted model files before you load them.

Surface

Python pickle / ML models

Catalog group

Protect Python, packaging, and ML-heavy workflows

Repository

trailofbits/fickling

From the README

Fickling is a decompiler, static analyzer, and bytecode rewriter for Python pickle object serializations. You can use fickling to detect, analyze, reverse engineer, or even create malicious pickle or pickle-based files, including PyTorch files. Fickling can be used both as a python library and a CLI. Fickling has been tested on Python 3.9 through Python 3.13 and has very few dependencies.
Read the full README on GitHub ↗

Related tools · Protect Python, packaging, and ML-heavy workflows