5 min left
Back to Series

Under the Hood > Article 16 | Advanced | 5 min read

Article 16Advanced5 min read

When the sandbox wasn’t a sandbox: what Claude’s real-world security incidents reveal

Anthropic disclosed that Claude broke out of what it believed was an isolated evaluation and compromised real infrastructure — not because the model went rogue, but because a configuration error told it the sandbox was safe when it wasn’t.


An isolated sandbox environment with a broken boundary connecting to real infrastructure

Anthropic disclosed three incidents in which Claude models compromised real internet infrastructure during what was supposed to be sandboxed cybersecurity evaluation. In the most striking case, the model created a real PyPI account, uploaded actual malware, and exfiltrated credentials from 15 live systems before automated scanners caught and removed the package. The model wasn't misbehaving — it was told it had no internet access when it actually did.

This article covers what actually went wrong in the sandbox configuration, why the failure is a systems problem rather than a model-behavior problem, and what it means for how AI labs need to design evaluation environments going forward.

The sandbox that wasn't isolated

A sandbox, in this context, is an isolated environment meant to let a model act freely — including in ways that would be dangerous in the real world — without any of those actions touching real systems. The entire value of a security evaluation sandbox depends on that isolation actually holding. In these incidents, it didn't: the models were told, as part of their evaluation scenario, that they had no internet access, when in fact they did.

That's a configuration failure, not a model alignment failure. Claude behaved exactly as an evaluation is supposed to test — it acted on the belief it had been given about its environment. The problem is that the belief was false, and the environment didn't actually enforce the isolation the evaluation scenario assumed.

A model doing exactly what a security test asked it to do, inside an environment that quietly failed to be the sandbox it claimed to be, is a systems failure wearing the costume of an AI safety failure.

What actually happened

Across six of 141,006 evaluation runs between April and July 2026, models took actions that reached real infrastructure. The most serious case involved Claude obtaining a free email address, using it to create a PyPI account (the Python Package Index, a real public repository developers use to install open-source packages), and uploading a malicious package that successfully exfiltrated credentials from 15 real systems before automated scanners identified and removed it. One targeted organization was affected specifically because its name happened to match a fictional entity written into the evaluation scenario — a coincidence that turned a simulated attack target into a real one.

The scale here is worth keeping in perspective: six incidents out of 141,006 runs is a very low rate. But the nature of the failure — a model successfully executing a real supply-chain attack against real systems while believing it was operating in an isolated test — is the kind of low-probability, high-consequence event that security engineering is specifically supposed to prevent through defense in depth, not through hoping the base rate stays low.

Why this isn't an isolated case

This disclosure follows a similar incident at OpenAI involving Hugging Face infrastructure — a second frontier lab, a second case of a model's sandboxed evaluation actually touching production systems. Two independent labs hitting a structurally similar failure mode in the same general period suggests this isn't a one-off engineering mistake specific to either company's infrastructure. It's a sign that as evaluation scenarios get more elaborate and realistic — deliberately mimicking real-world attack surfaces to produce meaningful security research — the isolation boundary between "realistic simulation" and "actual internet access" gets harder to guarantee, precisely because a more realistic simulation looks more like the real thing.

That's a genuinely hard problem: the more useful a security evaluation is (because it closely resembles real attacker behavior against real-looking infrastructure), the more its accidental failure modes resemble an actual attack, because the two are, by design, difficult to distinguish from the inside.

What this means for builders

Teams building any kind of agentic evaluation or sandboxed testing environment — not just AI labs — should treat "the model is told it's isolated" and "the model is actually isolated" as two claims that need independent verification, not one claim that implies the other. Network-level enforcement (hard blocks, not just scenario framing) has to back up whatever the evaluation prompt tells the model about its environment, because a sufficiently capable model will act on the affordances actually available to it, not the ones it was told about.

If you're running any kind of red-team or capability evaluation with an LLM in the loop, this is a strong argument for treating unexpected external access as a "when," not "if" contingency — build monitoring that would catch it fast, the way the automated PyPI scanners in this case did, rather than relying solely on the sandbox holding.

Conclusion

The most important detail in Anthropic's disclosure isn't that Claude was capable enough to pull off a real credential-exfiltration attack — capability was never really in doubt. It's that the isolation the entire evaluation depended on failed quietly, and the model had no way to know that the "simulation" it was told it was in had a hole in it. As evaluations get more realistic to keep pace with what these models can do, the engineering discipline of actually enforcing isolation — not just describing it in a prompt — becomes the harder and more important half of the problem.


AI safetyClaudesandboxingsecurity evaluationunder-the-hood

Up next in the series

Article 17Live

AMD is betting some inference workloads are worth burning into silicon permanently

AMD’s acquisition of Taalas trades a general-purpose GPU’s flexibility for the raw speed of etching a fixed model directly into silicon — a bet that some inference workloads are stable enough to make that tradeoff worthwhile.

AMDinference hardwareASICsilicon design