News for hackers. Stuff that matters.
Re:How Pickle Files Backdoor AI Models by vivahir215 on Saturday March 15, 2025 @01:01PM (#43373744)
Nice read !

You could also use joblib format as well.

Re:How Pickle Files Backdoor AI Models by jchandra on Saturday March 15, 2025 @01:07PM (#43373777)
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.
Re:How Pickle Files Backdoor AI Models by vivahir215 on Saturday March 15, 2025 @01:14PM (#43373825)
ah okay. Didnt know this. I generally use pytorch save models for my workflow.
Re:How Pickle Files Backdoor AI Models by jchandra on Saturday March 15, 2025 @01:20PM (#43373871)
pytorch save/load still are pickle based models. Its fine for trusted sources but when you start using from untrusted sources then there is always a risk of ACE. If you want to execute it, would suggest to try it in a sandbox env like docker, VM or online notebooks envs or other option is to inspect the model file.

As Open source AI booms, the risk of supply chain attacks also increases.

Re:How Pickle Files Backdoor AI Models by vivahir215 on Saturday March 15, 2025 @11:45PM (#43376822)
Cool.