D076F1
Application
💀 Source Code Honeytoken
Fake creds in code comments and config files.
What it is
Deliberately planted fake credentials, API keys, and connection strings in source code comments, configuration files, and environment templates. These are specifically crafted to be picked up by attacker tools (TruffleHog, GitLeaks, manual grep) and, when used, route to DOAR-controlled infrastructure.
Implementation requirements
- Fake credentials that match organizational naming patterns (PHANTOM's "polymorphic" approach)
- Placement locations (in order of attacker likelihood to find):
- Honey credentials MUST:
- Follow the exact format of real credentials (e.g., AWS keys start with
AKIA, Stripe keys start withsk_live_) - Route to DOAR-monitored infrastructure when used
- Be rotated on a schedule matching real credential rotation
- Monitoring: CloudTrail, API Gateway logs, custom webhook on credential use
- Rollback: Remove the planted values and revoke the tokens behind them; they remain in version-control history, so treat them as permanently exposed.
- Upkeep: Rotate them on the same schedule as real secrets. Monthly proof-of-life use.
Technologies
AWSApplication
ATT&CK coverage 5
| Technique | Tactic | Status | Confidence | Tier |
|---|---|---|---|---|
| T1005 Data from Local System |
Collection | confirmed | strong | T2 |
| ↳ Detection point: the decoy fires at a later step of the attack | ||||
↳ Evidence (2 sources)
| ||||
| T1213.003 Code Repositories |
Collection | confirmed | strong | T2 |
| ↳ Detection point: the decoy fires at a later step of the attack | ||||
↳ Evidence (4 sources)
| ||||
| T1552.001 Credentials In Files |
Credential Access | confirmed | strong | T2 |
| ↳ Detection point: the decoy fires at a later step of the attack | ||||
↳ Evidence (5 sources)
| ||||
| T1083 File and Directory Discovery |
Discovery | confirmed | strong | T2 |
| ↳ Detection point: the attack step itself touches the decoy | ||||
↳ Evidence (2 sources)
| ||||
| T1037 Boot or Logon Initialization Scripts |
Persistence | theoretical | moderate | T2 |
| ↳ Detection point: the decoy fires at a later step of the attack | ||||
↳ Evidence (2 sources)
Reading credentials out of a decoy logon script is logged; the credential fires when used. | ||||
Evidence
- PHANTOM: Polymorphic Honeytoken Adaptation with Narrative-Tailored Organisational Mimicry — Weinberg, A.I., arXiv:2605.02992 2026 peer-reviewed
- Canarytokens — Thinkst Applied Research industry
- Honeytoken Deployment Strategies — GitGuardian industry
- MITRE Engage — adversary engagement matrix and ATT&CK mapping — MITRE 2022 standard
- GitGuardian Honeytoken — core concepts — GitGuardian industry
- MITRE ATT&CK Enterprise v20.0 — MITRE 2026 standard
Research basis: Weinberg, "PHANTOM: Polymorphic Honeytoken Adaptation" (ResearchGate, 2026). Thinkst Canarytokens (Industry Standard). GitGuardian Honeytoken Deployment (2024-2026).