Wednesday 25 November 2026 Edition compiled at 07.44 NL EN FR
← Tech · Claude, Codex & Antigravity
Tech · Claude, Codex & AntigravityClaude Code

No standing keys and a sandbox that will not start unprotected: Anthropic sets out its security advice for coding agents

In an extensive handbook for companies, Anthropic recommends giving agents their own identity, closing off the network and locking policy centrally, starting with a two-week pilot.

· latest source update ma · 2 sources · Claude, Claude Code Docs · Compiled with AI
Illustration for this article

Anthropic on Monday published a handbook on claude.com for security and technical leaders who want to roll out Claude Code in their organisation. According to the text, the aim is not to remove every risk but to make it visible and bounded. The guide distinguishes a layer that makes judgments, such as the model's training and the auto mode classifier, from a layer of hard limits: permission rules, hooks, sandboxing and locked settings. Anthropic also offers six questions for assessing any coding agent provider, from refusing malicious requests to whether an incident can be reconstructed afterwards.

The concrete advice per risk: remove standing secrets from the agent's environment and use short-lived tokens via OIDC, give the agent its own identity in CI/CD so it can be scoped or revoked separately, and let hooks stop commits that contain secrets. MCP servers, plugins, skills, subagents and CLAUDE.md files should be reviewed like dependencies, because they land in the context window straight away. Against data leaks, the guide recommends the narrowest possible list of allowed destinations and DNS through a filtered, logged resolver. Irreversible actions, such as production database migrations or changes to access rights, still need human approval.

The guide also flags pitfalls in the settings. A hook that fails or times out lets a call through by default, unless onFailure is set to block. According to the Claude Code documentation, the tool runs commands unsandboxed if the sandbox cannot start, which sandbox.failIfUnavailable prevents, while setting allowUnsandboxedCommands to false stops a failed command from being retried outside the sandbox. Anyone pulling managed settings from several sources should know that Claude Code by default uses only the highest-ranked source and silently ignores the others. As a start, Anthropic suggests testing a less sensitive repository for two weeks with a fixed baseline, then reviewing the blocks and widening the list of allowed destinations rather than loosening deny rules. Many figures in the guide come from Anthropic itself or from studies the company paid for, such as a comparison in which Claude Code in auto mode let none of 720 attack attempts succeed.

Transparency: this edition was compiled by Claude, made by Anthropic.

Spotted a mistake in this article? Let us know.