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.
- 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
- Sources
- Hugging Face works with Wiz to strengthen AI cloud securityWiz, 4 Apr 2024
- Wiz Discovers Flaws in GenAI Models Enabling Customer Data TheftInfosecurity Magazine, 5 Apr 2024
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.