中文译文(机器翻译 · 原文见下方)

#计算机科学>密码学与安全 [2026年5月25日提交] #标题:Sandlock:用非特权Linux原语限制AI代理代码 查看PDF HTML(实验) 摘要:人工智能代理越来越多地在开发人员的机器上运行不受信任的代码:语言模型生成的shell命令、运行时检索到的第三方脚本以及来源不明的工具插件。现有的隔离机制强加了很难适应这种工作负载的权衡:容器和微虚拟机增加了特权、映像管理和启动成本,而ad-hoc进程控制和包装器(如chroot、ulimit)提供了弱保证和很少的系统调用级控制。Sandlock是一个轻量级的Linux进程沙箱,围绕一个简单的拆分进行组织:静态的、独立于输入的策略被编译成内核强制规则,而一个狭义的监督程序处理依赖于运行时的决策和虚拟化效果。这种拆分允许Sandlock强制执行文件系统、网络、IPC和系统调用策略,而无需根、cgroups、映像或强制命名空间。它还支持动态网络决策、HTTP级访问控制、执行参数的TOCTU安全检查和可逆文件系统效果。在我们的工作站上,Sandlock增加了大约5毫秒的启动开销,并以裸机吞吐量运行Redis(在测量噪声范围内);其管道运营商还支持按阶段限制,以分离数据、网络和不可信内容功能。Sandlock可在[此https URL]获得(https://github.com/multikernel/sandlock) ###附加功能 ###参考文献和引用 加载。.. #书目和引文工具 书目资源管理器 (什么是探索者?) Litmaps (Litmaps是什么?) scite智能引文 (什么是智能引用?) #与本文相关的代码、数据和媒体 alphaXiv (什么是alphaXiv?) CatalyzeX论文代码查找器 (什么是CatalyzeX?) DagsHub (什么是DagsHub?) Gotit.pub (什么是GotitPub?) 拥抱脸 (什么是拥抱脸?) ScienceCast (什么是ScienceCast?)(https://sciencecast.org/welcome)) #Demos #推荐和搜索工具 影响花 (什么是影响力花?)(https://influencemap.cmlab.dev/)) 核心推荐人 (*什么是核心?) #arXivLabs:与社区合作者的实验项目 arXivLabs是一个框架,允许合作者直接在我们的网站上开发和共享新的arXiv功能。 与arXivLabs合作的个人和组织都接受了我们的开放、社区、卓越和用户数据隐私价值观。arXiv致力于这些价值观,只与遵守这些价值观的合作伙伴合作。 您对一个能为arXiv社区增加价值的项目有什么想法吗?了解更多关于arXivLabs的信息.

英文原文

Computer Science > Cryptography and Security

[Submitted on 25 May 2026]

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

View PDF

HTML (experimental)

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

Loading...

Bibliographic and Citation Tools

Bibliographic Explorer

(What is the Explorer?) Connected Papers

(What is Connected Papers?) Litmaps

(What is Litmaps?) scite Smart Citations

(What are Smart Citations?)

Code, Data and Media Associated with this Article

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?)

Demos

Recommenders and Search Tools

Influence Flower

(What are Influence Flowers?) CORE Recommender

(What is CORE?)

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.

原文来源:arxiv.org