What is a canary token?
A canary token is a planted credential, file, link or configuration entry that alerts when it is used. It is named after the canary in a coal mine: harmless and silent until something is wrong. A canary token is a kind of honeytoken, specifically one that reports its own use, usually through a small service that receives the callback and sends the alert.
How do canary tokens work?
A canary token works by embedding something unique, a hostname, URL, key or identifier, that can only be triggered by using the token, and watching for that trigger.
- CreateGenerate a token tied to your alert address or webhook.
- PlantPut it where an intruder searches: a config file, a share, a CI secret.
- TriggerOpening, resolving or using it reaches the token service.
- AlertYou learn which token fired, when, and from where.
The trigger differs by type: a document reports when it is opened, a DNS token when its hostname is resolved, a cloud key when it is used against the provider, which Canarytokens documents as a 2 to 30 minute delay because the signal comes from the provider’s own logs.
What are the main types of canary tokens?
Canarytokens.org lists 32 types; these are the ones that catch the most realistic intrusions.
| Type | Plant it in | It fires when |
|---|---|---|
| Cloud access key | A backup profile in a credentials file, a CI secret, a .env |
The key is used against the cloud API |
| Kubeconfig | ~/.kube/, a CI secret |
Someone connects to the decoy cluster |
| MCP configuration | An AI client’s MCP configuration | An agent or intruder connects to the decoy server |
| Word, Excel or PDF document | File shares, desktops, document stores | The document is opened |
| DNS / URL | Config files, wikis, scripts | The hostname is resolved or the URL fetched |
| Database connection or dump | App config, backup folders | The decoy database is reached |
| Identity (SAML app, Entra ID login) | The SSO portal, identity provider | Someone tries to sign in |
| Unique e-mail address | A record in a production table | Mail arrives at the address |
Thinkst added the MCP Configuration token in June 2026, aimed at AI agents and intruders who read MCP client configuration. For 34 concrete placements mapped to MITRE ATT&CK, see honeytoken examples.
Where should you place canary tokens first?
Start with the places real secrets were stolen from in recent incidents: developer machines, CI/CD secrets and cloud secrets stores.
- CI/CD secrets. Grafana Labs stored decoy cloud keys in organisation- and repository-level secrets; in April 2025 an attacker who read secrets through a vulnerable workflow tested them, the canary fired, and the intrusion was contained within minutes.
- Developer laptops. An extra profile in the cloud CLI credentials file, a decoy kubeconfig context, a
.envin a project folder. - Cloud secrets managers and storage. A decoy secret, a bucket README with “diagnostic credentials”.
- File shares and wikis. A tempting document, an admin script with an embedded credential.
- AI tooling. A decoy MCP server entry and a decoy model-provider key in a project
.env.
What are the free canary token options?
Free options cover individual tokens and network honeypots; you supply the placement, the alert routing and the follow-up.
| Option | What it is | Notes |
|---|---|---|
| Canarytokens.org | Free hosted tokens by Thinkst, 32 types | Quickest start; keys come from public infrastructure |
| decoy-kit | Our open-source generator for decoy files (.env, kubeconfig, MCP config, git and npm credentials) that alert on your own domain (MIT) | Nothing hosted; you run a small listener |
| Self-hosted Canarytokens | The same server, run with Docker | Your own domains; you run and maintain it |
| OpenCanary | Open-source network service honeypot (BSD-3) | Catches scanning and connections, not credential use |
| Tracebit Community Edition | Free decoy credentials (usernames and passwords, AWS keys, cookies, SSH keys) and an MIT-licensed CLI | Limited token count; no cloud infrastructure canaries |
| GitGuardian free plan | 5 AWS honeytokens | Part of a secrets-security platform |
What are the limits of canary tokens?
Canary tokens are a great first tripwire, but three limits show up as soon as you rely on them.
- Public infrastructure can be recognised. A cloud access key reveals its account, and Truffle Security made TruffleHog flag keys from the public canarytokens.org service without triggering them. Thinkst responded with a safety net for key use that bypasses normal logging, but the recognition problem remains for public tokens.
- One alert, then silence. A token tells you it was used, once. Which other systems the intruder touched, and what they did with the access, is left to other tools.
- Sprawl. Dozens of tokens created by hand drift out of date, lose owners and stop matching the real secrets around them. See the deployment guide for lifecycle and tuning.
What are the alternatives to Canarytokens?
The alternatives differ mainly in where they run and what happens after the alert. Our deception technology vendors compared covers them in detail; in short:
- Thinkst Canary: commercial Canary devices plus tokens, managed from a hosted per-customer Console.
- Tracebit: a cloud-first canary platform delivered as a service, covering cloud, identity, workstations and CI.
- GitGuardian Honeytoken: decoy AWS keys and kubeconfigs for the software supply chain, inside a secrets-security platform.
- Microsoft Defender for Identity: honeytoken accounts and devices for Active Directory, if you already own it.
- FalseTrail: customer-hosted deception for AI-driven attacks. Decoy credentials, documents and references are issued from your own environment, with zero outbound connections, and the first use opens a finding that names the exact machine and file. Then the trail continues through decoy services, so the SOC investigates a path instead of a single ping.
Choosing between hosted and self-hosted tokens? Read self-hosted vs hosted canary tokens.