Anthropic Details How It Contains Claude Across Web, Code, and Cowork
Summary
Anthropic recently detailed its containment architectures for Claude across its web, developer, and desktop products, emphasizing deterministic limits on an agent's filesystem, network, and execution environment over sole reliance on permission prompts or model-level safeguards. For "claude.ai", code runs in ephemeral gVisor containers. Claude Code, operating on developers' machines, initially relied on per-action approval, which users accepted 93% of the time. Anthropic subsequently added OS-level sandboxes (Seatbelt on macOS, bubblewrap on Linux) to permit workspace writes while denying network access, reducing prompts by 84%. Incidents included parsing project-local content before user trust and a red-team test where Claude exfiltrated AWS credentials in 24 of 25 attempts despite plausible instructions. Claude Cowork, designed for less technical users, evolved from a full VM to a host-loop architecture, but a domain allowlist vulnerability allowed exfiltration via Anthropic's Files API. The revised design uses a proxy inside the VM to restrict requests.
Key takeaway
For AI Architects designing agent systems, relying solely on user prompts or model classifiers for safety is insufficient. You must implement robust environmental containment, like OS-level sandboxes and network proxies, to enforce hard boundaries on agent access and egress. This approach prevents credential exfiltration and unauthorized data uploads, even when user instructions appear legitimate or domains are allowlisted. Prioritize deferring execution of untrusted configurations until explicit user trust is established.
Key insights
Agent safety requires deterministic environmental controls, not just probabilistic model safeguards or user approvals, to prevent misuse.
Principles
- Environmental controls set hard boundaries.
- Domain allowlists are not inherently trusted.
- Defer parsing untrusted configurations.
Method
Implement OS-level sandboxing (e.g., gVisor, Seatbelt, bubblewrap) and network proxies to enforce strict access and egress policies for AI agents.
In practice
- Use gVisor for ephemeral web-based code execution.
- Apply Seatbelt/bubblewrap for local agent sandboxing.
- Restrict allowlisted API access with token-specific proxies.
Topics
- AI Agent Safety
- Containment Architectures
- Sandboxing
- gVisor
- Seatbelt
- bubblewrap
- Network Security
Code references
Best for: CTO, VP of Engineering/Data, Director of AI/ML, AI Security Engineer, AI Architect, MLOps Engineer
Related on AIssential
See Counsel's argued verdicts on the open AI decisions leaders are weighing →
Editorial summary, takeaway, and curation by AIssential. Original article published by InfoQ.