Researchers show malicious model could reach shared Hugging Face infrastructure

Researchers show malicious model could reach shared Hugging Face infrastructure

A model uploaded as ordinary customer content could be used as a foothold into infrastructure shared by other customers.

4 April 2024DemonstratedBreaches and supply chain
Hugging Face Inference API / Inference Endpoints and Spaces · Hugging Face · Global
What happened
Wiz researchers uploaded a crafted pickle-serialized PyTorch model to Hugging Face's Inference API, which gave them a reverse shell when the model was loaded. From there they used Amazon EKS misconfigurations to query node metadata and obtain Kubernetes tokens, enabling lateral movement within the cluster. In a second test, a malicious Docker container in Spaces gained write access to an insufficiently scoped internal container registry that served images to multiple customers. Wiz said secrets in shared environments of this type can lead to cross-tenant access.
Response
Hugging Face enabled IMDSv2 with hop limits, enforced authentication on internal registries, adopted Wiz scanning tools and committed to annual penetration testing. Findings were published jointly on 4 April 2024.
Discovered by
Wiz Research, in coordinated research with Hugging Face.
Who was affected
Potentially other tenants' models and data on shared AI-as-a-service infrastructure (research finding; no third-party exploitation reported)
Patterns
Supply chainCredentials exposed
Confidence: high · checked 24 September 2026. Published under CC BY 4.0: reuse it freely and credit the Future Skills Lab, Future Skills Academy. Seen an error or a newer development? Write to tellmemore@futureskills.academy.

Related

Incidents with the same pattern

What does this ask of people?

Most entries in the record are not about machines turning against people. They are about delegation: a task, an inbox, a key, a terminal, handed to a system that did more, less or something else. Futures literacy starts with noticing that.

All 177 incidents →The Future Skills Lab

Learn with us

Learn the human skills that gain value

Future Skills 101: live online sessions of 90 minutes, open to anyone. Power Skills trainings for teams on request.