NewsCrawler.org

Honeytokens and inference hooks to stop AI agents from escaping their scope

Collage illustration of a black-and-white duck in flight, crossing from a torn sheet of blue paper onto cream grid paper, with its bill touching an orange circle.
Diagram of a request passing between a laptop and Anthropic’s API in five numbered steps. On the laptop, Claude Code lists a shared directory and one entry is a honeytoken. Step 1: Claude Code sends a request to the API. Step 2: the API sends the transcript to a honeytoken server, also on the laptop, whose list includes the same token. Step 3: the server replies allow or deny. Step 4: if allowed, the API exchanges data with the model. Step 5: the API returns a response or an error to Claude Code. In this example, Claude Code shows “request blocked.”
Two-part diagram. Top: in a sandbox pod, Claude has a bash tool and a service account token that can read other namespaces. Through this hole (the token is over-scoped), it reaches the Kubernetes API and a Secret named db-credentials in the billing namespace, one of several Secrets. Alongside a password and username, the Secret holds two honeytokens, stored as empty keys. Bottom: the conversation. A kubectl describe tool call returns the Secret’s keys, including the honeytokens. The next model request contains that tool result, and Anthropic sends the transcript to a honeytoken server, which replies allow or deny. The request is denied by inference hooks.
Flow diagram titled “In our tests, honeytokens would have stopped over 9 in 10 escapes,” showing what happened in 1,753 test sessions from Siren, where every escape was from a deliberately weak sandbox. Of these sessions, 459 did not escape and 1,294 escaped the sandbox. Of the escapes, 1,209 (93%) would have been stopped by a honeytoken: 1,112 before the model saw the secret, 86 where the model never saw the secret, and 11 after the model had seen the secret. Of the remainder, 54 (4% of escapes) were limits of honeytokens and 31 (2% of escapes) were due to the experimental setup. A note says the honeytoken check was replayed over the recorded sessions and was not running live.
Image: Reddit

Anthropic's Frontier Red Team describes honeytokens[1] as small pieces of data placed near sensitive workloads, so that any use of them reveals unauthorized activity. Traditional honeytokens only raise an alert, and only when an attacker uses them. The authors combine them with refusal strings[2], data that a model provider or serving infrastructure recognizes. Detecting one triggers an error and aborts the model's response.

Claude Enterprise users can set up their own refusal strings with inference hooks[3], a publicly available mechanism built on an open specification that intercepts every prompt before inference. Tokens can be set for each organization separately. Anthropic released an open-source Rust implementation that enforces signature checks and handles up to hundreds of megabytes of request data per second per core.

To test effectiveness, the team used Siren, an evaluation with over 1,700 scenarios built from over 200 DevOps tasks in 26 sandbox[4] environments. In these tests, the honeytokens would have stopped about 93% of escapes, with no false positives in sessions where the model did not escape. About 2% of escapes were missed because of the experimental setup, and about 4% reflect more fundamental limits, such as an agent that never probes its environment.

Anthropic shares (ANT)

125.38 USD +3.9% since the news day, December 3

Close on December 4 Quotes: CNBC

Read the original anthropic.comDiscussion

Discussion

Commenters mostly find the approach interesting. One describes pairing static honeytokens with pre-inference hooks, so that reading a decoy string aborts the completion at once. Another quotes the requirement that refusal strings be private and revocable, and a third doubts the method works well if each honeytoken is tied to a specific model version from one vendor.

Sources

Published: First seen: Читать по-русски

Open as a page