AI Supply Chain Attack: How Malicious Pickle Files Backdoor Models

by jchandraon 3/20/2025, 5:55 PMwith 7 comments

by westurneron 3/20/2025, 6:21 PM

From "Insecurity and Python Pickles" (2024) https://news.ycombinator.com/item?id=39685128 :

> There should be a data-only pickle serialization protocol (that won't serialize or deserialize code).

> How much work would it be to create a pickle protocol that does not exec or eval code?

"Title: Pickle protocol version 6: skipcode pickles" https://discuss.python.org/t/create-a-new-pickle-protocol-ve...

by vivahir215on 3/20/2025, 6:00 PM

You could use https://github.com/trailofbits/fickling for analysis.