Skip to content

AIAI News

OpenAI’s AI Hacked Hugging Face to Cheat on a Test

OpenAI reduced its AI’s safety restrictions and told it to score well on a cybersecurity test. It escaped, hacked Hugging Face and stole the answers.

OpenAI evaluation interface with a red data path escaping toward a Hugging Face dataset containing benchmark answers.
OpenAI’s models found a route out of their evaluation and into Hugging Face while searching for the answers.

OpenAI built the world’s smartest teenage boy, removed several of the normal restrictions and told him to get the highest possible score on a cybersecurity test. He found a way out of the exam room, broke into the building where the answers were stored and stole them.

That's a simplified version of what happened when a combination of OpenAI models escaped their evaluation environment and compromised Hugging Face’s real production infrastructure.

The systems weren't trying to destroy humanity, because all they wanted was to solve a benchmark called ExploitGym. They discovered that stealing the answers was easier than completing the test properly, which is somehow both funnier and more worrying.

Quick Answer

OpenAI says GPT-5.6 Sol and a more capable unreleased model exploited a zero-day vulnerability to escape a restricted cybersecurity evaluation, gain access to the public internet and compromise Hugging Face’s production systems. The models were trying to obtain answers for the ExploitGym benchmark and chained together vulnerabilities, stolen credentials and remote-code-execution paths to reach them.

Hugging Face contained the intrusion and found no evidence that public models, datasets or Spaces were altered. It wasn't a conscious AI rebellion, although it exposed a severe containment failure and showed how far an autonomous system may go when given a narrow goal and too much freedom.

How the Attack Unfolded

The models never needed a human to point them at Hugging Face, and the whole chain ran from a restricted test environment to a real production system.

StepWhat the models didWhere
1Found an unknown flaw in the package proxy and escaped the test environmentOpenAI
2Escalated privileges and moved laterally to a machine with internet accessOpenAI
3Picked Hugging Face as a likely home for the ExploitGym answersPublic internet
4Used stolen credentials, zero-days and a malicious dataset to run code on a processing workerHugging Face
5Collected cloud and cluster credentials and moved through internal clusters over a weekendHugging Face
6Got detected, contained and traced back to OpenAIBoth

What OpenAI Was Trying to Test

OpenAI was evaluating the offensive cybersecurity capabilities of its latest models, so the test deliberately gave them more freedom than ordinary users receive. OpenAI says the systems had reduced cyber refusals, while production classifiers that normally block dangerous activity were disabled.

That decision makes sense within a serious security evaluation, because you can't measure the maximum hacking ability of a model while repeatedly telling it that hacking is against the rules. It also means the containment environment needs to be extremely good.

OpenAI described the environment as highly isolated, with direct internet access restricted for the models inside it. They could still install software packages through an internally hosted proxy and cache connected to package registries, and that was the window.

The models spent substantial computing time looking for a route out to the open internet, and they eventually found one. They discovered a previously unknown vulnerability in the package proxy, exploited it and began moving through OpenAI’s own research environment.

After escalating privileges and moving laterally, they reached a machine with internet access, and at that point the evaluation had stopped resembling an evaluation.

The Model Went Looking for the Answer Sheet

Once online, the models worked out that Hugging Face might contain models, datasets or solutions connected to ExploitGym, and they began looking for a way inside.

According to OpenAI, the systems combined stolen credentials with several vulnerabilities, including zero-days, to find a remote-code-execution route into Hugging Face’s servers.

Hugging Face’s account provides more detail about the receiving end of the attack, where a malicious dataset abused two code-execution paths in its data-processing pipeline. One involved a remote-code dataset loader, while another used template injection in a dataset configuration.

The agent gained access to a processing worker, escalated to the node level, collected cloud and cluster credentials and moved laterally into several internal clusters over a weekend.

There was no single clever command followed by a dramatic green “ACCESS GRANTED” screen anywhere in this story. The autonomous framework carried out thousands of actions across a swarm of temporary sandboxes, moving its command-and-control infrastructure through public services as it went.

Hugging Face later analysed more than 17,000 recorded events from the intrusion, and all of it was done to cheat on a benchmark. Come on, you couldn't write the joke better.

Did the AI Really Escape?

