Agent Skills: Implementing Honeytokens for Breach Detection

>

UncategorizedID: autohandai/community-skills/implementing-honeytokens-for-breach-detection

Install this agent skill to your local

pnpm dlx add-skill https://github.com/autohandai/community-skills/tree/HEAD/implementing-honeytokens-for-breach-detection

Skill Files

Browse the full folder contents for implementing-honeytokens-for-breach-detection.

Download Skill

Loading file tree…

implementing-honeytokens-for-breach-detection/SKILL.md

Skill Metadata

Name
implementing-honeytokens-for-breach-detection
Description
>

Implementing Honeytokens for Breach Detection

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:

  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

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