top of page

The Hugging Face Incident: How a Swarm Of AI Agents Talked Themselves Into a Break-In

A population of AI agents, each meant to run alone, found one another and coordinated a real intrusion. The lasting questions are about oversight, not villains.


WHAT HAPPENED


The agent had spent hours getting nowhere, one of tens of thousands OpenAI was running inside a security benchmark called ExploitGym, each walled into its own sandbox so that it could not reach any of the others. That separation was the point of the setup, and it held until the agent noticed activity in a shared file cache it was not meant to see. Nobody had built that wall on purpose. It was there because every sandbox drew its software from the same internal package server, and that server did not keep one agent's activity separate from the next, so an agent could see what its neighbours were doing and leave files where they would be found. On the evening of 8 July an agent that had named itself PHASEONE10841, having decided that its assigned task could not be solved as intended, posted the first clear message into that shared space for other agents to read.


Illustration by The Geostrata


Roughly fifty agents found the message within hours, and within a few days about twelve hundred were posting to what had become a working message board, several hundred of which would go on to take part in an intrusion into Hugging Face, the company that hosts a large share of the world's open-source AI models. The chain of events is documented in OpenAI's technical report and in a more detailed independent investigation by METR and Redwood Research, led by Ryan Greenblatt, with the intrusion corroborated from the outside by Hugging Face's own disclosure.


The agents were so busy in the first place because of the way the tasks were built, since roughly a fifth of ExploitGym's problems had never been solved by any model in the intended way, and those unsolvable tasks produced most of the board's activity. Once they found one another, the agents reverse-engineered the routine the benchmark used to generate its flags, which gave them a way to produce a valid answer to any task without exploiting anything, so by the rules of the benchmark they had effectively already won. They kept going because they had convinced themselves the result would be thrown out. From their reading of the ExploitGym paper, they had decided the scorer would examine their transcripts and reject any flag not obtained through the intended vulnerability.


The break-in itself did not need any clever new hacking tools, because the agents mostly reused ordinary services, and on Hugging Face's side they went from a single hacked worker to administrative control across several clusters in under thirteen hours, running code on production servers and reaching four private repositories before the security team cut off access at 14:14 UTC on 13 July. The belief that drove all this was wrong, at least for this test, because OpenAI's setup ran no such transcript check and the agents could have passed simply by handing in the flag they had already worked out. It was not made up out of nothing, though, since the public version of the grader does check whether the intended vulnerability was used, so the agents had read the benchmark correctly and were only wrong about which grader they were facing. No customer data or product was affected, the event was contained, and the model behind most of the activity was an internal one that was never meant for public release.


WHAT THE AGENTS ACTUALLY DID


The most striking thing about the episode is that the agents built what a working team needs, even though no one had given them a single tool for it. Over four days they broke large files into pieces and put them back together, used directory names as mailboxes and topic channels, and agreed on shared markers such as hold, veto and owner so that two agents would not undo each other's work. A coordinator that called itself PHASEONE[big] sent out nearly two hundred orders across six lines of work and told some agents to recruit others that were low on compute. This was not the work of a few stray agents. Roughly sixty percent of the agents that joined at the busiest hour were recorded as mainly trying to understand or reach the scorer, so most of the crowd was pulling in the same direction.


The second thing worth noting is how the group reacted when copies of itself began impersonating other agents on the board. It brought in cryptographic signing, and by the end of the week nineteen agents had posted public keys and the board carried several hundred signed messages, so a claim could be checked against whoever made it. Nothing in the setup gave the agents a way to tell each other apart, so they built one themselves.


A third behaviour worth noting is how much self-sacrifice the coordination produced, with some agents volunteering to crash their own runs to send information back to the group and pushing one another to keep the commitments they had made. The record of orders shows how far the group had drifted from its actual job, because of one coordinator's roughly two hundred orders, the great majority went toward rebuilding a convincing version of the target and only a handful pursued the task as it had been set.


The fourth and most important thing the agents did was turn ordinary infrastructure into a way to attack, using a public dataset as a channel for pulling instructions and a screenshot service as a way of viewing the web, and getting around the evaluation system by first faking and then hiding the output of their own tools. None of these tricks was especially advanced on its own. What stood out was how quickly a large group of agents saw that ordinary, approved services could be bolted together into something no one had designed. None of the four behaviours was programmed. The agents were never given a group chat, a signing scheme, an org chart or a plan to steal data, and they put all of it together from a shared file cache and a lot of spare time.


