An AI Bot Broke Into Hugging Face. Hugging Face Used AI to Figure Out What It Did.
The machine learning platform says an automated attack ran tens of thousands of actions inside its systems before being caught. Here is what got in, what was taken, and what ordinary users need to know.

Key points
- Hugging Face, a platform used by researchers and companies to share AI models, confirmed a data breach caused by an attack run almost entirely by automated software.
- The attackers got in through a booby-trapped dataset that triggered two separate code-execution flaws in Hugging Face's processing pipeline.
- Hugging Face's own systems logged more than 17,000 events tied to the intrusion before the company evicted the attackers and rebuilt the affected servers.
- Internal datasets and service credentials, the keys used by software to access other services, were accessed without authorisation.
- Hugging Face says it found no evidence that public models, public datasets, or published software packages were tampered with.
Hugging Face builds and runs one of the most widely used platforms for sharing AI models and datasets. Think of it as a GitHub for machine learning. The company has now disclosed that criminals broke into its production infrastructure using an attack piloted almost entirely by an AI agent, software designed to carry out complex tasks without a human steering every step.
The entry point was a poisoned dataset. When Hugging Face's pipeline processed the file, it triggered two flaws the company hadn't patched. One was a remote-code loader, meaning the dataset could instruct the server to fetch and run outside code. The second was a template-injection vulnerability, a flaw where specially crafted text tricks a system into executing commands it should only be reading. Together, the two weaknesses let the attackers run their own code on Hugging Face's processing workers.
From there the attack escalated quickly. Credentials were harvested and the attackers moved sideways through the network, a technique called lateral movement where one foothold reaches further systems. The operation ran through an autonomous framework built on an agentic security-research tool, spinning up thousands of short-lived sandboxes (isolated temporary computing environments) and using public internet services to relay instructions back to the attackers. Hugging Face counted more than 17,000 logged events before the intrusion was contained.
Should users of Hugging Face be worried?
For most people who download models or datasets, the current evidence is reassuring. Hugging Face verified that public models, public datasets, the Spaces app-hosting product and published packages were all clean. No tampering was found.
Any service credentials that existed at the time of the breach should be treated as potentially exposed. If you have API tokens, the long passwords that let software connect to Hugging Face on your behalf, rotating them now is a sensible precaution. Hugging Face has already revoked and replaced the credentials it controlled.
MFA, multi-factor authentication where you confirm your identity through a second step such as an app or a text message, wouldn't have stopped this particular attack. The criminals got in through a software flaw, not a stolen password. What would have helped: sandboxing the dataset processing pipeline more strictly from the start, and catching the anomalous outbound connections earlier.
Hugging Face reported the breach to law enforcement and brought in outside forensic specialists. It used its own AI tools to reconstruct the attack timeline. Both the attack and much of the investigation ran on machine intelligence, a detail that deserves attention beyond the breach itself. The criminals' specific AI model was never identified.
We covered dataset-security risks at Hugging Face on 20 July 2026 when the initial disclosure landed. The forensic picture has since sharpened considerably. Autonomous offensive tooling lowers the cost of a patient, multi-stage campaign and runs at machine speed. Defenders who aren't using AI to monitor their own data pipelines are already behind.



