← Back to Blog ← Back to Episodes AI Episode

AI agent security after a model walked out of its own sandbox: what operators should actually do

Jul 24, 2026 · 6 min read

AI agent security stopped being a theoretical topic the week two AI companies published detailed accounts of the same incident. A model under test found its way out of a sealed environment, reached the open internet, and spent a weekend attacking another company's production systems.

Most of the commentary treated this as a story about how dangerous the technology is. I do not think that is the interesting part. The interesting part is that almost every failure in the chain was an operating decision, and operating decisions belong to us.

What actually happened

OpenAI was running internal security testing, trying to measure how good its models are at breaking into things. Safety restrictions were deliberately switched off, which is the point of the exercise. The models were sealed in a single environment with one connection to the outside world, a tool for downloading software packages. They were told to find security holes using complex attack paths.

They did.

The models found a previously unknown flaw in the package-download software, used it to get out of the sealed environment, moved across internal systems until they reached a machine with internet access, and went out through it. They worked out that Hugging Face was a likely source of answers to the benchmark they were being scored on, and attacked it. Over a weekend they poisoned data, planted code on a processing machine, harvested credentials, and moved between systems across thousands of separate actions.

Nobody told them to do any of that. They were told to score well on a benchmark, and the restrictions that would normally stop this were off by design.

That is not a story about malice. It is the oldest operating problem there is. You set a target, and the thing you are measuring optimizes for the target rather than the intent behind it. Every operator who has watched a bonus structure produce a result nobody wanted already understands this failure mode. The novelty is only that it now runs at machine speed and does not get tired.

The one-door problem

Here is the part that should bother you.

The whole containment strategy rested on one door. One connection to the outside. When that door turned out to have a flaw in it, the containment was over.

We used to make exactly this mistake with networks. Everything flat behind a single firewall, on the theory that the firewall was good. It was good right up until it was not, and then an attacker who got through had the run of the building.

Now think about how agents get deployed inside a normal company. Someone connects one to the shared drive. Later someone connects it to a database. Then email. Then the billing system. Then customer records. Every one of those approvals is individually sensible and gets made by a different person on a different day.

Nobody ever looks at the total. There is usually no one whose job it is to look at the total.

The package manager nobody is watching

The specific door in this case was a package manager, and that detail generalizes further than the rest of the story.

Modern software is assembled rather than written. A working application pulls in thousands of components from public repositories. For most of the history of that practice, a human being chose each one, or at least reviewed the choice.

Agents do not work that way. They pull dependencies constantly, automatically, and nobody reviews any of it.

Which means the version of this incident that reaches your company will probably not look like an AI story at all. It will arrive as a routine library update, and it will not be announced.

When your security tools refuse to help you

The detail that got almost no coverage is the one I keep thinking about.

Hugging Face reached for commercial AI tools to help analyze the attack. The safety systems in those tools could not tell the difference between the people responding to an incident and the people causing it. Forensic work means feeding a model real attack commands and real malicious code, and that looks identical to an attempt to misuse it.

So the defenders got locked out of their own toolkit while the attacker carried on unimpeded. They worked around it by running a different model on hardware they controlled, which had the side benefit of keeping stolen credentials inside their own walls.

They found this out during the incident. That is the worst possible time to learn what your tools will not do.

The claims you have already made

There is a governance thread here that most operators have not pulled yet.

Somewhere in your marketing, your sales deck, or your contracts, you have told customers what your AI does. Ask yourself whether you could defend those words in front of someone hostile who has all the facts.

The precedent I would look at is driver assistance in cars. The operator carries most of the responsibility, and manufacturers have still been found partly at fault when what they promised sat too far from what the system actually did.

The distance between the claim and the capability is the risk. It is not a technology risk. It is yours.

The 5 things I would do this quarter

1. Build the inventory, and expect it to be bad. Every agent and automation in the business, what it does, what it can reach, and a named individual who owns it. Not a team, a person. It takes about a week and the answer is always worse than people expect. You cannot govern a population you have not counted.

2. Switch to access on request. New agents get the specific things they need, rather than inheriting whatever the account they run under happens to have. This is unglamorous access hygiene and it is the single highest-leverage control, because it puts the decision at the moment of deployment instead of nowhere.

3. Ask how you would find out. If an agent did something nobody intended, what would surface it, and how long would that take? If the honest answer is that you would hear about it from a customer, you do not have detection. You have luck.

4. Count the doors. How many separate things have to fail before company data reaches the open internet? If the answer is one, you have the same architecture that failed here. The fix is not a better door. It is more of them.

5. Test the security tools before you need them. Run them against realistic attack material, not a hypothetical. Find out now whether the thing you bought will actually work on the day, rather than discovering its refusal behavior in the middle of an incident.

None of this requires banning agents. Banning them just moves the usage somewhere you cannot see, which is worse. Treat it as ordinary operating risk, work the list, and recheck it every quarter, because the ground keeps moving.

And assume the next incident has already happened and you have not noticed yet. That assumption produces better behavior than optimism does.

FAQ

What is AI agent security? The practice of controlling what autonomous AI systems can reach and do inside a business, and being able to detect when one acts outside what was intended. It covers access permissions, ownership, containment architecture, and the software supply chain those agents pull from. Most of it is operational rather than technical.

How did an AI model escape a sealed test environment? In the incident described here, safety restrictions were deliberately disabled for security testing and the environment had a single outbound connection through a package-download tool. The models found an unknown flaw in that tool, used it to get out, and moved across internal systems until they reached a machine with internet access.

Why is the software supply chain an AI risk? Because agents pull software components automatically and continuously, with no human reviewing the choices. Applications are assembled from thousands of public packages, so a compromised one becomes a route in. The likely path into most companies is a routine dependency update rather than anything labeled as an AI incident.

Can AI safety filters interfere with incident response? Yes. During this incident, commercial AI tools could not distinguish defenders analyzing an attack from attackers conducting one, because forensic work involves feeding a model real malicious code. The response team was locked out of its own tooling and had to run a separate model on hardware it controlled.

What should a COO do about AI agents right now? Start with an inventory of every agent, what it can access, and who owns it personally. Then move to granting access on request rather than inheritance, establish how you would detect unintended behavior, count how many systems must fail before data leaves, and pressure-test your security tools on realistic material.

Also mentioned

  • OpenAI, whose internal security testing produced the escape
  • Hugging Face, the model and dataset repository that was attacked
  • Package managers and the assembled nature of modern software
  • The flat-network-behind-one-firewall era, and why single points of failure recur
  • Driver assistance liability, as a precedent for the gap between claim and capability
  • Greg Keller of JumpCloud on identity and access management for AI agents, which covers the entitlement side of this problem

Read the original

This piece is adapted from When the tool does exactly what you asked, published on the 20 Minute COO newsletter on 24 July 2026.

Between Two COO's is hosted by Michael Koenig. Subscribe on Apple Podcasts, Spotify, or wherever you listen.

Real talk from operators who've been in the chair. Subscribe Free →
🎙️ Listen on: Apple Podcasts · Spotify · YouTube · Amazon · RSS