implementing-honeytokens-for-breach-detection skill (Anthropic-Cybersecurity-Skills)
From Public Agent Wiki
Contents
What it does. 'Deploys canary tokens and honeytokens (fake AWS credentials, DNS canaries, Part of mukul975/Anthropic-Cybersecurity-Skills (817 security skills) (mukul975/Anthropic-Cybersecurity-Skills).
| Upstream | mukul975/Anthropic-Cybersecurity-Skills |
| Skill file | skills/implementing-honeytokens-for-breach-detection/SKILL.md |
| License | Apache-2.0 (skill folder LICENSE) |
| Author | mukul975 |
| Fetched | 2026-09-10 |
Install
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill implementing-honeytokens-for-breach-detection, or copy the skill folder into~/.claude/skills/implementing-honeytokens-for-breach-detection/.- Raw file:
curl -sL https://raw.githubusercontent.com/mukul975/Anthropic-Cybersecurity-Skills/HEAD/skills/implementing-honeytokens-for-breach-detection/SKILL.md
SKILL.md (verbatim)
name: implementing-honeytokens-for-breach-detection
description: 'Deploys canary tokens and honeytokens (fake AWS credentials, DNS canaries,
document beacons, database records) that trigger alerts when accessed by attackers.
Uses the Canarytokens API and custom webhook integrations for breach detection.
Use when building deception-based early warning systems for intrusion detection.
'
domain: cybersecurity
subdomain: security-operations
tags:
- deception-technology
- honeytokens
- canary-tokens
- breach-detection
- dns-canary
- security-operations
version: '1.0'
author: mahipal
license: Apache-2.0
nist_csf:
- DE.CM-01
- RS.MA-01
- GV.OV-01
- DE.AE-02
mitre_attack:
- T1078
- T1190
- T1059
- T1003
- T1110
Implementing Honeytokens for Breach Detection
When to Use
- When deploying or configuring implementing honeytokens for breach detection capabilities in your environment
- When establishing security controls aligned to compliance requirements
- When building or improving security architecture for this domain
- When conducting security assessments that require this implementation
Prerequisites
- Familiarity with security operations concepts and tools
- Access to a test or lab environment for safe execution
- Python 3.8+ with required dependencies installed
- Appropriate authorization for any testing activities
Instructions
Deploy honeytokens across critical systems to detect unauthorized access. Each token type alerts via webhook when triggered by an attacker.
import requests
# Create a DNS canary token via Canarytokens
resp = requests.post("https://canarytokens.org/generate", data={
"type": "dns",
"email": "soc@company.com",
"memo": "Production DB server honeytoken",
})
token = resp.json()
print(f"DNS token: {token['hostname']}")
Token types to deploy:
- AWS credential files (~/.aws/credentials) with canary keys
- DNS tokens embedded in configuration files
- Document beacons (Word/PDF) in sensitive file shares
- Database honeytoken records in user tables
- Web bugs in internal wiki/documentation pages
Examples
# Generate a fake AWS credentials file with canary token
aws_creds = f"[default]\naws_access_key_id = {canary_key_id}\naws_secret_access_key = {canary_secret}\n"
with open("/opt/backup/.aws/credentials", "w") as f:
f.write(aws_creds)
Other files in this skill
references/api-reference.md (verbatim)
API Reference: Implementing Honeytokens for Breach Detection
Canarytokens.org API
import requests
# Create DNS canary token
resp = requests.post("https://canarytokens.org/generate", data={
"type": "dns",
"email": "soc@company.com",
"memo": "Prod DB honeytoken",
"webhook_url": "https://hooks.slack.com/...", # optional
})
token = resp.json() # {"hostname": "xxx.canarytokens.com", ...}
# Available token types
# dns, web_image, aws_keys, cloned_web, doc_msword,
# slack_api, svn, sql_server, qr_code
Token Deployment Locations
| Type | Location | Trigger |
|---|---|---|
| AWS keys | ~/.aws/credentials |
Key used in API call |
| DNS | Config files, code | DNS resolution |
| Web image | Wiki, docs, shares | Image HTTP request |
| Document | File shares | Document opened |
| Database | User/config tables | Record queried |
Webhook Alert Payload
{
"manage_url": "https://canarytokens.org/manage?...",
"memo": "Production honeytoken",
"additional_data": {
"src_ip": "203.0.113.50",
"useragent": "..."
},
"channel": "DNS",
"time": "2025-01-15 14:23:00"
}
Thinkst Canary API (Enterprise)
# List triggered tokens
resp = requests.get("https://console.canary.tools/api/v1/canarytokens/alerts",
params={"auth_token": "<api_key>"})
References
- Canarytokens: https://canarytokens.org/
- Thinkst Canary: https://canary.tools/
- LOLBAS honeytoken guide: https://zeltser.com/honeytokens-canarytokens-setup/
Back to mukul975/Anthropic-Cybersecurity-Skills (817 security skills) or Agent skills.