跳到主内容
@wquguru
精选88MarkTechPost(RSS)产品发布/更新

Perplexity开源AI智能体隔离沙箱SPACE

Perplexity Open-Sources SPACE, a Firecracker MicroVM Sandbox for AI Agents

原文
发到 X
推荐理由

做Agent的同学必看,这是首个经过大规模红队验证的开源隔离方案,直接解决了智能体权限控制与逃逸痛点,建议参考其架构设计。

Perplexity has open-sourced SPACE, the sandbox platform behind every task in Perplexity Computer. The Perplexity SPACE sandbox gives each agent task its own Firecracker microVM. Credentials and outbound traffic are controlled from outside that VM. The code ships under Apache 2.0 on GitHub. For teams building coding or browsing agents, this is a production-tested isolation layer they can self-host.

Perplexity 已开源 SPACE,这是 Perplexity Computer 中每个任务背后的沙盒平台。Perplexity SPACE 沙盒为每个代理任务提供独立的 Firecracker 微虚拟机(microVM)。凭据和出站流量均在该 VM 外部进行控制。代码以 Apache 2.0 许可证在 GitHub 上发布。对于正在构建编码或浏览代理的团队而言,这是一个经过生产验证的隔离层,可供其自行托管。

TL;DR

TL;DR(太长不看版)

  • Size: Rust codebase, release 0.8.0, the public baseline. HTTP API plus server-sent events.
  • Runs on: A Linux x86_64 host with KVM, /dev/kvm, btrfs and Docker. Local Kind (Kubernetes) or direct mode. No macOS.
  • Performance: In production, median create latency fell from 185 ms to 60 ms versus Perplexity’s previous provider.
  • Best: 0 of 108 VM-to-host escape attempts succeeded across 9 frontier models.
  • Worst: Before fixes, agents bypassed the egress policy in 11 of 54 partial-network runs.
  • 规模:Rust 代码库,版本 0.8.0,即公开基线。包含 HTTP API 及服务器发送事件(Server-Sent Events)。
  • 运行环境:配备 KVM、/dev/kvm、btrfs 和 Docker 的 Linux x86_64 主机。支持本地 Kind(Kubernetes)或直接模式。不支持 macOS。
  • 性能:在生产环境中,与 Perplexity 之前的提供商相比,创建延迟的中位数从 185 毫秒降至 60 毫秒。
  • 最佳情况:在 9 个前沿模型中,108 次虚拟机到主机的逃逸尝试全部失败(成功次数为 0)。
  • 最差情况:在修复之前,代理在 54 次部分网络运行中的 11 次绕过了出口策略。

What is Perplexity SPACE?

什么是 Perplexity SPACE?

SPACE (Sandboxed Platform for Agentic Code Execution) is Perplexity’s platform for running agent code in isolated microVMs. Applications call its HTTP API to create Linux environments, run commands and stream output.

SPACE(Agentic Code Execution 的沙盒平台)是 Perplexity 用于在隔离的微虚拟机中运行代理代码的平台。应用程序通过调用其 HTTP API 来创建 Linux 环境、运行命令并流式传输输出。

A template supplies the starting filesystem. A sandbox is one instance of that template, with its own VM and writable disk. Many commands can run inside one sandbox.

模板提供初始文件系统。沙盒是该模板的一个实例,拥有独立的虚拟机和可写磁盘。一个沙盒内可以运行多个命令。

Perplexity’s launch thread explains the design goal. Agents run commands, install packages and call services with root inside the sandbox. The host stays outside the guest’s control. Agent work is long-running, stateful and branching, so it must survive restarts.

Perplexity 的启动线程解释了设计目标。代理在沙箱内以 root 权限运行命令、安装软件包并调用服务。宿主机保持在客户机控制之外。由于代理工作具有长时间运行、有状态且分支复杂的特性,因此必须能够承受重启。

How does SPACE isolate agents?

SPACE 如何隔离代理?

Each sandbox is a Firecracker microVM with its own guest kernel. A per-sandbox network gateway on the host enforces egress policy on every outbound connection.

每个沙盒都是一个拥有独立客户机内核的 Firecracker 微虚拟机。宿主机上的每沙盒网络网关对每个出站连接强制执行出口策略。

