2026-11-26 15:40 UTC

Sandlock proposes unprivileged Linux process sandboxing for AI-agent code

state: seedheat: mediumuncertainty: mediumrelevance: highagent-sandboxing linux-security ai-deploymentCong WangYusheng Zheng

What is this?

Cong Wang and Yusheng Zheng describe Sandlock in an arXiv preprint submitted May 25, 2026, as a Linux process sandbox for confining untrusted code, including code run by AI agents. It compiles static policies into kernel-enforced rules and uses a narrow supervisor for runtime decisions and virtualized effects. The authors say it can enforce filesystem, network, IPC, and syscall policies without root or requiring containers, cgroups, images, or namespaces. The paper reports roughly 5 ms startup overhead and Redis performance within measurement noise of bare metal on the authors’ workstation. These are author-reported results; the supplied evidence does not include independent security evaluations or adoption data.

Why it matters

Agent-generated commands, retrieved scripts, and plugins can act on a developer’s machine, so practical confinement is a key deployment problem. Sandlock’s proposed process-level approach could make tighter controls easier to apply per tool call without the setup and overhead associated with containers or VMs. If its security claims hold up, it could broaden access to sandboxing in ordinary Linux environments; the evidence here establishes a paper and its authors’ reported prototype results, not independent validation.

Current assessment

Newly surfaced evidence concerns Sandlock, a research system by Cong Wang and Yusheng Zheng, described in arXiv:2605.26298 (v1 submitted May 25, 2026). Its central design separates input-independent policy enforced by the kernel from runtime-dependent decisions and virtualized effects handled by a narrow supervisor. The abstract says it supports filesystem, network, IPC, and syscall policies, including dynamic network decisions, HTTP-level access control, TOCTOU-safe inspection of execve arguments, and reversible filesystem effects. The authors report about 5 ms of startup overhead and Redis throughput within measurement noise of bare metal on their workstation; treat these as paper claims, not independently confirmed benchmarks. The paper says Sandlock is available through a linked project repository, but the supplied evidence does not verify its maturity, maintenance, real-world deployment, or security against adversarial workloads. A search result from Multikernel Technologies describes related unprivileged Linux primitives and optional user namespaces, but the provided evidence does not establish the relationship between that organization and the paper’s authors. Useful follow-up: inspect the implementation and threat model, test compatibility across Linux versions and configurations, and seek independent security review and deployment evidence. The potential significance is lower-friction isolation for agent tool execution; actual security and operational advantages remain uncertain.

Measured heat

now 0 pts/hpeak 1 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 4465h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

05-24 14:00⭐ origin echo-reconstructedThe paper describes Sandlock, which combines kernel-enforced static policy with a supervisor for runtime decisions and virtualized effects;
Cong Wang and Yusheng Zheng on paper (echo) · attributed from hn.story.50506416
—
11-15 12:23first on hacker news · published · +4198.4hSandlock: Confining AI Agent Code with Unprivileged Linux Primitives
equinumerous
—
11-15 12:23amplified on hacker news 👑hn.story.50506416
equinumerous
peak 2 · 0 comments · 103% of case engagement
11-15 14:20our radar first saw it · +4200.4hdiscovery anchor: hn.story.50506416—

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnSandlock: Confining AI Agent Code with Unprivileged Linux Primitives
Retrieved article excerpt

Open article · Retrieved 2026-11-15T14:22:16.714236+00:00

# Computer Science > Cryptography and Security

**arXiv:2605.26298** (cs)

[Submitted on 25 May 2026]

# Title:Sandlock: Confining AI Agent Code with Unprivileged Linux Primitives

