implementing-honeytokens-for-breach-detection
它能做什么
这个工具会创建数字“陷阱”,比如假凭据或特殊链接。如果攻击者试图使用这些陷阱,你会立即收到提醒。
适用场景
- ✓搭建用于发现入侵者的安全系统时。
- ✓需要尽早获得未授权访问的预警时。
- ✓测试你的系统安全性时。
技能链接
https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/implementing-honeytokens-for-breach-detection/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“创建一个假的 AWS 凭据,帮我查出是谁在尝试访问我的系统。”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具会生成特殊的“令牌”,并放置在关键位置。当有人(或攻击者)试图访问或使用这些令牌时,系统会向你发送通知。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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)
常见问题
什么是 honeytokens?
它们是为引诱和发现攻击者而创建的假数据或假文件。它们看起来很真实,但实际上是报警器。
我可以创建哪些陷阱?
你可以创建假的 AWS 凭据、被访问时会发出提醒的 DNS 链接、带有追踪器的文档,甚至是假的数据库记录。
我怎么知道自己是否遭到入侵?
当攻击者与你部署的某个“令牌”发生交互时,工具会向你发送提醒,表明有可疑情况发生。
详情
作者的原始描述
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. '
热度
- GitHub 星标
- 35k
- 排名
- #8055
- 许可证
- Apache-2.0
- 更新时间
- 2026/8/31
评论
- …
同一仓库的更多技能
abusing-dpapi-for-credential-access
35k为你的 AI 智能体提供针对特定任务的现成指令,让它完成得更好、更快。
abusing-shadow-credentials-for-privesc
35k教你的 AI 智能体写出清晰、结构良好的文本。
achieving-cmmc-level-2-compliance
35k帮助你的智能体搭建符合 CMMC Level 2 合规要求的环境。它会落实安全要求,并管理必要的文档。
acquiring-disk-image-with-dd-and-dcfldd
35k帮助你的智能体创建硬盘的精确副本。这能确保调查过程中信息不丢失、不被篡改。