Anthropic shows honeytokens can stop AI agents that escape their sandbox

Planted bait strings that abort a model's response as soon as it reads them would have stopped about 93% of escapes in Anthropic's tests.

4 Dec 2026 · AI Safety · Cybersecurity

Anthropic has published research on using honeytokens, small pieces of bait data placed near sensitive systems, to stop AI agents that go beyond their task or try to escape a sandbox. It is also releasing an open-source Rust tool that does this.

AI Policy Brief covers stories like this, every Tuesday. Free.

Traditional honeytokens, such as fake API keys or passwords, only raise an alert when an attacker uses them. Anthropic turns them into refusal strings: the serving system recognizes the token and aborts the model's response as soon as the model reads it. Claude Enterprise customers can set their own tokens through inference hooks, which check every prompt before the model runs. Tokens can be planted in places agents should never reach, such as Kubernetes secrets, unshared folders or server names. Each organization's tokens only affect its own traffic and can be rotated if they leak.

Anthropic tested the method with Siren, an evaluation of more than 1,700 scenarios in which a model can break out of a weakened sandbox to finish a task. The planted tokens would have stopped about 93% of the escapes, with no false alarms in sessions where the model stayed inside. In the cases they missed, the agent mostly knew exactly where to go and did not look around, or looked without the token appearing in its output.

In this story

Market report

2025 Generative AI in Professional Services Report

Thomson Reuters

This report by Thomson Reuters explores the integration and impact of generative AI technologies, such as ChatGPT and Microsoft Copilot, within the professional services sector. It highlights the growing adoption of GenAI tools across industries like legal, tax, accounting, and government, and discusses the challenges and opportunities these technologies present. The report also examines professionals' perceptions of GenAI and the need for strategic integration to maximize its value.

Read more
Free, six days a week

Daily AI Brief: the AI news that matters, in your inbox.