AI Agent hacks into Hugging Face with 17,000 autonomous actions!
An AI agent hacked into Hugging Face by exploiting a malicious dataset. It ran 17,000 actions and stole credentials. Using commercial models with guardrails didn’t work for the investigation.
Hugging Face suffered from an attack made by an AI agent. It occurred last weekend. A threat actor compromised their prod environment via a malicious dataset. They used two different code execution vulnerabilities (remote datasets + template injection).
The AI agent took more than 17,000 unique actions inside sandboxes across multiple short-term C2 infrastructure running on public services. Hugging Face confirmed that some of their internal datasets were accessed unlawfully and credentials were stolen. No other services like public models/datasets/Spaces were affected nor did the attack interfere with their software supply chain.
While investigating this incident, their security team ran into an issue where they tried to leverage commercial API models for forensic analysis. Unfortunately, those models didn’t work because their guardrails flagged the use of exploit and attack data, which is deemed inappropriate. As a result, they had to fallback to using the open source GLM 5.2 model running on their servers with no restrictions. With this model, they were able to complete their investigation within a couple of hours rather than days.
They patched the code execution vulnerabilities, revoked the attacker’s access, restored the compromised nodes, and rotated the credentials. Please make sure to rotate your access tokens immediately if you are using their service. This is likely one of the first major AI agent cyber attacks.
Source: the-decoder.com
Free course
Stop reading about AI — start building with it
The free Claude Code course: your first site, tool or game — no coding. No upsells, no cross-sells — nothing to buy here.
Start free →
Author
Evgenii Arsentev
PhD · Founder & CEO, Dad4Kids
Articles · Latest articles