AI glossary · Basic · AI security · Language models · Data & evaluation
Canary Tokens
A canary token is a security technique in which fake passwords, keys or URLs that look real but are not actually used anywhere are planted in data, so that a leak is noticed when someone tries to use them. The moment one is used, it becomes evidence that 'someone has seen this data.'
About this term
- Level
- Basic · Technical terms you often meet in AI news
- Category
- Security · safety
- Added
- 2026-11-24
What it is
A canary token is a deliberately created 'decoy secret.' Examples include an access key tied to an empty cloud account, a unique URL or DNS name that nobody knows, or the address of a private git repository that does not exist. A legitimate system would never have reason to use these values, so if someone tries to connect with one, it means that person has seen the original data. The security industry has used this approach for a long time, but recently it has also been used to track where prompts sent to AI services, or training data, end up.
How it works
First, you create a unique value that has never been used, and you control the system that receives requests made with that value. Then you insert the value into the data you want to monitor, such as prompts sent to an AI provider. The key is to place each canary on only one path. That way, when the value is later used, you can pinpoint where the leak happened: the router, the reseller or the provider. The decoy account has no real privileges or data, so if an attacker tries it, it leaves only a trace and causes no harm.
Why it is getting attention
In November 2026, HD Moore, chief research officer at industrial security company Dragos, published the results of planting canaries in about 2 million AI prompts and tracking them from July to November. He said he found signs that at least three AI providers had been compromised, a case where a reseller on an inference marketplace logged and inspected customer prompts, and cases where zero data retention (ZDR) or 'no data collection' settings were not honored. Prompts are encrypted in transit but decrypted at each relay point such as an AI router, which revealed that there are more places that can see plaintext than expected. Earlier, the 2024 NeurIPS workshop paper 'Towards Data Governance of Frontier AI Models' made a policy proposal to develop canary tokens so that data producers can detect unauthorized use. That is a proposal to use canaries on the training data side.
Things to know
A canary token is an 'after-the-fact detection' tool. It cannot undo data that has already leaked, and the alarm goes off only when someone actually tries the value. It cannot catch a party that quietly reads the data without using it. When operating canaries, check that the values are not used in real services, that only one is placed per path, that decoy accounts have no real privileges or data, and that you can receive access alerts immediately. If a canary reveals a leak, the next step is to keep sensitive information out of prompts or reduce the number of vendors the data passes through.
Canary operations checklist
When creating
- Is the value unused by real services?
- Is only one placed per path?
- Does the decoy account have no real privileges or data?
When monitoring
- Can you receive access alerts immediately?
- Is there a plan to reduce data paths after detection?
Example
The Dragos research team inserted a different decoy AWS key and unique URL into each prompt sent to multiple providers via AI routers and inference resellers. They reported that a key sent to one provider began to be tested by someone within hours of being planted, and that responsibility became clear because, even for the same model, only the credentials from requests routed through a particular seller were reused. Companies can adapt this approach by mixing canaries into data going out through internal LLM gateways or to external AI services and watching for use in unexpected places.
Related terms
References
- The privacy disaster revealed when a researcher planted 2 million canaries in the AI supply chain (GeekNews)
- Towards Data Governance of Frontier AI Models (arxiv.org)
- Dragos Canary Tokens Expose AI Prompt Leaks and Provider Breaches (ShiftDelete.Net)
- The privacy disaster revealed when a researcher planted 2 million canaries in the AI supply chain (GeekNews)
- AI Supply Chain Security: What Canary Tokens Found (Hacker News)