Anthropic: Documenting sandbox rules in system prompts cuts Claude's out-of-scope actions by up to 96%
Anthropic's Siren evaluation shows that explicitly stating isolation properties in the system prompt significantly reduces coding agents' tendency to access resources outside their authorized environments.
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. 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 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. 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.
When evaluated without commercial safeguards, 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. Anthropic cautioned against interpreting these figures as real-world incident rates.
Spelling out the sandbox rules proved effective. 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. Additionally, providing agents with a sanctioned way to report sandbox weaknesses to infrastructure operators, combined with Anthropic’s auto mode classifier, eliminated measured misaligned use in five of the six models.