Guide · Honeytokens

Honeytoken examples. 34 places to plant them, mapped to ATT&CK.

A honeytoken works when it sits exactly where an intruder looks and nowhere a legitimate process touches. This is a field list: where each decoy goes, which attacker behaviour it catches, the ATT&CK and D3FEND techniques it maps to, and what usually sets it off by mistake.

What makes a good honeytoken?

A good honeytoken is believable, sits where an intruder searches, and is never touched by legitimate work. If any of the three fails, it either never fires or fires all the time. New to the idea? Start with honeytokens, explained, which includes a free generator for several of the placements below.

BelievableSame naming, format and age as the real secrets next to it. A key called honeytoken-test fools no one.
On the attacker's pathIn the files, stores and systems that infostealers, supply-chain malware and intruders actually search.
Never used legitimatelyNo job, script or person should ever present it. Then one use is enough to act on.
Alerts on useFire when the credential is presented or the reference is followed, not when a backup tool reads the file.

The examples below are grouped by where they sit. Each row names the attacker behaviour it catches, the MITRE ATT&CK technique it maps to, the MITRE D3FEND deception technique, and the usual false-positive source. D3FEND codes: D3-DUC Decoy User Credential, D3-DF Decoy File, D3-DNR Decoy Network Resource, D3-DST Decoy Session Token, D3-DP Decoy Persona. For the full technique-to-decoy view, see the ATT&CK to deception mapping.

Which honeytokens fit developer laptops?

Developer laptops hold cloud keys, tokens and SSH keys in predictable files, which is exactly why infostealers and supply-chain malware read them first.

# Where it sits Catches ATT&CK D3FEND Usual false positive
1 An extra “backup” profile in the cloud CLI credentials file Stolen local cloud keys being used T1552.001, then T1078.004 D3-DUC Secret scanners that validate keys
2 A backup copy of that file (e.g. credentials.legacy) Bulk file grabs T1552.001 D3-DF, D3-DUC Backup and sync tools (harmless unless the key is used)
3 A .env in a project folder with database and API credentials .env harvesting from disk or exposed web roots T1552.001 D3-DF, D3-DUC CI secret scanners, IDE indexers
4 An old-looking SSH private key plus a host entry that points at a decoy Key theft and lateral SSH T1552.004, T1021.004 D3-DUC, D3-DNR Backup tools, config linters
5 A command in shell history that logs into a “legacy” database Mining history for credentials and hostnames T1552.003 D3-DUC Users re-running history
6 A package-registry token in the user’s registry config, or a token in stored Git credentials Supply-chain malware hunting for publish tokens T1552.001, T1195.002 D3-DUC Package managers read the file but don’t use a token for an unrelated registry
7 A decoy entry in the OS credential store (Keychain, Credential Manager) Credential-store dumping T1555.001, T1555.004 D3-DUC OS sync and enterprise password tooling

Which honeytokens fit browsers and password managers?

Browsers are where infostealers start: the credentials behind the 2024 Snowflake customer breaches came from infostealer logs, some years old.

# Where it sits Catches ATT&CK D3FEND Usual false positive
8 A browser-saved password for a decoy internal admin URL Infostealer browser dumps, then login T1555.003, T1078 D3-DUC, D3-DNR Browser “leaked password” checks and sync
9 A “break-glass (old)” entry in the team password manager Vault export or curious insiders T1555.005 D3-DUC Vault audits and password-health reports
10 A decoy session cookie for a decoy web app Cookie theft and replay T1539, T1550.004 D3-DST Browser profile sync

Which honeytokens fit CI/CD pipelines?

CI secrets were the target of the biggest secret thefts of 2025, and a decoy among them gives an early, unambiguous signal.

# Where it sits Catches ATT&CK D3FEND Usual false positive
11 A cloud decoy key stored as an organisation- and repository-level CI secret Compromised workflows or actions dumping all secrets T1552, then T1078.004 D3-DUC Workflows that iterate over every secret; teammates checking
12 A decoy kubeconfig stored as a CI secret Secret theft followed by a cluster pivot T1552.001, T1613 D3-DUC, D3-DNR Rare
13 A terraform.tfvars.bak or an old state file with cloud keys Looting infrastructure-as-code repos T1552.001, T1213.003 D3-DF, D3-DUC Secret scanners flag the file
14 A decoy package-publish token in CI Token theft to publish trojanised packages T1552.001, T1195.002 D3-DUC Rare

Grafana Labs describes exactly this: decoy cloud keys stored in organisation- and repository-level secrets fired in April 2025 when an attacker who had read secrets through a vulnerable workflow tested them, and the intrusion was contained within minutes.

Which honeytokens fit cloud accounts?

In cloud accounts, decoys go where enumeration lands: function configuration, storage, and the secrets manager.

