Skip to content
Skillpedia
Deploy & cloud (DevOps)35k · #5620

deploying-honeytokens-and-canarytokens

Lets your agent create digital 'traps' to detect unauthorized access. It alerts when someone tries to use these traps.

What it does

This tool creates 'honeytokens' (canarytokens), which are fake files or links. If anyone tries to use or open one of these tokens, you get an alert.

When to use it

  • ✓To detect intruders in areas with little information.
  • ✓To know if stolen credentials were used.
  • ✓To identify data theft or ransomware staging.

Example of what to ask your AI

“Create a fake document token to detect unauthorized access to important files.”

Want more? Open the sections below.

How to use

The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.

Skill link

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/deploying-honeytokens-and-canarytokens/SKILL.md

Ready-to-paste message

Use this skill to help me: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/deploying-honeytokens-and-canarytokens/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
How it works

You set up a special server (Canarytokens) that generates these fake tokens. When a token is activated, it sends a notification to you via email or another system.

Installation

Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.

In the terminal (Claude Code, Codex, Cursor), in your project folder:

npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill deploying-honeytokens-and-canarytokens

Or download just the file:

curl -L https://raw.githubusercontent.com/mukul975/Anthropic-Cybersecurity-Skills/main/skills/deploying-honeytokens-and-canarytokens/SKILL.md -o SKILL.md
Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Deploying Honeytokens and Canarytokens

Authorized Use Only: Deception assets described here are defensive controls deployed inside your own environment. Deploying tokens, decoy credentials, or honeypots on infrastructure you do not own or administer, or using them to entrap third parties, may violate computer-misuse and privacy law. Deploy only on assets you own or are explicitly authorized to instrument, and route all alert data through approved monitoring channels.

Overview

Honeytokens (a.k.a. canarytokens) are decoy artifacts — credentials, files, URLs, API keys, DNS names, database connection strings, documents — that have no legitimate operational use. Because no authorized user or process should ever touch them, any interaction is a high-fidelity signal of an intrusion, insider misuse, or reconnaissance. Unlike signature- or anomaly-based detection, honeytokens generate near-zero false positives: the alert is the compromise.

Thinkst's open-source Canarytokens project (https://canarytokens.org and the self-hostable thinkst/canarytokens-docker) generates dozens of token types that "phone home" when triggered: an HTTP/web-bug URL that fires on GET, an AWS API key that fires when used against AWS, an MS Word/PDF document that fires on open, a DNS token that fires on resolution, a Slack API token, a Kubernetes kubeconfig, an Azure login certificate, a log4shell payload, and more. Each token is bound to a unique memo (so you know where it was planted) plus an alert channel (email and/or webhook).

This skill maps to MITRE D3FEND's Decoy File (D3-DF), Decoy User Credential (D3-DUC), and Honeytoken techniques. From an ATT&CK perspective, a triggered honey credential most commonly evidences adversary attempts to abuse or modify authentication material (T1556 – Modify Authentication Process and related credential-access activity), giving the SOC an early, unambiguous tripwire deep inside the kill chain — typically after initial access but before lateral movement completes.

When to Use

  • When you need high-fidelity intrusion detection in segments where traditional telemetry is sparse (file shares, password vaults, code repos, cloud accounts).
  • When validating that an attacker who reaches a "crown-jewel" host or document store is detected, not just blocked at the perimeter.
  • When seeding decoy credentials into LSASS-reachable memory, browser stores, .aws/credentials, or password managers to catch credential dumping and reuse.
  • When instrumenting documents, repos, or wikis to catch data theft and ransomware staging.
  • When building a MITRE D3FEND-aligned deception layer as part of a defense-in-depth or zero-trust program.

Prerequisites

  • Docker Engine and Docker Compose v2 for self-hosting (docker compose version).
  • A registered domain you control plus DNS delegation for DNS-based tokens (NS records pointing at your switchboard host).
  • A public IPv4 address reachable on 80/443 (HTTP tokens) and 53/udp (DNS tokens).
  • An SMTP relay or Mailgun account, and/or a Slack/Teams/generic webhook URL for alert delivery.
  • Python 3.8+ for the helper script:
    python3 -m pip install requests
    
  • For quick use with no hosting, an account-free token from the public service at https://canarytokens.org.

Objectives

  • Stand up a self-hosted Canarytokens instance (or use the public service) with working alerting.
  • Generate the major token types (HTTP, DNS, AWS key, MS Word/PDF, Slack, kubeconfig) with descriptive memos.
  • Plant decoy credentials and decoy files in realistic, monitored locations.
  • Validate that each token fires and that alerts reach the SOC channel.
  • Catalogue deployed tokens and map them to MITRE D3FEND/ATT&CK for coverage tracking.

MITRE ATT&CK Mapping

ID Official Technique Name Relevance
T1556 Modify Authentication Process A triggered honey credential reveals an adversary harvesting/abusing authentication material; the decoy provides a detection tripwire for credential abuse activity.

Related MITRE D3FEND defensive techniques (the offensive counter-mapping for this control):

D3FEND ID Technique Role
D3-DF Decoy File Canary documents, fake configs, decoy archives placed and monitored.
D3-DUC Decoy User Credential Honey credentials (AWS keys, AD accounts, kubeconfig) integrated with a monitored decoy asset.

…

FAQ

What are 'honeytokens'?

They are fake items (like passwords, links, or documents) created to look real. They have no normal use, so any access to them is a warning sign.

Why use this?

To detect suspicious activities with high accuracy, as only an intruder or someone acting maliciously would use these tokens.

Do I need to install anything?

Yes, you can install the Canarytokens program on your own computer (using Docker) or use their free online service.

Details

Original description by the author

Plants Canarytokens-based decoy artifacts (honey credentials, DNS tokens, web-bug URLs, AWS keys, documents, kubeconfigs) using Thinkst's open-source Canarytokens project and alerts via email or webhook when a token is touched. Use for high-fidelity intrusion detection in low-telemetry areas like file shares or credential stores, or to catch credential dumping and data-theft staging.

repo: mukul975/Anthropic-Cybersecurity-Skills

Popularity

GitHub stars
35k
Ranking position
#5620
License
Apache-2.0
Updated
8/31/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills