一键导入
canary-token-system
Manage the canary token honeypot system for detecting security scanning
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Manage the canary token honeypot system for detecting security scanning
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Migrate from Next.js 15 to Next.js 16 and handle breaking changes
Configure Content Security Policy and security headers for the portfolio
Deploy Next.js to Cloudflare Workers using OpenNext adapter
Write, debug, and optimize GROQ queries for Sanity CMS in this portfolio
Advanced TypeScript patterns and type safety as used in this portfolio
Advanced React patterns and best practices used in this portfolio
| name | canary-token-system |
| description | Manage the canary token honeypot system for detecting security scanning |
Manage the canary token honeypot system that detects automated security scanners and penetration testing tools.
The canary system plants fake secrets in predictable locations that scanners will find and try to use. When a scanner uses a token, it triggers a notification.
public/.well-known/security.txt → contains canary token
API route → validates token → sends notification
src/lib/canary/notify.ts → notification logic (Slack, Discord, Email)
| File | Purpose |
|---|---|
public/.well-known/security.txt | Canary token location |
src/lib/canary/notify.ts | Notification dispatch (escapeHtml for XSS prevention) |
src/app/api/canary/route.ts | API endpoint for token validation |
.github/codeql/codeql-config.yml | CodeQL exclusions for intentional honeypot code |
public/robots.txt, public/.env.example)Edit src/lib/canary/notify.ts. Current channels:
CANARY_SLACK_WEBHOOK env varCANARY_DISCORD_WEBHOOK env varCANARY_EMAIL env var (via Resend)escapeHtml() before rendering.github/codeql/codeql-config.yml