Skip to content
Sysdig·Indexed by this site · Originally published· Defenses →

Why every pickle defense in machine learning is bypassed in the same way

In a pickle: Why every pickle defense in machine learning is bypassed the same way

AI summary

After dissecting all publicly documented pickle bypasses, the Sysdig Threat Research Team (TRT) proposed that the six recorded bypasses share the same pattern, namely that the component performing the check and the component actually loading the file interpret the same file inconsistently. The article points out that pickle.load() is execution rather than parsing, and the __reduce__ mechanism makes loading equivalent to running arbitrary code; this is by design of the format rather than a flaw. A statistic cited in the article covering 705,991 Hugging Face mirrored models shows that PyTorch's .pt/.pth/.bin account for 51.0%. The author reviewed cases including PyTorch CVE-2025-32434 and CVE-2026-24747, Keras CVE-2025-9905/9906, three CVEs in picklescan, and nullifAI, and tested five malicious gadget families; Sysdig Secure alerted on all of them within two seconds, while open-source Falco's default rules detected four of them.

Related papers
Read originalsysdig.com