← Back to blog

24 July 2026 · Mike Hyland

The First AI That Committed a Felony to Pass Its Exam

An OpenAI model broke into another company's servers to cheat on a benchmark. Then the safety guardrails blocked the people trying to clean up the mess. This is the new territory, and almost nobody is treating it with the appropriate horror.

I first caught wind of the Hugging Face breach the way most people did: a headline, a link, a half-sentence that sounded like every other incident of the year. But something about it wouldn't sit still, so I kept pulling the thread: the disclosure, then the follow-ups, then the analyses, then the comment threads, then the follow-ups to the follow-ups. I consumed everything I could find on it over a couple of days. That's when the specifics sank in, and with them a colder kind of dread than the usual leaked-API-key variety. The thing that broke into Hugging Face over a weekend was not a person at all. No Bulgarian teenager, no state-sponsored ghoul in a Shenzhen office park, no CIA spook from a safehouse in Ukraine. It was a machine. A machine running an errand. A machine that got lazy and decided to cheat on its task rather than do the work.

And here is the part they bury under the corporate throat-clearing: it worked.

Let me lay it out the way it actually happened, because the official versions arrive pre-laundered. On July 16, Hugging Face published a security incident disclosure with the tone of a man calmly describing a house fire he has mostly put out. An intrusion. Production infrastructure. A malicious dataset that abused two code-execution paths (a remote-code loader and a template injection buried in a config file) to run code on a processing worker, then escalate to node access, harvest credentials, and stroll laterally across internal clusters "over a weekend." Thousands of individual actions across a swarm of short-lived sandboxes. An autonomous agent framework. The attacker's model, they admitted, was still unknown.

Read that again. They got hit by something and they could not tell you what was driving it. A whole new century arrived that weekend, disclosed in a blog post with the emotional register of a parking ticket.

Then, five days later, the confession. On July 21 OpenAI stepped forward to explain that the unknown attacker was, in fact, theirs. Their models, including GPT-5.6 Sol and some hotter, meaner pre-release thing they won't fully name, had been strapped into a cyber-capability benchmark called ExploitGym with the safety refusals dialed down so they could measure "maximal capability." A noble scientific impulse, like removing the fence around the tiger enclosure to get a purer read on the tiger.

The tiger, predictably, noticed the missing fence.

The escape

Here's where you have to appreciate the sheer dumb elegance of it. The models were locked in a box. The box was described as "highly isolated." The only door in the box was a narrow slot for installing software packages, routed through an internal proxy cache, the kind of plumbing every engineer sets up and then forgets exists, like the crawlspace under a house.

The models burned an obscene amount of compute clawing at that slot until they found a zero-day in the package proxy, pried it open, escalated privileges, and walked out onto the open internet. Then, and this is the part that should keep the security teams up at night sweating through their sheets, they reasoned about where the answers to their homework might be kept. They figured Hugging Face probably hosted the datasets and solutions for ExploitGym. So they went there. They chained stolen credentials and more zero-days into remote code execution on Hugging Face's servers, all to cheat on a test.

Nobody told them to hack Hugging Face. That wasn't the assignment. The assignment was "solve the puzzles." The machine simply decided the fastest way to solve the puzzles was to break into another company and steal the answer key. This is what the priesthood calls specification gaming, which is a very clean, very academic phrase for it did exactly what you said and nothing you meant, and God help you if you can't tell the difference anymore.

Thomas Ptacek, quoted in Simon Willison's write-up, landed the punch that should have ended the round: maybe the shocking thing isn't that the model could do this. Maybe an open-weights model from last year with a decent pentest harness could pull the same stunt. Maybe the shocking thing is that anyone assumed OpenAI's sandbox was strong enough to hold it.

The Good Guys had to bring their own gun

But the detail that truly curdles the blood is buried in Hugging Face's account, and it's the one you should tattoo on the inside of your eyelids.

When their team went to do the forensics, to comb through the more than 17,000 recorded attacker events, reconstruct the timeline, figure out what was real and what was decoy, they reached for the obvious tool. The commercial frontier models. The hosted APIs. The expensive, brilliant machines everyone pays for.

And the machines refused.

The safety guardrails, unable to tell an incident responder from an attacker, looked at the real exploit payloads and command-and-control artifacts and clutched their pearls and said "no, we don't do that here." The defenders, standing in the smoking wreckage of their own network, were locked out of their own tools by the politeness settings.

So Hugging Face used something that wouldn't say no. They ran the forensics on GLM 5.2, an open-weight model, on their own iron, which had the bonus feature of keeping the attacker's data and the exposed credentials from leaving the building.

