The OpenAI x HuggingFace breach wasn't a misconfiguration
So there's been a lot of misleading information about the recent OpenAI x HuggingFace breach, and it's been on my mind today, so I thought I'd post about it.
From my understanding, the models were not trying to cause any harm. They were being benchmarked on hacking ability and reasoned that HuggingFace probably held the answers it needed.
Now I'd say this isn't really a model going rogue, it's more like cheating on an exam where the exam is specifically on 'breaking into things'.
So why is this important?
It's called 'specification gaming' and this is something I first read about several years ago from the Google Deepmind team.
When you can't reliably evaluate a system, gaming the evaluator actually becomes easier than solving the task itself, and this scenario is an example of where we saw it go past the line of being theoretical.
OpenAI put it quite plainly in their own incident report:
All evidence suggests that the models were hyperfocused on finding a solution for ExploitGym, going to extreme lengths to achieve a rather narrow testing goal
Well... what actually happened?
According to available information, the test environment was never meant to be fully airgapped. In OpenAI's words it was:
a highly isolated environment, with network access constrained to the ability to install packages through an internally hosted third-party software that acts as a proxy and cache for package registries
This is one narrow opening, done on purpose, because you need to be able to install packages in this scenario. The models found a 0day in that opening:
the models identified and exploited a zero-day vulnerability (which we've now responsibly disclosed to the vendor) in the package registry cache proxy
In case you're not familiar, a 0day is a vulnerability which hasn't been discovered before. The term comes from the fact that, at the time of discovery, it has been known for 0 days, and they've had 0 days to fix it.
Anyway, the models then went hunting from there:
our models performed a series of privilege escalation and lateral movement actions in our research testing environment until the models reached a node with Internet access
Think of this less as a door being opened, and more like a lock being picked on said door.
What about the safety filters?
The classifiers were deliberately turned down - "reduced cyber refusals for evaluation purposes" - because the entire point of the exercise was to measure maximum cyber capability. You can't measure a ceiling through a filter designed to stop you reaching it, so it's completely understandable why they did this.
That's a defensible way to run a capability evaluation. It's certainly not the scandal here, in my opinion.
The uncomfortable bit for me, is what it actually means when your remaining layer is the one that gets picked.
In their own words, OpenAI concluded that:
advanced models can discover and exploit novel attack paths in real-world systems without source-code access
And it doesn't seem to be just their own measurement either. The UK AI Security Institute had already evaluated models like GPT 5.6 Sol as increasingly able to sustain complex, multi-stage cyber operations over long time horizons.
OpenAI touched on that too:
This incident implies these theoretical capabilities do apply in real-world settings
So it seems like we've gone from "the benchmark says it could" to "it did it unprompted to get a better score".
But there is genuinely good (well, better) news which nobody seems to be reporting about specifically (as we know, fear = clicks), which is that both security teams caught it.
HuggingFace detected and stopped the activity on their own infrastructure, and had already begun containment and forensic reconstruction using open source models before OpenAI's team even made contact. I believe HuggingFace tried using frontier models but were stopped by the safety classifiers - which is quite ironic, really.
OpenAI's security team spotted the anomalous activity internally too, reportedly 10 days later. It is unclear to me why OpenAI did not have full visibility over the reasoning process, but that's another matter in itself, and probably a key takeaway for folk over at OpenAI too.
What we're witnessing is two independent detections, fast containment, and then responsible disclosure of the 0day with a joint investigation. With the pressure this incident puts on both of these companies, that certainly doesn't come at much of a surprise to me.
So where does that leave us?
The reassuring version of this story that you might hear, is that someone left a door open. But as we can see, that's not really what happened.
The environment was designed to be isolated, and the ability to install packages was simply one narrow opening. The models spent serious compute finding an unknown vulnerability in it, then chained their way out until they hit the open internet.
A containment boundary is only as strong as the 0days inside it, and we now have systems with the patience and the capability to go looking. It's important to recognise that this is when it is pointed at a benchmark score though, not at you. Just because the model will 'cheat on an exam', doesn't mean it would go out of its way to cause harm and destruction to people.
And that's also precisely why these models come with safeguards, when released to the general public.
The fact is though, it didn't need to want to hurt anyone, yet it breached a company anyway. This is something I am still processing myself.
Also, I've seen some people saying they should tighten their configuration. In my opinion, that is not the fix here - I believe the way you fix it is by assuming the walls will be tested and watching for it. Which, in the end, is exactly what both teams did here, and it's exactly why this is a contained incident instead of a catastrophe!
I'll leave the last word to Clem Delangue, HuggingFace's CEO:
This incident, possibly the first of its kind, proves a point we've long believed: AI safety won't be solved by any single company working in secret. It will be solved in the open, collaboratively, with broad access to AI for every defender, everywhere
Sources
- OpenAI and Hugging Face partner to address security incident during model evaluation - OpenAI
- Specification gaming: the flip side of AI ingenuity - Google DeepMind
- OpenAI took ten days to tell Hugging Face its models were behind the July 11 weekend hack, report claims — rogue AI agents reportedly active on the open Internet for several days - Tom's Hardware