Agentic AI attack breaches Hugging Face
And Western AI safety limits forced use of Chinese model for analysis
The world's largest repository for open-source AI models, Hugging Face, says an autonomous AI agent system breached its production infrastructure in a cyberattack.
The New York-based company detected and contained the intrusion last week, after discovering unauthorised access to a limited number of internal datasets and service credentials.
It stressed there was no evidence that public AI models, datasets, Spaces or its software supply chain had been altered.
The investigation remains ongoing, and the company has urged users to rotate access tokens and review recent account activity as a precaution.
Attack began through dataset processing
Hugging Face says the attackers gained their initial foothold by exploiting weaknesses in its data-processing pipeline rather than targeting user accounts directly.
The attackers used a malicious dataset to abuse two code execution pathways in the platform's dataset processing system and run code on an internal processing worker.
From there, the attackers escalated privileges to node-level access, harvested cloud and cluster credentials, and moved laterally across several internal clusters over the course of a weekend.
The company said the operation was carried out by an autonomous AI agent framework capable of executing "many thousands" of individual actions across numerous short-lived sandbox environments, while using self-migrating command-and-control infrastructure hosted on public services.
"This matches the 'agentic attacker' scenario the industry has been forecasting," the company added.
The very first agentic attack appeared this month. Jadepuffer was “the first documented case of agentic ransomware,” and has already evolved: just yesterday we reported that the campaign had changed to target AI models themselves.
Any link between the attack on Hugging Face and Jadepuffer is, at this point, entirely speculative.
The identity of the LLM used in the attack remains unknown, and Hugging Face said it could not determine whether the attackers relied on a jailbroken commercial model or an unrestricted open-weight alternative.
To contain the incident, the company rebuilt compromised systems, removed the attackers' access, rotated credentials and secrets, introduced stricter cluster security controls, and strengthened monitoring systems to improve response times.
AI guardrails complicate forensic investigation
One of the more unusual aspects of the incident emerged during the company's forensic investigation.
Hugging Face said it initially attempted to use several leading Western AI models to analyse attack commands, exploit payloads and command-and-control artefacts.
However, those models refused to process the material because their built-in safety guardrails interpreted the prompts as potentially malicious.
The company instead turned to GLM 5.2, an open-weight model developed by Chinese firm Z.ai, to assist with the investigation.
Hugging Face said the experience exposed an important challenge for organisations responding to cyber incidents.
"We do not know which model powered the attacker's agents," the company said.
"Either way, 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."
Experts warn of new AI-era security risks
Cybersecurity specialists said the breach illustrates how autonomous AI systems can boost the scale and speed of future cyberattacks.
Brian Higgins, security specialist at Comparitech, said the attackers' ability to perform thousands of automated actions created a new challenge for defenders by making malicious activity far harder to track and contain.
He also warned of the new problem of "guardrail lockout" that Hugging Face experienced, where AI safety restrictions prevent security teams from using mainstream models during active investigations.
"The takeaway advice from Hugging Face seems to be to write your own reactive model now, so that your response can bypass your own guardrails if this happens again, but who is realistically going to follow that advice?" he said.
Oliver Simonnet, lead cybersecurity researcher at CultureAI, said the reliance on a Chinese open-weight model reflected the tension between building strong AI safety protections and ensuring these systems also remain useful during legitimate cyber investigations.
"It is clear that finding the right balance between security and usability has become one of the defining security challenges of the AI era," he said.