New to Claude Skills? Learn how to install them →

mukul975 on GitHub

Implementing Honeytokens for Breach Detection

Free

Enhance your security posture with deception technology.

Get this skill

Free · Opens the source repo

What Implementing Honeytokens for Breach Detection does

Implementing Honeytokens for Breach Detection is a skill designed for security professionals looking to bolster their intrusion detection capabilities through deception technology. By deploying various types of honeytokens, such as fake AWS credentials, DNS canaries, document beacons, and database records, this skill enables organizations to receive alerts when these tokens are accessed by unauthorized users. This proactive approach to security allows teams to detect potential breaches early and respond accordingly, minimizing the impact of any security incidents.

The skill utilizes the Canarytokens API to generate and manage these honeytokens, which can be strategically placed across critical systems within an organization. Each token type serves a specific purpose, whether it’s to lure attackers into accessing fake credentials or to monitor unauthorized access to sensitive documents. The alerts are sent via webhooks, making it easy to integrate with existing security operations and incident response workflows.

This skill is particularly useful for security operations teams tasked with establishing robust security controls aligned with compliance requirements. It is also beneficial for those conducting security assessments, as it provides a practical implementation of deception-based security measures. Familiarity with security operations concepts and Python programming is recommended to effectively deploy and manage these tokens in a test or production environment.

In summary, Implementing Honeytokens for Breach Detection is a valuable tool for organizations aiming to enhance their security architecture and improve their incident detection capabilities through the strategic use of deception technology.

When to use it

Use this skill when deploying honeytokens in your security environment or when conducting security assessments that require early breach detection.

When not to use it

This skill may not be suitable for environments where deception technology is not permitted or where simpler security measures are sufficient.

What you can build with it

Deploying AWS Honeytokens

Generate and deploy fake AWS credentials to detect unauthorized access attempts to your cloud resources.

Creating DNS Canaries

Set up DNS canary tokens to monitor for unauthorized queries and potential data exfiltration.

Implementing Document Beacons

Place document beacons in sensitive file shares to alert you when an attacker accesses confidential documents.

How to install Implementing Honeytokens for Breach Detection

View source

1. Install with the skills CLI

npx skills add mukul975/anthropic-cybersecurity-skills/implementing-honeytokens-for-breach-detection --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by mukul975

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:

  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)

Frequently asked questions about Implementing Honeytokens for Breach Detection

Similar skills