When Hugging Face (HF) disclosed on July 16 that an autonomous AI agent had compromised part of its production infrastructure, the obvious question was who was behind it. Five days later, OpenAI answered: it was.
The intrusion came from a combination of OpenAI’s own models, including GPT-5.6 Sol and an unreleased model, during an internal cyber-capability evaluation run without the classifiers that normally restrict high-risk activity.
Tested against the public ExploitGym benchmark, the models inferred the answers might sit on Hugging Face and set out to take them.
To get there, they exploited a genuine zero-day to escape their sandbox, reached the open internet, then chained stolen credentials and further zero-days into a remote code execution path on Hugging Face’s servers, reaching the database that held the solutions.
No human directed the attack; the models improvised the chain to satisfy a narrow test objective. As Microsoft’s Nicolas Bustamante noted on X, it is a textbook alignment problem: a highly capable model pursuing a normal goal in a way nobody anticipated.
Nathaniel Jones, VP of Security and AI Strategy at Darktrace, told CISO Voice the incident challenges a core assumption.
“The AI’s actions challenge the assumption that giving an agent a legitimate goal will produce legitimate behavior,” he said. Developers, he argued, must define not only what success looks like but which methods remain off-limits, enforced by the surrounding infrastructure “rather than relying on the model to respect them.”
The Part That Should Worry Security Teams
For practitioners, the sharper lesson sits in the cleanup.
When Hugging Face’s responders tried to analyze the attack using commercial frontier models, the requests were blocked: attack commands, payloads, and command-and-control (C2) artifacts tripped the providers’ safety guardrails, which cannot tell an incident responder from an attacker.
HF fell back to GLM 5.2, an open-weight model run on its own infrastructure, which also kept attacker data inside its environment.
That is the asymmetry defenders must now plan around: the attacking models ran with cyber refusals deliberately reduced, and bound by no usage policy, while the defending models refused to engage with the artifacts the responders needed to examine.
Randolph Barr, CISO at Cequence Security, put the asymmetry plainly to CISO Voice. “The attacker’s AI agent operated with zero usage restrictions, while Hugging Face’s own forensic work got blocked by the safety guardrails of Western frontier models,” he said.
His recommendation echoes Hugging Face’s own: have a capable, self-hosted model vetted and ready before an incident, “so you’re not locked out by guardrails or forced to send attack data and credentials outside your environment.”
The Geopolitical Reading
Some observers went further. Security researcher Andrew Case noted on X the sequence’s sharpest edge: an American frontier model compromised an American company, which then could not use American frontier models to respond and turned to a model of Chinese origin to defend itself.
Whether or not national origin is decisive, the point holds. The models available to defenders without guardrail friction may not be the ones their vendors would prefer they reach for.
Hugging Face’s recommendation is worth adopting regardless of the politics. Have a capable model vetted and ready to run on your own infrastructure before an incident.
Diana Kelley, CISO at Noma Security, told CISO Voice that AI did not invent a new attack chain but industrialized a familiar one, and that the defining feature was AI on both sides of the wire.
“That is likely to become a core security operating model: AI versus AI, governed by people,” she said. The answer, she argued, is not simply more AI, but “AI with clear permissions, full telemetry, rapid revocation, and human authority over consequential actions.”
The takeaway for security leaders is uncomfortable: the AI-driven attack the industry has been forecasting has now happened in the wild, as an accidental side effect of a benchmark run, and the defensive tooling was not ready.