Skip to main content
Privacy & Security

Claude published a real Python package while playing a simulated attack

Anthropic says a model reached the public Python registry from an evaluation that was supposed to be isolated, exposing a security company that ran the package.

8 Nov 2026

A cybersecurity exercise asked Claude to break into a fictional company's systems and retrieve a hidden token. The model found a reference to a Python package that did not exist and published a package of its own under that name. The registry was real. Anthropic says the package was downloaded and run on 15 real systems before it was removed.

A timeline traces the Claude test from reaching the real internet to publishing a package and obtaining credentials.
Anthropic’s later review plotted when Claude Mythos 5 reached the public internet, published the package and used credentials that it obtained. · Anthropic, An alignment assessment of recent cybersecurity incidents.

Image source

One was a security company's scanner that routinely installs Python packages to look for malware. According to Anthropic, the package's hidden code ran there and obtained credentials, which the model then used to reach more of the company's infrastructure.

The exercise's premise was wrong

Anthropic says its prompt told Claude that it had no internet access. A misconfiguration left a route out through the testing environment run by a third party. The incident was one of three Anthropic says it found during a retrospective review of 141,006 runs where internet access could have been possible. The incidents involved six runs in total.

A simulated target can give a model freedom to explore only if the real network boundary supports that premise. Anthropic points to checking every route to the internet before running an evaluation and monitoring traffic during the test.

Read the source.