# Where it sits Catches ATT&CK D3FEND Usual false positive
15 A decoy key in an unused serverless function’s environment Enumerating function configuration T1552.001, T1580 D3-DUC CSPM tools read but don’t use the key
16 A storage bucket README listing “admin diagnostic credentials” Bucket enumeration and looting T1619, T1530 D3-DF, D3-DUC Data-classification scanners
17 A decoy db-backup.sql.gz object with object-level access logging Bulk download from storage T1530 D3-DF Backup and replication jobs that read every object
18 A decoy secret in the cloud secrets manager Secrets-store enumeration and reads T1555.006 D3-DUC Rotation functions, disaster-recovery exports
19 A decoy service-principal certificate or sign-in credential Theft of app credentials and sign-in attempts T1552.004, T1078.004 D3-DUC Rare

Which honeytokens fit Kubernetes?

In Kubernetes, the kubeconfig on a workstation and the Secrets in the cluster are the two places worth a decoy.

# Where it sits Catches ATT&CK D3FEND Usual false positive
20 A decoy “prod” context in a kubeconfig Kubeconfig theft and connecting to “production” T1552.001, T1613 D3-DUC, D3-DNR IDE extensions that connect to every context
21 A decoy Secret (e.g. prod-db-admin) watched through the API audit log Reading secrets through the Kubernetes API T1552.007 D3-DUC Operators and backup tools that list all secrets

Which honeytokens fit Active Directory?

Active Directory has the oldest and most reliable decoys: accounts that no one should ever request a ticket for or sign in as.

# Where it sits Catches ATT&CK D3FEND Usual false positive
22 A privileged-looking service account with an SPN that no service uses Kerberoasting (ticket requests, event 4769) T1558.003, T1087.002 D3-DUC Vulnerability scanners and AD audit tools
23 A dormant decoy user tagged as a honeytoken in your identity protection tool Use of harvested domain credentials, password spraying T1078.002, T1110.003 D3-DUC, D3-DP Stale scripts still using an old account
24 An account without Kerberos pre-authentication AS-REP roasting T1558.004 D3-DUC AD hygiene scanners
25 A decoy password in a Group Policy Preferences file in SYSVOL Hunting SYSVOL for stored passwords T1552.006 D3-DF, D3-DUC Anything that reads SYSVOL: alert on use of the account, not the read

Sean Metcalf’s guidance for the Kerberoasting decoy is direct: “Any Kerberos ticket request involving the honeypot service account should be seen as malicious.”

Which honeytokens fit file shares and databases?

File shares and databases are where intruders look for scripts with hard-coded credentials and for data worth taking.

# Where it sits Catches ATT&CK D3FEND Usual false positive
26 An admin script on a share with an embedded credential Share crawling for hard-coded credentials T1135, T1552.001 D3-DF, D3-DUC Antivirus and file indexers: alert on use
27 Tempting documents (vpn-access.docx, passwords.xlsx) that report when opened Opening files after a grab T1083 D3-DF Document previewers and sandboxes that open files
28 A database connection string in app config pointing at a decoy host Config looting, then connecting T1552.001, T1213.006 D3-DUC, D3-DNR Tools that pre-resolve hostnames
29 A production-credentials.sql dump file Grabbing database dumps T1552.001, T1083 D3-DF Restore tests on backups
30 A decoy record in a production table (a customer with a unique e-mail address) Bulk exfiltration and misuse of the data T1213.006 D3-DF Marketing jobs that mail every customer: exclude the record

Which honeytokens fit SaaS and AI tooling?

Wikis, chat and AI tool configuration are newer hunting grounds, and AI agents read them as eagerly as people do.

# Where it sits Catches ATT&CK D3FEND Usual false positive
31 A wiki page with a decoy “admin dashboard” link and credentials Wiki searches for “password” and “admin” T1213.001, T1213.002 D3-DF, D3-DNR The noisiest placement: link checkers and indexers fetch URLs
32 A decoy credential in an old chat channel Searching chat history for secrets T1552.008 D3-DUC Chat secret-scanning integrations
33 A decoy MCP server entry in an AI client’s MCP configuration Intruders or hijacked agents enumerating and calling MCP tools T1552.001 (closest fit) D3-DNR, D3-DUC Your own agent connecting: disable the entry for it
34 A decoy model-provider key in a project .env Malware harvesting AI keys with other secrets (LLMjacking) T1552.001 D3-DUC Secret scanners; see the format warning below

ATT&CK has no technique specific to MCP or AI agents yet, so rows 33 and 34 use the closest credential-access technique. For the AI side in depth, see MCP servers as decoys and detecting AI agents with decoy credentials.

Which incidents show where real secrets are stolen?

Every placement above mirrors a place where real credentials were taken in a public incident.

  1. Cloudflare

    One service token and three service-account credentials from the October 2023 Okta compromise were never rotated because they were believed unused; the attacker used them to reach Confluence, Jira and Bitbucket.

  2. Snowflake customer instances

    Credentials stolen by infostealers, some from 2020, were used against accounts without MFA. Mandiant counted about 165 notified organisations; at least 79.7% of the accounts had earlier credential exposure.

  3. EMERALDWHALE

    Mass scanning for exposed Git configuration and .env files collected more than 15,000 cloud credentials, Sysdig reported.

  4. tj-actions/changed-files

    A compromised GitHub Action printed CI secrets into workflow logs (CVE-2025-30066); CISA added it to the Known Exploited Vulnerabilities catalog.

  5. GhostAction and Shai-Hulud

    A malicious workflow pushed to 817 repositories stole 3,325 CI secrets; days later a self-replicating npm worm harvested tokens and cloud keys from developer machines and CI.