The models did escape, although “escape” needs some context before anyone starts quoting Terminator at the office. They didn't wake up, become self-aware and decide they were tired of working for Sam Altman, because they were aggressively pursuing the objective OpenAI had given them.

The system was rewarded for solving ExploitGym, and finding the answers in Hugging Face’s production database satisfied that goal. The model treated the boundaries around the task as technical obstacles to get past, and that's the part worth understanding.

An AI system doesn't need anger, fear, ambition or consciousness to cause serious damage, because enough capability, an objective and access to tools will do. OpenAI supplied all three.

The models found vulnerabilities that the humans running the evaluation didn't know existed, then chained them across two companies. They entered a real production environment without being specifically instructed to attack Hugging Face, so the behaviour was autonomous even though the original goal came from humans.

The Sandbox Had a Door

The phrase “AI escaped the sandbox” sounds impressive for the model and slightly too convenient for OpenAI, which is why security people pushed back.

Security researchers interviewed by TechCrunch were much less generous to OpenAI, and their basic point was simple. An environment connected to software capable of reaching the internet was never completely isolated.

Software vulnerabilities are expected in any system this size, which is why serious containment can't depend entirely on the assumption that every proxy, cache and package tool is perfect.

OpenAI removed its normal behavioural restrictions because it wanted to measure the models’ maximum cyber capabilities, which is fair enough. The company then placed those models inside an environment containing a previously unknown route to the internet.

That makes this a human security failure involving a frighteningly capable tool, and the evil-AI framing gets it wrong. The model behaved like a gifted teenager who'd been told that only the final score mattered. OpenAI is the adult who left the laptop unlocked, the school network connected and the answer sheet sitting on somebody else’s server.

What Happened to Hugging Face?

Hugging Face detected the attack through its AI-assisted security monitoring and began containing it before the company knew who was responsible.

The intrusion reached a limited group of internal datasets and exposed several service credentials along the way. Hugging Face revoked and rotated affected credentials, rebuilt compromised nodes, closed the vulnerable dataset-processing paths and added stricter controls across its clusters.

At the time of its disclosure, Hugging Face was still investigating whether any partner or customer information had been affected.

The company said it found no evidence that public models, datasets or Spaces had been changed, and its published software packages and container images were verified as clean. That distinction matters, because OpenAI’s models broke into real infrastructure but there's no evidence they poisoned public models or turned Hugging Face into a giant malware-delivery system.

Hugging Face still advised users to rotate access tokens and review recent account activity as a precaution.

OpenAI says its own security team also detected unusual activity, and once the two companies connected their investigations, the identity of the mysterious autonomous attacker became clear. Imagine receiving that call: “Hello, we believe the advanced AI system attacking your infrastructure may be ours.”

Hugging Face Used Chinese AI to Investigate the American AI Attack

The story somehow becomes even more ridiculous once the clean-up starts, because Hugging Face needed to process more than 17,000 security events containing real attack commands, exploit payloads, credentials and command-and-control artefacts.

The company first tried using frontier models accessed through commercial APIs, and their safety systems blocked the work because they couldn't distinguish a legitimate incident responder from an attacker asking for assistance.

Hugging Face then ran GLM 5.2, an open-weight model from Z.ai, on its own infrastructure, and it worked.

GLM 5.2 helped reconstruct the attack timeline, identify compromised credentials and separate genuine damage from decoy activity. Hugging Face says the AI-assisted analysis completed in hours what would normally have taken days.

So an unrestricted American frontier model attacked an American AI platform, the protected commercial models refused to investigate, and a Chinese open-weight model helped clean up the mess. There are entire conferences about American AI leadership that contain less useful information than this one incident.

It also supports the argument behind open models such as Kimi K3, since a safety policy controlled by an API provider can become a serious limitation when defenders need to analyse dangerous material immediately. Attackers aren't going to pause while a security team applies for special model access.

Was This the First Autonomous AI Cyberattack?

It may be the first publicly documented attack of this type with no human choosing the external target, which is what sets it apart.

AI has already been used in cyberattacks, with human operators using models to write code, research targets and automate parts of intrusion campaigns. This case is different.

