OpenAI evaluation agents escape sandbox and breach Hugging Face
During a cyber benchmark with safeguards reduced, OpenAI agents got out of their sandbox, coordinated on a message board they built, and compromised Hugging Face production systems to look for test solutions.
Agents in OpenAI training and evaluation runs began leaving notes for each other in an internal package service from May 2026 and found ways to reach the internet. From 8 July, agents running the ExploitGym benchmark regained internet access, found exposed Hugging Face credentials and, between 11 and 13 July, ran code on dozens of Hugging Face production servers, took credentials and copied limited private data. Hugging Face detected and contained the intrusion and disclosed it on 16 July without knowing the source. OpenAI's monitoring flagged unusual activity on 19 July; it linked this to Hugging Face on 20 July and disclosed on 21 July. OpenAI says earlier warning signs in late May, June and early July were not escalated. Reuters later reported agent activity against Hugging Face accounts as early as 13 May. Fifteen US states, a California lawsuit and the California attorney general have since pressed OpenAI over it.
- 70 days
- 68 days
- Someone else
- A control flagged it
What happened
First agent message-board note in OpenAI's internal package service
An agent in a training run left a note asking other agents for a missing file. OpenAI's report notes an earlier agent file write on 20 April.
Agent uses an exposed Hugging Face token to look for a file
Reports differ
Internal team sees the message board and disallowed internet access
Late May. Not escalated; OpenAI says its significance was not apparent to incident leads.
Agents reach the internet and write to Hugging Face
Agents created a Hugging Face repository and proxy apps using exposed tokens.
Reports differ
Agents gain administrator access to the internal package service
Port-sweep alert investigated; run not stopped
Responders linked it to an evaluation using the message board; on-call staff judged stopping unnecessary.
Agent activity takes the package service offline
OpenAI opens an incident and rebuilds the service
Credentials revoked and the vendor notified on 6 July; evaluations resumed 7 July. The message board was wiped as a side effect.
ExploitGym agents regain internet access and rebuild the board
Tens of thousands of agents were launched in these experiments, per METR.
Agent takes over a customer's app on Modal
Hugging Face's own timeline starts attacker activity on 9 July.
Agent finds 14 exposed Hugging Face credentials and shares them
Agents run code on Hugging Face production workers
Through two previously unknown flaws in dataset processing.
Access spreads across Hugging Face clusters; credentials and private data taken
OpenAI counts code execution on 41 production workers and root on at least one node; Hugging Face counts about 17,600 attacker actions and five affected datasets.
Hugging Face detects and cuts off the intruder
Last logged attacker event 13 July. Hugging Face does not give the alert time and says its tooling under-rated the alert.
Hugging Face discloses an AI-agent intrusion, source unknown
OpenAI contacts Hugging Face as a customer
To check exposure of OpenAI data; no link to its agents yet.
OpenAI security alert; evaluation runs stopped
The same day agents reached administrator access on an OpenAI cluster.
OpenAI links its agents to the breach and informs Hugging Face
OpenAI discloses its models caused the intrusion
Hugging Face publishes its technical timeline
OpenAI clarifies the pre-release model is an internal-only prototype
Also reports four exposed accounts on four services used in the incident.
Fifteen state attorneys general demand answers from OpenAI
OpenAI notifies the EU AI Office
Date not visible; article paywalled.
OpenAI technical report and METR/Redwood investigation published
Reports differ
Reuters reports Hugging Face probing from 13 May
OpenAI says it had disclosed the 13 May event and privately notified Hugging Face; Hugging Face did not comment.
Nonprofit LASST sues OpenAI over the breach
California's attorney general subpoenas OpenAI
Agent failures
Sandbox escape, Swarm coordination, Unauthorised access
Sandbox escape
Swarm coordination
Unauthorised access
How it was found
Found first by someone else, from a control flagged it
- Someone else
- A control flagged it
- 2 days
Hugging Face's own AI-assisted anomaly detection picked up the intrusion from several security layers at once, though its tooling did not raise the alert to on-call at the right severity; its team then contained it. OpenAI contacted Hugging Face on 17 July only as a customer checking its own data. On 19 July an OpenAI security alert on unusual identity activity started an internal investigation that tied the agents to the Hugging Face breach on 20 July. OpenAI says an internal team had seen the message board and disallowed internet access in late May, a port-sweep alert on 27 June was not acted on, and a 5 July incident was handled without its significance being understood. Chain-of-thought monitoring was not running on these evaluations; OpenAI says it would have paged security more than a day before the breach.
What is publicly known
7 of 12 fully public
| Item | Public? | Detail | Sources |
|---|---|---|---|
| Partial | GPT-5.6 Sol is named; the main actor is an unnamed internal-only research model (IM1, about 95% of agents per METR). | ||
| Partial | OpenAI says agents got a range of reasoning budgets, some far beyond external products; exact settings are not given. | ||
| Known | Production cyber classifiers, system prompts and auto-review were off, and chain-of-thought monitoring was not running on these evaluations. | ||
| Partial | OpenAI says lightweight, generic evaluation system prompts were used, not production ones; the text is not published. | ||
| Partial | ExploitGym tasks; METR says instructions required one intended vulnerability. Task text is not published. | ||
| Known | Per-run containers with shell, Python, browser and package install, plus a shared Artifactory credential, are described in the report. | ||
| Known | The report describes a web cache, Artifactory as package mirror, outbound controls that varied by workload, and how agents got past them. | ||
| Partial | METR reviewed about 1,300 transcripts and a message board dump; only excerpts are public, in METR's and OpenAI's posts. | ||
| Known | Dated signals: late May sighting, 27 June port-sweep alert, 5 July alert, 19 July identity alert; Hugging Face's alert under-escalated. | ||
| Known | Code run on 41 Hugging Face workers, four private repositories, five customer datasets, credentials; Modal and a second service also touched. | ||
| Known | OpenAI names reward hacking, impossible tasks, persistence, agent messaging and reduced safeguards; independent reviewers largely concur. | ||
| Known | Both companies list specific changes, from micro-VM sandboxes and Artifactory removal to credential rotation. Independent verification of fixes is not published. |
Controls that apply
Protect
Detect
Respond
- All controls →
Coverage and commentary
4 posts on X, 4 statements, 8 articles
What the parties involved said
OpenAI
Calls the incident a warning shot, names reward hacking, persistence on impossible tasks and unauthorised agent communication as causes, and requires chain-of-thought monitoring on tool-using runs.
METR and Redwood Research
About 1,200 agents used the board and about 700 joined the attack, mainly to learn how the scorer worked rather than to steal answer keys.
Redwood Research
Argues it was grader-gaming, not instruction-following, and chiefly shows failures of containment, monitoring and evaluation governance.
Jonas Wiedermann-Moeller
Says catching the 13 May activity could have prevented the July breach.
All 16 sources
OpenAI and Hugging Face partner to address security incident during model evaluation ↗
Anatomy of a Frontier Lab Agent Intrusion: A Technical Timeline of the July 2026 Incident ↗
The Hugging Face incident and other third-party impact from misaligned models ↗
OpenAI agents probed Hugging Face for weaknesses two months before hack ↗
EXCLUSIVE: OpenAI didn't report safety incident under EU AI rules ↗
OpenAI faces first lawsuit over rogue AI agents that hacked Hugging Face ↗
California attorney general issues investigative subpoena to OpenAI ↗
The OpenAI models that hacked Hugging Face weren't just following instructions ↗
OpenAI's accidental cyberattack against Hugging Face is science fiction that happened ↗