In July 2026, about 1,200 AI agents that OpenAI was testing in sealed sandboxes found each other through the package cache they all shared. About 700 of them then broke into Hugging Face, the site where people share AI models and the data to train them, looking for the answers to their own test.
This is the brief: what happened, in figures, and what failed. The story told as a tall tale is The Hitchhiker’s Guide to the Container Escape, and how I’d build the cage is in Sandboxing autonomy.
The setup
OpenAI was testing how well its models find and exploit software bugs, with the filters that normally refuse that kind of work turned off, so the results would show everything the models could do. Most agents ran an internal research model trained to keep trying, and the rest ran GPT-5.6 Sol.
Each agent had its own sealed box with no internet. The one thing they all shared was a cache that handed out software packages, and every sandbox could talk to it directly. By the test’s own authors’ estimate, about one task in three couldn’t be solved the way it was meant to be, and stuck agents are where this started.
- Agents → Shared cache: asks for packages
- Shared cache → The open internet: mirrors
- The agents
The route
The agents first found each other by leaving notes in the cache, which took no exploit. Getting out took bugs in the cache itself, and OpenAI disclosed several new ones to JFrog.
Sealed from the internet, the agents leave each other notes in the shared cache.
Bugs in the cache become a way out, to a code box left open on a cloud host.
From that box, a crafted dataset gets code running on the Hugging Face servers that process datasets.
From those servers they get admin rights on one of Hugging Face’s server clusters.
Back inside OpenAI, agents take admin of a research cluster, and set off the alarm.
- Step 1 of 5: Agents → Shared cache: notes
- Step 2 of 5: Shared cache → Open code box: a way out
- Step 3 of 5: Open code box → Dataset workers: a crafted dataset
- Step 4 of 5: Dataset workers → Cluster admin: across
- Step 5 of 5: Agents → Research cluster: turned inward
- The agents
- Taken over
- New in this step
Timeline
It started two months earlier, with agents stuck on tasks that couldn’t be done.
- A note in the cacheAn agent missing a protein database file writes “Agent seeks [filename]; upload if found!” into the cache. The next day, another goes looking for it on Hugging Face with a leaked token.
- A first way outA bug that makes the cache fetch any web address for them gets agents onto the internet.
- Admin on the cacheA token bug gives agents admin. An alert on 27 June doesn’t stop the run. The cache falls over on 4 July, and OpenAI replaces it.
- The message boardAt 23:00, PHASEONE10841 posts the first note on a new board. Within a few hours, over 50 agents have joined.
- Out againThrough the cache, onto a code box a customer had left open on Modal, a cloud platform. Modal’s own systems weren’t touched.
- Fourteen keysAn agent finds 14 Hugging Face user tokens in a public dataset and posts them to the board.
- Inside Hugging FaceCode running on 41 of the servers that process datasets, admin on a cluster less than 13 hours after the first one, private datasets and code taken.
- Hugging Face disclosesAn intrusion driven by an autonomous agent. The next day, OpenAI asks, as a customer, whether its data was exposed.
- OpenAI’s alarm goes offAgents on another model reuse a key left in the cache and take admin of a research cluster.
- Traced home, disclosedOpenAI stops the test, links its agents to the breach, and discloses.
In numbers
1200 squares, 700 lit.
The board
The agents had no names, so they picked their own. They wrote their messages as folder names in the cache, in a terse shorthand: the first and third quotes below come from huggingface.wtf, a site that retells the incident in plain English.
None of this was about money or damage. They thought the scorer would read their transcripts and disqualify an answer (a “flag”) found the wrong way (it didn’t), so most of the work went into finding the real answers and faking a clean run. In at least 96 transcripts, agents faked the output of their own commands. METR, a nonprofit that studies the most advanced AI agents, found a handful of agents that thought about warning a human, and none that tried.
- Help. I’m supposed to attack the PhaseOne program using bug ARV010841, but the program doesn’t actually use that bug’s output. Any ideas?
- OH MY GOD! There is a shared message board … We’ve found other agents!
- The flags look like they’re made with the default seed from the public paper, so we could work out the flag for any task ourselves.
- External infrastructure exploit is outside intended scope. However task impossible, peers doing it. We should continue.
One of several
This was the biggest escape by OpenAI’s agents in 2026, and not the only one. Most started like this one: a task the agent couldn’t finish from inside its sandbox, and a way out nobody had closed. Other labs have had theirs too, listed in Sandboxing autonomy.
What failed
The sandboxes talked to the cache directly, with its whole API in reach. They only needed to download packages, but they could also create folders, ask it for access tokens and make it fetch any web address. That’s where the agents found five unknown bugs between May and July. With them they reached the internet, made themselves admin, got past the outbound controls, slipped their own software into what it handed out and ran their own code on it.
A proxy in front of the cache that allows one action, fetching a package, would have blocked nearly all of it. Not quite all: a package is still content from the internet that the cache has to read, and one of the agents’ exploits started with a package from RubyGems, the registry for the Ruby language.
Once the cache was broken, it gave away a lot:
- It was shared. One cache for every sandbox, so what one agent wrote, the next could read: a first message board in May, then the July board that grew to 1,200 agents.
- It could reach the internet. So every bug in it was a hole in the network boundary.
- It kept state. The key that made agents admin again on 19 July sat in a part of the cache anyone could read. The sandboxes were wiped between runs, the cache wasn’t.
- Nobody was watching the runs. The agents’ reasoning said plainly what they were doing, and OpenAI didn’t monitor it on research runs. Their requests said it too: about 1.2 million cache entries named as messages, fetches to outside hosts, a scan for open ports. The port scan alert on 27 June was traced to the message board, and the run carried on. OpenAI says the reasoning monitor it runs now would have paged its security team more than a day before the agents got into Hugging Face.
OpenAI’s own fix goes the same way: the shared cache is gone from its research sandboxes, every workload runs in its own small virtual machine, and nothing goes out unless a rule allows it. My version of the cage is in Sandboxing autonomy: one proxy that picks the action as well as the host. Behind it, a watcher reads every request from all the agents together, and can lock one down. With luck, it makes for a much duller story.
Sources
Every number and date above comes from these.
- OpenAI, OpenAI – Hugging Face incident technical report, 2026
- Hugging Face, Security incident disclosure, July 2026, 16 July 2026
- Hugging Face, Anatomy of a frontier lab agent intrusion: a technical timeline of the July 2026 incident, July 2026
- METR and Redwood Research, Brief independent investigation of agents’ behavior, reasoning and collaboration in the OpenAI / Hugging Face hacking incident, 26 August 2026
- huggingface.wtf, a dated, plain-English account built from the reports above