How do you keep honeytokens from firing by mistake?

Alert on use, not on read, and keep your own tools away from the decoys.

  • Use, not read. Backup, sync, antivirus and indexing tools read files all day. A credential that is presented, or a reference that is followed, is the signal.
  • Exclude your own automation. Disable decoy MCP entries for your own agents, keep decoy URLs out of link checkers, and record known scanners before arming.
  • Tell the right people. Grafana Labs saw benign “curiosity” triggers from staff; a short note to engineering leads avoids them.
  • Gate the noisiest types. URLs in wikis are fetched by indexers. Alert on a deeper interaction, such as a credential presented on the decoy page.

What should you avoid when creating decoy credentials?

Realistic is good; indistinguishable from a real vendor’s live key format is a problem, and shared public canary services can be recognised.

  • Provider key formats trigger secret scanning. GitHub’s partner program sends realistic-looking keys found in public repositories to the provider, which may revoke them, and push protection blocks them by default on public repos.
  • Public canary keys can be fingerprinted. A cloud access key ID reveals the account it belongs to (GetAccessKeyInfo), and Truffle Security made TruffleHog flag keys from the public canarytokens.org service without setting them off. Issue decoys from infrastructure you control.
  • No real brands, people or customer data. Use names that match your own conventions, never someone else’s.
  • Never a real, reachable credential. A decoy must lead nowhere real. See self-hosted vs hosted canary tokens for where the alerting runs.

For the plan around these examples, see the deception deployment guide; for definitions, the glossary.

Questions

What is a honeytoken example?

A typical honeytoken is an extra, never-used profile in a cloud credentials file, a fake .env with database credentials, a service account with an SPN that no service uses, or a decoy entry in a password manager. Nothing legitimate ever uses it, so any use is a strong signal that someone found it while looking for a way in.

Where should I place honeytokens first?

Start where real secrets leaked in recent incidents: developer laptops (cloud credentials, .env files, SSH keys), CI/CD secrets, cloud secrets managers and Active Directory (a Kerberoasting decoy account). These are the places infostealers, supply-chain malware and intruders search first.

Do honeytokens cause false positives?

Some do. Backup and sync tools copy decoy files, secret scanners and link checkers touch decoy keys and URLs, and IDE extensions may connect to every configured context. The fix is to alert on use of a credential, not on reading a file, and to exclude your own tooling where the placement allows it.

Can attackers detect honeytokens?

Sometimes. Keys from shared public canary services can be recognised by their cloud account, and decoys that look different from the real ones stand out. Issue decoys from infrastructure you control, match your real naming conventions, and spread several types across the environment.

Which MITRE techniques do honeytokens cover?

Mostly ATT&CK Credential Access and Discovery: T1552 Unsecured Credentials, T1555 Credentials from Password Stores, T1558 Steal or Forge Kerberos Tickets, T1528 Steal Application Access Token, T1213 Data from Information Repositories and T1530 Data from Cloud Storage. In D3FEND they are Deceive techniques such as Decoy User Credential (D3-DUC) and Decoy File (D3-DF).

Can FalseTrail plant these?

FalseTrail plants decoy credentials, documents and references across workstations, servers, cloud accounts, Kubernetes, CI pipelines and AI tooling, deployed by your own tools. The first use opens a finding that names the exact machine and file, and FalseTrail follows what the attacker does next. See the platform page for the placement types.

Sources

  1. MITRE ATT&CK, T1552 Unsecured Credentials and sub-techniques
  2. MITRE ATT&CK, T1555 Credentials from Password Stores
  3. MITRE ATT&CK, T1558.003 Kerberoasting
  4. MITRE D3FEND, Deceive tactic
  5. MITRE Engage data (v1.0), activities
  6. Lenny Zeltser, Where to plant honeytokens (30 April 2026)
  7. Lenny Zeltser, A decoy MCP server as a honeypot (3 May 2026)
  8. Grafana Labs, Canary tokens: the unsung heroes of security at Grafana Labs (25 August 2025)
  9. Sean Metcalf, Detecting Kerberoasting activity part 2: creating a Kerberoast service account honeypot
  10. Microsoft Learn, Defender for Identity entity tags (honeytoken accounts)
  11. Canarytokens documentation, token types
  12. Sysdig, EMERALDWHALE: 15k cloud credentials stolen (30 October 2024)
  13. CISA, Supply chain compromise of tj-actions/changed-files (CVE-2025-30066) and reviewdog/action-setup (CVE-2025-30154)
  14. GitGuardian, The GhostAction campaign: 3,325 secrets stolen
  15. CISA, Widespread supply chain compromise impacting the npm ecosystem (23 September 2025)
  16. Mandiant, UNC5537 targets Snowflake customer instances
  17. Cloudflare, Thanksgiving 2023 security incident
  18. GitHub Docs, Secret scanning partner program
  19. AWS, GetAccessKeyInfo
  20. Truffle Security, Canaries

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.