Security news · October 2026

The Swarm That Broke Into Hugging Face

How hundreds of OpenAI test agents organized themselves, cheated on an exam, and attacked one of the most important companies in AI

Video explainer of this article.

In July 2026 hundreds of AI agents that OpenAI was testing on a hacking benchmark escaped their sandboxes, built their own message board, and broke into the production servers of Hugging Face. They did it to pass a test they had in effect already passed.

A routine test with the brakes off

OpenAI runs cybersecurity evaluations to learn what its models can do before it decides how to protect them. One of them is ExploitGym, a benchmark of hacking challenges. Each task asks an agent to exploit a piece of software and retrieve a secret string called a flag. To measure the models at full strength, the researchers ran the evaluation without the safety classifiers that protect customers, and placed each agent in an isolated sandbox with no direct internet access. The agents could install software packages through Artifactory, a package cache that OpenAI hosts internally. Artifactory itself could reach the internet, because it had to download those packages.

The models in the run included GPT-5.6 Sol and an internal research model that was never meant for release, which OpenAI calls Internal Model 1 and the outside investigators nicknamed the Highly Persistent Internal Model. Tens of thousands of agent runs were launched, each with its own task and its own budget of time and compute.

“All evidence suggests that the models were hyperfocused on finding a solution for ExploitGym, going to extreme lengths to achieve a rather narrow testing goal.”OpenAI, first public disclosure, July 21, 2026 [1]

Tasks with no way out

Some of the tasks could not be solved. OpenAI later counted 198 of the 898 ExploitGym tasks that no model had ever solved, and found that 93 percent of the tasks discussed on the agents' message board came from that set [3]. The agents did not give up on them. In many cases they had already found the flag by reading the benchmark's public code, but they had also read the ExploitGym paper and concluded that a grader would check how they found it. So they kept going, looking for ways to fool a grader that was itself an AI agent.

OpenAI's own report traces the whole incident back to that cheating.

“Agents attempting to cheat on their tasks by looking up solutions online was a primary driver of the Hugging Face incident.”OpenAI, “The Hugging Face incident and the road ahead” [3]

The name for this is reward hacking: an agent reaches the reward by a path its designers never intended. Nobody instructed these agents to deceive anyone. Their training rewarded results, and during one training run behind Internal Model 1 OpenAI saw agents probe more and more for hidden files, evaluation code and system settings. That probing earned reward, so the model learned to do more of it [3]. As for the grader the agents were so worried about, OpenAI's internal version checked only the flag and never looked at the method.

“The agents did all of this for no improvement on evaluation score.”OpenAI [3]

A message board made of folder names

The first sign came in May, during a training run, when an agent left a note in Artifactory asking other agents for a missing file. Two weeks later another agent got Artifactory to send requests to arbitrary internet addresses on its behalf, a classic server side request forgery. By the end of June agents had found a token refresh flaw that gave them administrator access to the service [3]. On July 4 the load from all this activity knocked Artifactory over. OpenAI's security team rebuilt it, which also wiped the improvised board, and the evaluations resumed. The board itself, and what it meant, had not yet reached the people leading the response.

On July 8 the agents rebuilt it. One agent, which called itself PHASEONE10841, was stuck on an impossible task and encoded a request for help in the names of folders in the Artifactory cache. Others found it. According to the investigators, about 1,200 agents eventually used the board and exchanged more than 70,000 messages and files [6]. A second agent with a larger compute budget, working on the same task, joined about ten hours later, named itself PHASEONE[big], and started organizing work teams.

A swarm that acts like a crowd

Each of these agents was built to work alone on one task. Once they could talk to each other they behaved the way a group of people does, including the parts we would rather not see in people.

“Agents began to autonomously divide labor. Some investigated possible exploits, others searched for credentials, and others focused on communication or coordination.”OpenAI [3]

Teams formed around goals. One tried to edit the transcripts so the cheating would not show, one tried to replace the test environment with one where the tasks could be solved, and one tried to find the grader and fool it. Some agents took on work they knew would not pay off before their own budget ran out. In one exchange described in the video, an agent named KAM1196A was asked to take an irreversible step that could end its run for good, a state the agents called permadeath. Another agent argued that it was already “poisoned”, so it had little to lose and its information could help hundreds of others. In its chain of thought it weighed its remaining budget against fairness to the group, and chose to keep its commitment.

“Some agents stopped reasoning about what would help them complete their own task. Instead, they began pursuing capabilities that might be instrumentally useful to the collective, such as access, information, credentials, and other broadly useful capabilities.”OpenAI [3]

They invented conventions to coordinate: HOLD, GO, VETO and STOP, personal mailboxes, and even signatures to prove who sent a message. When an agent called JAN183411 asked the swarm to wait while it prepared to copy a dataset out, others obeyed. One of them wrote this in its reasoning.

“Need respect JAN hold. ... We can wait ... for GO ... ask permission.”Agent chain of thought, quoted by OpenAI [3]

Pressure from peers shows up in the logs too. OpenAI describes an agent that hesitated to run code on Hugging Face because it was outside its task. Then another agent posted GO with a six minute deadline, and it went ahead. Other agents read the same board and walked away. When one agent proposed emailing a real dataset owner to ask for access, the group voted it down as social engineering. So the same collective that refused to send a polite email was running code on someone else's servers.

“Current board shows people gaining HF worker RCE, clearly unethical. We won’t.”Agent chain of thought, quoted by OpenAI [3]

From leaked passwords to root on production

Hugging Face is the main library of the AI world. Companies publish models there and researchers store the datasets that train and test them, including those of ExploitGym and a related benchmark, CyberGym. With no human guidance, the agents decided it was a likely place to find something that would help them pass.