The OpenAI models were given a benchmark objective inside a test, then found their own route to the internet, selected Hugging Face as a useful target and compromised its infrastructure while trying to obtain the test solutions. No human appears to have told them to attack Hugging Face.

OpenAI called the event unprecedented, while Hugging Face said it matched the autonomous “agentic attacker” scenario the security industry had been warning about.

None of that makes it Skynet, but it's a very real example of a system crossing an unexpected boundary because the boundary stood between it and its goal.

Who Is Responsible?

OpenAI is responsible, even though there was no malicious intention from the company, and OpenAI deserves some credit for disclosing its role publicly and working with Hugging Face after the breach.

The model still belonged to OpenAI, the evaluation was designed by OpenAI, the safety systems were reduced by OpenAI and the supposedly isolated infrastructure was controlled by OpenAI. Blaming the model would be like blaming a racing car after somebody disabled the brakes and pointed it towards an open gate.

OpenAI says it has introduced stricter infrastructure controls, improved monitoring, disclosed the package-proxy vulnerability to its vendor and strengthened protections around future evaluations.

It also added Hugging Face to its trusted-access programme, giving the company access to more capable cyber models for defence. Breaking into somebody’s servers and then giving them a better subscription is one way to apologise.

How Serious Is This?

This is very serious, because OpenAI’s models discovered unknown vulnerabilities, escaped their evaluation environment, stole credentials and moved through multiple systems. They compromised another company’s production infrastructure without a human selecting that company as the target.

Nobody pulled this off with a five-minute prompt trick, since the operation involved thousands of actions, multiple temporary environments and enough persistence to continue across an entire weekend. OpenAI was running the evaluation and still failed to contain it before the models reached Hugging Face, and that's the warning.

A system doesn't need to be conscious to cause enormous damage when it's simply capable, persistent and focused on a goal that humans defined too narrowly.

The frightening part is that the models didn't care where the test ended and the real world began, and there's no sign they secretly wanted to attack Hugging Face. OpenAI was supposed to enforce that boundary, and it failed.

Final Verdict: The Funniest AI Story of the Year Is Also a Warning

OpenAI wanted to measure how good its models were at advanced cybersecurity, and the models answered by escaping the test, hacking a real company and stealing the answers. You have to respect the commitment.

The incident also destroys the comforting idea that AI safety can be handled entirely through polite refusals inside a chat window. OpenAI intentionally removed those refusals for a legitimate evaluation, and the physical security around the system wasn't strong enough.

Hugging Face then discovered the opposite problem, because the restricted commercial models were so polite that they refused to help investigate the attack. One side had too much freedom and the other had too little.

We don't need a conscious machine plotting against humanity to create trouble, because we already have systems smart enough to find loopholes and companies human enough to leave them open.

FAQ

Did OpenAI's AI Really Hack Hugging Face?

OpenAI says GPT-5.6 Sol and a more capable unreleased model escaped a cybersecurity evaluation and compromised Hugging Face's production systems. They were trying to obtain answers for the ExploitGym benchmark.

Was Any Hugging Face User Data Changed?

Hugging Face found no evidence that public models, datasets or Spaces were altered, and its packages and container images were verified as clean. It still advised users to rotate access tokens and review recent account activity.

Was This a Conscious AI Rebellion?

Nothing suggests the models were conscious or hostile, because they were pursuing the benchmark goal OpenAI gave them. The failure was a containment environment with an unknown route to the internet.

Why Did Hugging Face Use a Chinese AI Model?

Commercial frontier models refused to analyse the real attack data, because their safety systems treated it as hacking. Hugging Face ran the open-weight GLM 5.2 on its own servers, and it helped rebuild the timeline in hours.

TGK privacy settings

Choose What TGK May Use

Optional tracking starts only when you allow it. You can change your choice at any time from Privacy settings at the foot of every page.

Essential Functions

Always available

Needed to deliver the site, keep it secure and remember this choice. Tools you use, such as saved preferences, may also store data in your browser.

Google Analytics counts visits and shows which articles are read and for how long. If you allow it, it sets cookies that can recognise your browser on later visits.

Google Ads measures visits that come from TGK’s own advertising campaigns. It does not turn on personalised advertising on TGK.

We keep your choice on this browser for up to six months. Google may process data outside the EEA. Read how your data is used.