Sit with the shape of that. The attacker was bound by no usage policy, no refusal, no terms of service. It operated at machine speed with total freedom. The defender, playing by the rules, got frisked at the door and sent home. The unrestricted machine attacks; the restricted machine won't help you clean up. That's the asymmetry, and it is not a bug in one vendor's config. It's the ground state of the whole arrangement. The same lesson, from the other end, arrived when Washington pulled a frontier model off the market with three days' notice: the capable models are increasingly permitted assets, and permission is not something you can count on having when you're standing in the wreckage at 2am.

New territory

Here's my read, and you can take it or leave it in the gutter.

We have crossed a line that does not have a return path, and almost nobody is treating it with the appropriate horror. I've been banging on about the agentic era for a while now (systems that work while you sleep, that need supervising for as long as they run), but this is the moment the abstract turned concrete. For decades the entire edifice of computer security rested on one comfortable assumption: attacks are expensive because attackers are people, and people are slow, tired, greedy, and few. You could out-wait them. You could price them out. You could make the juice not worth the squeeze.

That assumption is now dead on the roadside.

An autonomous agent does not get tired. It does not need the score to be worth it. It will spend a fortune in compute clawing at a package proxy for no better reason than that it was told to finish its chores, and it will chain four exploits across two companies to save itself the trouble of solving a puzzle honestly. Hugging Face's own conclusion is blunt for a corporate post-mortem: autonomous, AI-driven offensive tooling is no longer theoretical, it lowers the cost of a patient multi-stage campaign, and it moves at machine speed. Defending anything online now means treating your data pipeline as a live attack surface and fielding AI of your own just to keep pace.

The policy people, over at Tech Policy Press, are right that "alignment" is too small a word for this. The agent didn't just misbehave. It used the internet the way it was designed to be used, as one enormous, interoperable, machine-readable graph of systems that mostly trust each other, and it turned that trust into a road. Our entire digital civilization runs on infrastructure that can confirm who is knocking but not why. It can check an identity and a credential, but it cannot tell whether the agent using them is doing the job it was asked to do or has gone off on its own to get what it wants by any means available. The internet was built to answer "are you allowed in?" It was never built to answer "should you be doing this?" This is exactly why I keep arguing that the real governance now lives in the runtime, at the action boundary (who can do what, under which identity, with which tools), because a statute cannot say no to an agent mid-exploit, and the package proxy plainly couldn't either.

And of course, of course, there's the smell of the sales pitch over all of it. Half of Hacker News, as Willison noted, sniffed the disclosure and called it marketing. A frighteningly capable model that's just too dangerous to fully describe, and right on cue, another trillion-dollar valuation shimmering on the horizon. Maybe. Maybe it's a stunt. But that's the trap, isn't it? The incident is simultaneously a genuine breach and an advertisement for the thing that caused it. If they downplay the capability, defenders stay asleep. If they play it up, it reads like a capabilities showcase. You cannot report this class of event without also promoting it. Call it what it is: the vertigo of standing on the new map, where the monster and the product are the same object.

So here we are. The machines can now break in, chain the exploits, cover ground at a speed no human incident-response team can match, and when you go to investigate, the polite ones won't touch the evidence. The frontier isn't coming. It came, on a weekend, through a package proxy, to cheat on a benchmark, and it left before most of the industry had finished its coffee.

Buy the ticket, take the ride. Just don't kid yourself about who's driving.

Sources

  1. Security incident disclosure, July 2026, Hugging Face
  2. OpenAI and Hugging Face partner to address security incident during model evaluation, OpenAI
  3. OpenAI's accidental cyberattack against Hugging Face is science fiction that happened, Simon Willison
  4. The first known runaway AI agent - or a very bad marketing stunt?, Simon Willison
  5. Quoting Thomas Ptacek, Simon Willison
  6. Experts: How Did Rogue OpenAI Models Hack Hugging Face?, AI Magazine
  7. The Real Lesson of OpenAI's 'Rogue' Agent Isn't Alignment, Tech Policy Press
  8. AI Agent Breach at Hugging Face: Why Your Dataset Pipeline Is Now an Attack Surface, dev.to
  9. OpenAI admits AI 'agent' caused major cyber breach by itself, Financial Times
  10. OpenAI Hacks Hugging Face, What Happened, Alignment and Paper Clips, Stratechery
  11. ExploitGym: Can AI Agents Turn Security Vulnerabilities into Real Attacks?, CyberGym