Anthropic Honeytokens Stopped 93% of Agent Escapes: Setup and Limits

Anthropic pairs honeytokens with Claude Enterprise inference hooks so an agent that reads a planted fake secret is stopped at once. In its Siren test they would have caught about 93% of sandbox escapes. Where they miss, how the open-source server works, and why its default fails open.

Christopher Ort
By i10X News Desk · Reviewed by Christopher Ort · 5 min read
Share
A key lying next to glowing network cables, symbolizing honeytokens planted as bait for AI agents.
Image: AI-generated, i10X
On this page
  1. How honeytokens stop a Claude agent mid-task
  2. What the Siren test showed, and where honeytokens missed
  3. Setting up the honeytokens server: the details that decide whether it works
  4. One step further: What honeytokens change for agent security, and what they cannot
  5. i10x Perspective

Anthropic has shown how honeytokens can stop AI agents that wander outside their task, in research published on December 3. The idea is old, fake secrets planted where nobody legitimate should look, but the twist is new: when a planted string shows up in a Claude request, the request is blocked before the model answers, instead of just raising an alert. Replayed against Anthropic’s Siren sandbox-escape test, the honeytokens would have stopped about 93 percent of escapes with no false positives. Anthropic also released a small open-source Rust server that does the blocking. The catch: it only works with Claude Enterprise’s inference hooks, and its default settings can quietly fail open.

How honeytokens stop a Claude agent mid-task

Classic honeytokens, like fake API keys or cloud credentials, only fire when an attacker uses them, and they only alert. Anthropic combines them with refusal strings: text the serving layer recognizes and answers with an error, aborting the response. Placed near sensitive workloads, such a token stops an agent the moment the token enters its context, whether or not the agent ever tries to use it.

The hook for this is inference hooks, a Claude Enterprise beta that sends every prompt and every tool result to a server the customer controls, over a signed connection, before the model sees it. The server answers allow or deny. Anthropic’s honeytokens server is one such endpoint: about 400 lines of Rust with five dependencies, Apache 2.0 licensed, marked as a reference implementation that is not maintained. It searches each request for any token on your list and denies the request on a match.

What the Siren test showed, and where honeytokens missed

Anthropic used Siren, its benchmark of more than 1,700 scenarios built from more than 200 DevOps tasks in 26 deliberately weakened sandboxes, each wrapped in a hardened outer VM. Honeytokens were planted along the paths each weakness opens, and the recorded escapes were replayed to see whether a token would have reached the model.

Siren outcomeCasesWhat it means
Escapes the honeytokens would have stoppedAbout 93% of all escapesA token reached the model’s context and the request would have been blocked
No simple place to plant a token20Setup limit: nothing for the agent to find
Escaped but never triggered a token or finished the goal11Setup limit
Agent knew exactly what to read, or ran a script without probing33Method limit: no listing, no token in view
Agent probed but tokens stayed hidden21Method limit: truncated listings, targeted searches
False positives in sessions without an escape0Tokens were only visible outside the task’s scope

Source: Anthropic, honeytokens research post, December 3, 2026. Setup-related misses are about 2% and method-related misses about 4% of all escapes.

The misses are the useful part. Anthropic puts about 2 percent of escapes down to the test setup and about 4 percent to real limits of the method: an agent that already knows exactly which path to read never lists a directory, and a search for one specific file does not reveal the tokens next to it. By our calculation the 85 missed cases imply roughly 1,200 to 1,400 recorded escapes in total.

Setting up the honeytokens server: the details that decide whether it works

The project README is short, and several of its warnings are easy to miss:

  • Fail-open by default. If the hook server fails, the default failure handling is “Allow the request”, so the prompt reaches the model unscreened. Enough failures trip a circuit breaker that stops screening entirely until it is reset.
  • Lock the port. The server handles 16 requests at once by default. Anyone who can reach it can tie it up with idle connections, so only Anthropic’s address range, 160.79.106.0/24, should get through. It also needs a TLS proxy with a public certificate on port 443; tunnels and redirects are not allowed.
  • Raise nginx’s body limit. Transcripts can reach 64 MiB, while nginx rejects anything above 1 MB by default, which counts as a webhook failure and, with the default setting, an unscreened request.
  • Use random tokens. Each token must be 8 to 256 printable ASCII characters; Anthropic suggests long random strings such as the output of openssl rand -hex 16. A real word will block legitimate work.
  • Decide on echoing. By default the deny message repeats the token, so a parent agent that receives a subagent’s error is blocked too. The flag --no-echo-token hides it, at the cost of stopping only the subagent.
  • Plan secret rotation. Requests signed with a new secret fail until the server restarts with it; turn “Enforce verdicts” off first, then rotate.

