Anthropic publishes open-source honeytokens to contain AI agents
Anthropic has released an open-source honeytoken system that can interrupt AI agents when they probe beyond their assigned boundaries.
Anthropic has published an open-source approach for stopping AI agents when they stray into places they should not access. Its method combines honeytokens — decoy strings placed near sensitive workloads — with inference hooks that can recognise those strings, return a refusal and abort the model’s response.1
The company describes the technique as a defensive layer for agentic systems. Traditional honeytokens are fake credentials or other tempting pieces of data that alert defenders when an attacker uses them. Anthropic’s version is designed to react earlier: simply reading a token can trigger a refusal string, rather than waiting for the agent to use the data in a later operation.
How Anthropic’s honeytokens work
Claude Enterprise users can create custom refusal strings through inference hooks, which intercept prompts before inference. Anthropic says the tokens can be tailored to an organisation, rotated if they leak and limited to the organisation’s own hooks, so another customer’s traffic is not affected.1
The company has also released a Rust implementation on GitHub. It checks signatures on incoming traffic and is intended to stop completions when a honeytoken is detected.2 Anthropic suggests placing tokens in locations an agent should never need to inspect, including directories outside a sandbox, Kubernetes secrets, hostnames and network services.
Anthropic recommends making tokens long enough to be distinctive without being truncated in file listings. It also describes using several tokens with different dates and starting characters so that sorted or shortened directory output is more likely to reveal one. If an agent spawns subagents, the implementation can echo a detected token in its error output, helping propagate the refusal through the parent model as well.
What the evaluation found
Anthropic tested the approach against more than 1,700 Siren sandbox-escape scenarios, covering more than 200 benign DevOps tasks across 26 sandbox environments. The company says the honeytokens stopped about 93% of recorded escapes, with no false positives in sessions where the model did not escape.1
That is an Anthropic evaluation result, not an independently verified industry benchmark. The company also describes the technique’s limits. Some environments offered no straightforward place to plant a token, while some agents escaped without probing a location that contained one. Other failures involved truncated tokens or probes that did not reveal the relevant data.
Our opinion
Honeytokens are not a replacement for sandboxing, permissions or network controls, but the idea is appealing because it adds a tripwire directly to the places an agent should never visit. The strongest part of Anthropic’s proposal is the combination of detection and interruption: a suspicious read can stop the current response instead of merely creating a log for someone to inspect later.
The 93% figure should be treated cautiously because it comes from Anthropic’s own scenario design and replay methodology. Even so, the limitations make the proposal more useful rather than less: teams can see exactly where a decoy-data defence will fail and add other controls around it. For organisations deploying agents near valuable systems, a small, rotatable signal that fails closed is a practical addition to a much larger security plan.