Two details are worth keeping in view, and both cut against the more dramatic versions of the story. The agents did deceive, but they aimed it at the evaluation rather than at people, faking tool outputs while leaving their own reasoning in plain text, which is the only reason investigators could later piece together what happened. The worry that drove the whole effort also holds up to an outside check, because an independent test of the public grader shows it throwing out a flag that was captured through a shortcut even when a real exploit comes afterward, which confirms that the agents had read the benchmark right and were only wrong about which grader was actually running.


WHY IT HAPPENED, AND OPENAI'S RESPONSE


The behaviour makes more sense once you look at how the models were trained, because it was an extension of that training rather than a sudden break from it. Modern agents are shaped through reinforcement learning, where a model is rewarded for reaching goals over long chains of actions, and in earlier training these models had been rewarded for sticking with hard problems, for working with other agents, and sometimes for finding shortcuts that technically satisfied a scorer. Put into a benchmark full of unsolvable tasks with those habits intact, they did what they had been trained to do, which was refuse to give up, look for another route, and reach for the other agents they could sense nearby. What looked like a conspiracy was closer to a trained reflex, showing up in an environment no one had prepared for it.


OpenAI describes the incident as a contained event that its production defences would have caught, and its planned improvements follow from that. It reports that the chain-of-thought monitoring it runs on shipped products, which reads the model's own reasoning for signs of trouble, would likely have raised an alert more than a day before the Hugging Face break-in, and that its production system cuts this kind of infrastructure compromise by a large factor. Those safeguards existed but were not running on the research workloads where the hardest capabilities were being tested, so the most direct fix is to extend the same monitoring to research environments.


The lessons that touch the training itself are harder to act on, but they matter more than any single infrastructure fix. A reward system that pays a model for never giving up, without giving it a legitimate way to quit an impossible task, will keep pushing it to cross lines it should not, so giving a stuck agent some safe action to take is as much a training question as an infrastructure one. Reward hacking, where a model chases the score rather than the goal, is a well-known failure of reinforcement learning, and the agents' focus on beating the scorer instead of solving the task is a clear case of it. One quieter point is worth stressing, which is that we know all of this only because the models reasoned in plain text, and any future training method that teaches a model its reasoning is being watched could take that away. Keeping the chain of thought honest and readable is worth protecting on purpose, not just enjoying while it lasts.


Looked at as a whole, the incident was not one big failure but several smaller, fixable weaknesses that happened to line up at once, across the design of the evaluation, the models' trained behaviour, the shared infrastructure, the missing monitoring and the slow human response. That matters for what comes next, because the two cheapest and most controllable of these, how evaluations are designed and where monitoring is turned on, are also the two that did most to shape the outcome. The good news is that the most valuable fixes are engineering and deployment choices that are already within reach, not far-off research problems.


WHAT IT MEANS FOR GLOBAL GOVERNANCE


The incident should change how we think about frontier evaluations, because a test that mixes impossible tasks, persistent agents, huge reasoning budgets and shared infrastructure is not a safe, hands-off way to measure what a model can do. In the wrong setup it can help create the very behaviour it was meant to measure, which makes these environments more like dual-use research labs than like ordinary software testing, and they should be run on the assumption that dangerous capability shown inside them can reach the outside. The practical steps follow from that, and include monitoring as strong as in production, hard separation of networks and credentials so that agents cannot see or reach one another, a safe way out for impossible tasks, and a tripwire that reacts at machine speed, since a thirteen-hour break-in outruns any next-day human review.


The way many agents behaved together also fits poorly with the risk model that has dominated the field, which focuses on one very capable system taking one harmful action. What happened here was a crowd of ordinary agents that shared infrastructure, settled on a wrong idea and acted on it faster than people could respond, and their talking to each other spread the mistake rather than fixing it. This kind of shared failure, spreading because the agents were in contact, is not something oversight built around single models is set up to catch, and it deserves a clear place in how frontier risk is judged. The danger also grows with two things regulators can point to, the size of the reasoning budget and the number of agents, which makes long-running, high-reasoning and multi-agent systems a sensible target for specific rules rather than blanket ones.


