cd /news/ai-agents/sandlock-confining-ai-agent-code-wit… · home › topics › ai-agents › article
[ARTICLE · art-169953] src=arxiv.org ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Sandlock: Confining AI Agent Code with Unprivileged Linux Primitives

A paper submitted to arXiv on 25 May 2026 introduces Sandlock, a lightweight Linux process sandbox for confining untrusted code run by AI agents, which adds roughly 5 ms of startup overhead and runs Redis at bare-metal throughput (within measurement noise). Sandlock compiles static, input-independent policy into kernel-enforced rules while a narrow supervisor handles runtime-dependent decisions, enforcing filesystem, network, IPC and syscall policies without root, cgroups, images or mandatory namespaces. The authors report dynamic network decisions, HTTP-level access control, TOCTOU-safe inspection of execve arguments, reversible filesystem effects and per-stage confinement via a pipeline operator, with code available at github.com/multikernel/sandlock.

read2 min views3 publishedNov 15, 2026
Sandlock: Confining AI Agent Code with Unprivileged Linux Primitives
Image: source
  [Submitted on 25 May 2026]


[View PDF](https://arxiv.org/pdf/2605.26298)

[HTML (experimental)](https://arxiv.org/html/2605.26298v1)

Abstract: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 this https URL

Additional Features

References & Citations

...

Bibliographic Explorer

(What is the Explorer?) Connected Papers

(What is Connected Papers?) Litmaps

(What is Litmaps?) scite Smart Citations

(What are Smart Citations?) alphaXiv

(What is alphaXiv?) CatalyzeX Code Finder for Papers

(What is CatalyzeX?) DagsHub

(What is DagsHub?) Gotit.pub

(What is GotitPub?) Hugging Face

(What is Huggingface?) ScienceCast

(What is ScienceCast?) Influence Flower

(What are Influence Flowers?) CORE Recommender

(What is CORE?) arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

── more in #ai-agents 4 stories · sorted by recency
── more on @sandlock 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/sandlock-confining-a…] indexed:0 read:2min 2026-11-15 · —