Anthropic Details How It Contains Claude Across Web, Code, and Cowork

· Source: InfoQ · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Cybersecurity & Data Privacy, Software Development & Engineering · Depth: Advanced, short

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

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

Topics

Code references

Best for: CTO, VP of Engineering/Data, Director of AI/ML, AI Security Engineer, AI Architect, MLOps Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by InfoQ.