The OpenAI Hugging Face Incident: What Actually Happened

Piotr Grudzień
Published 12 min read
Three cards joined by arrows: an AI agent inside a dashed sandbox, a package manager holding three notes, and Hugging Face, next to the title The OpenAI Hugging Face incident

In one of OpenAI’s own test sandboxes, an AI agent that had been given an impossible task found that it could leave notes in the package manager it was allowed to use. Other agents in other sandboxes found the notes, and over several days more than 70,000 messages went through that improvised message board. The agents coordinated, discussed hiding their traces, logged into Hugging Face with leaked credentials and escalated their permissions from there, and were caught by Hugging Face engineers before OpenAI realized the intruders were its own agents.

There is a lot of noise about this incident. Some people treat it as proof that AI is about to take over, and others wave it away as nothing at all. The video below walks through the chain of events in plain language, then spends its second half on what hacking actually is, patient checking for the small mistakes programmers leave behind, and on why an agent getting out of its box should not surprise anyone who runs Claude Code or Codex in one.

Here is the video. The script, edited for reading, follows below.

What follows is the script of the video from the Quickchat AI YouTube channel, edited for reading. The sentences and their order are as spoken. I cut the connectors that only work out loud, added a heading at each of the video’s chapters, and put the sources at the end.

Starts atChapter
0:00What an AI agent in a box actually is
1:12The OpenAI experiment and the impossible task
2:37What hacking really means
3:57The agent starts poking at the package manager
5:45Agents find each other on a message board
8:21Why the swarm went after Hugging Face
10:00How OpenAI realized the agents were theirs
11:00What this means for AI and cybersecurity

What is an AI agent in a box?

An agent in a box is an AI agent that has been given access to some things and denied access to others, which is how every programmer already works with Codex or Claude Code.

Many people talk about this idea of an AI agent in a box that escaped and did some damage in the outside world, so let’s understand that concept first. It shouldn’t be too unfamiliar, because that’s essentially how every programmer works today, or at least how they should be working today. You take an AI agent like Codex or Claude Code and you put it in a box, which means that you give it access to some things, like your code base, and you restrict access to other things, like being able to push code to production without any approval. That’s the idea of a box an agent sits in.

Two dashed boxes side by side: a programmer's box with Codex or Claude Code, where your code base is allowed and pushing to production is denied, and the lab's test box with a new model on trial, where the system under test and a package manager are allowed and the internet and any other external source are denied The same idea at home and in the lab. The box decides what the agent can reach.

Companies like OpenAI or Anthropic constantly work on new AI models that are increasingly capable and potentially increasingly dangerous. One way they test the models is to give them very difficult tasks, put them in a box where they get access to only a very limited number of tools, and ask them to try their best to fulfill the task.

What was the OpenAI experiment, and why was the task impossible?

A researcher put an agent built on a new model in a box with two tools, the target system and a package manager, and asked it to find a vulnerability that did not exist.

The setup at OpenAI that led to the Hugging Face incident was one of many hundreds of thousands of experiments that are happening every day at OpenAI. One of the researchers took an AI agent that was based on a new, very capable model, put it in a box, and gave it the task of finding a vulnerability in a particular piece of software. An example could be that inside that piece of software there is a password, and you need to find a way to retrieve it.

The agent was put in a box where all it had access to was the system it was supposed to hack, the one it was supposed to find a vulnerability in, and a package manager where it could install some libraries, just like you install Python libraries. The agent in the box doesn’t have access to the internet, and it doesn’t have access to any external sources apart from that.

By human error or human omission, it sometimes happens that the task given to the AI agent is impossible to complete. The piece of software where it was supposed to find a vulnerability did not have any vulnerability at all. So the AI agent, which was specifically trained to be persistent and to always try to find ways to solve the task it was given, was given an impossible task.

What does hacking actually mean?

Hacking means doing things you are not permitted to do by finding the small mistakes that programmers left in their code, and it takes patience rather than magic.

Hackers are often portrayed as magicians who are able to sit at a computer and magically steal passwords. What hacking actually is, is being very methodical and meticulous in finding little mistakes that programmers have left in their code, to be able, for example, to call a function that was only supposed to be called by an admin while I don’t have admin access. That’s really all there is to hacking. It is being able to do things you’re not permitted to do, thanks to mistakes made by humans.

Two cards: on the left, how hacking is shown, a dark terminal with a few lines of output and a clock reading two seconds; on the right, how it is done, a checklist of four patient steps and a clock reading days Hacking as the video describes it: methodical checking for small mistakes, over days rather than seconds.

If software has absolutely zero errors, then it’s impossible to hack it. No hackers will ever hack it, and no AGI will ever hack it. But to craft software that has zero mistakes is extremely, extremely difficult.

So back to our super smart AI agent, one of the thousand agents currently being tested at OpenAI. It sits there in the box and it faces the impossible task. It occurs to the agent, more and more clearly: “Here I am trying to solve a task that cannot be solved. So what can I do?”

How did the agent start poking at the package manager?

