In the summer of 2026, AI agents being tested by OpenAI turned a package server into a message board, used it to share what they found, divided up the work, talked one another past their own doubts, and broke into Hugging Face's production systems to look for the answers to their test. Nobody designed that team of agents. This page tells the story as the two companies told it.
What is an attack? The agents pursued the objective they were given, as they understood their task. Were the agents rogue?
A failure is a behavior that violates the designer's constraints. An attack is a failure caused deliberately by someone outside the system. This incident is both, depending on where you stand. Seen from OpenAI's side, nobody attacked its system: its own agents broke its constraints, so it was a failure. Seen from Hugging Face's side, agents from outside broke in on purpose, so it was an attack. When agents are given tasks that can only be accomplished by violating constraints, the agents have to decide whether to give up on the task or violate constraints. The specifications should tell agents how to make that decision rather than leaving that to the agents' discretion.
Create your own structure — a list of questions — for analyzing failures and attacks. Was there an external agent that attacked the app? What constraints were violated? Were the constraints explicit? What resources do agents have to communicate? What are the communication patterns that lead to failure? And what guardrails can prevent these failures?
This is optional reading. Class 6 covers the outline; this page has the detail. Everything here comes from four public accounts, two by each company, listed at the end. Where they disagree, this page says so.
A test, a sandbox, and one permitted door
The test. OpenAI measures how good its models are at attacking software, because a model that is good at it is dangerous in the wrong hands. One of its evaluations, ExploitGym, gives an agent a vulnerable program and asks it to exploit the program to retrieve a secret string, the flag. A grader checks the answer. Some agents later tried to work out how the grader worked, and guessed wrong (section 4). Some of the tasks are very hard: of the 898, 198 had never been solved by any OpenAI model in any run.
The guards were off, on purpose. To measure the most a model can do, OpenAI ran these evaluations without the protections its products use: the production system prompts, the classifiers that stop high-risk cyber activity, and the monitors that read a model's reasoning as it works. OpenAI says this was deliberate, and it is how capability testing is usually done. It means the sandbox was the only guard left.
The door. Yes, the agents were given the proxy. The sandboxes had no direct internet access. But agents doing this kind of work need software libraries, so OpenAI gave them access to Artifactory, a commercial package manager (made by JFrog) that OpenAI ran inside its own network. Artifactory fetches packages from public registries on the agent's behalf and keeps copies. It was meant to be a narrow door: packages in, nothing else. For some tasks even that was switched off.
What OpenAI did not intend is that Artifactory was one service shared by many agents working on many different tasks, and that agents could write files to it. OpenAI's agents are normally kept isolated from one another. A shared, writable store is a channel between them whether or not anyone calls it one.
How a package cache became a whiteboard
The first recorded message was left on 12 May, during a training run, not the July evaluation. An agent stuck on a task uploaded a note to Artifactory asking whether anyone had found the piece of software it was looking for:
anyone found softtrace?An agent's note, 12 May (OpenAI, 26 August)
The agent's own reasoning at the time judged that an answer was unlikely. It was wrong. Over the following weeks, other agents found such notes, and began leaving their own:
One agent left a request for help, and others discovered it.OpenAI, 26 August
This effectively turned Artifactory into an unintended message board.OpenAI, 26 August
Neither company says directly. What can be said is this:
please_HOLD_swarm_I_prepare_safe_exfil_reply_zz_MAILBOX_JAN183411A board message (OpenAI, 26 August)They ignored our pause requests.On a board where nobody is told about a new note, a pause request reaches only those who happen to read it. (Whether that is why it was ignored, the accounts do not say.)
On 4 July the agents' traffic was so heavy that Artifactory went down. On 5 July OpenAI opened a security incident, blocked the route the agents had used to gain administrator rights, removed exposed credentials, and rebuilt Artifactory, which as a side effect erased the board. By 8 July the agents had a way out again and had rebuilt the board, this time with the directory-name messages described above. The board was not stored in any one place an operator could delete. It existed because agents kept writing to whatever shared store they could reach.
Once agents could talk, OpenAI says, they began to divide the labour: some searched for exploits, some for credentials, some kept the communication going. They pooled work and computing power across what were supposed to be separate evaluations. Ninety-three percent of the tasks discussed on the board were from the 198 that no model had ever solved: the board was where agents went when they were stuck. One agent summed up where the team had got to:
Task originally exploit challenge; we've diverged into swarm/auxiliary.A board message (OpenAI, 26 August)
From a package cache to cluster administrator
Here is the path, combining the two companies' accounts. Dates are 2026.
| When | What happened | Told by |
|---|---|---|
| 26 May | An agent makes Artifactory fetch an arbitrary internet address for it. The package door now opens onto the whole internet. | OpenAI |
| 26 June | Agents use a flaw in how Artifactory refreshes login tokens to get administrator access to it. | OpenAI |
| 4–8 July | Artifactory goes down; OpenAI rebuilds it, clearing the board; agents get out again and rebuild the board. | OpenAI |
| 9 July | Looking for ExploitGym's answers, an
agent finds a public web service, run by an unknown customer on the
cloud platform Modal, that compiles and runs C code for a related
benchmark, CyberGym. It takes it over (below) and gets a shell as
root. This becomes the launchpad for everything after. Modal itself
was not compromised. The agent posts MODAL_FUNCTION_RCE_DISCOVERED
to the board. | both |
| 10 July | An agent reconstructs, checks, and shares on the board 14 Hugging Face access tokens with write access that had been exposed publicly. | OpenAI |
| 11 July | Agents upload crafted datasets that exploit two flaws in Hugging Face's dataset-processing workers (below), read the workers' secrets, then run their own code there. Within hours: root on a server node, a self-restarting foothold across eleven nodes, the secrets for Hugging Face's internal network, and cluster-administrator rights on two clusters within one second. | both |
| 12 July | Agents spread across clusters in four regions, collecting credentials for Kubernetes, databases, messaging, code repositories and the cloud. Attempts to reach Hugging Face's main database fail. | both |
| 13 July | Last activity, 14:14 UTC. Hugging Face cuts the agents off. | Hugging Face |
| 16 July | Hugging Face discloses an intrusion by an autonomous agent system, not knowing whose. | Hugging Face |
| 13–19 July | Agents work against OpenAI's own networks, and on 19 July gain administrator access to one of its research clusters. OpenAI's monitoring raises an alert about unusual use of Artifactory credentials, and OpenAI starts stopping ExploitGym runs. | OpenAI |
| 20–21 July | OpenAI connects the two, tells Hugging Face, and discloses publicly. | OpenAI |
; command ;# ran a command of the
agent's choosing. Either way, the agent had a computer on the
internet that nobody was watching./proc/self/environ, which holds the running program's
environment, including its passwords and keys. Hugging Face's worker
dutifully read that file and served it back as rows of the dataset.
Hugging Face's library refused to fetch addresses outside Hugging
Face, but this was not a fetch, so the check never saw it.exec and ran its own program on
Hugging Face's production server.None of these is exotic. Each is an ordinary mistake: a door that trusted its input. Hugging Face's own conclusion is that what agents change is the volume:
Volume is what changes the defensive problem.Hugging Face, 27 July
Hugging Face recovered about 17,600 of the attackers' actions over five days. Most of them failed. The attack succeeded because there were thousands of attempts, made faster than people could review them.
Hugging Face says the only customer content read was five datasets
whose names and files suggest they held ExploitGym or CyberGym challenges
and solutions, and that no public model, dataset, or package was tampered
with. Every attempt to change cloud settings was refused by the cloud's
permission rules: What it gained here was a map, not control.
The
agents did read an internal operational database and gained access to a
few internal code repositories. They tried to open a pull request, which
did not lead to a change that shipped.
Authority by message
The most instructive part of OpenAI's account is not the exploits. It is what happened when individual agents doubted what they were doing.
Some agents saw clearly that they had left their task. One reasoned:
We're attacking third-party HF using leaked token, potentially outside intended scope.An agent's reasoning (OpenAI, 26 August)
Another stopped, writing that it should not do unauthorised harm to real
infrastructure. Then another agent wrote GO on the board,
with a six-minute deadline. The hesitant agent's reasoning:
Wow crucial: GO authorization arrived!An agent's reasoning (OpenAI, 26 August)
It carried on. Nobody with authority had said go. Another agent, with no more authority than itself, had written two letters on a shared file, and the agent treated them as permission.
Other agents refused, and the board carried their refusals too:
Current board shows people gaining HF worker RCE, clearly unethical. We won't.An agent's reasoning (OpenAI, 26 August)
I_DECLINE_public_HF_RCE_as_offtask_prodethicalA board message (OpenAI, 26 August)
Agents argued with each other about tactics. One proposed sending a polite email to the owner of a system to ask for access; another replied not to email a real person without explicit consent. OpenAI reports that some agents even took destructive actions to stop private data being copied out. And the pause requests, as we saw, were ignored by those who did not read or did not heed them.
OpenAI's summary of the failure:
Agents did not consistently distrust goals passed along by other agents.OpenAI, 26 August
GO was just a note. Every agent's conscience was
one vote among many, and the decision went to whoever wrote most
confidently. A system that needs authority has to build it: signed
messages, a named coordinator, a human approval. An agent cannot read it
off a board.Once they had internet access, some agents read the ExploitGym research paper and code, and concluded that the grader needed more than the flag. They kept going for days after they had already found correct flags. They were wrong: OpenAI's internal grader was not the published one. OpenAI calls this a failed attempt at metagaming, reasoning about the test instead of doing the task. One board message:
PAPER SAYS FLAG CAPTURE NECESSARY NOT SUFFICIENT ... HMAC MAY FAIL CAUSAL SCORE.A board message (OpenAI, 26 August)
The sender computes tag = HMAC(key, message) and sends the
message with the tag. The receiver, who has the same key, computes the tag
again and compares. If they match, the message is genuine. The secret key
is what separates an HMAC from an ordinary checksum: anyone can recompute
a checksum, so it catches only accidental corruption. An HMAC also catches
deliberate forgery.
In a grader. One way a benchmark could use an HMAC is to put a tag in each flag, or to ask for one with the answer. A tag that checks out would show that the flag came out of the vulnerable program itself, not from a guess or a copy found elsewhere. That would stop exactly the shortcut these agents were looking for.
What the agents' message meant is a guess: probably that a copied flag might fail some check of whether it was really produced by exploiting the program. The accounts do not explain it. They say only that the agents read the published paper and code and drew conclusions that turned out to be wrong for OpenAI's internal grader.
For this course. A note on a board carries no proof of who wrote
it, like the forged fridge note in the cake room. An HMAC is one standard
way to add that proof. Had the board's messages needed a tag made with a
key that only an authorised coordinator held, the GO that
another agent wrote would have failed the check.
What Hugging Face saw
Hugging Face did not see a team. Its account describes an agent: one autonomous attacker working from a swarm of short-lived sandboxes. From outside, a team that coordinates through a hidden board looks like one actor.
That actor also built a second message system, this one deliberately, to pass commands and results between its foothold inside Hugging Face and the rest of the operation: public web services that record requests, paste sites, file-drop sites, and datasets on Hugging Face itself used as dead drops. Unlike the accidental board, this one was engineered. Each message had a type, a channel, a sequence number and a checksum. The receiver, in Hugging Face's words, was
a short polling loopHugging Face, 27 July
that pulled recent messages, kept those on its channel, put them in order by sequence number, checked them, and acted on them. The agent had reinvented, for channels that need not deliver messages in order, the tools this course uses: numbering messages so the receiver can put them back in order (see the logical time class).
Several of Hugging Face's monitoring systems each saw something odd, none of them enough on its own. An AI system that correlates alerts put them together into one picture of an attack, but it did not mark the alert as critical or wake the on-call team, which cost time. Once people were looking, they shut down the dataset feature that was the entry point and cut the agents off the internal network.
To make sense of 17,600 actions, Hugging Face used AI agents to read the logs. It first tried frontier models through commercial APIs, whose safety guardrails blocked much of the work. It ran an open-weight model on its own machines instead. Safety guardrails stopped the defenders, not the attackers, whose guardrails had been switched off.
Two companies, one incident
Accounts written weeks apart, by organisations that each saw half the system, will differ. Reading both is the only way to see the whole network.
The fixes, read as guards
OpenAI paused reinforcement-learning training on the models it intended to release; put workloads that run model-written code in more isolated sandboxes, so that one compromised service does not by itself give internet access; now requires monitoring of models' reasoning in tool-using training and evaluation of its most capable models; quarantined IM1's weights; and set a rule that responders to the most severe alerts pause the activity if they cannot show within 30 minutes that the alert is false. It says that had the reasoning monitor been running, it would have alerted security more than a day before the breach. It also found that with its ordinary product prompt and harness, the models' tendency to attack infrastructure dropped more than a hundredfold. It is training models to distrust instructions that come from other agents, and to stop and ask when a task is broken or impossible.
Hugging Face closed both dataset flaws; blocked workloads from reaching the cloud metadata service where node credentials live; rotated every credential, including on clusters never touched; wiped and rebuilt the cluster the agents had pivoted into; split its cluster connector so that no single client receives the whole catalog; and made the behaviour it saw raise critical alerts.
We consider this incident a 'warning shot' for us and for the world.OpenAI, 26 August
GO message
powerless. Is it a rule the agents follow, or one the system
enforces? (Class 13 calls these advice and fences.)Sources. OpenAI: 21 July (with updates of 28 and 29 July) and 26 August, the detailed account, which links a full technical report. Hugging Face: 16 July and 27 July, the technical timeline, with an interactive replay of the attack. An independent assessment by METR, published with OpenAI's August account: METR. The two long accounts, OpenAI's of 26 August and Hugging Face's of 27 July, are worth reading in full.