Guide · Canary tokens

Canary tokens, explained.

A canary token is a tripwire you can hide anywhere: a key, a file, a link, a config entry. It does nothing until someone uses it, and then it tells you. This guide covers how canary tokens work, the types worth deploying, the free and commercial options, and where a single tripwire stops being enough.

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.

CheapSeconds to create, no agent to install, nothing to maintain until it fires.
QuietNobody legitimate uses it, so an alert is worth reading.
SpecificEach token sits in one place, so the alert tells you which place was found.
Single-shotOne token, one alert. What the intruder does next is up to your other tools.

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.

  1. CreateGenerate a token tied to your alert address or webhook.
  2. PlantPut it where an intruder searches: a config file, a share, a CI secret.
  3. TriggerOpening, resolving or using it reaches the token service.
  4. 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.

  1. 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.
  2. Developer laptops. An extra profile in the cloud CLI credentials file, a decoy kubeconfig context, a .env in a project folder.
  3. Cloud secrets managers and storage. A decoy secret, a bucket README with “diagnostic credentials”.
  4. File shares and wikis. A tempting document, an admin script with an embedded credential.
  5. 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.

Questions

What is a canary token?

A canary token is a honeytoken that reports its own use: a planted credential, file, URL, DNS name or configuration entry that sends an alert when someone opens, resolves or uses it. Nothing legitimate touches it, so the alert means someone found it while exploring your environment.

Are canary tokens free?

Yes, Canarytokens.org, run by Thinkst, is free and offers 32 token types. The server is open source and can be self-hosted with Docker. Tracebit's Community Edition and GitGuardian's free plan also include a small number of decoy credentials.

What is the difference between Canarytokens and Thinkst Canary?

Canarytokens are individual tripwires, free at canarytokens.org. Thinkst Canary is Thinkst's commercial product: Canary devices on hardware, VMs or cloud, managed from a per-customer Console, which also issues tokens.

Can attackers detect canary tokens?

Sometimes. Truffle Security made TruffleHog recognise cloud keys issued by the public canarytokens.org service without setting them off, because an access key reveals the account it belongs to. Tokens issued from infrastructure you control avoid that public list.

How fast do cloud key canary tokens alert?

Canarytokens documents a delay of about 2 to 30 minutes for AWS key tokens, because the alert depends on the cloud provider's own logging.

What are alternatives to Canarytokens?

Self-hosted Canarytokens, OpenCanary for network service honeypots, Thinkst Canary, Tracebit, GitGuardian Honeytoken, honeytoken accounts in Microsoft Defender for Identity, and customer-hosted deception platforms such as FalseTrail, which continue the trail after the first use instead of raising a single alert.

Sources

  1. Canarytokens documentation, token types
  2. Canarytokens documentation, AWS keys token
  3. Canarytokens documentation, kubeconfig token
  4. Canarytokens documentation, MCP token
  5. Thinkst, One for all the models out there (22 June 2026)
  6. Thinkst Canary documentation, terminology
  7. OpenCanary on GitHub
  8. Tracebit, Community Edition
  9. GitGuardian, Honeytoken types
  10. Grafana Labs, Canary tokens at Grafana Labs (25 August 2025)
  11. Truffle Security, Canaries
  12. Thinkst, A safety net for AWS Canarytokens (February 2022)

See the next attempt at access at its first use.

On-prem, your cloud or hybrid. Zero outbound connections; raw evidence stays in your environment.