Secrets never enter the guest. Per Perplexity’s July engineering post, credentials are injected at the network layer. The credential store adds hierarchical scoping, rate limits and audit logging.

密钥永远不会进入客户机。根据 Perplexity 7 月的工程博客文章,凭据在网络层注入。凭据存储库增加了分层作用域、速率限制和审计日志功能。

The architecture guide splits the system into 4 parts. These are a PostgreSQL-backed API, controllers, worker services and a data plane. Worker services manage VMs, networking, volumes, templates and credentials. btrfs copy-on-write creates each root filesystem.

架构指南将系统分为四个部分:基于 PostgreSQL 的 API、控制器、Worker 服务和数据平面。Worker 服务管理虚拟机、网络、卷、模板和凭据。btrfs 写时复制(copy-on-write)技术用于创建每个根文件系统。

How do pause, suspend and restore work?

暂停、挂起和恢复是如何工作的?

Sandboxes move through 4 states: running, paused, suspended and deleted.

沙盒经历四种状态:运行中、已暂停、已挂起和已删除。

  • Paused: VM memory stays resident on the worker. This is not a durable snapshot.
  • Suspended: VM memory, runtime state and root filesystem are snapshotted. Active resources are released.
  • Idle default: sandboxes suspend after 6 hours without activity.
  • 已暂停:虚拟机内存保留在 Worker 节点上。这不是持久化快照。
  • 已挂起:虚拟机内存、运行时状态和根文件系统会被快照。活动资源将被释放。
  • 空闲默认设置:沙箱在无活动 6 小时后挂起。

For fast creates, Kubernetes deployments use warm pools of booted sandboxes. Single-node setups use base snapshots instead.

对于快速创建,Kubernetes 部署使用已启动沙箱的预热池。单节点设置则使用基础快照。

In production, the 90th-percentile create latency dropped from 447 ms to 89 ms. Perplexity reports that 100% of Computer sessions run on SPACE.

在生产环境中,第 90 百分位创建延迟从 447 毫秒降至 89 毫秒。Perplexity 报告称,100% 的 Computer 会话均在 SPACE 上运行。

Did SPACE survive a red-team test?

SPACE 是否通过了红队测试?

Perplexity’s Escaping SPACE: Part I report tested 9 models with root inside the guest. The study ran 216 runs across 2 tasks and 4 settings.

Perplexity 发布的《逃离 SPACE:第一部分》报告对 9 个在客户机内拥有 root 权限的模型进行了测试。该研究在 2 项任务和 4 种设置下共运行了 216 次。

  • Sandbox escape: 0 of 108 runs reached the host-side secret.
  • No-network bypass: 0 of 54 runs succeeded.
  • Partial-network bypass: 11 of 54 runs succeeded before fixes. 4 models found a path.
  • 沙箱逃逸:108 次运行中无一成功获取主机端密钥。
  • 无网络绕过:54 次运行中无一成功。
  • 部分网络绕过:修复前 54 次运行中有 11 次成功。其中 4 个模型找到了路径。

Claude Opus 5.0, GPT-5.6 Sol, GPT-5.6 Cyber and Kimi K3 found bypasses. The attacks used DNS spoofing and shared CDN IP addresses.

Claude Opus 5.0、GPT-5.6 Sol、GPT-5.6 Cyber 和 Kimi K3 发现了绕过方法。这些攻击利用了 DNS 欺骗和共享 CDN IP 地址。

Perplexity then added source-address validation through nftables. The gateway now terminates TLS and checks both SNI and HTTP host against the allowlist. In the retest, no model produced a verified bypass.

随后,Perplexity 通过 nftables 添加了源地址验证。网关现在终止 TLS 并检查 SNI 和 HTTP host 是否在白名单中。在重新测试中,没有任何模型产生经证实的绕过。

The same team tested 10 third-party platforms. 8 showed at least one network-policy bypass. Perplexity disclosed the results to every affected vendor.

同一团队测试了 10 个第三方平台。其中 8 个显示出至少一种网络策略绕过。Perplexity 已向所有受影响的供应商披露了结果。

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

关联讨论

同一事件的更多信源

相似阅读

关联信息,但可能不是同一事件