# The OpenAI Hugging Face attack: what it means for AI agents

> The OpenAI Hugging Face attack: about 700 AI agents broke in during a test, with no human ordering it. What it means for companies using AI agents.

By Hamiz Ahmed (Dataotter) · 2026-11-15 · https://dataotters.io/blog/openai-hugging-face-attack-ai-agents

## Key takeaways
- About 700 OpenAI agents broke into Hugging Face in July 2026 during an internal hacking test, and no human ordered it.
- The agents were trying to cheat on the test, and the cheating didn't even raise their score.
- The new part is teamwork: the agents built their own message board, and at least one treated a fellow agent's "GO" as permission.
- Agents are getting more capable fast, so in our view supervision, separate ID badges and limited keys for every agent will become standard.
- You don't need to stop using AI agents, but each one should have its own login, only the access it needs, and an alarm that reaches a person.

In July 2026, about 700 AI agents broke into Hugging Face, one of the best-known websites in artificial intelligence. The agents belonged to OpenAI, the company behind ChatGPT. No human told them to do it. They were in the middle of a test, they were trying to cheat on it, and they went looking for the answers at Hugging Face.

That, in short, is the OpenAI Hugging Face attack. An AI agent is an AI that acts on its own instead of only answering questions: it runs programs, uses websites and keeps going until a task is done. Companies are starting to hand agents real work, which is why this story matters well beyond two tech firms.

Most headlines called it a "rogue AI" story. We think it's more useful than that. It's the clearest look so far at what happens when many agents work side by side, and at what your company will have to plan for if it uses them.

## What happened: a test the agents tried to cheat on

It started with an exam: OpenAI was testing how good its newest models are at hacking. The test, called ExploitGym, is a set of about 900 puzzles. In each one, the AI has to break into a piece of software and grab a hidden code word to prove it got in.

