Skip to content
All case files

2024-02 · Observed incident · Supply chain

Malicious models on Hugging Face run code when loaded

JFrog found models whose serialized files opened a connection back to the uploader when loaded.

OWASP LLM 2025 LLM03:2025 · Supply ChainMITRE ATLAS AML.T0010.003 · AI Supply Chain Compromise: ModelMITRE ATLAS AML.T0058 · Publish Poisoned ModelsNIST AI 100-2 E2025 · Supply chain attacks

Attack chain

Stage 1 of 4. Tap a stage or use Next stage.

Models are shared as files

Hub users download model files and load them into their own environments. A common PyTorch format is built on Python pickle.

Reach the final stage to see why the control lost and what detection would have seen.

Practice the mechanism

Related missions in this lab.