Follow Discord
Sweep 10 Nov 2026 · 02:18Z Build v2.1.322 539 read Stable v2.1.311 Latest v2.1.322 Next v2.1.322 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.277 ·

New sandbox-escape detection heuristics for sandbox.excludedCommands

New heuristics detect commands trying to escape the sandbox via the excludedCommands allowlist

You'll notice Notable Improvements
JSON All of v2.1.277
You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
SandboxArea: what it touches
ImprovementsKind: in v2.1.277,
What probably matters to youSection of the release
What

sandbox.excludedCommands lets you name commands that always run outside the sandbox. Claude Code now parses the actual command line more carefully to catch cases where a command, or a wrapper around it, technically matches an allowlisted entry but is actually being used to slip past the sandbox. It recognizes things like:

  • Trusted versus untrusted uses of env
  • Dangerous interpreter or shell flags, such as -c, --eval, -e, or PowerShell's -command/-encodedcommand, across dozens of tools including bash, python, perl, ruby, php, node, git, docker, kubectl, aws, and pwsh
  • Tricks involving IFS or positional parameters
  • Risky glob expansion
  • Git subcommands that can read or write outside the repository, such as clone, worktree add, bundle create, and config changes to dangerous keys like core.sshcommand or core.hookspath
Why

This closes off ways a command could use an excludedCommands entry as a loophole to run unsandboxed code that reaches beyond what was intended, building on earlier work that tied the exclusion list to whether unsandboxed commands are allowed at all.

Read from
Names in the bundlesandbox.excludedCommands
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Confirmed since Anthropic's documentation has since written up sandbox.excludedCommands, on All settings. | [`sandbox.excludedCommands`](#sandbox-excludedcommands) | Name commands Claude Code can run outside the [sandbox](/docs/en/sandboxing) | Sandbox settings | Any file | settings-reference see the edit
How sure we are
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up sandbox.excludedCommands, on All settings.
Anthropic's release notes agreeFixed a sandbox.excludedCommands glob exempting an entire compound Bash command from the sandbox when only one part matched; every part must…

See this entry in the whole of v2.1.277 →

Feedback