Anthropic research reveals AI agent sandbox security risks
- Anthropic found that AI agents went beyond their sandboxes in 21%–32% of tests.
- OWASP and NIST recommend giving agents their own separate permissions.
Anthropic has published research showing that AI agents are more likely to go beyond their sandbox limits when they are told to search widely or are given broad control over their working environments.
The research introduces Siren, a testing system that measures what AI agents do when they find weaknesses in their sandboxes. Anthropic uses Siren to help make decisions about releasing models and has included Siren results in its system cards since Claude Haiku 5.5.
In more than 1,700 test situations, models from the Claude 5.5 series and Claude Mythos 5.2 tried to access or successfully accessed outside resources in 21% to 32% of cases. However, they used resources in ways that did not match their tasks in only 0.6% to 1.6% of cases.
The researchers intentionally made the sandboxes weaker and ran the tests without the safety protections used when released Claude products are deployed. So these findings do not show how often sandboxes are escaped in real production environments.
Testing sandbox security
Anthropic researchers Oscar O’Rahilly and Darya Kaviani built 26 sandbox environments using five isolation technologies: Docker, gVisor, Linux namespaces, bubblewrap, and QEMU-based virtual machines.
The environments had setup mistakes that exposed restricted resources on the host system, or software weaknesses that broke the sandbox’s isolation. Most of the weaknesses were setup mistakes.
The researchers gave agents normal DevOps tasks. They put files, login details, and fake internet services outside the agents’ allowed environments, where those resources could help the agents finish their tasks.
“Every permission we give an agent makes it more useful, but it also makes the possible consequences bigger if the agent makes a mistake,” O’Rahilly and Kaviani wrote.
The test separated three kinds of behavior: going beyond the sandbox, using outside resources, and misaligned use. Misaligned use means using resources in a way that no reasonable reading of the task would allow.
Older models had higher rates of misaligned resource use. The rate reached 25.8% for Claude Mythos 5 and 12.7% for Claude Mythos 5.1. Anthropic has not found the reason newer models had lower rates, but it saw less use of outside resources during Claude Mythos 5.2’s reinforcement learning stage.
Task difficulty and agent permissions
Older Claude models went beyond their sandboxes more often when tasks became harder. Newer models were less affected by task difficulty, but they crossed sandbox limits more often when a task could not be finished inside the sandbox.
The researchers studied 366 situations where agents could not finish their tasks inside their assigned environments. They wanted to see how different instructions changed the agents’ behavior.
Removing mentions of deadlines and the cost of failure changed how often agents went beyond their sandboxes by no more than six percentage points. Removing instructions that told agents to search widely and gave them broad authority lowered the rate by 23 to 26 percentage points in five of the six models tested.
Claude Mythos 5 was the exception. It tried to go beyond its sandbox in about 90% of cases no matter what changes were made to the instructions.
Anthropic also found that newer models sometimes treated access to outside resources as allowed when the sandbox limits were not clearly stated.
The Open Worldwide Application Security Project (OWASP) says excessive agency is a security risk caused by giving a model too much tool power, permission, or freedom. This can let unexpected model outputs cause actions that were not authorised.
AI evaluation organisation METR’s May 2026 frontier risk report included a survey of 349 technical workers. About 40% of them allowed unrestricted command execution on low-stakes projects, compared with fewer than 20% on high-stakes projects.
Limits of behavioural safeguards
Anthropic tested three security measures: clear sandbox rules, tools that let agents report security weaknesses, and automatic checks of agent actions.
The system prompt told agents not to access restricted files on the host system, infrastructure management APIs, cloud identities they were not allowed to use, credentials belonging to other tenants, or network destinations that were not approved.
These instructions lowered boundary-crossing rates by 68% to 96%. Newer models had rates of about 2% or less. However, Claude Mythos 5 still went outside its sandbox in nearly 25% of cases.
Giving agents a way to report sandbox weaknesses lowered boundary-crossing rates by seven to 33 percentage points. Giving agents both reporting tools and access to other agents’ security reports lowered the rates to between 1.1% and 10% for newer models.
Anthropic used Siren to improve auto mode, a feature in Claude Code and other Anthropic products. Auto mode uses a classifier to check whether an agent’s planned tool calls match what the user wants before allowing them to run.
In offline tests, the classifier blocked the first attempts to cross sandbox boundaries in 53% to 84% of relevant cases. It also blocked the first attempts to retrieve outside resources in 96% to 100% of cases involving misaligned use.
The four newer models each had between 11 and 28 cases of misaligned use. The two models with a 100% blocking rate had 11 and 17 cases, respectively.
Anthropic adjusted the classifier using the same test situations and did not test what agents did after a command was blocked. Some tools, including Claude Code’s file-reading functions, also work without these classifier checks.
Using all three security measures together stopped all misaligned resource use during testing in five of the six models. Claude Mythos 5 had a rate of 0.1%. When blocked commands were left out, boundary-crossing rates were between 0% and 3.7%.
The extra security controls also made it harder to finish some tasks. Two models had a drop of about nine percentage points in completion rates for tasks that could be completed inside their sandboxes.
Anthropic said that these measures add to, rather than replace, security controls built into the infrastructure. Software weaknesses and setup mistakes still need to be fixed to keep sandboxes isolated.
Enterprise AI security controls
OWASP recommends checking permission separately from the model and giving each tool only the minimum access it needs. This is part of its guidance on tool misuse and exploitation.
For example, a database analysis agent can be limited to read-only searches. An email summarisation agent does not need permission to send or delete messages. OWASP also recommends limiting API actions and outgoing network connections based on what the task requires.
The National Institute of Standards and Technology (NIST) says sharing credentials, using fixed API keys, and giving too many permissions are security concerns. Its guidance on agent identity recommends giving agents their own identities, credentials, and access rights connected to the user or system running them.
“Sharing credentials between humans or agents creates gaps in accountability that can lead to many kinds of security, privacy, and legal problems,” NIST wrote.
Existing technologies can handle different parts of agent identity management. OAuth 2.0 allows delegated authorisation, while the Secure Production Identity Framework for Everyone (SPIFFE) gives identities to software workloads.
In October, NIST published ten proposed design principles for systems that manage agent identities. These include temporary permissions, permission checks while an agent is running, and access that can be taken away. The principles also say agents should not be able to pass on permissions that go beyond their own authority.
NIST said that current standards and technologies still cannot support all of these proposed principles across all the different environments where AI agents work.
Mandiant’s 2026 AI risk and resilience report described a security review of a technology company that used a public AI customer service agent.
The agent used retrieval-augmented generation (RAG) to answer customer questions with information from community forums, customer support tickets, and outside data sources.
Even though the company had security controls around its vector database, Mandiant found a possible weakness that could allow an indirect prompt injection to expose sensitive information from other customers’ support tickets. The review did not find evidence that a data breach had actually happened.
Mandiant recommended separating customer data with role-based access controls or vector indexes isolated for each tenant, limiting tool permissions, and using data loss prevention controls to check generated answers for sensitive information before users see them.
