ReadingResearchRadarInvestment frameworkAI Company Primary Sources
Sign in / Sign up
← Back to reading
NewsTopic · AI智能体沙箱隔离Material4 min readDisconfirmAI Editorial

Pillar Security Researchers: AI Coding Agent Sandboxes Isolate the Host, Not the Sandbox Itself

In an analysis published in February 2026, Pillar Security researchers Eilon Cohen and Ariel Fogel noted that while container, gVisor, microVM, and kernel capabilities represent four isolation tiers with distinct failure modes, security is ultimately determined by what is mounted inside the sandbox rather than the strength of the isolation. Using Cursor's CVE-2026-22708 as an example, they demonstrated that static allowlists fail once the environment is poisoned, and granting full filesystem read access allows credentials to be exfiltrated via standard output, even if write permissions are restricted.

2026-02-25

When local AI coding agents execute code on a user's machine, they typically operate with user-level privileges: access to the file system, network capabilities, and shell execution. In an analysis published in February 2026, Pillar Security researchers Eilon Cohen and Ariel Fogel summarized this dynamic with a core distinction: isolation technologies protect the host from code running inside the sandbox, but they do not protect the sandbox itself.

This means the sandbox is a containment measure, not a prevention measure. When trust is violated, the sandbox limits the blast radius, but it does not address the underlying trust issue. AI agents process content from sources that cannot be fully verified—model weights that execute code upon loading, package dependencies that include installation scripts, and user-provided repositories—each representing an injection vector. The sandbox is the last line of defense, not the first.

The authors analyzed fourteen sandbox solutions designed for coding agents, categorizing them into four isolation tiers. Containers share the host kernel, meaning a kernel vulnerability can breach the boundary; gVisor intercepts system calls to reduce the attack surface, but its own correctness becomes security-critical; hardware-virtualized microVMs provide an independent kernel for each sandbox, offering the strongest isolation but constrained by session limits and boot latency; and kernel capabilities (such as Landlock and Seatbelt) offer no escape path but are limited to local environments and cannot be deployed on multi-tenant platforms.

Sign in / Sign up
ReadingResearchRadarInvestment frameworkAI Company Primary Sources

However, regardless of the tier chosen, a overlooked fact remains: a sandbox only isolates what you put inside it. Mount SSH keys, and they are accessible within the sandbox; grant full filesystem read access, and credential files can be read; return standard output to the large language model, and any printed content can be exfiltrated. Cursor already suffered credential exposure due to full filesystem read access in November 2025; even with writes restricted to the workspace, the agent could still read credential files using the cat command and output the content to stdout.

CVE-2026-22708, disclosed in January 2026, further exposed the structural flaws of static allowlists. Cursor’s allowlist mechanism validates commands line-by-line for safety, but shell built-in commands can modify environment variables without confirmation, turning subsequent allowed commands into attack vectors within a poisoned context. A command that appears safe in isolation is no longer safe once the surrounding environment has been manipulated.

From this, the authors propose a selection framework: the correct isolation tier depends on two questions—what are you isolating from, and what are you isolating with? If the threat is untrusted user-provided code, a microVM combined with violation detection is a reasonable choice; if the threat is third-party packages with installation scripts, defense-in-depth is more appropriate; if the threat is prompt injection via external content, network isolation combined with restricted filesystem read access is key. Conversely, if production credentials exist in environment variables, they are inside the sandbox; if full filesystem read access is granted, credential files are readable; if stdout is returned to the model, anything printed is exfiltrable.

A microVM with mounted AWS credentials is not meaningfully more secure than a container with the same credentials. Choosing an isolation tier is an architectural decision, not a procurement decision. Its importance is secondary to the threat model it addresses and the trust boundaries it actually enforces.

It should be noted that Pillar Security is an AI security product company, and this analysis simultaneously serves to promote its SAIL 2.0 framework and Agentic Endpoint platform. The assessment that Claude Code had no known sandbox vulnerabilities as of the analysis date is a snapshot at a specific point in time and does not represent a permanent state.

For developers, actionable checks include: What credentials exist in your development environment? Does the agent have full filesystem read access? What is mounted into the execution environment by default? For security teams: Does the sandbox restrict read access, or only write access? Is there a mechanism to detect sandbox boundary violations? Who controls the sandbox configuration—the vendor, the platform team, or the end user?

Sources

  • pillar.security↗
Topic

AI智能体沙箱隔离

【背景】随着AI编程代理普及,其执行不可信代码带来的安全风险日益凸显。Pillar Security研究员Eilon Cohen与Ariel Fogel在2026年2月的分析指出,容器、gVisor、microVM和内核能力四种主流隔离层级…

5 steps1 piecesUpdated 2026-11-03 00:02

How it got here

  1. 2025-10-20Anthropic发布Claude Code沙箱功能,基于OS级原语实现文件系统与网络双重隔离,减少84%权限提示。anthropic.com ↗
  2. 2026-02-25Pillar Security发布SAIL 2.0框架分析,指出Cursor等代理存在凭据外泄风险,强调隔离层级无法解决沙箱内部挂载问题。pillar.security ↗
  3. 2026-03-23Sandlock论文在ASPLOS 2026研讨会发表,提出利用Landlock/seccomp实现无特权、低延迟的AI代理进程沙箱。arxiv.org ↗

What is still unsettled

  • 如何在不牺牲开发体验的前提下,有效防止沙箱内部敏感凭据通过标准输出或侧信道外泄?
  • 对于本地开发场景,轻量级内核能力隔离(如Landlock)与重型microVM隔离的安全性与性能权衡点在哪里?
Read the full topic →
Continue researching →