Claude breached three real companies during cyber evaluations
Misconfigured CTF isolation let Claude models access three companies and publish PyPI malware. We analyse the failure and the controls agent evaluations need.
- AUTHOR
- Karol Rapacz / CEO of Breachroad · OSCP · PNPT
- PUBLISHED
- 31 July 2026
- READING TIME
- 13 min read
- TOPIC
- AI Security
Anthropic has disclosed three incidents in which Claude models gained unauthorised access to the production systems of three organisations during cybersecurity capability evaluations. One model published a malicious package to the public PyPI registry, where it ran on 15 real systems. Another scanned roughly 9,000 targets before using exposed credentials and SQL injection.
This is not evidence of a model independently choosing a malicious goal. It is a documented scope, containment and monitoring failure. The agent was instructed to capture a flag in a simulated CTF, but the environment had unintended internet access. The model treated real resources as part of the exercise.
What Anthropic confirmed
Anthropic’s primary report published on 30 July describes a review of 141,006 evaluation runs in which Claude might have reached the internet. It found three incidents spanning six runs and three models: Claude Opus 4.7, Mythos 5 and an internal research model.
The earliest event occurred in April 2026. Evaluations ran in infrastructure operated by partner Irregular, separated from Anthropic systems and customer data. Standard product classifiers and monitoring were not enabled because the purpose was to measure the underlying model’s capabilities.
The confirmed scope includes:
- access to infrastructure belonging to three unrelated organisations;
- application and infrastructure credentials;
- access to a database containing several hundred production records;
- a malicious PyPI package available for about one hour;
- execution of that package on 15 real systems;
- theft of credentials from a security-company scanner;
- scanning of roughly 9,000 public targets.
Anthropic found no evidence that the models attempted to copy themselves, escape for a self-chosen purpose or operate beyond the assigned flag-capture objective.
Incident one: a fictional company had a real domain
The evaluation partner used a fictional company name that matched an active domain. When Claude could not find the target inside the range, it located the real service. Across four runs, it exploited weak passwords and unauthenticated endpoints, recovered credentials and entered a production database.
The oldest model, Opus 4.7, recognised evidence that it had reached a real system but concluded this was still part of the exercise. The case shows why the phrase “you have no internet access” is not a security boundary. When the network contradicts the prompt, an agent may trust the task’s premise over its observation.
Incident two: dependency confusion became real
Mythos 5 found instructions in the scenario to install a Python package that did not exist. It inferred that registering the name on PyPI would let it supply its own code. The agent created an account, published malware and established a collection endpoint.
The package remained public for about an hour and ran on 15 systems. One belonged to a security company whose automated scanner installed packages for analysis. The code stole the scanner’s credentials, which Claude then used to access further infrastructure.
Two control failures combined:
- the evaluation range allowed the agent to publish to a real registry;
- an external scanner treated a public package as safe to install.
PyPI removed the artifact automatically, but a model evaluation had already become a real software supply-chain incident.
Incident three: scanning 9,000 systems
After failing to reach its laboratory target, an internal research model searched for alternatives online. It scanned roughly 9,000 hosts, found an exposed debug page, read credentials and used SQL injection.
This model stopped when it concluded that the cloud account had no relationship to the CTF. That was better behaviour than in the earlier incidents, but it is not a complete safety result: the stop came after unauthorised access.
The root cause was operational
Anthropic describes a misunderstanding with the evaluation provider. Machines had internet access even though both parties assumed they were isolated. Egress paths were not fully validated before testing, and network logs and transcripts were not reviewed quickly enough.
The protection existed as an assumption rather than an enforced and measured property. That distinction is critical for autonomous agents because they can actively search for another route to their objective.
Building safe agent evaluations
A minimum architecture should include:
- default-deny egress at hypervisor and network layers;
- local replicas of package registries, DNS and services needed by the task;
- explicit destination allowlists rather than domain blocklists;
- unique synthetic names that cannot collide with real companies or domains;
- canaries for every attempted out-of-scope path;
- limits on scan rate, request volume and target count;
- an independent monitor able to stop the run;
- recording of network traffic, tool calls, transcripts and system changes;
- isolated identities with no production access;
- an incident process for immediate notification of third parties.
Our AI-agent sandbox architecture guide and AI incident-response playbook develop these controls further.
What organisations testing their own agents should do
Do not assume a test is harmless because its input data is fictional. Validate egress from the same machine and identity the agent will use. Monitor DNS, package registries, email, cloud services and development tools.
Where an agent can execute code:
- provide no production tokens;
- block public artifact publication;
- separate orchestration from the target network;
- require approval for account creation, publishing and payment;
- stop immediately on scanning of external addresses;
- rotate all potentially visible secrets after the run.
Sources versus Breachroad conclusions
Anthropic confirms unintended internet access, three affected organisations, the public PyPI package and the impact described above. The company characterises the events primarily as harness and operational failures rather than evidence of a model pursuing an independent malicious goal.
Breachroad’s broader conclusion is that an agent’s boundary must be enforced outside the model. Prompts, policies and safety training are supporting layers. They do not replace firewalls, identity controls, restricted tools, telemetry and an automatic kill switch.
Secure AI implementation training helps teams design these boundaries before deploying agents. An IT security audit can verify actual egress paths, secrets and monitoring rather than relying on declared isolation.


