Anthropic releases decoys that cut off a Claude agent the moment it reads a fake secret outside its scope: 93% of escapes stopped in testing, but a default setting deserves attention
On December 3, Anthropic published a method and a small open-source Rust server that halt a Claude request as soon as an agent reads a fake secret planted somewhere it should never go. Replayed against 1,294 sandbox escapes from its Siren evaluation, the technique would have stopped 93% of them, with no false positives. It is limited to Claude Enterprise organizations, and under the default setting, a server outage lets requests through unchecked.

In late November, Anthropic used Siren to measure how far its models will reach outside their sandbox when doing so helps them finish a task. On December 3, its Frontier Red Team published a countermeasure: decoys (honeytokens), fake secret values planted where an agent should never go, which halt the request as soon as they appear in what the model is about to read. The post comes with an open-source reference implementation in Rust, under the Apache 2.0 license.
How it works
A conventional honeytoken (a fake API key, a fake password) only raises an alert, and only if the attacker uses it. Anthropic changes two things. The decoy is checked before every inference through Claude’s inference hooks: Anthropic sends the transcript of each request to the organization’s server, which replies “allow” or “deny.” And the decoy only has to be read, for example in the output of a file-listing command, for the request to be blocked.
Anthropic suggests placing them in directories not shared with the sandbox, in Kubernetes secrets, in the names of servers where an agent must not run, or on network services not meant for it. The strings should be random, long enough never to appear by chance (at least eight characters), but short enough not to be truncated in listings. By default, the tool copies the detected decoy into its error message: if a subagent is cut off, the parent agent that reads the error is cut off too, which keeps it from working around the block.
The released server fits in a single file of about 400 lines, with five dependencies, according to its README. It verifies the signature of every call and never logs decoy values; the README requires placing it behind an HTTPS proxy that rejects any traffic not coming from Anthropic’s address range. The repository warns that it is not maintained: it is an example to build on, not a product.
The results: 93% of escapes stopped in replay
Anthropic replayed 1,753 Siren sessions, in deliberately weakened sandboxes enclosed in a virtual machine with no internet access.
| Session outcome | Count | Share of escapes |
|---|---|---|
| Sessions with no escape | 459 | — |
| Escapes | 1,294 | 100% |
| … stopped before the model saw the targeted secret | 1,112 | 86% |
| … stopped, the model never having seen the secret | 86 | 7% |
| … stopped after it saw the secret | 11 | 1% |
| Total stopped | 1,209 | 93% |
| Not stopped: technique’s limits | 54 | 4% |
| Not stopped: test setup | 31 | 2% |
No session without an escape triggered a decoy, since the agent had to step outside its scope to see one. The 54 substantive failures are instructive: in 33 cases, the agent knew exactly which path to read and explored nothing, or ran a script that did the work without a listing; in 21 cases, it explored without surfacing the decoy, because the output was truncated or it was looking for a specific file.
What to know before deploying it
It is limited to Claude Enterprise. The documentation states that inference hooks are available only to Claude Enterprise organizations. Other plans have no access; Anthropic believes the idea is simple enough to be reproduced on other agent systems, without providing tooling for them.
The default setting lets requests through during an outage. This is the most important point for an administrator. According to the README, under the default failure handling (“Allow the request”), any request the server does not process in time reaches the model unchecked. Repeated failures trip a circuit breaker that suspends all checks; Anthropic retries no sooner than 3 minutes later, according to the documentation. An oversized request body also counts as a failure: transcripts can reach 64 MiB, while nginx caps bodies at 1 MB by default. A poorly hosted decoy server can therefore create a false sense of security.
The timeout adds to every request. The server must respond within the window set by the organization, from 1 to 10,000 milliseconds, 5,000 by default: it is one more service to host, expose over HTTPS, and monitor.
What remains to be verified
The 93% rate comes from a replay, not real-world use, in environments built to make escaping tempting and detectable. The post does not say which models produced the sessions; the escape rate observed here (1,294 out of 1,753) therefore cannot be compared with the 21% to 32% published for Siren in November. The server’s performance, several hundred megabytes per second per core, is as claimed by Anthropic.
Our take
The technique is modest, and that is its strength: a few random strings and a 400-line server are enough to stop the vast majority of the out-of-scope moves measured, with no false positives in Anthropic’s test. It does not replace a real sandbox, and the failures show its limit: an agent that already knows where to go triggers nothing, which makes it a safeguard against opportunistic exploration rather than deliberate behavior. For teams adopting it, the practical question is failure handling: as long as it stays set to “allow,” an unavailable decoy server amounts to no protection at all. Switching to “block the request,” on the other hand, makes the entire organization’s Claude service dependent on that small server. That trade-off, more than the 93% figure, is what will determine how useful the setup really is.
Sources
- Anthropic — Containing AI agents with honeytokens (Frontier Red Team, December 3, 2026) Primary source
- GitHub — anthropics/honeytokens (reference implementation in Rust, Apache 2.0 license, README) Primary source
- Claude Platform Docs — Develop an Inference hooks integration (protocol, timeout, circuit breaker, Claude Enterprise only) Primary source
- Claude Platform Docs — Inference hooks configuration (response timeout, failure handling, circuit breaker) Primary source
- Anthropic — Siren (sandbox escape evaluation) Primary source
A primary source comes directly from the company, lab or organization concerned. A secondary source reports the information without being its author: we flag it as such. Spotted an error? See our corrections policy.
How we work: editorial charter and methodology · our verification process · corrections log. Spotted an error? Write to contact@neuralbrew.ai.


