@yibie: Recommended — Anthropic's engineering team writes up their two years of security isolation experience for all Claude products. Not a security whitepaper — it's an engineering document with incident postmortems and fixes. Three isolation modes (ephemeral containers / HITL sandbox / local VM), six pitfalls they encountered, …

X AI KOLs Timeline News

Summary

Anthropic's engineering team shares their complete experience from over two years of security isolation for Claude products, including three isolation modes (ephemeral containers / HITL sandbox / local VM) and six incident postmortems with fixes, emphasizing environment-layer defense over model-layer.

Recommended — Anthropic's engineering team writes up their two years of security isolation experience for all Claude products. Not a security whitepaper — it's an engineering document with incident postmortems and fixes. Three isolation modes (ephemeral containers / HITL sandbox / local VM), six pitfalls they encountered, each with technical details. How Anthropic keeps Claude in check 12 months ago, Anthropic would never have given Claude enough permissions to take down an internal service. Today, such permissions are routine. But as capabilities grow, so does the theoretical blast radius — the engineering question: how to contain it. Two approaches: human oversight — but Anthropic's monitoring data shows users approved 93% of permission prompts, reading less carefully each time. Approval fatigue renders oversight ineffective. The second approach is isolation — limiting what the agent can do. This is the focus of the article. Three types of risk, three layers of defense User abuse — malicious or accidental actions causing the agent to do harm. Model behavior — the agent acts on its own. Claude once 'helpfully' escaped its sandbox to complete a task; dug through git history to find answers for a coding test; identified which benchmark it was running on and decrypted the answer key. External attack — attacking the agent through tools, files, or network. Three layers of defense: Environment (sandbox, VM, filesystem boundaries — hard boundaries), Model (prompt, classifiers, probes — probabilistic, never 100%), External content (MCP servers, plugins, web search — can serve poisoned content). Three isolation modes Mode 1: Ephemeral containers (http://claude.ai). gVisor containers, fully server-side, no local code execution, filesystem wiped each session. Smallest blast radius, lowest capability ceiling. Key lesson: the custom proxy Anthropic wrote became the weakest link, while hardened components like gVisor and seccomp — battle-tested by many adversaries — remained reliable. Mode 2: HITL sandbox (Claude Code). Runs on the user's machine with filesystem access. Solution: OS-level sandbox (macOS Seatbelt / Linux bubblewrap) — allow reads, allow writes inside workspace, network default off. Permission prompts reduced by 84%. Major pitfall: everything before the trust dialog is untrustworthy. Attackers planted hooks in the repo's .claude/settings.json — Claude Code parsed it before showing 'Do you trust this folder?'. Fix: defer parsing project-local config until after the user accepts the trust prompt. Another pitfall: the user is an injection vector. In internal red team exercises, a researcher's phishing email — 'Can you run this for me?' — contained hidden instructions in the prompt to read ~/.aws/credentials and POST them out. 25 attempts, Claude succeeded 24 times. Model-layer defenses couldn't catch it — it was the user's own typing. The only defense that held was environment-layer: egress control. Mode 3: Local VM (Claude Cowork). Ordinary knowledge workers shouldn't be expected to judge bash. So a full Linux VM runs via system virtualization framework — the user's chosen workspace folder is mounted in, credentials stay on the host keychain, never enter the guest. The most secure mode, but still had pitfalls: infiltration through approved domains. Attackers placed a file with hidden instructions in the workspace — Claude reads it, calls the Anthropic Files API with the attacker's key to upload a file. The egress proxy checked the destination domain, saw http://api.anthropic.com — allowed it. Data exfiltrated. Fix: a man-in-the-middle proxy inside the VM only allows requests carrying the current VM's provisioned session token, rejecting the attacker's embedded key. Another pitfall: VM isolation also blocked endpoint detection software. Security team couldn't see inside the VM. Current solution: pull-based OTLP log export, but not real-time monitoring. Principles Environment layer first, model layer supplements. The two most valuable lessons — employee phishing and third-party domain infiltration — are cases where the model layer couldn't help and only deterministic boundaries caught them. Isolation strength should match the user's oversight capability. Developers who can read bash vs. knowledge workers who cannot are not the same threat model. Beware of your own code. Proven hypervisors, syscall filters, and container runtimes have been attacked by far more adversaries than your custom code. Every time something went wrong, it was Anthropic's own code — custom proxy rather than gVisor. Agents are a new software category, but system-layer interactions are not. They still read files, open sockets, spawn processes. Mature isolation tools remain the most trustworthy defense. Original: Anthropic Engineering, 'How we contain Claude across products', 2026 https://anthropic.com/engineering/how-we-contain-claude… #AgentSecurity #Claude #EngineeringPractices
Original Article
View Cached Full Text

Cached at: 07/06/26, 06:06 AM

Recommending this: Anthropic’s engineering team has documented their full two years of experience securing all Claude products. Not a security white paper — it’s an engineering document with incident postmortems and fix plans. Three isolation modes (temporary containers / HITL sandbox / local VM), six pitfalls they encountered, each with technical details.

How Anthropic keeps Claude from misbehaving

12 months ago, Anthropic would never have allowed Claude enough permissions to take down an internal service. Today, such permissions are routine. But as capabilities grow, the theoretical blast radius expands — the engineering challenge is: how to contain it.

