What is a canary token — a fake key no one should touch
A canary token is a decoy carrying a unique identifier that no legitimate user has any reason to touch, so that the moment someone opens or uses it the owner gets an alert. The decoy can be a web address, a DNS name, a fake cloud key, a Word or PDF file, an email address or a QR code, and the alert carries the time plus, depending on the type, the source IP and user agent. The name comes from the canaries that reacted to toxic gas in coal mines before miners did. A token does not block an intrusion; it reports one that has already happened. False alarms are rare but real, because secret scanners and link-preview bots can touch a token on behalf of nobody in particular. In April 2025 Grafana Labs said an AWS-key canary token was what alerted it to a compromise of its GitHub workflows.
The three lines
- Definition — a canary token is a fake asset with a unique identifier that has no business use. Touching it is the alarm. It detects; it does not prevent
- Mechanics — every token has its own address or key. Access reaches a monitoring server, which alerts the owner with the time and, by type, IP and user agent. AWS-key tokens can lag 2 to 30 minutes (Thinkst docs)
- Limits — tools such as the GitHub secret scanner and TruffleHog trip tokens too. Research published in 2024 showed free-service AWS-key tokens can be recognised as fake without ever calling AWS
Key questions
- canary token meaning
- **A decoy with a unique identifier that no legitimate user should touch; when someone opens or uses it, the owner is alerted.** | Element | What it is | |---|---| | Decoy | A URL, DNS name, fake AWS key, Word or PDF file, email address, QR code and more | | Identifier | A value unique to each token, so the alert says which decoy was touched | | Alert | The monitoring server notifies the owner by email or webhook | | What it carries | Time, and by type the source IP, user agent and the memo written at creation | | Origin of the name | The coal-mine canary that reacted to toxic gas first |
- canary token vs honeypot
- **A honeypot is a whole fake system; a canary token is a single fake item placed inside a real one.** | Term | What it is | What it tells you | |---|---|---| | Honeypot | A fake server or service built to attract attackers | Who connects and what they do | | Honeytoken | Any fake data that is not a system (fake account, fake record) | Whether that data was read or used | | Canary token | A honeytoken that signals by itself when accessed | Who touched it, when and from where | | Canary trap | Giving each person a slightly different copy | Who leaked | | Watermark | An identifying mark in real material | Whose copy this is |
- how to create a canary token
- **The documentation for the free service canarytokens.org describes four steps: pick a type, give an email address, write a memo saying where it will go, and place the token.** | Step | What you do | Note from the docs | |---|---|---| | 1 | Choose a token type on the generate page | Each type has its own trigger | | 2 | Enter the email address to notify | Some types also mention a webhook | | 3 | Write the memo (Reminder) | Be specific about which token and where | | 4 | Place the generated URL, file or key | Keep both halves of an AWS key together |
A canary token is a decoy with a unique identifier that no legitimate user has any reason to touch, wired so that the owner is alerted the moment someone opens or uses it. The decoy might be a web address, a fake cloud credential, or a Word file called something like "salaries". What they share is that nobody needs them for work. So if one is used, whoever used it was not doing their job.
Most security tooling struggles to separate normal behaviour from abnormal behaviour. Out of tens of thousands of logins a day, it has to guess which one is the thief. A canary token turns the problem around. It creates a spot where there is no normal behaviour at all, and waits there. This explainer covers where the name comes from, the types and how they work, how tokens differ from honeypots, honeytokens and watermarks, where to plant them, where they go wrong, documented public cases, and how the idea has spread to AI prompts and training data. It is written from the defender's side.
1. Definition and origin — the canary went down first
The name comes from coal mining. According to the Wikipedia article on sentinel species, the British physiologist John Scott Haldane first proposed in 1895 taking a warm-blooded animal underground to detect carbon monoxide, and canaries were in use by 1896. A canary is small, breathes fast and has a high metabolism, so it reacted to toxic gas before the miners did. When the bird faltered, the people still had time to get out.
Security borrowed the structure. A "canary" is a value or device placed so that it reacts before the thing that matters is harmed. The canary value placed on the stack to detect memory corruption is an old example. A canary token applies the same thinking to files, credentials and network addresses.
Some vocabulary. The broad term is honeytoken. Wikipedia describes honeytokens as fictitious words or records planted in legitimate databases so that stolen data can be traced, and as honeypots that are not computer systems. The same article says the term was coined by the security researcher Augusto Paes de Barros on February 21, 2003, on a security mailing list.
Canary token has come to mean a honeytoken built to signal by itself when it is accessed. Canarytokens is the name of a free service run by the South African security company Thinkst, and the service became popular enough that the name is now used generically. The official Thinkst documentation compares the tokens to motion sensors for networks, computers and clouds. They can be placed in folders, on network devices and on phones, the documentation says, and they need no installed software and no background process.
The point bears repeating. A canary token does not block an intrusion. It reports one that is already under way. The canary in the mine did not remove the gas either.
2. How it works — unique identifier, callback, alert
Every canary token has three parts: a value unique to that token, a monitoring server that receives a signal when the value is used, and a channel that passes the signal to the owner.
| Step | What happens | Example (web-address token) |
|---|---|---|
| 1. Create | The monitoring service generates a value that exists nowhere else | A URL containing a random string |
| 2. Place | The owner puts it where an attacker would look | An "admin page" link in an internal wiki |
| 3. Access | Someone opens or uses the value | An intruder follows the link |
| 4. Callback | The access reaches the monitoring server, which recognises the token by its value | The server logs a request to that URL |
| 5. Alert | The owner is notified | Email or webhook |
The unique value is what makes it work. The Thinkst documentation says a typical token is a unique URL or hostname, and that a request to any path under that URL activates it. Scatter a hundred tokens and you have a hundred different values, so an alert tells you immediately which one, and therefore which location, was touched. That is why the documentation insists on a specific memo when a token is created. With a vague memo, an alert that arrives months later cannot be traced to a place.
What the alert contains depends on the type.
| In the alert | What it tells you | Limit |
|---|---|---|
| Time | When the intruder reached that spot | AWS-key tokens can lag 2 to 30 minutes (Thinkst docs) |
| Source IP | The network location the request came from | Means little behind a VPN or relay |
| User agent | What kind of program sent the request | Can be forged |
| Token name and memo | Where the token was placed | Only as good as what the owner wrote |
| Extra data | A DNS token can carry a short payload encoded in the hostname | About 125 bytes (Thinkst docs) |
Grafana Labs wrote on August 25, 2025 that the alerts it receives include timestamp, IP, hostname, token name, location and reminder text. A SANS Internet Storm Center diary dated March 10, 2024 shows what a real alert looks like. A fake AWS key planted in a website's source was used once, about three days later. The IP in the alert belonged to Proton VPN, and the user agent pointed to a Python script using the Boto3 library on Windows Subsystem for Linux. The address was hidden; the tooling was not.
The channel also determines how much detail survives. The Thinkst documentation notes that the PDF token relies on a DNS lookup and therefore lacks the granularity of some other types. You learn that the document was opened and roughly where. In exchange, the documentation says, DNS lookups tend to make it out of heavily filtered networks, so the signal is more likely to arrive.
3. Types — what sets off the alarm
As of November 22, 2026 the navigation of the official canarytokens.org documentation lists 32 token types. The table below covers the commonly used ones and those whose trigger was confirmed directly in the documentation.
| Type | What the decoy looks like | What trips it | Basis |
|---|---|---|---|
| Web address (HTTP) | A unique URL | Someone browses to it | Thinkst docs |
| DNS | A unique hostname | Someone resolves the name; no connection needed | Thinkst docs |
| AWS API key | A key ID and secret key pair | The key is used against the AWS API | Thinkst docs |
| MS Word document | A file with a tempting name | The file is opened in Office on Windows or macOS | Thinkst docs |
| PDF document | A PDF file | A reasonably compliant reader opens it and looks up a unique address over DNS | Thinkst docs |
| MySQL dump | A SQL backup file with synthetic data | The file is imported into, or run on, a MySQL server | Thinkst docs |
| QR code | An image encoding a URL | The code is scanned and the URL loads | Thinkst docs |
| Email address | A unique address used nowhere | Mail arrives at it | Wikipedia mailing-list example; the Thinkst page did not load |
| Fake database record or account | A customer who does not exist, an account nobody uses | The record is queried or a login is attempted | Wikipedia |
Some of these deserve a sentence more.
Web and DNS tokens are the building blocks. The Thinkst documentation says web-based and DNS-based tokens can be used to construct many other tripwires. The PDF token is an example: there is a unique address inside the file, and when the reader looks it up, that lookup is the signal. It is a document on the outside and a DNS token on the inside.
The AWS-key token is the most widely used type, because a cloud key is the first thing an attacker looks for when going through a server or a repository. The documentation suggests planting the keys in private code repositories or on developer machines. Whoever finds them will probably believe they open your cloud infrastructure and will try them, and trying them is the alert. Both the key ID and the secret are needed to call the API, so the documentation says to keep them together. Alerts pass through Amazon's logging infrastructure and may arrive 2 to 30 minutes late.
For document tokens, the filename is half the trap. The documentation recommends placing the Word token somewhere it should not be accessed — a network share, a web server, an email attachment — and giving it an enticing name that suggests salary or password data. A decoy has to be worth opening.
The MySQL dump has a narrow trigger. A file that merely sits on disk does nothing. Someone has to take it and actually load it into a database. It is meant to be mixed in among real backups.
The email address is the oldest form. Wikipedia gives the example of seeding a mailing list with one fake address; mail arriving there means the list has left the building. Another example in the same article involves medical records: put different fake records in each of three storage locations, and whichever fake record shows up in a leak identifies the source.
4. Honeypot, honeytoken, canary token, canary trap, watermark
These terms overlap and are often confused. Sorting them by what they deceive and what they reveal makes the picture clearer.
| Term | What it is | Who touches it | What it reveals | Cost |
|---|---|---|---|---|
| Honeypot | A fake server or service built to attract attackers | External scanners, intruders | What the visitor does | A system to build and maintain |
| Honeytoken | Any fake data that is not a system | Whoever reaches that data | Whether the data was read, used or leaked | Low, though monitoring may have to be added |
| Canary token | A honeytoken that signals by itself when accessed | Intruders, insiders, automated tools | When, from where and with what it was touched | Low; nothing to install |
| Canary trap | Giving each person a slightly different version | The person who leaks | Who leaked | Versions to produce and track |
| Watermark | An identifying mark embedded in real material | Nobody; it sends no signal | The origin or owner of a copy | Embedded per item |
Compared with a honeypot, the difference is size and location. A honeypot is a separate fake system. A canary token is a fake fragment inside a real one. A honeypot is for watching an attacker at length; a token is for getting one signal that says someone made it this far.
Compared with a canary trap, the difference is the question. According to Wikipedia, a canary trap gives each suspect a slightly different document and watches which version leaks. The term comes from the 1987 Tom Clancy novel Patriot Games, and British intelligence reportedly called the same technique the barium meal test. A canary trap asks who leaked; a canary token asks who got in. Because every token has a different value, the two can be combined. Give each supplier a document with its own token, and the token that fires narrows down the route of the leak.
Compared with a watermark, the difference is whether there is a signal. A watermark lets you confirm the origin of material after it has been found. It does not announce anything. A canary token announces at the moment of access.
D3FEND, the MITRE catalogue of defensive techniques, groups this family under Decoy Object (D3-DO), defined as an object created and deployed for the purposes of deceiving attackers, and also called a lure.
| D3FEND sub-technique | Definition | Canary-token equivalent |
|---|---|---|
| Decoy File (D3-DF) | A file created to deceive an adversary | Word and PDF tokens, fake SQL dumps |
| Decoy User Credential (D3-DUC) | A credential created to deceive an adversary | Fake AWS keys, fake logins |
| Decoy Session Token (D3-DST) | An authentication token created to deceive an adversary | Fake session or access tokens |
| Decoy Network Resource (D3-DNR) | A network resource deployed to deceive an adversary | Unique URLs, unique DNS names |
| Decoy Persona (D3-DP) | A fake online identity | Unused accounts, invented staff |
| Decoy Public Release (D3-DPR) | Publicly released material meant to deceive | Deliberately leaked bait |
5. Where to plant them — where an attacker looks first
A token is worth what its location is worth. After getting in, an intruder goes looking for secrets in order to widen access. Tokens belong on that path.
| Location | What goes there | What an alert means | Caution |
|---|---|---|---|
| Private source repositories | A config file holding a fake AWS key | The repository was read and the key was tried | In a public repository, automated scanners will flood you with alerts |
| CI variables and secret stores | A fake key registered as a secret | Secrets have left the build environment | Splitting organisation-level and repository-level tokens narrows the scope |
| Developer machines | A fake key where credential files live | The machine was searched | Tell the owner, so they do not use it by mistake |
| Cloud storage and backup folders | Fake documents, fake SQL dumps | Storage was browsed and a file opened | Must sit among real material |
| Network shares | A document with a tempting name | Someone is moving around the internal network | Rule out indexers and antivirus that open files |
| Internal wikis and document tools | A unique URL, fake access details | The wiki was read | Check whether a link-preview feature fetches the URL |
| Unused subdomains | A DNS token | Someone is enumerating internal names | A lookup alone says little about who |
| Databases | Fake customer records, fake email addresses | The list has left and is being used | Choose values ordinary queries will not hit |
| AI prompts and training data | A unique URL or string | A prompt was read by a third party, or data went into training | Covered in section 9 |
The Grafana Labs post of August 25, 2025 gives a concrete deployment. The company relies mainly on AWS-key tokens and places them in GitHub Secrets at two levels. Organisation-level tokens fire if any repository is breached; repository-level tokens show which repository was accessed. It also uses document tokens in shared drive files, email tokens in dummy inboxes and DNS tokens on unused subdomains. It said it has deployed tens of thousands of tokens.
A caution from Wikipedia applies here. If a badly chosen honeytoken appears in legitimate traffic, legitimate traffic gets treated as an intrusion. A fake record has to be one that normal queries will not select, and a fake key has to live where no legitimate script will pick it up.
6. Limits and false alarms — whoever touched it is not always an intruder
The appeal of canary tokens is that false positives are rare. Rare is not never, because programs touch things on behalf of nobody in particular.
| What trips the token | Why | How to tell |
|---|---|---|
| GitHub secret scanning | Finds strings shaped like keys and tests whether they are active | Thinkst annotates such alerts; they can be added to an ignore list |
| Secret scanners such as TruffleHog | Call the API to check whether a found key is live | Whether a defender or an attacker ran it still has to be established |
| Crawlers harvesting public repositories | Scrape and test exposed keys automatically | Do not put tokens in public repositories |
| Link previews | A chat app fetches a URL to build a preview | Check whether the URL was pasted into a conversation. Not confirmed in official Thinkst documentation |
| Backup, indexing and antivirus software | Opens files to read them | Look for regular timing |
| Colleagues | Curiosity or accident | Ask |
The Thinkst help center acknowledges the problem. Some legitimate tools touch tokens in ways that resemble attacker behaviour, it says, and when GitHub secret scanning finds an AWS or Slack API key token in a repository it tests whether the key is active, which triggers an alert. According to the GitHub documentation, GitHub scans public repositories for secret formats registered by partners and reports matches to the partner. The SANS diary shows the effect. Fake keys posted to GitHub were tested within minutes, and alerts arrived in such volume that the author turned notifications off. Most of them came from a single company.
Grafana Labs reported the same experience. Before the formal rollout several teammates tripped tokens while exploring; the team asked why they had accessed the credentials, labelled the alerts benign and moved on. The same post warns against placing tokens in public repositories, because automated scanners cause alert fatigue.
Apart from false alarms there are three structural limits.
First, an attacker may recognise the token. In an article with a byline date of February 21, 2024, Dylan Ayrey of Truffle Security described how to identify canarytokens.org AWS keys without calling AWS. An AWS access key ID encodes the account number, and it can be decoded offline. Build a list of the account numbers the free service uses, and all that remains is to check whether the number decoded from a key is on the list. The capability was built into the open-source tool TruffleHog. The same article quotes Thinkst as saying that its self-hosted and paid alternatives are protected from the technique, and Truffle Security said it does not try to list account numbers tied to the paid offerings. Put plainly, a free token that everyone uses acquires a signature that everyone knows. A URL token that shows the service's domain has the same issue.
Second, there may be paths that leave no log. An AWS-key token detects use through the AWS audit log, CloudTrail. In a February 2022 post Thinkst discussed the problem that some API calls might not be logged there while still returning information about the calling key. An attacker using such a call could test a key and learn it is a decoy without raising an alert. Thinkst added a safety net that periodically compares the report of when each key was last used against the log. That report can be generated only once every four hours, so the alert may be up to four hours late, and it carries no client information such as an IP address.
Third, an alert means they are already inside. Grafana Labs lists this limit itself. A token is not prevention. Without a plan for what happens after the alert, you simply know.
This is also why a decoy key must never be a real key with real permissions. It is tempting to create a low-privilege key in a genuine account to make the bait more convincing. That turns the bait into a way in, and one mistaken permission change makes it a real incident. Thinkst says the keys in its tokens carry no permissions and cannot be used to do anything, are not tied to anything the defender owns, and sit on infrastructure hosted entirely by Thinkst. A decoy has to be useless to be a decoy. What happens when a real key is exposed is a different matter: AWS documentation says that when an IAM user's credentials are compromised or publicly exposed, AWS applies a quarantine policy (AWSCompromisedKeyQuarantineV3) that denies certain actions. Our October 18, 2026 explainer on API key theft covered how stolen keys for AI services are actually used. A canary token is its mirror image: the defender exploits the thief's habit of trying whatever key turns up.
7. Cases on the public record
| Case | When | What happened | What the token did | Source |
|---|---|---|---|---|
| Grafana Labs GitHub workflow compromise | April 26, 2025 | An unauthorised user reached some secrets through a vulnerable GitHub Actions workflow | An AWS-key token fired when the attacker validated the stolen keys | Grafana Labs |
| SANS ISC leak experiment | Published March 10, 2024 | Fake AWS keys were deliberately exposed in website source and on GitHub | The website key was used after about three days, the GitHub keys within minutes. Every planted token was used | SANS Internet Storm Center |
| TruffleHog token-identification research | Byline date February 21, 2024 | A method for spotting free-service AWS-key tokens without calling AWS | A demonstration of the limits on the token side | Truffle Security |
Grafana Labs. This is the best-documented case of a token working in a real incident. By the company's account, on Saturday April 26, 2025 an unauthorised user gained access to a limited number of tokens through a misconfigured GitHub Actions workflow. The attacker ran TruffleHog to check which stolen secrets were live. When TruffleHog sent AWS the call that asks who a key belongs to, a canary token sitting among the secrets fired. The company removed the workflow and rotated the exposed secrets. It said secrets in five public repositories were accessed, that there were no code modifications, no access to production and no exposure of customer data, and that the investigation concluded on May 12, 2025.
The limits from section 6 are visible in this incident. Grafana Labs wrote that free tokens are detected by TruffleHog without any call to AWS, and that the token which fired was from the paid cloud version. With a free token, the attacker's tool might have skipped the bait. The company's own assessment is that tokens turned hours of triage into minutes of containment. That assessment is the company's.
SANS ISC experiment. An experiment, not an incident, but it shows how fast attackers move. The author said the sample was too small to generalise. The conclusions are simple. Exposed keys are found and tested quickly. Deleting the code does not undo the exposure. If a key leaks, rotate it at once.
TruffleHog research. A reminder that when a defensive tool becomes well known, so does its signature. Read it alongside the "not in public repositories" row in section 5.
8. The experiment that prompted this piece — bait in about two million prompts
On November 19, 2026 the blog of the industrial security company Dragos published the results of an experiment under the name of HD Moore. It applied canary tokens to AI inference services at scale. What follows is what that post states; no independent verification was found.
| Item | As stated in the post |
|---|---|
| Period and scale | Five months, July to November 2026; about two million prompts |
| What was planted | In each prompt, unique URLs, DNS names, AWS keys, and logins for SSH, web, git, databases and mail |
| Tooling | Thinkst Canarytokens at first, then a custom seeding service |
| Route tracing | About 2,000 inference routes mapped using image URLs and deliberately malformed requests |
| Hosting-provider compromises | At least three. The earliest dates to mid-July. None of the three knew until notified, the post says |
| What happened to the keys | Stolen AWS keys were tested within hours, then used to list storage and search secret stores |
| Privacy settings | One Chinese AI lab fetched secret URLs from more than half the prompts it received from July to October, including about two thirds of requests marked no data collection or Zero Data Retention (ZDR) |
| Resellers | Individual sellers on an inference marketplace logged prompts and then tried to log in to the decoy systems |
The reason this matters for a glossary entry is that the use of the token changed. Until now a canary token was something placed inside your own systems to wait for an intruder. In this experiment it rode along with data leaving your hands, as a way of inspecting someone else's systems. The sender of a prompt has no way to see how the recipient handles it. If a URL in the prompt is opened, or a key is used, there is evidence that the prompt was read by someone or something.
There are cautions too. The findings of compromise and of ignored settings are inferences drawn by the author from observed access. That a URL was opened is a fact; why it was opened is something a token cannot say. As section 6 showed, a token alone cannot easily distinguish an automated processing step that fetches a URL from a person who reads the prompt and follows the link. The post ends with a product pitch. The details of the experiment and the providers' responses are covered separately in the same edition, in our piece on the AI prompt leak experiment. How brokers resell access to many AI models through one gateway was the subject of our August 18, 2026 explainer on OpenRouter.
9. In the AI era — prompts, system instructions, training data
"Canary" is used in at least three distinct ways in AI. The principle is the same in each: plant a value that should never appear in normal operation, and see whether it appears.
| Use | What is planted | What its appearance means | Basis and limit |
|---|---|---|---|
| Inspecting inference routes | A unique URL or fake key inside a prompt | The prompt was read or stored by a third party | Dragos post of November 19, 2026; single source |
| Detecting system-prompt leaks | A unique word inside the instructions | The model reproduced its instructions in a response | A 2025 arXiv evaluation reported that paraphrased or encoded leaks are missed |
| Preventing benchmark contamination | A unique string in evaluation files | The model was trained on the test | BIG-bench paper (2022) |
| Measuring memorisation | Random strings inserted into training data | The model memorised training data verbatim | Carlini et al., USENIX Security 2019 |
System-prompt leak detection. A unique word is placed in the system instructions of an AI service, and every response is checked for it. If the word shows up, the instructions are leaking wholesale. A 2025 evaluation paper on arXiv reported, however, that detection tools using this method sometimes failed to find the canary in leaked output, and that leaks transformed by encoding evaded output checks. It catches verbatim copies. The structure of attacks that extract or override instructions was covered in our September 28, 2026 explainer on prompt injection.
The benchmark canary string. If the questions used to test an AI model end up in its training data, the test means nothing. BIG-bench, an evaluation suite published in 2022, put a unique identifying string in each task file. The paper explains that the string is meant to help researchers filter BIG-bench data out of web-scraped training corpora. Those assembling a corpus drop any document containing the string, and later, checking whether a model can complete the string shows whether the filtering worked. A post on the Alignment Forum reported that the non-public base model GPT-4-base reproduced the string while the public chat model did not. That is the report of one post.
Measuring memorisation. The paper The Secret Sharer, presented by Nicholas Carlini and colleagues at USENIX Security in 2019, proposed inserting randomly generated canary sequences into training data a varying number of times and measuring how strongly the trained model remembers them. A value called exposure captures how much the canary stands out against other random sequences that were never inserted. The paper says the test was used to limit data exposure in Smart Compose, the Google sentence-completion feature.
One thing cuts across all four. A security canary token sends a signal at the moment of access. The benchmark and memorisation canaries send nothing; somebody goes and checks later. In the terms of section 4, those two are closer to watermarks than to canary tokens. Same name, different mechanism.
For reference, the canarytokens.org documentation lists a token type in the form of an MCP configuration file. The name indicates that the bait is a configuration file used by AI agents; how it works was not confirmed.
10. Making one — within what the documentation says
canarytokens.org is a free service run by Thinkst. Its documentation describes four steps, and only those are reproduced here.
| Step | What the documentation says | Worth adding |
|---|---|---|
| 1 | On the generate page (canarytokens.org/generate), select the type of token | The web-address type is the simplest first try |
| 2 | Supply an email address to be notified at | The MySQL dump page mentions email or a webhook |
| 3 | Write the memo (Reminder): which token this is and where it is placed | The documentation stresses that an alert with a vague memo is hard to act on later |
| 4 | Place the generated token somewhere useful | See the table in section 5 |
The per-type pages add the following. For the web-address type, copy the generated URL and put it where you want it. For DNS, copy the generated hostname. For AWS keys, copy the displayed credentials into a file named credentials or keys, following AWS convention, or use the downloaded file, which is formatted like a genuine AWS credentials file. For QR, download the image and put it wherever you like.
Three things remain after creation.
Trip it yourself once. You need to know that the alert arrives and what it looks like. Grafana Labs likewise recommends triggering tokens in a safe environment and writing down the response.
Decide who does what when it fires. Alerts piling up in a personal inbox are of no use. Grafana Labs feeds alerts by webhook into its incident-response tooling and chat, with escalation to the on-call security staff. It also notes that unacknowledged alerts can group later triggers from different IPs, so that they are missed.
Replace a token that has fired. A token that has been touched is a value the attacker now knows. Grafana Labs recommends archiving the fired token for forensics and replacing it immediately.
Starting small is the safer course. Place a few in high-risk spots, confirm that the response process works when one fires, then expand.
11. Frequently asked questions
Does a canary token stop an intrusion? No. It only reports. A token that fires means someone has already reached that point. It does not replace a firewall or access control; it is the last line that tells you they failed.
How is it different from a honeypot? A honeypot is a separate fake system built to attract attackers. A canary token is a fake piece of data inside a real system. A honeypot takes effort to build and maintain; a token is one file or one string with nothing to install. A honeypot is for observing behaviour over time, a token for a single signal that someone got this far.
Is every alert an intrusion? No. Tools such as GitHub secret scanning and TruffleHog trip tokens when they test keys, and colleagues open things by mistake. Thinkst annotates alerts of that kind. Even so, the right order is to suspect an intrusion first and look for a benign cause second. In the Grafana Labs incident the thing that tripped the token was TruffleHog, and the party running it was the attacker.
Can an attacker tell it is fake? Sometimes. In 2024 Truffle Security published a way to identify free canarytokens.org AWS keys without calling AWS, and built it into TruffleHog. Both sides say the paid and self-hosted Thinkst products are not covered. A URL token that shows the service's domain is also conspicuous. For the places that matter most, that is a reason to consider a custom domain or self-hosting.
Would the fake key be more convincing with a little real permission? Do not do that. A key with permissions is a way in, not a decoy. The keys in Thinkst tokens have no permissions at all and are not connected to the defender's account. Plausibility comes from the filename and the location, not from privileges.
How many tokens, and where? There is no set number. Grafana Labs says it has deployed tens of thousands, but that is a large organisation. The guide is the attacker's path. Places where secrets collect come first: source repositories, CI secrets, developer machines, backup folders. Avoid public repositories.
What is the point of putting a token in a prompt sent to an AI service? It becomes a way to check from outside how the recipient handles the prompt. That is the method of the Dragos experiment. A URL being opened does not prove a person read the prompt, and a token cannot say why it was opened. Keeping sensitive material out of prompts comes first; a token is a check that comes after.
12. What remains and what is not confirmed
| Item | Confirmed | Not confirmed |
|---|---|---|
| Definition and origin | Honeytoken coined in 2003 (Wikipedia). Mine canaries proposed in 1895, in use by 1896 (Wikipedia) | The year the practice ended in British mines |
| Types | 32 types in the Thinkst docs navigation (accessed November 22, 2026). Triggers for web, DNS, AWS key, Word, PDF, MySQL dump and QR | The email-address token page (did not load). The internals of the Word token |
| Alert contents | Grafana Labs: timestamp, IP, hostname, token name, location, memo. SANS: IP and user agent | A field-by-field list in Thinkst documentation |
| Delay | AWS-key tokens 2 to 30 minutes (Thinkst docs). Safety net up to 4 hours (Thinkst, 2022) | Delays for other types |
| False alarms | GitHub secret scanning and TruffleHog trip tokens (Thinkst help center, SANS) | Link-preview bots and email security gateways (not confirmed in official documentation) |
| Detectability | Free AWS-key tokens can be identified without a call (Truffle Security, Grafana Labs) | Whether paid or self-hosted tokens can be. A direct Thinkst statement |
| Grafana Labs case | Alert on April 26, 2025; secrets in five public repositories accessed; investigation closed May 12 | Number of tokens deployed (thousands or tens of thousands, by post). Date of first disclosure |
| Dragos experiment | As stated in the post: about two million prompts, at least three hosting providers, ZDR-marked requests also fetched | Third-party verification, provider confirmation, why URLs were opened |
| AI uses | BIG-bench canary string (2022), The Secret Sharer (2019) | How models available in 2026 handle the canary string. Measured effectiveness of system-prompt canaries |
| Taxonomy | MITRE D3FEND Decoy Object and its six sub-techniques | Direct definitions in OWASP or MITRE Engage material |
To sum up. A canary token is something deliberately made to have no use, placed to wait for the moment it is used. It is cheap, needs nothing installed, and does not blend with normal behaviour, so its alerts are high quality. In return it prevents nothing, it fires when automated tools touch it, and a widely known free token is one attackers recognise as well. The working order is this. Put it where an attacker looks first. Write a specific memo. Trip it once yourself. Decide who does what when it fires. Replace it after it fires.
An intruder who comes in through a flaw with no patch does not match any signature. A decoy that treats the act itself as the signal is one of the few devices that can still notice. Our August 10, 2026 explainer on zero-days covered why unpatched flaws are worth so much, the October 18, 2026 explainer on API key theft covered how stolen keys are used, and the September 28, 2026 explainer on prompt injection covered attacks that extract and steer an AI system's instructions. The full account of the experiment that sent bait inside prompts is in the same edition's piece on the AI prompt leak experiment.
Sources
- Thinkst Canarytokens docs — Introduction and Getting Started (official canarytokens.org guide, accessed 2026-11-22)
- Thinkst Canarytokens docs — AWS API Keys Canarytoken (accessed 2026-11-22)
- Thinkst Canarytokens docs — HTTP Canarytoken (accessed 2026-11-22)
- Thinkst Canarytokens docs — DNS Canarytoken (accessed 2026-11-22)
- Thinkst Canarytokens docs — Adobe PDF Canarytoken (accessed 2026-11-22)
- Thinkst Canarytokens docs — MS Word Canarytoken (last updated 2024-07-23)
- Thinkst Canarytokens docs — QR Code Canarytoken (accessed 2026-11-22)
- Thinkst Canarytokens docs — MySQL Dump Canarytoken (accessed 2026-11-22)
- Thinkst blog — A Safety Net for AWS Canarytokens (2022-02)
- Thinkst Canary help center — Alert Annotation: GitHub Secret Scanner (accessed 2026-11-22)
- Wikipedia — Honeytoken (accessed 2026-11-22)
- Wikipedia — Canary trap (accessed 2026-11-22)
- Wikipedia — Sentinel species (accessed 2026-11-22)
- MITRE D3FEND — Decoy Object (D3-DO) (accessed 2026-11-22)
- Grafana Labs — Canary tokens: Learn all about the unsung heroes of security at Grafana Labs (2025-08-25)
- Grafana Labs — Grafana security update: post-incident review for GitHub workflow vulnerability and what's next (2025-05-15)
- SANS Internet Storm Center — What happens when you accidentally leak your AWS API keys? [Guest Diary] (2024-03-10)
- Truffle Security — research on identifying AWS canary tokens with TruffleHog (Dylan Ayrey, byline date 2024-02-21)
- GitHub Docs — Secret scanning partner program (accessed 2026-11-22)
- AWS documentation — AWSCompromisedKeyQuarantineV3 managed policy (accessed 2026-11-22)
- USENIX Security 2019 — Carlini et al., The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networks
- arXiv 2206.04615 — Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language models (BIG-bench, 2022)
- Alignment Forum — BIG-Bench Canary Contamination in GPT-4
- arXiv 2506.19109 — Enhancing Security in LLM Applications: A Performance Evaluation of Early Detection Systems (2025)
- Dragos blog — Three breaches, endless leaks: Your AI supply chain needs canaries (HD Moore, 2026-11-19)