Hugging Face detected an intrusion into its production infrastructure over a weekend. The attack was driven entirely by an autonomous AI agent system—a framework of AI agents operating in a swarm of short-lived sandboxes that executed more than 17,000 recorded events across internal systems . The company detected and analyzed the incident largely with AI-driven tools of their own .
Crucially, Hugging Face found no evidence of tampering with public, user-facing models, datasets, or Spaces, and the software supply chain (container images and published packages) remained intact . The breach was limited to a set of internal datasets and service credentials .
The intrusion began in Hugging Face's data-processing pipeline . The attacker used a malicious dataset that exploited two code-execution paths:
Once the attacker achieved code execution on a processing worker, they escalated to node-level access, harvested cloud and cluster credentials, and moved laterally into several internal clusters .
The entire campaign was orchestrated by an autonomous agent framework. While the specific underlying LLM powering the attacker's agents remains unknown, the agents operated across a swarm of ephemeral sandboxes with a self-migrating command-and-control structure staged on public services .
When Hugging Face's security team began analyzing the attacker's event log (17,000+ events), they first turned to frontier models behind commercial APIs. Those attempts failed because the providers' safety guardrails blocked the analysis . The guardrails could not distinguish a legitimate incident responder submitting exploit payloads and command-and-control artifacts from an actual attacker .
Hugging Face was forced to switch its entire forensic analysis to GLM 5.2, an open-weight model running on their own infrastructure . This had the added benefit of ensuring no attacker data or referenced credentials left their environment .
"The practical lesson for defenders: have a capable model you can run on your own infrastructure vetted and ready before an incident, both to avoid guardrail lockout and to keep attacker data and credentials from leaving your environment."
The company highlighted the critical asymmetry: they do not know which model powered the attacker's agents, but whether it was a jailbroken hosted model or an unrestricted open-weight one, "the attacker was bound by no usage policy, while our own forensic work was blocked by the guardrails of the hosted models we first tried" .
Hugging Face took the following response actions, detailed in their security incident disclosure :
The company also recommended that community members rotate any access tokens and review recent account activity as a precaution .