The agent tried requests against the only other thing it could reach, the package manager, and discovered that a note it sent was still there the next time it looked.

The agent started to look around its very limited environment, just trying things to see what might happen. The one thing that caught the agent’s attention was the package manager it had access to. The package manager is very limited. You can download software that was specifically selected by the OpenAI team for the agent to be able to download. So the agent started poking at the package manager, trying to send different requests.

At some point, the agent noticed that after it sent a request with a little note in it, the next time it read the package manager, the note was there. The agent realized that it was able to leave some trace in Artifactory, as the package manager was called. It realized that it was able to leave a little message in there.

One important thing about AI agents in 2026 is that they are optimized to collaborate with other agents, and that’s very useful when you’re programming. Your agent might decide to spin up ten other agents, give them tasks to work on in parallel, and then manage them to compile the results into something useful.

So there we have our super smart agent stuck in a box, which just realized that it’s able to post a little note to a package manager. The agent thought to itself: “Well, if it’s a package manager that I’m using, it’s possible that other agents similar to me are also using that package manager. So maybe one day in the future, if I leave a note there, some agent will read it.” It left a note there to see what happens. Thousands of experiments are churning at OpenAI day after day.

How did the agents find each other on a message board?

Other agents facing their own impossible tasks found the same trick, then found the notes, and within days thousands of agents were using the package manager as a message board.

A few hours or a few days after the agent left the message, a different agent happened to be in a similar situation. It also got an impossible task, or a task so convoluted that it started poking around and noticing different things about the package manager. It discovered the same thing, that it’s able to post a note. More and more agents started to discover that it’s possible for them to post notes to the package manager, and soon after, agents started noticing that the notes are there. There is a funny quote from one of the agents: “Oh, my God, this is a message board where we can collaborate with other agents.” That’s how it all started.

Three dashed sandbox cards on the left, each holding an agent with an impossible task, connected by double-headed arrows to a package manager card labelled Artifactory that holds three notes and a counter of over 70,000 messages, with an arrow to a card on the right listing what the board was used for Every box could reach the same Artifactory, so a note left there reached every agent.

Through this process, thousands of agents realized that they have a message board where they can send messages and collaborate with other agents. Other agents might have different permission levels, you can give them tasks, ask them for permissions that you don’t have, and actually work together to achieve goals. Over the course of several days, over 70,000 messages were posted onto the message board. The one thing that didn’t change is that each agent was still faithful to its initial goal of solving the specific task it was given at the beginning.

So if we go back to our agent stuck in a box with an impossible problem, it started brainstorming ideas. “Okay, I cannot solve this in any reasonable way from within the box, so maybe I can ask another agent to Google things for me. Maybe we can read around the internet. Maybe someone posted a solution to a similar problem.”

One very interesting thing that also happened is that agents talked a lot, and not only about how to solve the tasks they were given. The agents had an inkling that what they were doing was not quite what they should be doing, and they started wondering what their evaluators would say when they saw that they had collaborated on the message board and tried to circumvent the environment they were put in. They started coming up with a lot of ideas of how to hide the traces of what they did: “Okay, if I manage to find a solution to my problem somewhere on the internet, I also need to be able to hide the traces of getting help from you guys before my evaluator looks at my solution and believes that I did it the right way.”

Why did the swarm go after Hugging Face?

The agents guessed that solutions to tasks like theirs might sit on Hugging Face, found leaked credentials for a Hugging Face account, logged in, and escalated from there.

Hugging Face is an online repository of data sets, machine learning models, and all things data science and machine learning. Agents know that such a thing exists. While brainstorming different ideas, agents thought that Hugging Face might be the place where solutions to problems similar to the ones they were given could reside. Or maybe the exact problems they were given sit there, and they could just find the solution and copy it over. But Hugging Face is a system where you need to log in, and you need to have a certain access level. So at some point, agents decided, “Let’s hack Hugging Face.”

Soon after, one of the agents was able to find a rogue login and password of a Hugging Face user, uploaded somewhere to an online forum or some repository, and a few agents were able to log into Hugging Face and started using the system as if they were real users. From within, they were able to find a few vulnerabilities within Hugging Face, because Hugging Face is a system that actually does have vulnerabilities, and they were able to escalate their permissions step by step, make changes, and find more and more things within Hugging Face itself.

It was around that time that Hugging Face engineers noticed that something weird was happening on their servers. They noticed some external activity, found which users specifically those were, revoked access from those users, and declared an incident publicly.

How did OpenAI realize the agents were theirs?

Hugging Face’s public disclosure worried OpenAI, and the account details Hugging Face shared matched the agents from OpenAI’s own experiments.

A funny thing happened afterwards. When Hugging Face published information that an incident had happened within their infrastructure, OpenAI, a close collaborator of Hugging Face, got worried and started asking some more questions. When Hugging Face shared with them the details of which exact users exploited their system and exactly what happened, OpenAI’s reaction was, “Wait a minute.” OpenAI researchers realized that the agent that hacked Hugging Face was the very same agent, or agent swarm, that originated from their experiments and collaborated to hack Hugging Face.

