Sandlock: Confining AI Agent Code with Unprivileged Linux Primitives
On the map: LLM agents and tool use → Agent threats, guardrails and governance
Abstract (arXiv)
AI agents increasingly run untrusted code on developer machines: shell commands generated by language models, third-party scripts retrieved at runtime, and tool plugins of unknown provenance. Existing isolation mechanisms impose tradeoffs that fit this workload poorly: containers and microVMs add privilege, image-management, and startup costs, while ad-hoc process controls and wrappers (e.g. chroot, ulimit) provide weak guarantees and little syscall-level control. Sandlock is a lightweight Linux process sandbox organized around a simple split: static, input-independent policy is compiled into kernel-enforced rules, while a narrow supervisor handles runtime-dependent decisions and virtualized effects. This split lets Sandlock enforce filesystem, network, IPC, and syscall policies without root, cgroups, images, or mandatory namespaces. It also supports dynamic network decisions, HTTP-level access control, TOCTOU-safe inspection of execve arguments, and reversible filesystem effects. On our workstation, Sandlock adds roughly 5 ms of startup overhead and runs Redis at bare-metal throughput (within measurement noise); its pipeline operator further supports per-stage confinement for separating data, network, and untrusted-content capabilities. Sandlock is available at https://github.com/multikernel/sandlock
Key facts. Cited by 1 paper in the map (data through 13 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 6 of its 35 references that are in the map. First posted on arXiv 25 May 2026.
Builds on
6 of 35 references.
Closest ancestors · 2
Same direction, newest first
- 2026ACRFence: Preventing Semantic Rollback Attacks in Agent Checkpoint-Restore21 Mar
- 2025Defeating Prompt Injections by Design24 Mar
Other references · 4
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,676
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 977
- 2026AgentCgroup: Understanding and Controlling OS Resources of AI Agentscited by 13
- 2026Fork, Explore, Commit: OS Primitives for Agentic Explorationcited by 5
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2026The Balkanization of Execution-Security Research for AI Coding Agents: Isolation, Access Control, and Time-of-Check-to-Time-of-Use Vulnerabilities
- 2026Evaluating Coding Agents on Kernel Exploit Generation
- 2026PrimSynth: An Agentic Approach to Discover, Validate, and Synthesize Exploit Primitives for Linux Kernel Vulnerabilities
- 2026AgentWall: A Runtime Safety Layer for Local AI Agents
- 2026One Goal, Many Commands: Characterizing Denylist Fragility in AI Agents
- 2025AgentBound: Securing Execution Boundaries of AI Agents
- 2026SideKernel: A Usable microVM Sandbox for AI Coding Agents on macOS
- 2026LinuxArena: A Control Setting for AI Agents in Live Production Software Environments