Skip to content
Back to skills

Implementing Honeytokens For Breach Detection

BSecurity

'Deploys canary tokens and honeytokens (fake AWS credentials, DNS canaries, document beacons, database records)

  • 31,965 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 29, 2026
securitypythonawstestingapidatabasesecuritydocumentation

Works with

  • api

Security analysis

B75/100
  • criticalAccesses sensitive system or user directories

Pro scans all 4 files and shows the line behind each finding

Scanned May 29, 2026

npx -y skills add mukul975/Anthropic-Cybersecurity-Skills --skill implementing-honeytokens-for-breach-detection --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Implementing Honeytokens For Breach Detection?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Implementing Honeytokens For Breach Detection
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/mukul975-implementing-honeytokens-for-breach-detection/badge)](https://www.skillsdirectory.com/skills/mukul975-implementing-honeytokens-for-breach-detection)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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:
- implementing
- honeytokens
- for
- breach
version: '1.0'
author: mahipal
license: Apache-2.0
nist_csf:
- DE.CM-01
- RS.MA-01
- GV.OV-01
- DE.AE-02
---

# 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.

```python
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:
1. AWS credential files (~/.aws/credentials) with canary keys
2. DNS tokens embedded in configuration files
3. Document beacons (Word/PDF) in sensitive file shares
4. Database honeytoken records in user tables
5. Web bugs in internal wiki/documentation pages

## Examples

```python
# 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)
```

Files in this skill

  • LICENSE11 KB
  • SKILL.md2.2 KB
  • references/api-reference.md1.5 KB
  • scripts/agent.py6.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…