top | item 43373711

How Pickle Files Backdoor AI Models

6 points| jchandra | 11 months ago |jchandra.com

6 comments

order

compressedgas|11 months ago

Pickle can be made safe. Just limit what the unpickler can call to a fixed list based on what is expected and permitted for the pickle to use.

vivahir215|11 months ago

Nice read !

You could also use joblib format as well.

jchandra|11 months ago

joblib is not fully secure because it still relies on Pickle internally. The reason it is slightly better in pickle is due to fact that pickle file gets immediately executed when it gets imported whereas joblib doesn’t execute code just by being imported.