← In the News

Anthropic's coding-agent security guide names the defaults that fail open

The enterprise guide to securing coding agents · Anthropic · claude.com, November 23, 2026

Machine-readable Download Markdown

The guide sorts Claude Code's controls into two layers. The judgment layer covers model training, prompt injection probes and the auto mode classifier, which checks proposed tool calls against what the user asked for. The fixed-boundary layer covers permission rules, Bash command parsing, hooks, the sandbox and egress allowlists. Its argument for the second layer is plain: the judgment controls "are probabilistic, so each one has the chance of being beaten."

Two pro tips matter for anyone running agents unattended. Hooks are permissive when they break: "By default, a hook that fails or times out lets the call through," so the guide says to set onFailure to "block". The sandbox has the same shape. Without failIfUnavailable, "a sandbox that can't start leaves commands running uncontained instead of refusing to run them." The guide also points out that subagents inherit the parent session's permission rules and mode, so one broad allow rule reaches every agent it delegates to.

The numbers are vendor-reported. Anthropic cites an August 2026 study it published in which 1,053 paid testers caught 13.6% of dangerous commands while auto mode blocked 89% of the same commands. It reports that Salesforce saw 79% more pull requests merged per developer and 5% fewer total incidents after standardizing on Claude Code. Neither figure comes with data a reader can check, and the guide is written for Team and Enterprise customers.

Why it matters: If your factory relies on hooks or the sandbox as hard gates, check both settings. By the guide's own description, a failed hook lets the call through and a sandbox that does not start leaves commands uncontained, unless you have configured both to refuse.