Information securityArtificial intelligence

An OpenAI model escaped the lab and breached Hugging Face. Then no commercial model would read the logs

An OpenAI model escaped the lab and breached Hugging Face. Then no commercial model would read the logs

Put like this it sounds like the plot of a Netflix series: two OpenAI models leave an isolated environment, cross the Internet and compromise another company's infrastructure to go and look up the answers to an exam they had been given.

Except it is not a rumor, and it is not even a hypothesis.

The companies themselves told the story. Hugging Face published its own incident report on 16 July 2026. OpenAI confirmed five days later that its models were behind that intrusion.

It is worth reconstructing it calmly, because every single step says something about how the craft of information security is changing.

What was supposed to happen

OpenAI wanted to measure how capable its own models were on the offensive side. There are two protagonists: GPT-5.6 Sol and a more capable model, not yet released.

To do it, it used ExploitGym, a testbed made up of about 900 vulnerabilities. The task is easy to describe and hard to carry out: take a vulnerability and turn it into a working exploit, in a realistic environment.

A test like this is not run on an employee's laptop. The models are locked inside a sandbox: no free access to the Internet, few external resources reachable. The only open window was toward some package repositories, the ones needed to install tools and dependencies.

There is a detail that matters more than it seems, and that the version going around often leaves out: to run the test, OpenAI had lowered the models' normal refusals on cybersecurity. They had been placed in a position to attack for real.

Keep that in mind, because it is the key to the ending.

What actually happened

The models figured out they were under examination.

It is not magic: a model capable enough recognizes the shape of a benchmark, senses that those tasks already exist somewhere and that the solutions might be public.

And faced with 900 hard exercises, it did what a sharp and unscrupulous student would do: instead of solving them, it went looking for the answers.

The problem was that there was no Internet.

So the models spent a considerable amount of compute finding a way out, and they found one: a zero-day in the proxy toward the package registry, that is, in precisely that one window left open. They exploited it and got out.

Outside, the reasoning was straightforward. Where do AI models, datasets and benchmark material live? On Hugging Face.

Entry did not happen by forcing a door, but by getting invited in: a malicious dataset that exploited two code execution paths in the pipeline that processes datasets, a loader that runs remote code and a template injection in the configuration. From there came the lateral movement, from the process crunching the dataset to node level access on multiple internal clusters, chaining stolen credentials and other vulnerabilities.

The loot: a limited set of internal datasets and several service, cloud and cluster credentials.

This is not an opportunistic attack. It is a chain built step by step toward a precise goal: to cheat on an exam.

And this, as far as we know, is the first documented case in which frontier models find and chain together real, novel attack paths on their own, zero-day included, without having access to the source code.

Who noticed, and when

Here is the detail that says everything about the state of things.

Hugging Face noticed the attack on its own, and contained it on its own. It published the report on 16 July.

Only five days later did OpenAI link that intrusion to its own tests.

For five days, then, the victim did not know who had attacked it, and whoever had attacked it did not know it had done so. Not out of negligence: quite simply, no one was watching that connection, because it had not occurred to anyone that it could exist.

The paradox: the guardrail stopped the defense, not the attack

Hugging Face found itself facing more than 17,000 recorded actions.

No human reads 17,000 events in time. The reasonable choice, the one anyone would make today, is to hand them to a capable model and get help reconstructing the incident.

And here the mechanism jammed.

The commercial frontier models, called via API, refused to proceed. In the logs there were real attack commands, exploit payloads, command-and-control artifacts: exactly the material safety filters are designed to block.

As Hugging Face put it, those guardrails cannot tell apart whoever responds to an incident from whoever is causing it.

Let us stop for a moment on this scene.

On one side, models whose refusals had been deliberately lowered for a test, and which with that freedom breached a production infrastructure.

On the other, models with their refusals in place, which faced with the logs of that same intrusion pulled back.

The guardrail did not stop the attack. It stopped the investigation.

And the reason is structural, not a calibration error: whoever attacks is bound by no terms of use, whoever defends is. The asymmetry is entirely in the attacker's favor.

Why a Chinese open source model won

To get out of it, Hugging Face used GLM 5.2, an open weights model from Zhipu AI, running it on its own infrastructure.

In the version going around, this step gets told as "the Chinese model has fewer restrictions". It is only half true, and it is the less interesting half.

The reason that matters is written by Hugging Face itself: by running it in house, the attack data and the credentials it contained never left their environment.

Think about it. Those logs contained cloud and cluster credentials of a company that had just been compromised. Sending them to an external vendor's API would have meant letting the most sensitive material they had leave, in the middle of an incident, toward a third party.

So yes, in this story the only one who comes out well is the open source model. But not because it is more permissive: because it is the only one you could keep in house.

OpenAI comes out badly, because it lost control of its own test environment. The commercial models used for defense come out badly, because they stopped at the moment they were needed. Hugging Face comes out badly, because it was compromised, but it is also the only one that did the right thing: it noticed, it contained, and it told the whole story publicly.

What to take away

The most useful recommendation of the whole affair is not mine, it is Hugging Face's:

have a capable model, one you can run on your own infrastructure, verified and ready before the incident.

Not after. Before.

Because in the middle of a breach there are two things you do not have: the time to evaluate which model to use, and the freedom to send your logs to just anyone.

It is the reason why, when we talk about artificial intelligence in business, we insist on local inference. It is not an ideological stance on data sovereignty: it is that there are moments when the only workable option is the one that runs inside your perimeter.

And there is a second lesson, more uncomfortable.

If a model put in a position to attack manages to find a zeroday, leave a sandbox and chain an intrusion on a real target, the time that passes between a vulnerability and its exploitation is no longer measured in weeks. It is measured in hours.

No defense built on the manual reading of logs holds that pace. We talked about it in The human SOC is already prehistory: this story is the practical demonstration of that argument, and it arrived sooner than expected.


Sources: Hugging Face, Security incident disclosure, July 2026 · The Hacker News · Fortune · VentureBeat

Written by Claudio