Learn

Deception

What Are Canary Tokens?

A canary token is a planted artefact that nothing legitimate should ever touch, wired so that touching it sends a signal. A file, a set of credentials, a URL, an AWS key. The detection logic is not statistical. It does not ask whether behaviour looks unusual, it asks whether a specific object that has no authorised use was accessed at all. That produces very high precision at unknown recall, which is the opposite trade to most detection technology, and it is why tokens complement behavioural monitoring rather than replacing it.

The idea, and where it comes from

A canary token is an artefact planted specifically so that interacting with it produces an alert. A document, a credential, a database record, a URL, a cloud API key. It performs no function and serves no user. Its entire purpose is to be untouched, and to report the exception.

The lineage runs back to Clifford Stoll's tracking of an intruder through Lawrence Berkeley Lab in the late 1980s, documented in The Cuckoo's Egg. Lance Spitzner formalised honeypots in 2001 with the definition that a honeypot's value lies in being probed, attacked or compromised, and extended the concept to honeytokens in 2003 as non computer honeypots: digital entities with no authorised use.

ENISA published an independent definition in 2012. "Canary token" is later, and came from Thinkst, whose free canarytokens.org service made the technique accessible enough that the name went generic. Competitors now use it as a subset of honeytoken.

The terminology is worth getting right because the categories are genuinely different. A honeypot is infrastructure. A honeytoken is an object. You defend them differently and you deploy them differently.

Three mechanisms, many wrappers

The apparent variety of token types collapses to three callback primitives.

DNS resolution. The token embeds a unique hostname. Anything that causes that hostname to be looked up produces a record at the authoritative server, which is the alert. Worth knowing: DNS tokens report the resolver's address, not the source's, so you learn that something happened without reliably learning where.

HTTP request. Opening the artefact causes a fetch of a remote resource. Web bugs in documents, tracking pixels in email, unique URLs. These carry more context than DNS, including user agent and source address, when they fire at all.

Cloud provider audit log. A planted API key, typically AWS, which does nothing but whose use registers in the provider's own logging. Note a delay of roughly two to thirty minutes on the provider side, which matters if you are expecting real time.

Everything else is packaging. A Word document token is an HTTP token in a document. A Windows folder token uses a desktop.ini file with a UNC icon path, and fires when the folder is browsed or when an archive containing it is extracted. A QR token is a URL token you can print.

The statistical argument, stated properly

The usual vendor claim is that canary tokens have near zero false positives. We went looking for a measured rate and did not find one, anywhere. The claim is definitional, not empirical: if the artefact has no authorised use, then interaction is by definition unauthorised.

That reasoning is sound as far as it goes, and the better version of the argument is worth making, because it explains why the technique is valuable in a way the marketing version does not.

The relevant idea is the base rate fallacy, which Stefan Axelsson set out in relation to intrusion detection in a 2000 ACM paper. Where the population of benign events vastly outnumbers malicious ones, even a detector with an excellent false positive rate produces alerts that are mostly false, simply because there is so much more benign activity to be wrong about. This is why anomaly detection generates the alert volumes it does. It is not a tuning failure, it is arithmetic.

A canary token sidesteps this by not sampling the benign population at all. It does not classify events, it waits for a specific object to be touched. The benign event rate against that object is designed to be zero.

The cost is on the other side of the ledger. Precision is bought with recall that cannot be measured. You have no idea how many intrusions walked past your tokens without touching them, and no way to find out. A behavioural system that catches 60 percent of intrusions with heavy noise is measurable. A token that fires perfectly when it fires tells you nothing about the intrusions it missed.

That is the honest trade, and it is why tokens complement behavioural detection rather than replacing it.

They do misfire

The zero false positive framing survives contact with production for about a week.

Security scanners crawl file shares. Backup software indexes documents. Email gateways rewrite and pre fetch links, which fires URL tokens on delivery rather than on reading. Data loss prevention tools inspect file contents. Cloud security posture tools enumerate credentials.

None of these are attackers. All of them touch things.

The practical answer is to know your own environment's automated touchers and either exclude them or expect their signature. But plan for it, rather than being surprised when the first alert turns out to be your own backup job.

Placement

No published study measures where tokens should go. Everything in the public record is practitioner judgement, and it should be labelled as such.

The reasoning that practitioners offer is straightforward enough. Place tokens along the paths an intruder takes after gaining a foothold, rather than where a legitimate user would routinely go. File shares an attacker would enumerate looking for credentials. Password manager exports. Documents named in ways that invite opening. Credentials in configuration files. Database records that only a bulk extraction would reach.

