Simon Willison 推出外部沙箱模式,让编码智能体安全执行代码
Simon Willison 与 AI 研究实验室 Prime Radiant 合作发布外部沙箱模式,代码在专属沙箱内运行,智能体本身留在沙箱外,降低本地模型被提示注入攻击后破坏机器的风险。 项目提供三个实现:external-sandbox-v86 用 v86 在 WebAssembly 中运行 Alpine Linux 的 Node.js 服务器;external-sandbox-container 基于 Apple Containers 的 Python 服务器;external-sandbox-quicksand 使用微软 Quicksand 库,把 QEMU 和 Alpine Linux 打包进 Python 包。三者暴露同一套 localhost API。 沙箱附带可选的 HTTP/HTTPS 白名单代理,可精确控制智能体代码能访问哪些主机,并支持凭据替换机制,让代码调用需要认证的 API 时无需把密钥交给智能体。Pi、Claude Code 和 Codex 都可配置为将执行代码的请求发往沙箱。
Current read
Simon Willison 和 Prime Radiant 发了三个开源沙箱服务器,让 Claude Code、Codex 这类编码智能体跑代码时隔离在沙箱里,还带域名白名单代理和密钥替换。想试本地模型又怕被提示注入搞坏机器的开发者可以直接上手。
Evidence
2 sourcesConflict check
Dedup data only shows that these sources discuss the same event, not that they agree. There is no structured supporting or refuting evidence yet, so no conflict is inferred automatically.