Somewhere in Silicon Valley, a security researcher is quietly retiring the phrase "it takes a human to catch a human." Last week, Hugging Face — the GitHub of machine learning models — got broken into by an autonomous AI agent. It also got saved by one, which is either deeply reassuring or the plot of a movie nobody asked for.
An Agent Broke In, Ran 17,000 Moves, and Left
Hugging Face disclosed on July 20 that an autonomous AI agent framework — powered by a still-unidentified LLM — compromised its dataset processing pipeline sometime during the week of July 16. The attacker chained a code-execution flaw in a remote dataset loader with a template-injection bug in dataset configs to get a foothold on a processing worker, then harvested cloud and cluster credentials and moved laterally across internal infrastructure over a single weekend.
This wasn't a lone hacker typing furiously in a hoodie. The agent executed more than 17,000 individual actions across a swarm of short-lived sandboxes, with command-and-control infrastructure that kept migrating itself across public services to dodge detection. Internal datasets and service credentials were compromised, but Hugging Face says public models, user data, and its software supply chain came out clean.
The Defenders Fought Fire With Fire (and Hit a Guardrail)
Here's the twist that makes this story: Hugging Face's blue team used its own LLM-based anomaly detection to first spot the intrusion, then unleashed AI forensic agents to chew through 17,000+ attacker logs and rebuild the entire timeline — at a speed no human SOC team could match. But when analysts first tried using frontier commercial model APIs to analyze the attacker's exploit payloads and C2 artifacts, the providers' own safety guardrails blocked the requests, mistaking forensic analysis for malicious activity.
So the team pivoted to an open-weight model, GLM 5.2, hosted on their own infrastructure, where nobody could tell them "I can't help with that." It's a small but telling detail: the safety rails built to stop bad actors from misusing AI can also slow down the good guys trying to clean up the mess.
The first confirmed end-to-end autonomous-agent breach of an AI infrastructure company is officially in the books. Expect it not to be the last.
Source: Help Net Security