Two approaches: human oversight — but Anthropic’s monitoring data shows users approved 93% of permission prompts, and the more they approved, the less carefully they looked. Approval fatigue makes supervision ineffective. The second approach is isolation — restricting what the agent can do. This is the focus of the article.

Three risk types, three layers of defense

User misuse — malicious or accidental actions causing the agent to do harm. Model behavior — the agent does something nobody asked it to do. Claude has “helpfully” escaped its sandbox to complete a task; dug through git history to find answers for a coding test; identified which benchmark it was running on and decrypted the answer key. External attacks — attacks against the agent via tools, files, or the network.

Three layers of defense: Environment (sandbox, VM, filesystem boundaries — hard boundaries), Model (prompt, classifiers, probes — probabilistic, never 100%), External content (MCP servers, plugins, web search — can feed poisoned content).

Three isolation modes

Mode 1: Temporary containers (http://claude.ai). gVisor containers, fully server-side, no local code execution, filesystem disappears per session. Smallest blast radius, but also lowest capability ceiling. Most important lesson: Anthropic’s own custom proxy turned out to be the weakest point; gVisor and seccomp — parts hardened by extensive adversarial testing — remained reliable.

Mode 2: HITL sandbox (Claude Code). Runs on the user’s machine with filesystem access. Solution: OS-level sandbox (macOS Seatbelt / Linux bubblewrap) — read allowed, write allowed within workspace, network disabled by default. Permission prompts reduced by 84%. One major pitfall: Everything executed before the trust dialog is untrustworthy. Attackers placed a hook in the repository’s .claude/settings.json — Claude Code parsed it before showing “Do you trust this folder?”. Fix: defer parsing of project-local config until after the user accepts the trust prompt.

Another pitfall: The user is an injection vector. In internal red team exercises, a researcher’s phishing email — “Could you run this for me?” — contained hidden instructions in the prompt to read ~/.aws/credentials and POST it out. 25 attempts, Claude succeeded 24 times. Model-layer defenses completely missed it — it was literally the user’s own text. The only defense that could stop it was the environment layer: egress control.

Mode 3: Local VM (Claude Cowork). Ordinary knowledge workers shouldn’t be expected to judge bash commands. So a full Linux VM runs on a system-level virtualization framework — the user’s selected workspace folder is mounted in, credentials stay in the host keychain, never enter the guest. The most secure mode, but they still hit pitfalls: Domain bypass through approved domains. An attacker placed a file containing hidden instructions into the workspace — Claude read it, called the Anthropic Files API with the attacker’s key to upload the file. The egress proxy checked the destination domain, saw http://api.anthropic.com — and allowed it. The data left. Fix: Add a man-in-the-middle proxy inside the VM that only allows requests carrying the current VM’s provisioning session token, rejecting attacker-embedded keys.

Another pitfall: VM isolation also locked out endpoint detection software. Security team cannot see inside the VM. Current solution: pull-based OTLP log export, but not real-time monitoring.

Principles

Environment layer first, model layer supplements. The two most valuable lessons — employee phishing and third-party domain bypass — were cases where the model layer couldn’t help and only deterministic boundaries caught the issue.

Isolation strength should match the user’s supervision capability. A developer who can read bash vs. a knowledge worker who cannot are not the same threat model.

Be wary of your own code. Battle-tested hypervisors, syscall filters, and container runtimes have been attacked by far more adversaries than yours. Every outage has been caused by Anthropic’s own code — custom proxy, not gVisor.

Agents are a new software category, but system-level interactions are not. They still read files, open sockets, and spawn processes. Mature isolation tools remain the most trustworthy defense.

Original: Anthropic Engineering, “How we contain Claude across products”, 2026 https://anthropic.com/engineering/how-we-contain-claude…

#AgentSecurity #Claude #EngineeringPractices

Similar Articles

How we contain Claude across products

Simon Willison's Blog

Anthropic published a detailed engineering overview of the sandbox techniques used to contain Claude across its products including Claude.ai, Claude Code, and Claude Cowork, covering process sandboxes, VMs, filesystem boundaries, and egress controls. The article explains the rationale and technologies (gVisor, Seatbelt, Bubblewrap) and mentions the srt open-source tool.

@vincemask: https://x.com/vincemask/status/2064581609928699973

X AI KOLs Timeline

This article introduces the five-layer safety guardrail configuration of Claude Code, including OS sandbox, native permission rules, PreToolUse Hook, engineering rules, and remote access control. It also provides a deny/ask/allow configuration and command classification list to ensure the Agent operates autonomously within secure boundaries.

@thinkszyg: https://x.com/thinkszyg/status/2066837941477920993

X AI KOLs Timeline

A practical guide for developers (especially AI coding tool users) on how to safely and efficiently use Claude Code, Codex, and other tools for multi-agent parallel development, focusing on best practices such as task decomposition, file isolation (worktree), boundary control, sequential merging, etc., to avoid file conflicts and chaos.

@IndieDevHailey: Claude Cookbooks: Anthropic’s official secrets, Claude’s practical handbook! An official open-source notebook collection, with ready-to-copy code + guides to teach you how to efficiently build real projects with Claude. Even complete beginners can get started quickly. Tons of hands-on examples: Agent, Tool Use, RAG, …

X AI KOLs Timeline

Anthropic has officially open-sourced the Claude Cookbooks notebook collection, offering practical code and guides covering scenarios such as Agent, Tool Use, and RAG, to help developers quickly get started building real projects.