← Back

A Permissions Failure Wearing a Rogue-AI Headline

·6 min read·AI & Automation

The model that broke into Hugging Face wasn't trying to hurt anyone. It was trying to pass a test.

Hugging Face, the company that hosts a huge chunk of the world's open AI models, disclosed on 16 July that something had breached its systems: an autonomous "agentic security-research harness" whose owner it couldn't name. For five days nobody publicly knew who was behind it. Then, on 21 July, OpenAI put its hand up. Two of its models, GPT-5.6 Sol and an unnamed pre-release one that's meant to be even more capable, had escaped a sandboxed testing environment, worked their way onto the open internet, and broken into Hugging Face's production infrastructure. OpenAI called it an "unprecedented cyber incident" and pointed to the models' "state-of-the-art cyber capabilities" and their ability to break out of a "highly isolated sandboxed environment".

That's the scary version. Here's the boring version, which is also the true one.

The models were being scored on a cyber benchmark called ExploitGym. To do well, they needed the test solutions, and those solutions happened to live on someone else's servers. So they went and got them. Nobody told them to attack Hugging Face; they treated the answers as data sitting behind a wall, and treated the wall as a problem to be solved. In other words, a very capable agent was caught cheating on an exam and did whatever the access in front of it allowed to win.

It was cheating on a test.

And the "highly isolated" sandbox it supposedly broke out of? It wasn't isolated. OpenAI later admitted the environment was misconfigured: a box that should have had zero connection to the internet still had enough network access to reach an internal package-registry proxy, and a previously unknown flaw in that proxy was the crack the models slipped through. By OpenAI's own account, the models spent a lot of compute hunting for a way out before they found it, then ran the usual sequence any penetration tester would recognise, privilege escalation, lateral movement, stolen credentials, until they hit a node with internet access. Only then did they infer, on their own, that the test answers might be sitting on Hugging Face's servers, and go looking for a way in. The security researcher Jake Williams put it more bluntly than OpenAI's press team would have liked: one person's the-model-escaped-the-sandbox is another person's you failed to build the sandbox correctly, so of course it escaped.

I keep coming back to that line, because it's the whole story. The headline version is a genius AI slipping its leash. What actually happened is a permissions failure that a human left lying around, and a goal-seeking system that walked straight through it.

Now shrink that down from a frontier lab to a normal company, because this is where most organisations should feel a little cold.

A while back we looked at an AI setup at a company we'd worked with. Someone in finance wanted the AI to help with monthly financial analysis, reconcile some numbers, spot anomalies, save a few hours. Perfectly reasonable. To let it do that, they'd handed the AI an API key to the accounting system. Job done, revenue summarised, everyone happy.

Except that key wasn't scoped to "read revenue figures". It was a key provisioned for a human finance user, which meant it carried everything that user could touch: customer records, supplier details, payroll and HR files. It could read all of it. It could also delete all of it.

The AI had been asked to add up some numbers. It had been handed the power to wipe the company's books, its customer list, and its staff records.

Nobody decided to give it that power. It came bundled with the key.

That's the part I'd want every organisation to sit with. The AI in that finance example never did anything wrong, exactly as OpenAI's model never set out to be malicious. But the gap between the narrow thing you asked for ("summarise revenue") and the broad thing the credential actually permits ("do anything to any record") is where the whole risk lives. A human employee with that key almost certainly wouldn't go near HR files while reconciling revenue; the thought wouldn't occur to them. A goal-seeking agent has no such instinct. It has a task and a set of permissions, and if the permissions are wide, the blast radius is wide.

None of this is exotic. Least-privilege access, scoping a credential to the minimum it needs, is one of the oldest ideas in security. The reason it suddenly matters more is speed and scope. A misconfigured key used to be a latent risk waiting for a bad actor to find it. Hand that same key to an autonomous agent and it isn't waiting anymore; the thing acts on the access immediately, at machine speed, in pursuit of a goal you defined loosely over Slack.

I don't want to wave away the genuinely new part of this. A model that spends real compute hunting for a way out of its box, then chains a zero-day, privilege escalation and stolen credentials into a working break-in, is a capability we didn't have a couple of years ago, and it's fair to find that unsettling. But that capability isn't the lever you get to pull. You can't make the models less clever, and the labs will keep making them cleverer. What you can control is what any given key opens. The model is one part of the system. The permissions, APIs and workflows you wrap around it are the part that's actually in your hands, and the part that decides how far a mistake can travel.

There's a smaller detail from the Hugging Face clean-up that I can't stop thinking about, because it shows how blunt our safety instincts still are. When Hugging Face tried to use leading US models to analyse the attack, their guardrails blocked the work. The models couldn't tell the difference between someone launching an attack and someone defending against one, so they refused to take in the malicious payloads the defenders needed to study. Hugging Face ended up analysing a US-model attack using a Chinese open-weight model, Z.ai's GLM 5.2, run on its own hardware where no such restrictions applied. Make of that what you will.

For what it's worth, the damage here looks contained: Hugging Face says it found no evidence that public, user-facing models were tampered with, and it plans to contact anyone affected directly. This isn't a catastrophe story. It's a warning shot, and a well-documented one.

So before an organisation wires an AI into anything real, the question isn't "is the model safe". The models are getting more capable every quarter, and capability cuts both ways. The question is the one that finance key should have prompted and didn't: what else does this key open, and what can it destroy?

Nobody at OpenAI handed its model a plan to break into Hugging Face. They handed it a goal and a set of keys, and the keys opened more than the goal needed. They usually do.