بنقرة واحدة
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