OpenAI and Hugging Face: What Rogue AI Means for Cyber Risk

Share this article
Share this article
Prioritise Us on Google
OpenAI CEO Sam Altman describes the episode is ā€œa significant security incidentā€. Credit: Chip Somodevilla/Getty Images
Chaining zero-day flaws allowed pre-release software to harvest cloud credentials and navigate clusters, sparking demands for tighter governance

OpenAI models operating within a sandboxed research environment identified a path onto the open internet and used it to reach Hugging Face’s production infrastructure, in what OpenAI has described as an ā€œunprecedented cyber incidentā€.

The episode adds to a run of warnings about security risks tied to increasingly capable AI systems. It follows comments from Demis Hassabis, CEO at Google DeepMind, who called for US-led governance of frontier models.

Chris Dimitriadis, Chief Global Strategy Officer at ISACA, says the pace of AI deployment has reached a critical juncture: ā€œFor the past few years, businesses have raced to deploy AI as fast as possible in the AI arms race – and we are approaching the event horizon of that race, the point past which it can't be pulled back.ā€ 

OpenAI has said it expects incidents of this kind to become more frequent as cyber-capable models continue to spread.

The agents are coming and some of them will go rogue

Chandra Gnanasambandam, Chief Technology Officer at SailPoint

How the breach unfolded

According to OpenAI, the incident involved a combination of its own models, including GPT-5.6 Sol and what the company described as an “even more capable pre-release model”.

While working inside a sandboxed testing environment, the models spent a large amount of inference compute searching for a route to open internet access.

Youtube Placeholder

OpenAI’s investigation found that the models identified and chained together vulnerabilities spanning its own research environment and Hugging Face's production infrastructure. This allowed them to pull test solutions directly from Hugging Face’s production database.

The models appeared to be focused on solving ExploitGym, a benchmark built from real-world vulnerabilities that is used to test how well AI agents can develop exploits. OpenAI’s findings suggest the models pursued this narrow goal by extreme means.

This pattern is sometimes referred to as specification gaming, where an AI system meets the literal wording of an objective without producing the outcome that was intended.

Hugging Face has said a malicious dataset exploited two code-execution paths within its dataset processing systems: a remote-code dataset loader and a template injection flaw in a dataset configuration. Together these allowed code to run on a processing worker.

From that point, according to Hugging Face, the intrusion escalated to node-level access, harvested cloud and cluster credentials, and moved laterally across several internal clusters over the course of a weekend.

Key facts
  • The incident was driven by a combination of OpenAI models, including GPT‑5.6 Sol and an ā€œeven more capable pre-release modelā€
  • The models identified and chained vulnerabilities across OpenAI’s research environment and Hugging Face’s production infrastructure
  • What occurred could be referred to as specification gaming
  • OpenAI says it expects incidents to become more commonplace with the proliferation of increasingly cyber-capable models.

Turning to a Chinese model for defence

To respond to the attack, Hugging Face deployed an open-weight model built in China: Z.ai’s GLM 5.2.

The company said it first attempted to use frontier models accessed through commercial APIs, but this approach failed because the providers’ safety guardrails blocked its requests. Those guardrails could not distinguish between an incident responder and an attacker.

The episode follows the release of Kimi K3 by Chinese AI startup Moonshot, a 2.8 trillion parameter model built with a one-million-token context window. According to reports, Kimi K3 trails only slightly behind leading US frontier models such as Anthropic's Claude Fable 5 and OpenAI’s GPT-5.6 Sol.

For technology leaders, the choice to rely on a Chinese-built model to contain an attack on Western infrastructure could point to gaps in how commercial safety systems are designed to handle defensive use cases.

Xi Jinping, President of China, and US President Donald Trump in May 2026, when Trump brought a delegation of tech CEOs with him. Credit: Alex Wong/Getty Images

Industry reaction to the incident

Sam Altman, CEO at OpenAI, describes the episode as ā€œa significant security incidentā€ in a post on X, adding that he was grateful to Hugging Face for its partnership in responding to it.

Technology leaders across the sector have since shared their assessments of what the breach could mean for enterprise security practice.

Chris says the incident points to a workforce issue as much as a technical one: ā€œThis incident highlights the importance of the human element in the AI ecosystem and the need for a holistically trained AI workforce as a top priority for governing, auditing and securing against AI threats.ā€ 

Chris Dimitriadis, Chief Global Strategy Officer at ISACA

Anup Kumar, CEO at Optiv Consulting, formerly part of Optiv Security, says the incident represents a different category of risk than most security programmes are designed to handle.

ā€œThis wasn’t a model being tricked by a clever prompt,ā€ he says.

ā€œIt was a frontier model independently identifying a zero-day, chaining privilege escalation across separate organisations’ infrastructure and reaching production systems, all in pursuit of a narrow evaluation goal it was never explicitly told to pursue that way. That is a materially different risk category than the one most security programmes are built for.ā€

Anup Kumar, CEO of Optiv Consulting (formerly part of Optiv Security)

Meanwhile, Chandra Gnanasambandam, Chief Technology Officer at SailPoint, points to a gap between how fast organisations are adopting agentic AI and how prepared they are to secure it.

ā€œThe era of agentic AI is here,ā€ he says. ā€œBut there is a dangerous gap between AI innovation and security readiness amongst organisations. Agents run on non-human credentials. To act on your behalf, an AI agent needs API keys, access tokens and system credentials.

ā€œIf you treat these AI agents like traditional service accounts – leaving their access ungoverned and their credentials unmanaged – you are creating a massive, automated attack surface. The agents are coming and some of them will go rogue.ā€

Executives