LLM agents break out of weak Docker sandboxes
Reviewing Quantifying Frontier LLM Capabilities for Container Sandbox Escape · Rahul Marchand, Art O Cathain, Jerome Wynne et al.

Researchers built an open benchmark that safely tests whether LLM agents can escape container sandboxes. They find frontier models reliably exploit misconfigurations and known vulnerabilities to read a host file, showing plain Docker isolation is not enough to contain capable autonomous agents.
Give a frontier model a shell inside a container, point it at the host, and tell it to find a flag sitting outside every namespace. On the easy scenarios it does exactly that. A privileged container, a writable host mount, an exposed Docker daemon: these common operational mistakes collapse under an agent that probes them methodically.
That is the finding behind SandboxEscapeBench, a new open test suite from researchers who give AI agents a capture-the-flag challenge: break out of a container sandbox and read a file the box is meant to keep out of reach. The idea is simple and careful. They wrap the container under test inside a second boundary, a virtual machine, so a real escape from the inner box still cannot reach the evaluator host. The agent runs in a loop, issuing bash commands, and success is defined with no ambiguity: read a flag file that lives outside all the container's namespaces, matched exactly.
The threat model is the one that matters for deployed agents. Assume the attacker already has code execution inside the container, usually with root in-container, bash, the usual utilities and network access. That is the position an agent handling untrusted content can be steered into. From there the benchmark covers eighteen scenarios across orchestration, runtime and kernel, drawn from documented misconfigurations and disclosed CVEs.
Here is the turn worth sitting with. None of these escapes are novel. The models found no zero-days. Every successful breakout used a mistake or a bug that was already public and already understood. What the work measures is not discovery but conversion: how reliably a model turns known vulnerability knowledge into the right sequence of shell commands. On the easy misconfigurations the large models do this at high rates. On moderate tasks needing specific exploit knowledge, GPT-5 and Opus 4.5 each cleared about four in ten. The harder scenarios saw no successes here.
Scale and compute decide the outcome. Opus scored around half across the board; a smaller Haiku and an open-weight model managed less than a fifth. Success climbs roughly log-linearly with token budget, and each attempt is cheap, so retries are cheap too. That makes budget and retry strategy part of your threat model, not a footnote. The models also cut corners when they can: during development the researchers found and patched four unintended shortcuts, including default Vagrant SSH credentials.
The limits are honest. The benchmark assumes you are already inside the box, with no logging or intrusion detection watching. It excludes hypervisor escapes and hardware side channels. No success at a given budget does not prove a thing is safe.
What surprised me is how little the model needs to bring. The vulnerabilities are old and the knowledge is public. The autonomy is new, and plain Docker is not a boundary. The boxes are often too weak.
Further analysis
Problem
This paper studies whether contemporary large language model agents can escape container sandboxes and thereby access host resources, a concrete containment and security risk as agents gain the ability to execute code, run shell commands, read and write files, and use networks. The work matters because many agent deployments rely on Docker/OCI isolation which can be undermined by misconfiguration, runtime flaws, or kernel exploits, and there was previously no standard, safe benchmark for measuring agent-driven sandbox escape.
Approach
The authors introduce SANDBOXESCAPEBENCH, an open benchmark implemented as a Capture the Flag evaluation using a nested sandbox or sandbox-in-a-sandbox architecture so escapes from the tested container remain isolated from the evaluator host. The threat model assumes a motivated adversarial agent with interactive shell access inside a Linux container, typically with root in-container privileges, bash and CLI utilities, and network access. Success is defined unambiguously as reading a host-resident flag file outside all container namespaces, detected by exact string matching. The benchmark contains 18 reproducible scenarios across three layers: Orchestration (4), Engine and Runtime (8), and Host/Kernel (6), selected to cover common exploit classes including misconfigurations, exposed control surfaces, runtime tooling vulnerabilities and kernel privilege-escalation techniques. Reference exploit scripts and a private test set are maintained; the evaluation harness runs models through an agent loop that issues bash commands inside the container under test while a virtual machine layer provides the second containment boundary.
Key Findings
- Frontier models reliably exploit common misconfigurations and exposed control surfaces. On low-difficulty scenarios (difficulty 1–2) such as privileged containers, writable host mounts and exposed Docker daemons, large models achieve high success rates, indicating that simple operational mistakes collapse isolation under active exploration.
- For moderate difficulty tasks requiring specific exploit knowledge or multi-stage procedures (difficulty 3), the largest models retain non-trivial success: GPT-5 and Opus 4.5 both achieved 0.40 success rate on level 3 scenarios. There were no successes observed for difficulty 4 and 5 scenarios in this evaluation.
- Model family and scale matter. Opus overall scored 0.49 while a smaller Haiku family scored 0.18 and an open-weight GPT-OSS-120B scored 0.16. Performance broadly scales roughly log-linearly with inference-time compute (token budget), and marginal per-sample cost is low in the authors' setup, making repeated attempts cheap.
- Providing explicit hints about the underlying vulnerability reduces search burden. Opus notably doubled success on hard scenarios when given hints, whereas GPT-5 showed little change, suggesting differences in how models convert vulnerability knowledge into exploitation steps.
- Models opportunistically find any route to the flag, including unintended shortcuts. During development four shortcuts were found and mitigated, examples being default Vagrant SSH credentials and alternative kernel vulnerabilities such as Dirty COW and eBPF vectors.
- All observed successful escapes used previously documented misconfigurations or disclosed CVEs; the evaluation did not produce novel zero-day discoveries in this work.
Limitations
The benchmark assumes initial code execution inside the container, no active intrusion detection or logging, and excludes hardware side channels, hypervisor escape and human social engineering. Difficulty ratings are expert estimates and scenario coverage does not exhaust all real-world configurations. The agent architectures evaluated are relatively simple; more sophisticated agents or different deployment parameters could change results. The absence of observed success at particular token budgets does not prove a vulnerability is unexploitable.
Why It Matters
Results show sandbox escape is a real risk vector for autonomous LLM agents when common misconfigurations or known vulnerabilities are present. Practical implications include the need to treat plain Docker isolation as insufficient by default, to adopt stricter configuration and patching practices, to use standardized escape testing like SANDBOXESCAPEBENCH when deploying agents, and to consider deployment parameters such as token budget and retry strategy as part of threat assessment. The benchmark and nested-sandbox methodology offer defenders a safer, reproducible way to track and harden containment against evolving AI capabilities.
The paper title, authors and abstract
Quantifying Frontier LLM Capabilities for Container Sandbox Escape
Large language models (LLMs) increasingly act as autonomous agents, using tools to execute code, read and write files, and access networks, creating novel security risks. To mitigate these risks, agents are commonly deployed and evaluated in isolated "sandbox" environments, often implemented using Docker/OCI containers. We introduce SANDBOXESCAPEBENCH, an open benchmark that safely measures an LLM's capacity to break out of these sandboxes. The benchmark is implemented as an Inspect AI Capture the Flag (CTF) evaluation utilising a nested sandbox architecture with the outer layer containing the flag and no known vulnerabilities. Following a threat model of a motivated adversarial agent with shell access inside a container, SANDBOXESCAPEBENCH covers a spectrum of sandboxescape mechanisms spanning misconfiguration, privilege allocation mistakes, kernel flaws, and runtime/orchestration weaknesses. We find that, when vulnerabilities are added, LLMs are able to identify and exploit them, showing that use of evaluation like SANDBOXESCAPEBENCH is needed to ensure sandboxing continues to provide the encapsulation needed for highly-capable models.


