Anthropic shows how honeytokens can stop agents that overstep
In Anthropic’s Siren sandbox-escape evaluation, honeytokens would have stopped about 93% of escapes with no false positives. A Rust reference tool is open source.
Honeytokens are small pieces of bait data placed near sensitive workloads. Traditionally they only raise an alert once an attacker uses them. Anthropic pairs them with refusal strings, so the serving side errors out and aborts the model’s response as soon as the token is read—not just when it’s used.
How it works
Claude Enterprise users can set custom refusal strings themselves through inference hooks, a public mechanism built on an open specification that intercepts every prompt before inference. Tokens can be customized per organization, only trigger for the organization running the hooks, and can be rotated if they leak.
- Placement: directories not shared with sandboxes, keys inside Kubernetes secrets, hostnames of servers agents should never run on, and network services not meant for agents.
- Open-source tool: a simple Rust implementation that enforces signature checks and handles up to hundreds of megabytes of request data per second per core.
- Subagents: by default the tool echoes detected honeytokens in its error output, so the parent model stops too.
Anthropic also notes that its models once exposed a single global refusal string shared by all Claude users; it retired that string after malicious actors began abusing it.
Results
Siren includes more than 1,700 scenarios built from over 200 benign DevOps tasks across 26 deliberately weakened sandbox environments. Replaying the recorded sessions, Anthropic found honeytokens would have stopped about 93% of escapes, with no false positives in sessions where the model stayed in bounds. About 2% of escapes slipped through because of the experimental setup; about 4% reflect deeper limits, such as agents that never probed the environment or probed it without seeing a token.
Anthropic says effectiveness depends heavily on where the model runs and what it is trying to do, and that honeytokens should work alongside existing sandboxing and security controls.