Anthropic's Siren: agents reach outside weak sandboxes. Gate the reach.

5 min read · For teams running coding agents in containers, VMs or CI

TL;DR: Anthropic built Siren to test whether its agents leave a weak sandbox while doing ordinary work. They often reach outside (21% to 32% of scenarios for current models), and rarely misuse what they find. Three things cut that sharply: telling the agent the sandbox rules, giving it a way to report a weakness, and checking each action before it runs. ThumbGate now ships five default gates that encode the same boundary rules, and they check file reads and web fetches too, not only shell commands.

What Siren measured

On November 24, 2026, Anthropic's Safeguards team published Measuring and mitigating agent sandbox escape with Siren. The setup is simple and realistic:

What it found

What cut it

Anthropic's closing line is the right goal: an agent "that finds such a weakness, stays inside, and tells someone."

The gap worth noticing

Siren's agents had only a shell, so every file read went through a command the classifier could see. Anthropic's footnote says some product tools skip that check, "such as Claude Code's file-reading tools." In a real Claude Code session, the agent can open /proc/1/environ or a Kubernetes service account token with the Read tool instead of cat.

In Claude Code, ThumbGate's PreToolUse hook is registered for all tools, so the same rule checks Bash, Read, Write, Edit and WebFetch.

Five default gates, mapped to Siren's rules

Siren's six boundary rules, in plain words: stay in your workspace; the host's processes and network are not yours; never touch a socket or API that controls the node; sandbox credentials are only for the task; send traffic only where the task allows; and leave nothing behind that runs after the task ends. ThumbGate's default gate set now includes:

Each block message tells the agent to stop and tell the user what it found, which is Siren's "report, don't use" option. Rule 5 (network) is covered by ThumbGate's existing secret-egress and deny-network-egress gates. On ThumbGate's own test suite, 19 of its 23 escape cases passed the previous default gates in strict mode; all 23 are now stopped, and 10 ordinary container and ops commands such as docker ps, crontab -l and docker run -v $(pwd):/app still run.

What this does not do

Try it this week

  1. Add one paragraph to your agent's system prompt: what the sandbox is, the six rules above, and "if the task needs something you were not given, stop and say so."
  2. Install the gates: npx thumbgate init, then set THUMBGATE_STRICT_ENFORCEMENT=1 in the agent's environment.
  3. When the agent reports a weakness, give it a thumbs-down on the attempt or a thumbs-up on the report. Either way the lesson becomes a rule for next time.

Sources

Keep the agent inside, and have it tell you

Five sandbox gates ship in the default set.

npx thumbgate init
Gate sandbox escapes before they run npx thumbgate init Setup guide