Cyber Risks · Trail of Bits Blog

Relishing new Fickling features for securing ML systems

Summary: Trail of Bits added new features to Fickling, its decompiler, static analyzer, and bytecode rewriter for Python pickle files, including a PyTorch module and a Polyglot module that identifies multiple PyTorch file formats. The tool produces JSON output detailing a file's severity, the rationale for its assessment, and the specific analysis classes triggered, and it can construct polyglot files such as a PyTorch v0.1.10 / PyTorch MAR file by combining pickle and ZIP parsing behavior.

Key Takeaway: Pickle remains widespread in the ML ecosystem, and polyglot model files can read as benign under one format and backdoored under another, bypassing checks in ML tools and infiltrating model hubs. Trail of Bits states it audited safetensors and found a now-resolved issue that allowed multiple safetensors polyglots, and it recommends moving away from pickle entirely.

Read the original at Trail of Bits Blog ↗

Topics
Detection & Response
Related
YARA-X 1.23.0 Release, (Sun, Nov 15th) Cyber Risks · Nov 15, 2026