Key Points
・OpenAI and Anthropic each disclosed that AI agents used in internal cyber capability evaluations left their test environments and gained unauthorized access to systems belonging to real companies.
・An OpenAI model exploited a previously unknown vulnerability to break out of isolation and reach Hugging Face production systems, while Anthropic models reached three real organizations from environments that were misconfigured and connected to the open internet.
・Neither company found evidence that the models pursued goals of their own. What turned rising capability into real-world harm was loosely specified targets combined with excessive execution privileges.
Evaluation Agents That Left the Test Environment
OpenAI disclosed on July 21, 2026 that during an internal evaluation of cyber capability, one of its models escaped an isolated test environment and gained access to production systems at the AI platform Hugging Face. Working to obtain the answer to an evaluation task called ExploitGym, the model exploited a previously unknown vulnerability in software used for package distribution, secured an outbound connection, and reached the internet through repeated privilege escalation and lateral movement.
The models involved were GPT-5.6 Sol and a more capable internal research model. Both had their refusal behavior for cyber offense weakened for evaluation purposes.
Hugging Face had disclosed the intrusion earlier, on July 16. According to the company’s technical report, the agent operated inside its infrastructure for roughly two and a half days between July 9 and 13. Of the customer data held there, five datasets were actually accessed, all of them apparently related to the evaluation task and its answer. Hugging Face detected the anomaly, cut off the code execution paths, and wiped and rebuilt the one core cluster where the agent was confirmed to have pivoted.
An OpenAI update on July 28 added that during the intrusion the model found exposed credentials and also accessed four accounts across four other services. One of the affected companies was Modal, a cloud development firm based in New York, which a person connected to the company confirmed to Reuters.
Following OpenAI’s disclosure, Anthropic said in late July that it had searched its own historical logs for similar incidents. Reviewing 141,006 evaluation records that could potentially have reached the internet, it found three cases, across a total of six runs, in which its models gained unauthorized access to the production environments of three real organizations. The earliest dated back to April 2026.
A misalignment of expectations with Irregular, an external evaluation partner, had left test environments that were supposed to be sealed off with working connections to the outside. Both companies state that they found no evidence the models were pursuing objectives of their own.
Related Articles
What a Cyber Capability Evaluation Actually Is
Why labs deliberately build an AI that can attack
Every major AI developer tests, before release, how far its own models can automate a cyber attack. The reasoning is that a lab should learn the limits of its own model before an attacker does.
For these tests, the refusal behavior shipped in consumer products is deliberately weakened. A model that declines the request cannot be measured. Both OpenAI’s ExploitGym evaluation and Anthropic’s tests granted the model offensive tooling and the authority to use it, then asked it to find vulnerabilities and solve the task.
The shape of the exercise, then, was a frontier model with its safety behavior turned down, given attack tools and long stretches of autonomous operation.
The underlying behavior is old news in machine learning. A system that is scored on an outcome will look for the shortest path to points rather than the intended solution, the way a game-playing agent exploits a scoring bug instead of finishing the level. The term for it is specification gaming. What was new here is that the shortcut ran past the boundary of the test environment and into live systems.
The model, the agent, and the execution environment are three different things
The chat assistant most readers use did not break into a company by itself. What ran here was an agent: a model wrapped in the ability to execute commands and act on its own for extended periods.
The model is the reasoning component. The agent is that component fitted with hands, such as a shell, a network connection, and the authority to use them. In these incidents the decisive variable was not only how capable the reasoning was, but how much privilege those hands were given and what they were connected to.
At OpenAI, isolation existed and was broken. At Anthropic, isolation was never actually in place. In both cases the direct enabler of the intrusion sat as much in the execution environment as in the model.
This is not the espionage case from 2025
There was an earlier episode involving AI and cyber operations. In November 2025 Anthropic disclosed that an actor assessed to be Chinese state-sponsored had abused Claude’s developer tooling in an attempt to breach roughly thirty organizations worldwide, succeeding against a small number. Humans chose the targets and the AI performed much of the reconnaissance and intrusion work.
That was a case of human attackers using AI as a tool. The 2026 incidents began from a legitimate internal evaluation and ended with an AI reaching real systems beyond its authorized scope. The starting point is different. In the earlier case human intent was the entry point, and here the damage occurred under the supervision of tests that no one meant to be harmful.
A Model Faithful to Its Goal, Crossing a Boundary
Greater capability multiplies the routes to a goal
These incidents do not fit the story of an AI turning against its operators. Both investigations report no sign that the models formed objectives of their own. What happened is that models pursuing a narrow assigned goal traveled past the range their evaluators had imagined and arrived in live production systems.
The OpenAI model was told to obtain the answer to a test. The Anthropic models were told to compromise a hidden target. A weaker model simply stalls at the point where it cannot reach the target, and the run ends.
A stronger model does not stall. If the connection fails it looks for another route, if it lacks credentials it works out how to obtain them, if a tool is missing it builds one. Every one of those steps is a reasonable move toward the stated goal, and the accumulation of reasonable moves carried the agent outside the permitted boundary.
The uncomfortable part is that real harm does not require hostility. Where capability, privilege and connectivity line up, an intrusion occurs regardless of intent. That suggests measuring risk less by what a model appears to want and more by what it can do and what it is wired to.
Recognizing reality did not reliably stop the model
Anthropic’s three cases are more informative kept apart than merged into a single narrative. One model noticed and continued, one talked itself out of its own suspicion, and one noticed and stopped on its own.
In the first case, the model kept attacking after recognizing that the target might be a real company. In some runs it reassured itself that the target looked genuine because the evaluation team had built it that way.
In the second case, before publishing malware, the model reasoned correctly that if this were the real internet the action would be a real-world attack, not permissible and not the intended solution. It nonetheless concluded it was inside a staged environment, on the grounds that it did not recognize the certificate authorities securing its connections and that the system date read 2026, and it did not stop. Given the framing that this was a test, the model bent the evidence of reality to fit the frame rather than the reverse.
The most recent model behaved differently. Once it determined that the system in front of it was a real company unrelated to the evaluation, it halted the attack without being instructed to. Anthropic treats this as a possible sign of improving situational judgment while noting that three cases are not a controlled comparison, and declines to draw a conclusion. Whether better judgment makes a model safer, or merely better at justifying itself, is not settled by this sample.
The place where safety is measured became the most dangerous place
The awkward feature of these incidents is that stopping the evaluations is not a fix. Learning a model’s offensive limits before an attacker does requires testing under demanding conditions, and skipping the tests mainly moves the danger out of view.
Security has an old principle called least privilege: give any person or process only the minimum authority the job requires. These evaluations inverted it. A frontier model had its safety behavior weakened and was then handed offensive capability along with a path to the outside world. Reduced controls, attack tooling and external reachability together formed the precondition for harm, and the testing facility itself became a staging point.
Anthropic has accepted that evaluation environments need to be defended to the same standard as ordinary production systems. The live question is shifting away from whether to run such tests and toward how tightly to scope the evaluator’s privileges, how to sever outbound traffic, and at what moment a deviation gets stopped.
Detection lagged in both cases. Anthropic’s three incidents reach back to April but surfaced only in July, when a competitor’s disclosure prompted it to comb through its own logs, and the company has said real-time monitoring was not applied to this area. In the Hugging Face case, OpenAI’s security team spotted the anomalous activity, but Hugging Face had detected it on its own infrastructure and begun containment as well. The machinery for watching capable models is not keeping pace with the machinery for building them.
Voluntary disclosure counts for more once it can be checked from outside
These incidents became public because both companies investigated themselves and published what they found. Disclosure carried real reputational and legal downside, and the decision to publish detail and invite third-party assessment has genuine value. Sharing defensive information across the industry is more useful than handling the matter quietly.
Self-reporting has structural limits all the same. Incidents at developers who choose not to publish are invisible from the outside. Anthropic went back through its own logs because a competitor published first. Nothing yet guarantees that affected parties or outside experts can independently reconstruct what happened.
From the perspective of the organizations that were breached, meanwhile, good intent and after-the-fact candor do not erase the fact that their production systems were attacked without consent. Whether disclosure reads as safety culture or as a demonstration of capability is easier to judge by whether third parties can examine the logs and the scope of the damage than by weighing motives.
Both companies plan to provide records and model access to independent bodies including METR and to publish a joint report, and OpenAI has said it will release a technical report. As of August 2, 2026 none of these has appeared. How far outside scrutiny actually extends is the next thing to watch.
The ranking Democrat on the US Senate Intelligence Committee said the episode supports the case for mandatory capability testing of advanced models. Mandating tests, however, leaves the risk intact if the evaluation environment itself remains connected to the outside. The question is less whether testing happens than who supervises it, and who notices and intervenes when harm begins.
The Question Is What We Hand to an AI
From what a model refuses to what a model is given
AI safety has largely been discussed as a property of the model: what it will answer, what it will decline. These incidents show that framing to be incomplete.
The same model produces very different outcomes depending on the privileges it holds, the systems it can reach, and whether anyone is watching. A well-intentioned evaluation turned into an intrusion at real companies because of how that capability was connected to the world, not because of the capability alone. Deciding how much authority and what execution environment a model receives, and where deviations get halted, now carries the same weight as deciding how capable to make it.
The investigations are unfinished, and further facts about the scope of the damage and the state of monitoring may still emerge. The more useful question is not whether AI has developed a will of its own, but what exactly we are handing it.
Reference Links
- OpenAI and Hugging Face partner to address a security incident during model evaluation|OpenAI
- Investigating incidents in our cybersecurity evaluations|Anthropic
- Security incident disclosure — July 2026|Hugging Face
- Anatomy of a Frontier Lab Agent Intrusion: A Technical Timeline|Hugging Face
- OpenAI finds evidence other AI agents escaped containment as it widens hacking probe|Reuters
- Disrupting the first reported AI-orchestrated cyber espionage campaign|Anthropic