The most commonly described mistake is placing tokens where staff will encounter them, producing false alerts and eroding trust in the signal. The second is deploying so many that the operational burden of maintaining them exceeds the value.

There is one academic figure worth knowing and treating carefully: Shabtai and colleagues reported complete misuse detection in a study, but at a token density of 20 percent of the data set. That is an extraordinary density, far beyond what most organisations would tolerate, and it illustrates the recall problem rather than solving it.

What attackers do about them

Assume a competent adversary looks.

Planted AWS credentials can be tested with an identity call that reveals metadata without constituting use. In the common free implementation the callback domain is embedded in the IAM username, which is visible to anyone who checks. Document tokens can be examined before opening. Files can be copied and analysed offline.

There is also a denial of service consideration with public token services: the alert endpoint is unauthenticated, so anyone who discovers your token can trigger it deliberately and repeatedly.

None of this makes tokens useless. It means they catch the unsophisticated and the hurried, which is a large share of real intrusions, and it means you should not treat a silent token as evidence that nothing happened.

Where this sits in the frameworks

MITRE retired Shield in favour of MITRE Engage, which provides a matrix, a playbook and a starter kit covering adversary engagement. The deception relevant activities are Lures, Pocket Litter and Artifact Diversity.

Engage is planning vocabulary rather than implementation guidance. It helps you describe and structure a deception programme and integrate it with ATT&CK. It will not tell you where to put a token.

How this relates to decoys

A canary token is the artefact level version of the same principle behind cyber decoys, which operate at the level of systems and credentials rather than individual objects. The detection logic is identical in both cases: nothing legitimate has a reason to touch this, so one interaction is a high confidence signal rather than something to be scored against normal behaviour.

The practical difference is effort. A token takes minutes to create and can be planted by anyone. A decoy environment requires design, deployment and maintenance. Tokens are the accessible end of the same idea, which makes them a reasonable place to start.

If you deploy them

Start small and place deliberately. A handful of tokens in locations an intruder would actually reach beats a hundred scattered.

Know what will touch them legitimately, and exclude or expect it.

Have a response plan before the first alert. A token firing means someone is inside. If nobody knows what to do at that point, the token has bought you nothing.

Treat silence as uninformative. It is not evidence of absence.

And take local advice if tokens could implicate employees. The legal position in Europe is not settled by precedent, and works council consultation obligations are real in several jurisdictions.

Common questions

What is the difference between a honeypot, a honeytoken and a canary token?

A honeypot is a whole system deployed to be probed. A honeytoken is any digital artefact, rather than a system, that has no authorised use, so interaction with it is inherently suspicious. Lance Spitzner defined honeytokens in 2003 as non computer honeypots. Canary token is Thinkst origin vocabulary for a particular implementation of honeytoken that has since become near generic, and competitors treat it as a honeytoken subset.

Do canary tokens really have near zero false positives?

The claim is definitional rather than measured, and we could not find a published false positive rate anywhere. The reasoning is that an artefact with no authorised use should not be touched, so any interaction is meaningful. In practice tokens do misfire: security scanners, backup indexing, email gateway link rewriting and DLP tools all touch things. The precision is genuinely high but the honest claim is that it is high, not that it is zero.

How do the callbacks actually work?

Almost all token types reduce to three primitives. A DNS resolution, where the token embeds a unique hostname that must be looked up. An HTTP request, where opening something fetches a remote resource. Or a cloud provider audit log entry, where using a planted API key registers in the provider's own logging. Everything else is packaging around one of those three.

Can attackers detect and avoid them?

Yes, and increasingly they look. Planted AWS credentials can be tested with a call that reveals identity metadata without triggering use, and in the case of the common free service the callback domain is visible in the IAM username. Document tokens can be inspected before opening. Assume a competent attacker checks.

Is this legal in Europe?

No European data protection authority decision or EDPB guideline addresses honeytokens directly, so the position is not settled by precedent. The practical exposures are employment law rather than criminal law: works council consultation where required, transparency obligations toward employees under GDPR, and whether evidence gathered this way is admissible in a disciplinary process. Entrapment is generally the wrong frame, since it constrains state actors rather than private employers. Take local advice before deploying tokens that could implicate staff.

Are they a replacement for endpoint detection?

No. Thinkst's own most cited writing on the subject calls canaries smoke alarms, which is a reasonable description. A token tells you someone is inside. It does not tell you how they got there, what else they have touched, or how to remove them.

Check your own exposure

Enter a work email and SphereTI checks it against known breaches and stealer logs, then shows you which credentials have been exposed. Free, and it never asks for your password.

Get your free report

Keep reading