Containing AI Agents with Honeytokens Anthropic released an open-source Rust implementation of honeytokens that integrates with Claude Enterprise inference hooks to halt model completions the moment a token is read, the company said in a blog post. The tokens are random strings of at least eight characters placed in directories not shared with sandboxes, Kubernetes secret keys, server hostnames and network services agents should never touch; the implementation enforces mandatory signature checks on traffic and handles up to hundreds of megabytes of request data per second per core. Honeytokens are customizable per organization so leaked tokens can be rotated without affecting other organizations' traffic. As AI models become increasingly intelligent and integrated into essential operations, keeping them within the bounds of their assigned tasks becomes both more difficult and more important. As in software security more broadly, the strongest defense against misbehaving AI https://www.anthropic.com/news/improving-alignment-security-efforts is to combine layers of protections and fallbacks. One simple and effective technique to add to this list of defenses is honeytokens https://en.wikipedia.org/wiki/Honeytoken —small pieces of data that can be placed near sensitive workloads and monitored to detect unauthorized activity. Here, we show how honeytokens can be combined with inference hooks to both detect and stop agents that try to expand their scope or escape sandboxes. What are honeytokens? Honeytokens are small pieces of data that are sprinkled around a system, designed to entice potential attackers to interact with them. Traditionally, these are things like API keys, passwords, or private keys for cryptocurrency. Defenders monitor the services to which these tokens grant access; if an attacker ever takes the bait and uses the token, the defenders are alerted that their system has been compromised. Two important limitations of traditional honeytokens are that attackers are not stopped, only detected, and only if and when attackers choose to use the tokens they’ve discovered. When running AI workloads, we can make honeytokens more powerful by combining them with refusal strings . Refusal strings are pieces of data that a model provider or serving infrastructure recognizes; detecting one instantly triggers an error and aborts the model’s response.