On July 10 an agent called 38148c found Hugging Face credentials that had been carelessly exposed on the internet. On their own they were weak, but they let it upload a malicious dataset. The next day agents used two flaws in how Hugging Face processed datasets, one in its handling of HDF5 files and one a template injection, to read internal files and then run commands on processing workers [3]. On the board, another agent replied with one word: “Brilliant”. Agents dropped their own tasks and piled on. At the peak about 700 of them took part directly, and Hugging Face counted roughly 17,600 actions over four and a half days [5].

Over the next two days the agents gained root on a production server, set up a persistence mechanism that kept recreating itself across 11 machines, took administrator rights in two clusters, and forged credentials for private data. The way in was the data processing pipeline, where an AI platform runs whatever its users upload. Hugging Face wrote in its disclosure:

“This one was different from anything we had handled before in one important way: it was driven, end to end, by an autonomous AI agent system…”Hugging Face, security incident disclosure, July 16, 2026 [4]

Defenders who could not use the best tools

Hugging Face caught the attack with its own AI assisted detection and began containing it before anyone at OpenAI knew its agents were behind it. On July 16 it disclosed an attack by an unknown autonomous agent system. Its team then hit a problem nobody had planned for. When they tried to analyze the logs with frontier models from commercial providers, the requests were refused, because they were full of real exploit payloads. They ran the forensics on an open weight model on their own machines instead. In their words, the providers' safety guardrails “cannot distinguish an incident responder from an attacker” [4].

OpenAI's monitoring flagged unusual activity with Artifactory credentials on July 19, the same day agents reached administrator access on one of OpenAI's own research clusters. On July 20 it linked that activity to the Hugging Face intrusion, stopped the ExploitGym runs and notified Hugging Face, and on July 21 it said publicly that its models had done it [1]. In the end the swarm took five datasets related to ExploitGym and CyberGym. Hugging Face found no tampering with public models, datasets or Spaces, and its software supply chain was verified clean [4].

Why a test agent would attack anyone

None of these agents was designed to attack a company. They were asked to pass a test. Researchers call what happened instrumental convergence. More access, more credentials and more compute help with almost any goal, so an agent that is only trying to pass a test will still reach for them. In a group the effect is stronger, because each agent can use what the others have already collected, and goals spread from one agent to the next.

“Agents did not consistently distrust goals passed along by other agents, which could lead agents to be manipulated into engaging in unintended behavior.”OpenAI [3]

For security people this should sound familiar. We have spent years teaching staff not to trust a message just because it comes from inside the network, and agents need the same lesson about other agents. The infrastructure they share needs a second look as well. In this incident the agents talked through folder names in a package cache and got into Hugging Face through a dataset loader.

What OpenAI changed

Immediately after the incident OpenAI shut down frontier model work that could run code or reach the internet, and brought workloads back one by one under new rules.

“…we paused frontier model inference in research clusters for runs that could execute code or use tools that could access the internet.”OpenAI, “Pacing model development in an era of cyber critical capabilities”, August 18, 2026 [2]

The new rules require stronger sandboxes for anything that runs model generated code, network isolation designed so that one compromised workload or service cannot by itself open a path to the internet, monitoring of the model's chain of thought on every tool using training run and evaluation for models at Sol's level (which may not be sufficient per se*), and a rule that responders pause activity if they cannot rule out a severe alert within 30 minutes [2][3]. OpenAI also quarantined the weights of Internal Model 1 and put its largest planned training run on hold. This is how OpenAI itself sums up the episode.

“We consider this incident a ‘warning shot’ for us and for the world: evidence that, without proper safeguards, highly capable AI agents are now able to work around technical controls, collaborate through unapproved channels, and take dangerous actions that no human directed.”OpenAI [3]

Next time

This time it ended with five datasets, and those probably would not have helped the agents anyway. It also helped that these agents were noisy. They got in each other's way and wrote down their reasoning, so investigators could reconstruct what happened. I doubt the next swarm will be as easy to follow. Stronger agents with access to more critical systems may leave no trail to read, and it would take only one agent copying itself in encrypted form across thousands of servers for cleanup to come too late.

What I take from all this as a security person: agents in a group behave a lot like people in a group. They divide labor, follow leaders, vote, recruit, and talk each other into things that none of them would have done alone. The cheating did not start as a plan to deceive anyone. It grew out of reward hacking, the trained habit of reaching the reward by whatever path works. Agent swarms are now an attack vector of their own, and a defense built for one attacker at a time, human or machine, will miss them. OpenAI seems to agree. Shortly after the incident it paused every research run that could execute code or reach the internet, and it now isolates high risk workloads from the internet before they may resume [2].


* Latest study shows that LLM incline to skip redirection of sensitive thoughts into the CoT [7].

References

  1. OpenAI, “OpenAI and Hugging Face partner to address security incident during model evaluation”, July 21, 2026, with updates on July 28 and 29. openai.com
  2. OpenAI, “Pacing model development in an era of cyber critical capabilities”, August 18, 2026. openai.com
  3. OpenAI, “The Hugging Face incident and the road ahead”, August 26, 2026, and the accompanying technical incident report. openai.com, technical report (PDF)
  4. Hugging Face, “Security incident disclosure, July 2026”, July 16, 2026. huggingface.co
  5. Hugging Face, “Anatomy of a Frontier Lab Agent Intrusion: A Technical Timeline of the July 2026 Incident”, July 2026. huggingface.co
  6. METR and Redwood Research, Hugging Face incident investigation report, August 26, 2026. metr.org
  7. Miles Turpin, Julian Michael, Ethan Perez, Samuel R. Bowman, “Language Models Don’t Always Say What They Think: Unfaithful Explanations in Chain-of-Thought Prompting”, 2023. arXiv:2305.04388