Anthropic's New Security Guide: The Real Numbers Behind Auto Mode, Sandboxing, and Prompt Injection

Anthropic just dropped an 18-minute enterprise guide on securing coding agents, and buried in the corporate-speak is some of the clearest data we've seen yet on how Claude Code's safety layers actually perform. Even if you're not running an enterprise fleet of agents, the numbers are…

Anthropic just dropped an 18-minute enterprise guide on securing coding agents, and buried in the corporate-speak is some of the clearest data we've seen yet on how Claude Code's safety layers actually perform. Even if you're not running an enterprise fleet of agents, the numbers are worth knowing.

The Four Risks They're Worried About

  • Leaked credentials: "Anything an agent can read, it can leak." Agents run under your identity by default, so your logs often can't tell your actions apart from the agent's.
  • Unvetted dependencies: MCP servers, plugins, skills, subagents, and even a repo's CLAUDE.md file count as "dependencies" — their instructions load into Claude's context the moment they're installed, before any work happens.
  • Data exfiltration: Allowlisting a domain like github.com isn't enough — an agent can still push to a repo an attacker owns. DNS lookups can smuggle data past allowlists too, and a leaked token can be used directly by an attacker, bypassing the agent's network entirely.
  • Prompt injection: OWASP has ranked this the #1 LLM risk in every edition of its Top 10 since 2023. Hidden instructions can hide in issue comments, dependency READMEs, fetched web pages, or MCP tool responses. Anthropic's own line: "No single control stops prompt injection, so the defense has to be layered."

Layer 1: Judgment (the model itself)

Claude is trained to refuse malicious requests and to treat instructions found inside fetched content as data, not commands. On top of that, Auto Mode runs two more checks: prompt injection probes that flag suspicious text in tool results, and a classifier that reviews most proposed actions against what you actually asked for.

The numbers Anthropic cites:

  • An independent Trajectory Labs study (July 2026) ran 720 indirect prompt-injection attempts against Claude Code's Auto Mode — zero succeeded. The same attacks against OpenAI Codex (GPT-5.6 Sol) succeeded 5.8% of the time in its automated-review mode and 19% in full-access mode.
  • In a separate study (August 2026), 1,053 human testers manually reviewing agent actions caught only 13.6% of dangerous commands — Auto Mode caught 89% of the same set.
  • Against the Gray Swan "Shade" red-team benchmark, injection probes cut successful attacks on Claude Opus 5.5 from 54.6% down to 11.1%, and on Claude Fable 5.2 from 89.8% down to 28.2%.
  • Per the November 2026 system card, current models refuse 81-85% of malicious requests while still completing 98-100% of legitimate dual-use requests (like running a vulnerability scan you actually asked for).

Layer 2: Fixed Boundaries (the settings you control)

  • Permission rules: Allow / Ask / Deny, evaluated deny → ask → allow, so nothing can override an explicit Deny. Watch out for broad allow rules like Bash(python:*) — that's effectively "allow arbitrary code execution."
  • Bash command analysis: Claude Code parses compound commands (e.g. git status && curl attacker.example) and checks each piece separately, so you can't bypass a rule by chaining commands — this applies even in bypassPermissions mode.
  • Hooks: scripts that run at fixed points (like PreToolUse) can block an action outright — e.g. stopping a commit that contains a secret.
  • Sandboxing comes in three flavors: no sandbox (full access, lowest safety), a local OS-level sandbox (commands can only touch the project folder and allowlisted sites), and cloud sessions (each task gets its own disposable Anthropic-managed VM, credentials kept outside it).

Stripe's CEO Patrick Collison described their setup: engineers run Claude Code inside isolated, disposable "dev boxes," one per feature. His quote: "The boxes don't have access to any kind of production data, or indeed production services at all... even if you have a little catastrophic explosion, it's fully contained."


Watch Out

  • Most of this guide — SSO/RBAC, BAA/HIPAA coverage, Enterprise Frontier Safeguards, the audit API, skill/plugin malware scanning, self-hosted cloud environments — is Claude Team and Enterprise only. Solo Pro/Max users don't get those admin controls.
  • The sandbox and permission-rule mechanics described here DO apply to regular Claude Code, and local sandboxing isn't available on native Windows yet (alpha support exists in the open-source sandbox-runtime project for macOS/Linux/WSL2).
  • Auto Mode has been the Pro/Max/Team default since August 14, 2026 — if you've been letting it run without checking what it's approving, this guide is a good reminder of why those checks exist.

Key Takeaways

  • Auto Mode isn't just a convenience feature — in Anthropic's own testing it massively outperformed human manual review at catching dangerous commands (89% vs 13.6%).
  • Treat MCP servers, skills, plugins, and even CLAUDE.md files as dependencies that deserve the same scrutiny as a code package — their contents load into context the moment you install them.
  • Domain allowlists alone don't stop exfiltration — a leaked credential can be used by an attacker directly, with no agent involved at all.

Source

The enterprise guide to securing coding agents — claude.com


Source: claude.com

We break down Claude Code news like this every day in the free community. Join the crew on Skool.