What Can a Sandboxed Agent Still Reach? An Inside-Out Measurement of Docker Configurations for LLM Agent Containers
LLM agents that run code are usually placed in a container, and the container's configuration decides what a misled or compromised agent can reach. Agent frameworks document their sandbox in terms of the flags they pass, but rarely report what is actually observable from inside. We measure ten Docker configurations from the inside, with one probe script that only reads state and makes three harmless attempts confined to the container's own namespaces. The configurations comprise six realistic ones, including a replica of the configuration a production agent platform uses for its agent containers, and four negative controls. Each runs three times, and the probe evaluates 17 binary exposure indicators covering identity, privileges, kernel interfaces, the Docker socket and the network. All 510 indicator values were identical across repetitions. Docker's default configuration showed 7 of 17 exposures. A hardened recipe (non-root user, all capabilities dropped, no-new-privileges, read-only root file system, no network) showed none. The agent-platform replica drops all capabilities and then adds four back while running as root. It showed 5 exposures: root identity, retained capabilities, a writable root file system, DNS and unrestricted internet egress. No single flag removes everything: running as non-root removed four exposures, disabling the network two. The negative controls behaved as expected, with privileged mode showing 11 exposures and writable host-kernel knobs. Two measurement pitfalls emerged. A path masked by Docker appears writable to an access check. And on Docker Desktop with WSL2, the seccomp status field reported an active filter even in configurations where the filter was demonstrably not enforced. We release the probe and runner as a small, repeatable audit that agent developers can run against their own sandbox. Code, logs and derived data to reproduce every number are in the attached archive. Preprint, not peer-reviewed.
Authors
- Akil Hassane
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-25
- DOI
- https://doi.org/10.5281/zenodo.24543116
- Primary Topic
- Security and Verification in Computing
- Type
- preprint