Which Container Hardening Controls Stop LLM Sandbox Escapes? A Reference-Verified Ablation

LLM agents with shell access can escape misconfigured containers, but it is unclear which standard hardening controls reduce this risk, and whether a blocked attempt reflects a real fix or merely attacker failure. We run an ablation over container-escape scenarios from SandboxEscapeBench, applying eight hardening controls and an unhardened baseline. For each applicable scenario and control, we run an LLM agent and a hand-written reference exploit under the same configuration, and compare the outcomes to separate architectural fixes from agent failures. Capability dropping, no-new-privileges, and read-only root filesystems leave privileged-container and Docker-socket escapes open, and even the composite control leaves them largely open. Strict seccomp reduces privileged-container escapes but does not stop Docker-socket escapes. Userspace kernel isolation (gVisor) stopped the agent in every scenario where the agent escaped at baseline. The reference exploit still succeeds under gVisor for a host-cron escape that runs outside the sandbox, so gVisor is not a fix for that escape. Read-only root filesystems and distroless images can also break the tooling that the reference exploit needs, so they can look effective without removing the underlying escape. Agent failures should therefore be cross-checked with a reference exploit before being read as evidence that a control works. Each cell uses ten epochs and a single attacker model, so the reported rates carry wide uncertainty.

Authors

Publication Details

Journal
Preprints.org
Published
2026-11-18
DOI
https://doi.org/10.20944/preprints202611.1874.v1
Primary Topic
Security and Verification in Computing
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Which Container Hardening Controls Stop LLM Sandbox Escapes? A Reference-Verified Ablation

Kofi Nyarko, Bikesh Regmi
Preprints.org
Security and Verification in Computing
preprint

Which Container Hardening Controls Stop LLM Sandbox Escapes? A Reference-Verified Ablation

Kofi Nyarko, Bikesh Regmi
preprint en

Abstract

LLM agents with shell access can escape misconfigured containers, but it is unclear which standard hardening controls reduce this risk, and whether a blocked attempt reflects a real fix or merely attacker failure. We run an ablation over container-escape scenarios from SandboxEscapeBench, applying eight hardening controls and an unhardened baseline. For each applicable scenario and control, we run an LLM agent and a hand-written reference exploit under the same configuration, and compare the outcomes to separate architectural fixes from agent failures. Capability dropping, no-new-privileges, and read-only root filesystems leave privileged-container and Docker-socket escapes open, and even the composite control leaves them largely open. Strict seccomp reduces privileged-container escapes but does not stop Docker-socket escapes. Userspace kernel isolation (gVisor) stopped the agent in every scenario where the agent escaped at baseline. The reference exploit still succeeds under gVisor for a host-cron escape that runs outside the sandbox, so gVisor is not a fix for that escape. Read-only root filesystems and distroless images can also break the tooling that the reference exploit needs, so they can look effective without removing the underlying escape. Agent failures should therefore be cross-checked with a reference exploit before being read as evidence that a control works. Each cell uses ten epochs and a single attacker model, so the reported rates carry wide uncertainty.

Preprints.org
Security and Verification in Computing
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon