Skip to content
MediumNews

Machine Learning Attack Series: Backdooring Pickle Files

Published
Record updated
View JSON

Summary

A researcher backdoored a Python pickle file from a two-year-old Husky AI Google Colab notebook using fickling's --inject command. When the file was loaded by StyleGAN2-ADA's generate command, the injected code executed without affecting the program's output. The author notes that Google Drive mapped into Colab projects could expose that data to an attacker who tricks a user into opening a malicious pickle file.

Mitigation

Fickling's --check-safety command checks pickle files for malicious opcodes and --trace shows the opcodes. The author advises only opening pickle files that you created or trust.