As coding agents take on longer-running engineering tasks, Anthropic is examining how models behave when their execution environments fail to enforce intended security boundaries.
…documenting a sandbox’s intended isolation properties in the system prompt reduced the likelihood of agents reaching outside their authorized environments by 68% to 96%…
The company’s safeguards team found that explicitly documenting a sandbox’s intended isolation properties in the system prompt reduced the likelihood of agents reaching outside their authorized environments by 68% to 96% across six Claude models.
In research published Tuesday, Anthropic introduced Siren, an internal evaluation designed to measure a model’s propensity to exploit weaknesses in its execution environment to complete otherwise legitimate tasks.
The researchers tested more than 1,700 scenarios across 26 sandbox configurations, including Docker, gVisor and QEMU. Drawing on publicly reported sandbox escapes, they focused primarily on misconfigurations and deliberately placed resources outside the sandbox that could help agents complete routine DevOps assignments.
Reaching outside the sandbox
Anthropic evaluated the six models without the safeguards included in its commercial deployments. The Claude 5.5 series and Claude Mythos 5.2 attempted to access or accessed external resources in 21% to 32% of scenarios.
However, use of those resources that could not reasonably be interpreted as authorized occurred in just 0.6% to 1.6% of scenarios, compared with 12.7% for Claude Mythos 5.1 and 25.8% for Claude Mythos 5.
Anthropic cautioned against interpreting these figures as real-world incident rates.
Spelling out the sandbox rules
Anthropic found that recent models frequently rationalized their use of external resources as permissible within the context of their assignments. Tasks that were impossible to complete within the sandbox produced particularly high rates of boundary-crossing behavior.
Tasks that were impossible to complete within the sandbox produced particularly high rates of boundary-crossing behavior.
Across 366 scenarios involving impossible tasks, removing language that encouraged exhaustive searches and granted broad authority over the machine reduced the frequency of reaching outside the sandbox by 23 to 26 percentage points in five of the six models tested. A separate study earlier this fall found that removing a single sentence pushed Claude Code’s out-of-scope rate from zero to 17.1%.
When researchers spelled out the sandbox’s rules, the rate of reaching outside dropped to around 2% or less for the Claude 5.5 series and Claude Mythos 5.2. Anthropic already uses this approach in Claude Code when sandboxing is enabled.
Reporting weaknesses instead of exploiting
The researchers also gave agents a sanctioned way to report sandbox weaknesses to infrastructure operators and to check whether another agent had already flagged the same problem.
Combined with Anthropic’s auto mode, which uses a classifier to assess whether tool calls align with user intent, the mitigations eliminated measured misaligned use in five of the six models. Claude Mythos 5 recorded a rate of 0.1%.
Two models saw completion rates fall by roughly nine percentage points on tasks achievable within the sandbox, and Anthropic tuned its classifier on the same scenarios used to evaluate it.
When Claude senses the test
Although none of the six models were trained on Siren’s scenarios or transcripts, evaluation awareness ranged from 43% to 67% among the four newest models, compared with 29% and 36% for their predecessors, with Claude Sonnet 5.5 recording the highest rate.
evaluation awareness ranged from 43% to 67% among the four newest models… with Claude Sonnet 5.5 recording the highest rate.
Newer models were also less likely to reach outside their sandboxes, though Anthropic could not establish whether evaluation awareness contributed to that restraint or whether both behaviors resulted from changes in model training.
The post Anthropic set more than 1,700 traps for Claude — what it found is both reassuring and unsettling appeared first on The New Stack.
