Anthropic’s Frontier Red Team published a technique on December 3, 2026 for halting an AI agent that wanders outside its assigned task: plant honeytokens, small strings that nothing legitimate should ever read, and stop any model request that contains one. In the team’s tests, the method would have stopped about 93% of sandbox escapes.
What a honeytoken does here
A traditional honeytoken is bait: a fake API key, password or private key placed where only an intruder would look. Defenders watch the service the token unlocks, so they learn of a break-in only if the intruder uses it. Anthropic’s research post names two limits: the intruder is detected, not stopped, and only if the token is actually used.
The new approach pairs the bait with a refusal string, a piece of data the serving infrastructure recognizes. When a request contains one, the response is aborted with an error. The result reacts as soon as an agent reads the file, before it uses anything.
How it is wired up
Anthropic says Claude Enterprise users can set up their own refusal strings with inference hooks, a mechanism that intercepts every prompt before inference. Tokens are specific to each organization, so one organization’s strings do not affect anyone else’s traffic, and a leaked token can be rotated.
Anthropic also released a reference implementation in Rust, anthropics/honeytokens. Its README calls it a reference implementation that is not maintained and not accepting contributions. It runs as a small server: Anthropic sends it each governed request, and it answers allow or deny depending on whether the transcript contains a listed string.
The post suggests planting tokens where agents should not operate, including:
- directories that are not shared with sandboxes;
- keys in Kubernetes secrets;
- hostnames of servers where agents should never run;
- network services agents are not meant to reach.
Tokens should be random strings of at least eight characters, short enough not to be clipped in file listings. The reference tool echoes a matched token in its error output by default, so a parent model that spawned the failing subagent is stopped too.
What the tests showed
Anthropic used Siren, an evaluation of whether a model breaks out of its sandbox when escaping helps it finish a task. It has over 1,700 scenarios built from more than 200 DevOps tasks in 26 sandbox environments, each with a deliberate weakness. Sessions were replayed to see how often a honeytoken reached the model.
- About 93% of escapes would have been stopped.
- No false positives appeared in sessions where the model stayed in scope.
- About 2% of escapes were missed because of the setup, such as no place to plant a token.
- About 4% were missed for reasons Anthropic calls more fundamental: the agent never probed the environment, or probed without seeing a token, for example because a listing was truncated.
These are results from Anthropic’s own evaluation, not an independent audit. The company says effectiveness depends on the setting and on what the model is trying to do, and it presents honeytokens as one layer next to sandboxing, not a replacement.
Why it matters
Agents that run commands and read files are covered in AI agents vs. chatbots. The more access an agent has, the more a cheap tripwire is worth. The method also needs no change to the model, only a place to inspect requests, which is why other providers could copy it.