Authors:[Cong Wang](https://arxiv.org/search/cs?searchtype=author&query=Wang,+C), [Yusheng Zheng](https://arxiv.org/search/cs?searchtype=author&query=Zheng,+Y)

View a PDF of the paper titled Sandlock: Confining AI Agent Code with Unprivileged Linux Primitives, by Cong Wang and 1 other authors

[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](https://github.com/multikernel/sandlock)

|  |  |
| --- | --- |
| Subjects: | Cryptography and Security (cs.CR); Operating Systems (cs.OS) |
| Cite as: | [arXiv:2605.26298](https://arxiv.org/abs/2605.26298) [cs.CR] |
|  | (or  [arXiv:2605.26298v1](https://arxiv.org/abs/2605.26298v1) [cs.CR] for this version) |
|  | <https://doi.org/10.48550/arXiv.2605.26298> Focus to learn more  arXiv-issued DOI via DataCite |

## Submission history

From: Yusheng Zheng [[view email](https://arxiv.org/show-email/4135baaf/2605.26298)]   
 **[v1]**
Mon, 25 May 2026 19:51:30 UTC (83 KB)

Full-text links:

## Access Paper:

View a PDF of the paper titled Sandlock: Confining AI Agent Code with Unprivileged Linux Primitives, by Cong Wang and 1 other authors

- [View PDF](https://arxiv.org/pdf/2605.26298)
- [HTML (experimental)](https://arxiv.org/html/2605.26298v1)
- [TeX Source](https://arxiv.org/src/2605.26298)

[license icon](http://creativecommons.org/licenses/by/4.0/ "Rights to this article")

### Additional Features

- [Audio Summary](https://arxiv.org/audio/2605.26298)

### Current browse context:

cs.CR

[< prev](https://arxiv.org/prevnext?id=2605.26298&function=prev&context=cs.CR "previous in cs.CR (accesskey p)")
  |   
[next >](https://arxiv.org/prevnext?id=2605.26298&function=next&context=cs.CR "next in cs.CR (accesskey n)")

[new](https://arxiv.org/list/cs.CR/new)
 | 
[recent](https://arxiv.org/list/cs.CR/recent)
 | [2026-05](https://arxiv.org/list/cs.CR/2026-05)

Change to browse by:

[cs](https://arxiv.org/abs/2605.26298?context=cs)  
[cs.OS](https://arxiv.org/abs/2605.26298?context=cs.OS)

### References & Citations

- [SciX](https://scixplorer.org/abs/arXiv:2605.26298)
- [Google Scholar](https://scholar.google.com/scholar_lookup?arxiv_id=2605.26298)
- [Semantic Scholar](https://api.semanticscholar.org/arXiv:2605.26298)

export BibTeX citation
Loading...

## BibTeX formatted citation

×

loading...

Data provided by:

### Bookmark

[BibSonomy](http://www.bibsonomy.org/BibtexHandler?requTask=upload&url=https://arxiv.org/abs/2605.26298&description=Sandlock: Confining AI Agent Code with Unprivileged Linux Primitives "Bookmark on BibSonomy")
[Reddit](https://reddit.com/submit?url=https://arxiv.org/abs/2605.26298&title=Sandlock: Confining AI Agent Code with Unprivileged Linux Primitives "Bookmark on Reddit")



Bibliographic Tools

# Bibliographic and Citation Tools

Bibliographic Explorer Toggle

Bibliographic Explorer *([What is the Explorer?](https://info.arxiv.org/labs/showcase.html#arxiv-bibliographic-explorer))*

Connected Papers Toggle

Connected Papers *([What is Connected Papers?](https://www.connectedpapers.com/about))*

Litmaps Toggle

Litmaps *([What is Litmaps?](https://www.litmaps.co/))*

scite.ai Toggle

scite Smart Citations *([What are Smart Citations?](https://www.scite.ai/))*

Code, Data, Media

# Code, Data and Media Associated with this Article

alphaXiv Toggle

alphaXiv *([What is alphaXiv?](https://alphaxiv.org/))*

Links to Code Toggle

CatalyzeX Code Finder for Papers *([What is CatalyzeX?](https://www.catalyzex.com))*

DagsHub Toggle

DagsHub *([What is DagsHub?](https://dagshub.com/))*

GotitPub Toggle

Gotit.pub *([What is GotitPub?](http://gotit.pub/faq))*

Huggingface Toggle

Hugging Face *([What is Huggingface?](https://huggingface.co/huggingface))*

ScienceCast Toggle

ScienceCast *([What is ScienceCast?](https://sciencecast.org/welcome))*

Demos

# Demos

Replicate Toggle

Replicate *([What is Replicate?](https://replicate.com/docs/arxiv/about))*

Spaces Toggle

Hugging Face Spaces *([What is Spaces?](https://huggingface.co/docs/hub/spaces))*

Spaces Toggle

TXYZ.AI *([What is TXYZ.AI?](https://txyz.ai))*

Related Papers

# Recommenders and Search Tools

Link to Influence Flower

Influence Flower *([What are Influence Flowers?](https://influencemap.cmlab.dev/))*

Core recommender toggle

CORE Recommender *([What is CORE?](https://core.ac.uk/services/recommender))*

- Author
- Venue
- Institution
- Topic


About arXivLabs

# arXivLabs: experimental projects with community collaborators

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**](https://info.arxiv.org/labs/index.html).

[Which authors of this paper are endorsers?](https://arxiv.org/auth/show-endorsers/2605.26298) |
Disable MathJax ([What is MathJax?](https://info.arxiv.org/help/mathjax.html))
equinumerous20
🟧 echo.paper ⭐The paper describes Sandlock, which combines kernel-enforced static policy with a supervisor for runtime decisions and virtualized effects; Cong Wang and Yusheng Zheng——

Interpretation history

Decision trace