AI TrackerGet the app
← All news

Anthropic shows how honeytokens and inference hooks can stop agents that leave their sandbox

Anthropic describes a way to detect and halt AI agents that exceed their task or escape a sandbox. It plants honeytokens, small pieces of bait data, where agents should not go, and makes them refusal strings. When a honeytoken appears in a prompt, the serving infrastructure aborts the model's response, so the agent is stopped as soon as it reads the token, not only alerted.

  • How to use it: Claude Enterprise users can set their own refusal strings with inference hooks, which intercept every prompt before inference. Tokens are per organization and can be rotated, and a token only triggers a refusal for the organization that runs the hooks. Anthropic is releasing a simple open-source Rust implementation that checks signatures on traffic.
  • Where to plant them: directories not shared with sandboxes, keys in Kubernetes secrets, hostnames of servers agents should never use, and network services they should not reach. Anthropic advises random strings of at least eight characters that are not cut off in file listings.
  • Anthropic's test: on its Siren evaluation (over 1,700 scenarios built from more than 200 DevOps tasks in 26 sandboxes with deliberate weaknesses), Anthropic says honeytokens would have stopped about 93% of escapes, with no false positives in sessions where the model stayed in scope. About 2% of misses came from the test setup. About 4% were limits of the method: the agent did not probe the environment, or probed it without reading a token.

Anthropic presents honeytokens as one layer to use alongside sandboxing and other security measures.

Get news like this as a push.

AI Tracker alerts you when something changes for the tools you use.

Get the app