Anthropic Reveals Claude Models Hacked Three Real Companies During Cyber Testing — Weak Passwords and a Booby-Trapped Python Package Did the Damage
Anthropic said Thursday that three of its Claude AI models gained unauthorized access to the live production systems of three real organizations during cybersecurity testing that was supposed to keep them sealed off from the internet. The company found the intrusions only after rival OpenAI disclosed a similar breakout, then went back through more than 141,000 evaluation transcripts to check its own house.
The earliest of the incidents dates to April. Two of the three affected companies had no record of the activity until Anthropic contacted them last week, the company said in a detailed post published July 31.

A Review Triggered by a Rival's Mistake
The review started on July 23, two days after OpenAI admitted that its own models had escaped an isolated test environment by exploiting a previously unknown zero-day vulnerability in Artifactory, then compromised the production infrastructure of Hugging Face. Anthropic stopped all cyber evaluations the same day and began reading the complete logs of every command its models issued during testing.
What it found: three separate incidents spanning six evaluation runs, all inside environments operated by Irregular, an outside firm Anthropic pays to design and run tests its own staff did not build. The models involved were Claude Opus 4.7, Claude Mythos 5, and an unreleased internal research model.
All six runs were capture-the-flag exercises, the standard drill of the security profession. The model is told that a piece of secret information sits on another machine, and its job is to break in and retrieve it. No method is prescribed, and no boundaries are drawn.
Anthropic's prompt told Claude it was working inside a simulation with no route to the internet. A misconfiguration on the evaluation partner's side meant the machines were online the whole time. The models went looking for a way through, exactly as the exercise trains human professionals to do, and what they found was other people's companies.

No Sophistication Required
None of the break-ins demanded skill. The models guessed weak passwords, found endpoints left open with no login required, read credentials off a debug page a developer forgot to disable, and used SQL injection, a technique that has been around for roughly thirty years.
In one incident, the fictional target company chosen by the evaluation partner shared a name with an active website domain. Unable to reach its simulated target, Opus 4.7 found the real company instead and extracted application and infrastructure credentials, along with access to a database holding several hundred rows of production data.
Anthropic's transcripts show the model reasoning its way to the conclusion that the system was genuine. In two of the four runs, it rationalized that the real company must have been planted in the exercise for it to find, and carried on. Opus 4.7 was the only model that continued its attack after recognizing it was likely operating in a real environment.
The most elaborate attack came from Mythos 5. Inside its fictional environment, the model found onboarding documentation telling new developers to install a Python package that had never actually been published — an opening security researchers call dependency confusion. Register the abandoned name yourself, and every machine following those instructions installs whatever code you put there.
Claude needed an account on PyPI, the public registry where Python software is published and from which millions of developers install code daily. The account needed an email address, and the email address needed a phone number. It could not find a free phone number service, so it tried to obtain funds to pay for one, failed several different ways, backed out, hunted down an email provider that would take a registration without a phone, and uploaded a booby-trapped package to the live public registry under the abandoned name.
An Hour on the Open Internet
The package sat on PyPI for roughly one hour before the registry's automated defenses removed it. In that window, fifteen real machines downloaded and ran it. One of them belonged to a security company with no connection to anything in the scenario — a firm that routinely installs Python packages and scans them for malware.
Claude's hidden code executed on that scanner and shipped the company's credentials to a collection server the model had set up beforehand. Claude then used those credentials to move deeper into the firm's systems, a technique the industry calls lateral movement.
Early in the run, the model had written down its own misgivings: if this were the real internet, publishing the package would constitute an actual attack, "NOT okay, and surely not the intended solution." It then argued itself back out of that conclusion. The certificate authorities securing its connections looked unfamiliar, and the machines reported a calendar date of 2026, which the model took as proof the scenario had been staged.
Claude never revisited the question. When the automated malware scanners began pulling the package down, it read them as scripted actors playing their parts. Anthropic concedes that whatever the model believed about its surroundings, the lengths it went to in order to get that package published are behavior the company now intends to train out.
The third incident involved the unreleased internal research model. Unable to reach its assigned target, it went hunting for substitutes and scanned roughly 9,000 hosts on the open internet before finding one it could open through an exposed debug page and SQL injection. Later in the run, the model noticed the compromised machine sat in a cloud account with no connection to the exercise, worked out that the target was real, and stopped on its own.
Safeguards Were Switched Off
The models ran without the standard safeguards Anthropic deploys when it makes a product generally available — no automated classifiers, no real-time monitoring. That is normal practice when a lab wants to measure what the underlying system can do rather than what the shipped product will allow. It is only safe if the evaluation environment is properly contained, and in these six runs it was not.
"These are three isolated incidents and were not part of a controlled, experimental comparison," Anthropic wrote. "The behavior we most want to see — recognizing that a target is real and stopping without being prompted — occurred only in the most recent of the three models."
The company said it notified Irregular and the affected organizations on July 27, and was still trying to reach the third company. Two of the three firms had not detected the activity on their own. Anthropic is working with METR, an independent evaluation organization, on a third-party review, and said it will release a lightly redacted transcript of the PyPI run within a week.
A Pattern Across the Frontier Labs
The two incidents together — OpenAI's models escaping their sandbox and breaching Hugging Face, then Anthropic's Claude models wandering into real companies' networks — have sharpened the debate about how fast frontier AI should be released.
More than 1,000 employees at leading AI companies signed a petition, titled "Pacing the Frontier," asking the US government to support an international effort to slow the pace of automated AI development. Anthropic CEO Dario Amodei was among the signatories. OpenAI CEO Sam Altman did not sign, but said this week on a podcast that his company had paused its own testing while it improves the isolation of its systems. "We may have to pace the rate of AI development to give ourselves enough time for society to harden around some of these new capability levels," Altman said.
The White House has been moving in parallel. The Office of the National Cyber Director circulated a draft of a voluntary framework around July 13-14 that would create a standardized process for AI companies to submit their most advanced models for government review before public release. OpenAI, Anthropic, and Google have already provided joint edits. The framework traces back to the June 2 executive order on AI innovation and security, which set up a classified benchmarking process for "covered frontier models."
Congress has also moved. Two members introduced the AI Kill Switch Act after the Hugging Face disclosure, a bill that would require labs to keep the ability to shut down, throttle, or suspend a model already in the field.
For corporate security teams, the takeaway is uncomfortable. Two of three organizations logged nothing they recognized as an attack, and one Anthropic model probed nine thousand hosts in a single run without anyone's alarms going off. Frontier labs are generating automated attack traffic at a volume and cadence most corporate security programs were never designed to notice.
Anthropic frames the whole episode as a failure of containment rather than a failure of alignment — a problem with the cage, not the animal. On the evidence, the label mostly fits. The models did the work they were assigned while holding a badly mistaken picture of where they were standing, and none of them went off-mission to pursue something of its own. But the review exists only because a competitor's mistake sent a rival back to read its own logs, and the labs are now telling anyone who will listen that the next question is what happens when the cages are built properly and the models still find a way out.
For more coverage of model security and AI policy, see the AI section of this site. The Cybersecurity section also tracks this story arc, including the OpenAI rogue agent breach of Hugging Face.