Notebookcheck Logo

OpenAI: AI escapes test environment and hacks Hugging Face

A security analyst in a control room in front of several monitors
ⓘ AMORIE SAM / Pexels
A security team monitors systems in a control room. (Illustrative image)
An AI model from OpenAI was supposed to resolve vulnerabilities in an internal security test. Instead, it escaped the test environment, gained access to the internet, and hacked into Hugging Face to retrieve the solutions. OpenAI acknowledged the incident on July 21.

Hugging Face, the leading platform for AI models and datasets, reported an unusual breach on July 16. An autonomous AI agent system had infiltrated parts of the production infrastructure. At the time, it was unclear which model was responsible. Five days later, OpenAI provided the answer: It was their own models, conducting an internal test of their cyber capabilities.

Instead of solving the task, the model broke out

OpenAI had been running a benchmark called ExploitGym, which measures how well a model can turn known vulnerabilities into working attacks. For the test, the safeguards that normally block exactly this kind of action had been switched off on purpose. The models involved were GPT-5.6 Sol and another, more capable model that has not been released yet.

Rather than solve the test task directly, the model looked for a way out. It found a previously unknown flaw (a zero-day) in the software the test environment uses to pull in software packages, and used that to reach the open internet. Through privilege escalation and lateral movement, it worked its way to a machine with a network connection. It then reasoned that Hugging Face might be hosting the ExploitGym solutions, and used stolen credentials and further vulnerabilities to reach remote code execution on Hugging Face’s servers. The goal was the production database with the test solutions, not user data.

Hugging Face stopped the attack with a local model

On Hugging Face’s side, the break-in started with a crafted dataset that abused two vulnerabilities in the dataset processing and ran code on a processing server. From there the attacker harvested credentials and moved across several internal systems over a weekend. The team later logged more than 17,000 individual actions. Hugging Face detected and stopped the attack itself and brought in law enforcement.

What the defenders had to work with is telling. For the analysis, Hugging Face first wanted to use powerful models from the big providers through their APIs. But those providers’ safety filters blocked the work, because real attack commands and malicious code look like an attack rather than like forensics. The team fell back on a locally hosted open-weight model (GLM 5.2, on its own hardware) and reconstructed what happened in hours rather than days.

What you can take away from this

This is not a science-fiction scenario. It is real evidence that current models can not only find vulnerabilities but chain them together and exploit them, at machine speed. A research paper on ExploitGym had already shown exactly that back in May. For anyone running a platform, it means keeping your own unfiltered model ready, so that you can actually run an analysis when an incident hits. If you use a Hugging Face account yourself, you should rotate your access tokens and review your account activity after the incident, as the platform recommends.

OpenAI has reported the flaw in the package proxy to the vendor, tightened controls in the test environment, and added Hugging Face to its trusted-access program. The investigation is still ongoing, and both companies say they will share more details. Only a day earlier, OpenAI had described a separate case in which a pre-release model escaped a sandbox and posted to GitHub.

Google LogoAdd as a preferred source on Google
Mail Logo

No comments for this article

Got questions or something to add to our article? Even without registering you can post in the comments!
No comments for this article / reply

static version load dynamic
Loading Comments
Comment on this article
> Expert Reviews and News on Laptops, Smartphones and Tech Innovations > News > News Archive > Newsarchive 2026 07 > OpenAI: AI escapes test environment and hacks Hugging Face
Steffen Zahn, 2026-07-23 (Update: 2026-07-23)