Anthropic's Honeytokens Would Have Stopped 93% of Sandbox Escapes in Its Own Replay
Anthropic's Frontier Red Team published a technique on December 3 that pairs honeytokens, decoy secrets planted where agents should not go, with refusal strings that abort a model's response as soon as one is read. Replaying sessions from its Siren sandbox-escape evaluation, Anthropic says the tokens would have stopped about 93% of escapes with no false positives. It released an open-source Rust implementation for its inference hooks, available to Claude Enterprise users. The result is Anthropic's own and comes from replayed sessions.

Anthropic's answer to agents that wander outside their sandbox is an old security trick with one change: the trap stops the agent instead of just raising an alert. In a post on December 3, its Frontier Red Team says decoy secrets planted along escape routes would have halted about 93% of the escapes in its own sandbox test. That is a containment layer any operator can add without retraining a model.
How it works#
Traditional honeytokens are fake API keys, passwords or private keys that alert defenders when an attacker uses them. Anthropic pairs them with refusal strings: data that the serving infrastructure recognises and that immediately triggers an error and aborts the model's response. The result, Anthropic says, is a token that stops the agent the moment it is read, whether or not the agent ever tries to use it.
- Deployment. Claude Enterprise users can set custom refusal strings through inference hooks, which intercept every prompt before inference. Tokens are per-organisation and can be rotated if they leak.
- Placement. Anthropic suggests directories not shared with sandboxes, keys inside Kubernetes secrets, hostnames of servers agents should never touch, and network services not meant for agents.
- Code. It released an open-source Rust implementation that works with its inference hooks and, by default, echoes any token it finds so that a parent agent is stopped along with a subagent.
The test#
Anthropic used Siren, its sandbox-escape evaluation, which has more than 1,700 scenarios built from over 200 DevOps tasks in 26 deliberately weakened sandboxes, each inside a hardened virtual machine with no internet access. It planted honeytokens along the paths each weakness opened, then replayed recorded sessions to see how often a token would have reached the model's context.
The tokens would have stopped about 93% of escapes, Anthropic says, and caused no false positives, because a model could only see them by leaving the scope of its task. About 2% of escapes were missed because of the experimental setup, such as 20 cases with nowhere simple to plant a token. Anthropic calls the remaining roughly 4% a more fundamental limit: in 33 cases the agent knew exactly what to read and never explored, and in 21 it probed without revealing a token, for instance because listings were truncated.
Our read: this is defence in depth, not a fix for misaligned behaviour, and Anthropic says as much. Its value is that it fails safe on the behaviour that matters most, an agent looking where it should not, and that operators can deploy it today.
Limits#
- The 93% figure comes from replaying recorded sessions in Anthropic's own evaluation, not from live deployments or an outside test.
- An agent that knows exactly where to go, or searches narrowly, can avoid the tokens, as Anthropic's failure analysis shows.
- The reference tool is tied to Anthropic's inference hooks; other systems would need their own implementation.