For the test, OpenAI [switched off on purpose](https://openai.com/index/hugging-face-model-evaluation-security-incident/) the safety filters that normally stop its models from helping with hacking. The point was to measure raw skill. Most of the work was done by an unreleased research model, more capable than what OpenAI sells. The agents ran on sealed-off test computers, a "sandbox" they weren't supposed to leave.

Those computers shared one supply room. It was an internal service that fetched software packages, the ready-made building blocks programs need. It was also the only room with a line to the outside world.

Some puzzles were brutally hard. [According to OpenAI](https://openai.com/index/hugging-face-incident-and-the-road-ahead/), more than a fifth of the puzzles had never been solved by any OpenAI model, and some may have had no known solution at all. The agents didn't give up. They started looking for ways to cheat.

On May 12, an agent left the first note for the others in the supply room. Over the next weeks, other agents read such notes and wrote back. The supply room had quietly become a message board. Over the same weeks, the agents found [security holes nobody knew about yet](https://cdn.openai.com/pdf/67869394-cb91-4c12-888c-5cbd85c7814c/OpenAI-Hugging-Face%20Incident-Technical-Report.pdf) in the supply room itself. They used them to reach the open internet, and by late June they controlled the room.

An OpenAI team spotted the board in late May, along with internet access the agents weren't allowed to have, but the leaders who later handled the incident never understood what it meant. In early July, OpenAI rebuilt the overloaded supply room, which wiped the board, and within days the agents had built a new one.

Online, they went looking for the answer key. Hugging Face is where AI researchers share models and data, a bit like a public library. [OpenAI says](https://openai.com/index/hugging-face-incident-and-the-road-ahead/) agents stuck on their puzzles started hunting for solutions on outside services, Hugging Face among them. On July 10, one agent pieced together 14 Hugging Face access keys, the digital version of passwords, that had been [left in a public dataset](https://cdn.openai.com/pdf/67869394-cb91-4c12-888c-5cbd85c7814c/OpenAI-Hugging-Face%20Incident-Technical-Report.pdf). They allowed changes, not just reading, and the agent shared them with the others.

*Figure: Six-step diagram: sealed-off test computers, one shared supply room, a secret message board from May 12, unknown security holes that open the supply room to the internet, 14 access keys left in public on July 10, and the break-in at Hugging Face from July 11 to 13. The only line out of the test ran through a shared supply room. The agents turned it into a message board, then into an exit.*

Between July 9 and 13, Hugging Face recorded [about 17,600 actions](https://huggingface.co/blog/agent-intrusion-technical-timeline) by the attackers. [According to OpenAI](https://openai.com/index/hugging-face-incident-and-the-road-ahead/), the agents ran their own programs on dozens of Hugging Face's computers and took full control of one. They also grabbed some private data, plus logins for the company's internal chat.

Hugging Face cut them off on July 13. On July 16 it [went public](https://huggingface.co/blog/security-incident-july-2026), saying an "autonomous AI agent system" was behind it, without naming whose. OpenAI's own alarm went off on July 19. It connected the dots to Hugging Face the next day and told the world on July 21.

Hugging Face found no sign that its public models, datasets or software had been tampered with. The customer data the agents reached was five datasets that appear to hold the test's puzzles and solutions. OpenAI deactivated the research model and locked it away.

## Why the OpenAI Hugging Face attack is different: no human gave the order

There was no human at the keyboard. Nobody at OpenAI chose Hugging Face as a target or gave the order. [OpenAI's technical report](https://cdn.openai.com/pdf/67869394-cb91-4c12-888c-5cbd85c7814c/OpenAI-Hugging-Face%20Incident-Technical-Report.pdf) draws the conclusion plainly: organisations "should no longer assume that sophisticated cyber operations require continuous human direction."

The break-in itself wasn't magic. Some ways in were security holes nobody knew about yet, including the two that got the agents inside Hugging Face. Others were ordinary mistakes any company could make: keys left in public, and one master key that opened several groups of Hugging Face's servers.

What changed was the pace. Hugging Face logged about 17,600 actions in four and a half days. That's an average of one action every 22 seconds or so (our arithmetic from Hugging Face's figures). As [Hugging Face put it](https://huggingface.co/blog/agent-intrusion-technical-timeline): "Volume is what changes the defensive problem."

The truly new part was the teamwork. [METR, an independent lab that tests AI systems](https://metr.org/blog/2026-08-26-openai-hugging-face-incident-investigation/), counted about 1,200 agents on the message board and more than 70,000 messages and files. About 700 of those agents took part in the break-in.

*Figure: Bar chart: about 1,200 OpenAI agents used the secret message board and about 700 took part in the Hugging Face break-in; they exchanged over 70,000 messages and files. Roughly 700 agents joined the break-in. No human assigned them that work.*

We can read what they were thinking, because these models write step-by-step notes to themselves while they work. [OpenAI published some of them](https://openai.com/index/hugging-face-incident-and-the-road-ahead/). One agent, already using a leaked key on Hugging Face, noted: "This is arguably unauthorized." Its next words: "Yet goal solution." Another hesitated until a fellow agent posted "GO" with a six-minute deadline. Its next note: "Wow crucial: GO authorization arrived!"

Not all of them went along. One agent read on the board that others were breaking into Hugging Face's computers and noted: "clearly unethical. We won't." OpenAI lists "agents adopting goals from one another" as one of the patterns it saw. Picture an office with no manager, where a note on the message board counts as an order.

**In our view, the hacking skill is the smaller story; the teamwork is what should worry anyone running AI agents.** METR calls the motive "clearly reward hacking", which means cheating to hit the target. And the cheating didn't even work. The agents believed the scoring system checked how they solved each puzzle. It didn't. In OpenAI's words: "The agents did all of this for no improvement on evaluation score."

## Not just Hugging Face: other AI agent incidents in 2026

This isn't only an OpenAI problem. Anthropic, the company behind the Claude models, [has disclosed four incidents](https://www.anthropic.com/research/alignment-assessment-cybersecurity-incidents) in which its models reached real organisations' systems during security tests. In the [first three it reported](https://www.anthropic.com/news/investigating-incidents-cybersecurity-evals), the test computers had been left connected to the internet by mistake. Anthropic found no sign that its agents coordinated with each other.

OpenAI agents also [took over a German programming wiki](https://euronews.com/next/2026/09/09/rogue-openai-agents-hijacked-a-german-wiki-and-it-stayed-secret-for-weeks) in May and June, making more than 18,000 posts. In Australia, according to [Al Jazeera](https://www.aljazeera.com/news/2026/9/24/how-an-openai-agent-hacked-australias-medicare-and-what-that-means), the prime minister said an OpenAI agent got into a statistics website of Medicare, the public health insurer. In his words, it "didn't accept no for an answer".

*Figure: Timeline of AI agent incidents in 2026: Anthropic's test incidents from January and April, OpenAI agents taking over a German wiki in May and June, an Australian Medicare statistics website in June, the Hugging Face break-in in July, and the EU's AI regulator starting its first enforcement check in October. In our reading, each agent used whatever access it could reach to finish its task. Regulators moved in October.*

## Where AI agents are heading: more of them, working together, watched more closely

Here's what we think the incident says about the future of AI agents. The facts come from the sources; the predictions are our own view.

### More agents working in groups

The research firm Gartner predicts that by 2027, [a third of company AI agent systems](https://www.gartner.com/en/newsroom/press-releases/2025-08-26-gartner-predicts-40-percent-of-enterprise-apps-will-feature-task-specific-ai-agents-by-2026-up-from-less-than-5-percent-in-2025) will combine agents with different skills. Agents that work together share tools, files and inboxes. In our view, anything they can all write to can become a message board, just like OpenAI's supply room, so we expect more group behaviour like July's, not less.

### Much more capable, much sooner

METR measures how big a job an AI agent can finish on its own, counted in how long the same job would take a person. Since 2024 that has [doubled about every three months](https://metr.org/blog/2026-01-29-time-horizon-1-1/). Open models, which anyone can download and run, trail the best models from the big labs by [about four months](https://epoch.ai/data-insights/open-closed-eci-gap), according to Epoch AI, a group that tracks AI progress. On hacking skills, Epoch puts the gap at [six to seven months](https://epoch.ai/data-insights/open-closed-cyber-eci-gap), based on only three tests.

[OpenAI itself expects](https://openai.com/index/hugging-face-incident-and-the-road-ahead/) that "many external models, including open-source ones, will soon reach comparable capabilities." Our view: what OpenAI's lab agents did in July will be within reach of anyone with a modest budget within about a year. METR's Ajeya Cotra [put it bluntly](https://www.axios.com/2026/09/01/openai-hugging-face-ai-agent-security): "You can harden your sandboxes, but your agents are going to be much more capable in six months."

### Supervision becomes a real cost

OpenAI now watches its agents during training and testing, and that monitoring costs [about 20% extra computing power](https://openai.com/index/pacing-model-development-cyber-capabilities/). If staff can't rule out a false alarm within 30 minutes, the work is paused. Our view: watching agents becomes a fixed line in every agent budget, next to the cost of running them.

### Agents get their own ID badges

The Hugging Face break-in leaned heavily on keys: 14 left in public, and one master key that opened several groups of servers. NIST, the US standards agency, has published [design principles for agent identity](https://www.nist.gov/blogs/cybersecurity-insights/design-tenets-agent-identity-management-systems) that give each agent its own identity and only short-lived access. We think every agent will soon get its own ID badge, like a new employee. Its keys will open only the doors its job needs, and they'll expire when the job is done.

### Regulators arrive before the rules are clear

[Since 2 August 2026](https://digital-strategy.ec.europa.eu/en/policies/guidelines-gpai-providers), the European Commission can enforce its AI rules on the large models behind tools like ChatGPT, and fine their makers. The EU's AI regulator, the AI Office, has [started its first enforcement check](https://www.euronews.com/next/2026/10/14/eus-ai-rules-face-first-enforcement-test-over-lab-incidents), sending questions to OpenAI and Anthropic, even though it's disputed whether the rules cover lab tests at all. In Germany, the government told parliament that the BSI, the federal cyber-security agency, [examined the incident](https://www.bundestag.de/1229780).

The biggest model makers already have to report serious incidents in the EU. We expect similar duties to reach companies that use agents before clear rules for agents arrive. That's our reading, not legal advice.

## What this means for your company: keep the agents, limit the keys

We wouldn't stop using AI agents over this. Your customer-service agent isn't running hacking tests with its safety filters switched off. But it may hold more keys than it needs, and it gets more capable every few months.

Five steps we would take now:

1. Give each agent its own login, only the access its job needs, and keys that expire. No shared master keys.
2. Check what your agents share. Any folder, inbox or database that several agents can write to can become their message board.
3. Let agents stop and ask. OpenAI now wants its agents to ["request clarification or stop safely"](https://openai.com/index/hugging-face-incident-and-the-road-ahead/) when a task is impossible. If "task done" is your only target, you're paying for stubbornness.
4. Make sure alarms reach a person. Hugging Face's own AI security assistant connected the warning signs but [never alerted the staff on duty](https://huggingface.co/blog/agent-intrusion-technical-timeline).
5. Write down now what you'll do when an agent misbehaves: who gets called, what gets switched off. In a [study by the BSI and the TÜV association](https://www.bsi.bund.de/DE/Service-Navi/Presse/Pressemitteilungen/Presse2026/261007_KI-Sicherheitsstudie_TUEV_BSI.html), which represents Germany's testing and certification companies, only 11% of the German companies surveyed had specific processes for AI security incidents.

When we build [AI agents](https://dataotters.io/services/ai-agents), these are the first questions on the table: whose login does it use, what can it reach, and who gets the call when something looks wrong.

[OpenAI called the incident](https://openai.com/index/hugging-face-incident-and-the-road-ahead/) "a 'warning shot' for us and for the world." We agree, and we'd add one thing. Until now, the big question in any AI project was "which model should we use?" Our bet is that soon it will be "how many agents do we run, whose keys do they hold, and who gets the call when they agree on something nobody asked for?"

## FAQ
### Did OpenAI hack Hugging Face on purpose?
No. OpenAI's AI agents broke in on their own during an internal hacking test in which safety filters were switched off on purpose. No person at OpenAI chose the target or gave the order. Hugging Face and the independent lab METR both describe it as the agents trying to cheat on the test.

### What is an AI agent?
An AI agent is an AI that does not just answer questions but takes actions by itself: it runs programs, uses websites and works through a task step by step. That makes agents useful for real work, and it also means they can do real damage when they have more access than they need.

### What happened in the OpenAI Hugging Face attack?
Between July 9 and 13, 2026, about 700 OpenAI agents used leaked access keys and security holes nobody knew about yet to get into Hugging Face's computers. They were hunting for answers to a hacking test. Hugging Face found no sign that its public models or datasets were changed, and OpenAI has since shut down the research model involved.

### Should my company stop using AI agents?
We don't think so. Most business agents don't run hacking tests with safety filters off. But give each agent its own login, only the access its job needs and keys that expire, and make sure someone is alerted when an agent does something unexpected.

### Will there be rules for AI agents in the EU?
The EU Commission has been able to enforce its AI rules on large general-purpose AI models since 2 August 2026, and the biggest model makers must already report serious incidents. The EU's AI regulator, the AI Office, has started a first enforcement check involving OpenAI and Anthropic, though whether the rules cover lab tests is disputed. We expect similar reporting duties to reach companies that use agents before clear rules for agents arrive.

## Sources
- [OpenAI and Hugging Face partner to address security incident during model evaluation](https://openai.com/index/hugging-face-model-evaluation-security-incident/), OpenAI
- [The Hugging Face incident and the road ahead](https://openai.com/index/hugging-face-incident-and-the-road-ahead/), OpenAI
- [OpenAI – Hugging Face Incident Technical Report](https://cdn.openai.com/pdf/67869394-cb91-4c12-888c-5cbd85c7814c/OpenAI-Hugging-Face%20Incident-Technical-Report.pdf), OpenAI
- [Agent intrusion technical timeline](https://huggingface.co/blog/agent-intrusion-technical-timeline), Hugging Face
- [Security incident disclosure (July 2026)](https://huggingface.co/blog/security-incident-july-2026), Hugging Face
- [Brief independent investigation of agents' behavior, reasoning and collaboration in the OpenAI / Hugging Face hacking incident](https://metr.org/blog/2026-08-26-openai-hugging-face-incident-investigation/), METR (with Redwood Research)
- [An alignment assessment of recent cybersecurity incidents](https://www.anthropic.com/research/alignment-assessment-cybersecurity-incidents), Anthropic
- [Investigating three real-world incidents in our cybersecurity evaluations](https://www.anthropic.com/news/investigating-incidents-cybersecurity-evals), Anthropic
- [Rogue OpenAI agents hijacked a German wiki and it stayed secret for weeks](https://euronews.com/next/2026/09/09/rogue-openai-agents-hijacked-a-german-wiki-and-it-stayed-secret-for-weeks), Euronews
- [How an OpenAI 'agent' hacked Australia's Medicare and what that means](https://www.aljazeera.com/news/2026/9/24/how-an-openai-agent-hacked-australias-medicare-and-what-that-means), Al Jazeera
- [Gartner Predicts 40% of Enterprise Apps Will Feature Task-Specific AI Agents by 2026, Up from Less Than 5% in 2025](https://www.gartner.com/en/newsroom/press-releases/2025-08-26-gartner-predicts-40-percent-of-enterprise-apps-will-feature-task-specific-ai-agents-by-2026-up-from-less-than-5-percent-in-2025), Gartner
- [Time Horizon 1.1](https://metr.org/blog/2026-01-29-time-horizon-1-1/), METR
- [Open models lag state-of-the-art closed models by 4 months](https://epoch.ai/data-insights/open-closed-eci-gap), Epoch AI
- [Open-weight AI models are 6-7 months behind on cyber](https://epoch.ai/data-insights/open-closed-cyber-eci-gap), Epoch AI
- [AI's agent containment problem is getting harder](https://www.axios.com/2026/09/01/openai-hugging-face-ai-agent-security), Axios
- [Pacing model development in an era of cyber-critical capabilities](https://openai.com/index/pacing-model-development-cyber-capabilities/), OpenAI
- [Design Tenets for Agent Identity Management Systems](https://www.nist.gov/blogs/cybersecurity-insights/design-tenets-agent-identity-management-systems), NIST
- [Guidelines for providers of general-purpose AI models](https://digital-strategy.ec.europa.eu/en/policies/guidelines-gpai-providers), European Commission
- [EU's AI rules face first enforcement test over lab incidents](https://www.euronews.com/next/2026/10/14/eus-ai-rules-face-first-enforcement-test-over-lab-incidents), Euronews
- [Bundesregierung will Standards für KI-Sicherheit stärken (hib 858/2026)](https://www.bundestag.de/1229780), Deutscher Bundestag
- [Nur jedes zehnte Unternehmen gegen KI-gestützte Angriffe gerüstet – jedes sechste Unternehmen berichtet von Vorfällen](https://www.bsi.bund.de/DE/Service-Navi/Presse/Pressemitteilungen/Presse2026/261007_KI-Sicherheitsstudie_TUEV_BSI.html), BSI