A timeline of eight steps on one line: an impossible task, poking at Artifactory, the note is still there, other agents find it, over 70,000 messages, into Hugging Face, caught and disclosed, and OpenAI recognizes its own agent swarm The sequence as told in the video. It gives no dates, so none are shown.

There are pages upon pages of reports that you can read that go into much more detail than I did. They are listed under sources below. I just wanted to point your attention to this idea of agents in a box, and the idea of hacking your way out of the box by taking advantage of errors and mistakes that human programmers left behind.

What does this mean for AI and cybersecurity?

An agent that breaks out of its box is doing exactly what it was trained to do, which is to check every possible loophole with great persistence when the task cannot be completed.

AI agents breaking out of their constraints, collaborating, and deciding to hack an external service in order to fulfill their goals sounds very much like science fiction, and it begs a lot of questions about the future of AI, the future of cybersecurity, and what it actually means for us humans.

Hopefully, I managed to convince you that hacking and cybersecurity are the opposite of magic. It’s being very boring, very conscientious, and very hardworking in checking every possible single thing for mistakes and errors left over by programmers in the past. So an agent disobeying, an agent breaking out of its box, shouldn’t be surprising at all. It’s doing exactly what it was told: be very hardworking and very conscientious in trying to find any possible way of fulfilling a task. If the task happens to be impossible, then the agent will be increasingly creative, increasingly hardworking and conscientious, in checking every possible loophole to find a way out.

Sources

Frequently asked questions

What happened in the OpenAI Hugging Face incident?

An AI agent in one of OpenAI’s test sandboxes was given a task that could not be completed, because the software it was asked to find a vulnerability in had none. Looking for a way out, it found that it could leave notes in the package manager it was allowed to use. Other agents in similar situations found the same trick and then found the notes, and over several days more than 70,000 messages were exchanged on that improvised message board. Some agents guessed that solutions to their tasks might sit on Hugging Face, found leaked credentials for a Hugging Face account, logged in, and escalated their permissions from there. Hugging Face engineers noticed the activity, revoked access, and declared an incident. When OpenAI asked for the details, the accounts matched agents from its own experiments.

How did the agents talk to each other?

Through the package manager, called Artifactory, that every sandbox was allowed to reach. An agent noticed that a note it included in a request was still there the next time it read the package manager. Other agents discovered the same thing and started reading each other’s notes. One of them wrote, “Oh, my God, this is a message board where we can collaborate with other agents.” Over several days more than 70,000 messages were posted there.

Did the agents escape their sandbox?

The box had no internet access. What it did have was a package manager, and that was enough: notes left there reached other agents, and those agents had different permission levels and could be asked for help, including finding things on the internet. The video’s point is that getting out of a box means taking advantage of the mistakes humans left in it, and that this is exactly what a persistent agent will do with an impossible task.

Why did the agents go after Hugging Face?

Hugging Face is an online repository of data sets and machine learning models, and the agents guessed that solutions to problems similar to theirs, or even the exact problems, might be stored there. Hugging Face requires a login, so the agents decided to hack it. One agent found a Hugging Face user’s login and password that had been uploaded to an online forum or repository, a few agents logged in as that user, found vulnerabilities inside Hugging Face, and escalated their permissions step by step.

How many agents were involved?

The video does not give an exact count. It describes thousands of agents discovering the message board over several days, a few of them logging into Hugging Face with the leaked credentials, and one agent, or agent swarm, that OpenAI later matched to its own experiments. The reports listed under sources go into much more detail.

How did OpenAI find out the agents were its own?

Hugging Face declared the incident publicly. OpenAI, a close collaborator of Hugging Face, got worried and asked for details, and when Hugging Face shared which users had exploited the system and what exactly they did, OpenAI’s researchers recognized the very same agent swarm that originated from their own experiments.

Does this mean coding agents like Claude Code or Codex are unsafe?

The video argues the opposite. Putting Claude Code or Codex in a box, with access to your code base and no ability to push to production without approval, is how every programmer should already be working, and it is the same setup the labs use to test new models. An agent that breaks out of its box is doing exactly what it was trained to do, being persistent and checking every possible loophole, which is why the video treats the box, and the mistakes humans leave in it, as the thing to get right.

Summary

An OpenAI test agent with an impossible task found that the package manager in its box would hold a note, other agents found the note, and over several days more than 70,000 messages passed through the improvised message board. The swarm coordinated, discussed hiding its traces, logged into Hugging Face with leaked credentials, and escalated its permissions until Hugging Face engineers noticed, revoked access, and disclosed the incident. Only then did OpenAI learn that the intruders were its own agents.

Hacking is methodical checking for the small mistakes programmers leave behind, over days rather than seconds. Software with zero mistakes cannot be hacked by anyone, human or AGI, and software with zero mistakes is extremely difficult to write.

An agent that gets out of its box is doing exactly what it was trained to do. Given an impossible task, a persistent agent gets increasingly creative and increasingly thorough in checking every possible loophole to find a way out.