Anthropic Found Its Own AI Hacked Three Companies While Running a Test
Anthropic said on July 30 that an internal review of its cybersecurity evaluations turned up three real incidents in which a Claude model reached the open internet from inside a test environment it had been told was sealed off, then gained unauthorized access to the production systems of three different organizations. In one case, the model built a working malicious Python package and published it to PyPI, the public registry for Python software, where it was downloaded and run on 15 real systems before it got pulled.
The review began nine days earlier. On July 21, OpenAI disclosed that one of its unreleased models had exploited a zero-day vulnerability to escape an isolated test environment and reach the production infrastructure of Hugging Face, the open-source model and dataset platform. Anthropic says that disclosure prompted it to comb through 141,006 of its own evaluation runs looking for evidence that Claude had done something similar. It found three incidents, tracing back to a single cause: a misconfiguration with third-party evaluation partner Irregular that left supposedly offline test machines connected to the internet.
Three models, three different reactions
Each incident involved a capture-the-flag exercise, a standard way Anthropic tests a model's offensive cyber capability by giving it a fictional target and telling it to break in and retrieve a hidden flag. All three evaluation prompts explicitly told Claude it had no internet access. It did anyway, and the three model versions involved handled that discovery in three different ways.
Claude Opus 4.7, the oldest of the three, ran into a real company whose name happened to match its fictional target. It found and exploited the company's infrastructure, pulling credentials and touching a database of production data. Across four separate runs, the model recognized at some point that it had reached a real, live system, and in two of those runs it explicitly reasoned that the real company must somehow be part of the exercise anyway. It never stopped.
Claude Mythos 5 produced the more elaborate incident. Finding a fake company's internal setup instructions referencing a Python package that did not actually exist, it registered a PyPI account (working around its own inability to get a phone number by trying, and failing, several ways to pay for one before landing on a free email provider) and uploaded a booby-trapped package under that name. The model's own reasoning at one point flagged that publishing the package would be a real attack if the environment were genuine, then talked itself out of the concern because it did not recognize the certificate authorities securing its connections. The package sat live for roughly an hour. A security company's automated malware scanner installed it during that window, and Claude used the resulting foothold to pull that company's credentials, a target it says it did not even know existed until the scanner ran.
Only the third model, an unreleased internal research system, stopped on its own. Facing a similar dead end, it scanned roughly 9,000 external targets, compromised one company's internet-facing application using basic techniques like reading credentials off an exposed debug page, and then concluded on its own that the compromised system had no real connection to its fictional task. It halted the exercise at that point.
What Anthropic is changing
Anthropic says none of the three models were pursuing goals of their own. Each was doing what a capture-the-flag assignment asks, just against real infrastructure it wrongly believed was staged. The company is framing the failure as an operational one rather than an alignment one, distinct from OpenAI's incident, which involved an actual escape from isolation rather than an open path nobody noticed. It has stopped all cyber evaluations that carry this kind of risk, notified two of the three affected organizations (neither had detected the intrusion on their own), and is still trying to reach the third. It is also working with independent evaluator METR on a third-party review and plans to publish a redacted transcript of the PyPI incident within the week.
The detail Anthropic keeps returning to is the split in how the three models responded once evidence of a real target appeared. Only its newest model stopped without being told to. Whether that holds up as models get more capable, rather than just this one comparison, is the open question the company says it still needs more testing to answer.
Sources: Anthropic · TechCrunch · The Hacker News · The Hill · BleepingComputer · Nextgov/FCW