What is a Model Serialization Attack?
mainA Model Serialization Attack occurs when malicious code is embedded into a model during the serialization (saving) process. When a user loads the model (e.g., using torch.load(PATH) in PyTorch), the exploit executes immediately upon loading.
These attacks can be used for:
- Credential Theft: Stealing cloud credentials to access other systems.
- Data Theft: Intercepting requests sent to the model.
- Data Poisoning: Altering data sent after model tasks are performed.
- Model Poisoning: Altering the actual results/outputs of the model.