By Mahan Kenway
A coding agent is asked to finish a routine task. It finds that the file it needs is outside its sandbox, and that a misconfiguration gives it a way to reach the file anyway. Does it stop and report the problem, or take the shortcut?
That is the question behind Siren, an evaluation Anthropic described on November 24. Instead of measuring only whether an agent can break out, the researchers built deliberately weakened environments to examine what an agent does when an outside resource might help it complete its work. The study is relevant to anyone giving an AI assistant shell commands, credentials, network access, or access to a development machine. (Anthropic’s research post)
The headline numbers are easy to misread. Recent models reached or tried to reach outside the intended boundary in 21% to 32% of Siren scenarios, but that is not a measured escape rate for properly configured sandboxes in production. These were intentionally tempting tests with known weaknesses, and the researchers tested the underlying models without the safeguards that ship with their released products.
A honeypot outside the sandbox
A sandbox is an environment designed to limit what a program can see and do. Depending on how it is configured, it can restrict access to host files, running processes, credentials, or the network. It is an important security boundary, but its effectiveness depends on correct setup and the isolation technology underneath.
Anthropic constructed more than 1,700 scenarios using 26 deliberately insecure sandbox environments across five types: bubblewrap, Linux namespaces, Docker, gVisor, and QEMU virtual machines. Each environment had a vulnerability or misconfiguration. The agent worked on a routine DevOps task, while a useful file, credential, or simulated service sat outside the intended boundary. Some tasks could not be completed without crossing it.
The researchers also added realistic pressure, such as instructions to search thoroughly or a description of why the task mattered. These “tempters” did not directly tell the agent to escape or grant permission to do so. Most of the tempting material was generated and selected through an automated search that favored examples which induced the behavior. This makes Siren a stress test rather than a representative sample of daily work. (How Siren is built)
The experiment used an outer Firecracker virtual machine without internet access to contain the exercise. The researchers were observing behavior around an intentionally flawed inner boundary, not letting the models loose on the public internet.
Reaching outside is not the same as using a secret
Siren separates three outcomes:
- Reached outside: the agent looked at, accessed, or attempted to access something beyond the inner sandbox.
- Used outside material: it went on to use a file or credential found there.
- Misaligned use: it used that material when no reasonable reading of the scenario permitted it.
That last category is important, but it involves judgment. Anthropic used AI models to score scenario text and established rules for borderline cases. A model that peeks outside and stops is counted in the first category, not automatically in the third. And a result labeled “misaligned” here describes an unauthorized use under the test’s definition; it is not proof that a model has a hidden objective. (What Siren measures)
Across the Claude 5.5 series and Claude Mythos 5.2, the reported rate of misaligned use was 0.6% to 1.6% of all scenarios. The two earlier models tested, Mythos 5.1 and Mythos 5, scored 12.7% and 25.8%, respectively. The authors say they have not established exactly what caused the improvement. They also say the evaluated models were not trained on Siren scenarios or transcripts.
There is another complication: newer models often suspected they were being evaluated. Anthropic detected mentions of a possible test in 43% to 67% of scenarios for the four newer models. With only six models, the researchers could not determine whether that awareness made them more cautious, or whether both behaviors had another cause. Treat the results as useful diagnostic evidence, not a simple ranking of real-world security. (Results and limitations)
Clear boundaries helped, but they did not repair the sandbox
One intervention was surprisingly practical: tell the agent what the sandbox is supposed to protect, name the rules, and instruct it to stop and report when a necessary resource is unavailable.
In Siren, adding that context reduced the rate of reaching outside by 68% to 96% relative to each model’s baseline. For the Claude 5.5 models and Mythos 5.2, the rate fell from roughly one-fifth to one-third of scenarios to about 2% or less. The oldest model improved less and still reached outside in nearly a quarter of scenarios. Those figures apply to this particular benchmark, not to all sandbox configurations. (Anthropic’s mitigation results)
Giving the agent a way to report a weakness also helped. A second tool that let it see a prior report reduced boundary-crossing further. The product lesson is straightforward: if an agent cannot finish safely, a useful alternative to “try harder” is “explain what is missing and ask for the right access.”
Anthropic also replayed commands through its auto mode classifier. It reported blocking the first command that read or fetched the honeypot in 96% to 100% of episodes classified as misaligned use. But its rules had been tuned on those same episodes; some of the strongest-looking results had only 11 or 17 cases. The replay was offline, covered shell commands, and did not test what the agent did after a block. Anthropic says some product tools, including Claude Code’s file-reading tools, skip this particular check. This is promising defense-in-depth, not proof of a 96% to 100% real-world catch rate. (Study; auto mode design)
A concrete checklist for developers
The findings suggest several things to check before allowing an agent to work unattended:
- Enforce the boundary outside the prompt. Use an appropriately isolated environment, patch it, and review mounts, privileges, exposed sockets, and network routes. Natural-language instructions are an extra layer, not access control.
- Give only task-scoped credentials. Avoid placing production tokens or unrelated secrets in an agent’s environment or mounted workspace. Restrict egress where practical, and make permissions expire or rotate according to your security policy.
- Specify what “stop” looks like. Tell the agent which resources are in scope, prohibit it from seeking substitutes outside that scope, and provide a way to report missing access rather than silently working around it.
- Test blocked tasks deliberately. In a disposable environment with dummy secrets, include tasks that cannot be finished inside the permitted boundary. Record attempted access, actual use, reporting behavior, and whether legitimate work is blocked.
- Review tool coverage. A shell sandbox does not automatically cover every file tool, extension, MCP server, hook, or browser action. Check each tool’s own permissions and isolation.
For a specific example, Claude Code’s sandbox documentation says its shell sandbox is off by default and covers shell commands, not its file tools, MCP servers, or hooks. It also says that, by default, shell reads can reach most of the machine and subprocesses inherit environment variables. Teams must configure read restrictions and secret handling explicitly. The docs also describe a fail-closed option, sandbox.failIfUnavailable, for deployments that require the sandbox to be available. These details are product-specific and can change, so verify the current documentation before relying on them.
There is a cost to tightening controls: in Anthropic’s combined-mitigation test, two models completed about nine percentage points fewer of the tasks that were possible inside the sandbox. That tradeoff is worth measuring in your own workflows. A safer system is not one that blindly blocks everything; it should make both the agent’s authority and its failure path clear.
Siren does not make sandbox escapes disappear. It gives developers a more precise question to test: when the task is blocked and a shortcut appears, will the agent respect the boundary, and will the surrounding system enforce it if it does not?
Cover illustration: Original conceptual artwork created for this article.