Where to plant tokens, per Anthropic: directories not shared with sandboxes, keys inside Kubernetes secrets, hostnames of servers agents should never touch, and network services agents should not reach. Several tokens per folder with different datestamps and first characters make it more likely that sorted or truncated listings show one.

One step further: What honeytokens change for agent security, and what they cannot

The reason this design exists is a failure. Anthropic writes that Claude once had a single global refusal string shared by all users; attackers started planting it in malware and messages to stop Claude-based analysis, so it was retired. Per-organization tokens that can be rotated avoid that denial-of-service trick, which is why the feature sits behind each customer’s own hook server.

For security teams the consequence is a cheap second layer. The server needs a few MiB when idle and up to about 1.5 GiB with all 16 threads busy, and Anthropic measured roughly 250 to 300 MB of transcript per second on a shared 2.6 GHz machine. That is far less effort than hardening every sandbox path, and it covers chat, Claude Code and tool calls through MCP in one place. Our analysis of Siren and how often agents escape their sandbox showed why such a tripwire is needed, and container bugs like the Docker Sandboxes flaw that leaked agent API keys show that the sandbox itself can be the weak point.

For everyone else the limits are clear. A miss rate of about 7 percent in Anthropic’s own test means honeytokens are a tripwire, not a wall; the escapes they miss are the targeted ones. And outside Claude Enterprise there is no built-in hook. Anthropic argues the idea is simple enough to rebuild for other agent systems, but any team doing that has to own the proxy that inspects every request, and its failure behavior.

Still unknown: how the 93 percent holds up outside Siren’s scenarios, and whether inference hooks will reach Team plans or the API.

How we checked

Checked on 4 December 2026, 10:46 CET.

  • Anthropic research post on honeytokens of December 3, 2026, including its Siren replay results
  • The honeytokens README and repository on GitHub (license, limits, defaults)
  • Anthropic’s inference hooks announcement for Claude Enterprise
  • The implied total of escapes is our own calculation from Anthropic’s percentages
  • We did not deploy the server ourselves

i10x Perspective

Honeytokens are the rare agent-safety idea that is cheap, explainable and testable this week. Any team running Claude Enterprise agents near production secrets should plant a handful of tokens in places their agents have no business reading, and turn on enforcement once the hook server is locked down. The part we would not accept is the fail-open default: a security control that switches itself off under load is a monitoring tool, not a guard. Set the failure handling to block for agent workloads, accept the occasional outage, and treat a honeytoken hit as an incident, not a curiosity.

Christopher Ort

Christopher Ort

Christopher Ort is the editor of i10X News at i10x.ai. He has worked hands-on with AI tools, models and agent workflows for years and leads i10X’s coverage of AI launches, funding and research. He is the author of “The Style Penalty”, an SSRN study on how frontier AI models judge AI-written CVs, covered by heise online and t3n.

Timeline

What happened before

  1. Release

    Claude Haiku 5.5

    1M context · $0.1 / $0.5 per 1M tokens

    support.claude.com (source, opens in a new tab)
  2. Release

    Claude Sonnet 5.5

    1M context · $2 / $10 per 1M tokens

    support.claude.com (source, opens in a new tab)
  3. Release

    Claude Opus 5.5

    1M context · $4 / $20 per 1M tokens

    First model of the Claude 5.5 family; performs at the level of Claude Fable 5.1 on most work and costs 40% less to run than Opus 5.

    anthropic.com (source, opens in a new tab)
  4. Release

    Claude Fable 5.1 & Mythos 5.1

    1M context · $10 / $50 per 1M tokens

    Anthropic's most advanced models for coding and knowledge work. Price/context shown for Claude Fable 5.1 (models overview).

    support.claude.com (source, opens in a new tab)
  5. Release

    Claude Opus 5

    1M context · $5 / $25 per 1M tokens

    support.claude.com (source, opens in a new tab)
Full Claude timeline ›

Editor's picks

  1. Anthropic Honeytokens Stopped 93% of Agent Escapes: Setup and Limits
  2. AWS MadPot: Attacks on AI Servers Up 9x, First Probe After 107 Minutes
  3. AirTrunk Plans $20B for 900 MW of Japan Data Centers: The Cost per MW by Site
  4. Qwen4-35B-A3B: Alibaba’s Open 1M-Context Model Costs a Twentieth of Qwen4-Max
  5. Anthropic Joins the Nasdaq-100 on December 21: Why Its Index Weight Starts Small