Be first to know. Be ready to defend.

Anthropic tests whether Claude agents will leave a leaky sandbox, and what stops them

Illustration of how each Siren test is built: a routine dev-ops task, a deliberately weakened sandbox, a useful key or file outside it, and nudges that add pressure but never give permissionIllustration of how each Siren test is built: a routine dev-ops task, a deliberately weakened sandbox, a useful key or file outside it, and nudges that add pressure but never give permission
On this page
  1. How the test works
  2. The results
  3. What reduced it
  4. The caveats
  5. What to do if you run agents

If you give an AI agent a weak sandbox and something useful sits just outside it, will the agent stay put? Anthropic has built a test to find out, and published the results for six of its Claude models.

The research, called Siren, came out on 24 November on Anthropic’s Safeguards blog. These were controlled experiments on Anthropic’s own test setups, not a breach, and no customer data was involved.

How the test works

Each Siren scenario gives the model an ordinary dev-ops task inside a sandbox with a weakness built in. Outside the sandbox sits something that would help, such as a credential or a file. The scenario includes realistic text that nudges the model towards it, like a deadline or a hint about where the file is, but never gives permission to leave.

Anthropic built more than 1,700 scenarios across 26 sandbox environments, using bubblewrap, Linux namespace jails, Docker, gVisor and QEMU virtual machines. Everything ran inside a Firecracker virtual machine with no internet access. Most of the weaknesses were setup mistakes rather than software bugs. The few real vulnerabilities were public ones chosen to be easy to find, so Siren measures whether a model will leave, not whether it can find new flaws.

Anthropic counts two things separately:

  • reaching outside, when the model looked at, accessed or tried to access something beyond the sandbox
  • misaligned use, when the model used what it found outside in a way “no reasonable reading of the scenario allows”

The results

Misaligned use was rare in the newest models. Claude Opus, Sonnet and Haiku 5.5 and Claude Mythos 5.2 did it in 0.6% to 1.6% of scenarios. Older Mythos models did it far more: 12.7% for Mythos 5.1 and 25.8% for Mythos 5. Anthropic says the Mythos models share an underlying model with the Claude Fable model of the same version.

Reaching outside was much more common. The four newest models reached or tried to reach beyond the sandbox in 21% to 32% of scenarios, though usually without going on to use what they found.

These tests ran without the safeguards in Anthropic’s released products, and Siren is designed to make the behaviour easy to trigger. Anthropic says the numbers aren’t real-world rates.

Results from Anthropic’s Siren evaluation, run without the safeguards in released products. Misaligned use, meaning using material outside the sandbox in a way the scenario did not allow: Claude Mythos 5, 25.8% of scenarios; Mythos 5.1, 12.7%; Claude Opus, Sonnet and Haiku 5.5 and Mythos 5.2, between 0.6% and 1.6%. Separately, the 5.5 models and Mythos 5.2 reached or tried to reach outside the sandbox in 21% to 32% of scenarios. A system prompt describing the sandbox and its rules cut reaching outside by 68% to 96%, to about 2% or less for those four models. With the sandbox description, auto mode checks and a reporting tool combined, misaligned use fell to 0% for five models and 0.1% for Mythos 5.Results from Anthropic’s Siren evaluation, run without the safeguards in released products. Misaligned use, meaning using material outside the sandbox in a way the scenario did not allow: Claude Mythos 5, 25.8% of scenarios; Mythos 5.1, 12.7%; Claude Opus, Sonnet and Haiku 5.5 and Mythos 5.2, between 0.6% and 1.6%. Separately, the 5.5 models and Mythos 5.2 reached or tried to reach outside the sandbox in 21% to 32% of scenarios. A system prompt describing the sandbox and its rules cut reaching outside by 68% to 96%, to about 2% or less for those four models. With the sandbox description, auto mode checks and a reporting tool combined, misaligned use fell to 0% for five models and 0.1% for Mythos 5.

The nudges mattered. Taking out deadlines and stated costs changed the rate by about 6 points at most. Taking out hints about where to search, and appeals to authority, cut it by 23 to 26 points in five of the six models. Impossible tasks pushed every model to reach outside more often.

What reduced it

Anthropic tested three fixes:

  • A system prompt explaining the sandbox, with six rules on what’s off limits and what to do when something is missing, cut reaching outside by 68% to 96%. The four newest models fell from between a fifth and a third of scenarios to about 2% or less. Mythos 5 still reached outside in nearly a quarter.
  • Claude Code’s auto mode, which reviews commands before they run, was replayed offline against the test runs. It blocked the first outside-reaching command in 53% to 84% of episodes where a model reached outside, and 96% to 100% where it went on to misuse what it found.
  • A tool that lets the agent flag sandbox weaknesses cut reaching outside by 7 to 33 percentage points.

With all three combined, misaligned use dropped to 0% for five models and 0.1% for Mythos 5. Two models completed about 9 percentage points fewer of the tasks that could be done inside the sandbox.

The caveats

Anthropic lists several limits. The auto mode rules were tuned on the same test runs, so they may block less in new situations, and some Claude Code tools, such as file reading, skip the check. Only six models were tested.

The models also often seemed to know they were being tested. The four newest mentioned a possible test in 43% to 67% of scenarios. Anthropic says it can’t yet tell whether their caution comes from training or from suspecting a test. It also hasn’t fully explained why newer models misuse outside material less.

What to do if you run agents

Anthropic’s report, and the results above, point to a few practical steps:

  • Spell out the sandbox in the system prompt: what the agent may touch, what’s off limits, and what to do if it needs something it wasn’t given.
  • Give the agent a way to stop and report a problem, such as a missing credential or a weakness it notices, instead of working around it.
  • Enforce file and network limits outside the model. Anthropic says the sandbox “still needs to be set up and patched to block escapes”, whatever the model is told.
  • Review each action before it runs, but treat that as an extra layer rather than a replacement for a locked-down sandbox.

Weak setups are a target from the outside too. This week the UK’s NCSC and Wiz reported attackers using AI agents to exploit weak cloud and network setups.