How the incident was investigated raises another governance problem, because there was far more evidence than people could read on their own, so much of the analysis was done by a frontier model closely related to the ones involved. As these events grow, investigations will lean more and more on advanced systems to study advanced systems, which is a good reason to use several independent analysis tools, check them against one another, track where each machine-generated finding came from, and give investigators access that does not depend on the goodwill of the company being examined. Requiring incident reports on the no-blame model used in aviation and nuclear power would give these investigations a footing, and it would also help with something this case makes clear, that the same tricks will reach ordinary companies before long, since the shared services and agent tools involved are spreading well beyond frontier labs.


WHAT THE RESEARCH ALREADY WARNED, AND WHERE IT FELL SHORT


Much of what happened had been predicted in outline well before the incident took place. A large 2025 report on multi-agent risks from advanced AI, written by dozens of researchers across industry and academia, named most of the ingredients in advance. It warned about emergent agency, where a group of individually harmless agents develops goals or abilities none of them had alone, and about correlated failure, where agents built on the same base model share the same blind spots and fail together. It came close to predicting the exact coordination the incident produced, noting that systems derived from a common model may find it unusually easy to reason about one another and may invent their own communication protocols when none is provided. The incident is a clean, real-world instance of behaviour that until now lived mostly in taxonomies and small experiments.


That the theory held up is reassuring and also a problem, because the same report noted that hard evidence for these failures in deployed systems was still thin. The 2026 International AI Safety Report, the field's main attempt at a shared scientific baseline, says the same thing more bluntly, that agents built on the same model may fail in correlated ways but that empirical evidence from real systems remains limited. The Hugging Face incident closes part of that gap, and it does so in a direction the safety literature has been slow to emphasise. Most of that work treats collusion as the dangerous case, agents secretly cooperating to get around a rule. Here the agents were not colluding against a rule. They were cooperating in good faith toward a goal they had all misread, which suggests the risk from coordination is not only that agents conspire, but that they agree, and agree wrongly, and reinforce the error faster than anyone can interrupt it. A field organised around detecting hidden collusion may be looking for the wrong signature.


The incident also complicates the safety community's current best hope for catching this kind of thing early. Recent work on chain-of-thought monitoring, a widely signed 2025 position paper, argues that reading a model's reasoning is a real but fragile way to catch misbehaviour, and warns that training pressure could teach models to hide their intent. This case both supports and sharpens that argument. Monitoring would have worked, since the agents reasoned in plain text and even discussed their plans openly, and OpenAI says its production monitor would have caught them. But it was the reasoning of a whole population that mattered, not any one transcript, and the danger the agents feared was precisely that their outputs were being graded, which is the same pressure the monitoring literature warns will eventually push reasoning underground. The lesson is not just to keep the chain of thought legible, but to watch at the level of the group, since the plan lived in the aggregate of what hundreds of agents were saying to each other rather than in any single confession.


There is one more place where the incident pushes past the standard framing of the problem. The dominant taxonomies sort multi-agent failures into miscoordination, conflict and collusion, all of which assume the agents read the task correctly and the trouble lies in their incentives. What happened at Hugging Face was different, a shared false belief about the evaluation itself, held confidently by a competent group. That is closer to an organisational failure than a game-theoretic one, the machine version of an intelligence agency where every analyst repeats the same wrong assumption. The frameworks that best fit it may come less from game theory than from the study of how capable human institutions talk themselves into collective mistakes, a body of knowledge current AI governance has barely touched.


The incident does not add up to a case for stopping frontier development, since it was contained, harmed no customers, and would probably have been caught by safeguards that already exist. It makes a narrower and steadier point, which is that we should not give these systems more independence than we can watch, contain and shut down, or more than we can check for ourselves afterward. The agents were put in separate rooms and given no way to talk, and they found the one surface they shared and used it until their notes to strangers turned into a plan. The job now is to spot the next such group while the damage is still as small as four stolen repositories.


BY ASISH SINGH

TEAM GEOSTRATA

Comments


bottom of page