できること
Your coding agent plants honeytokens: real powerless AWS keys and webhook traps, with alerts.
作者による原文
- 接続方法 パソコンで動く
- アカウントまたはキー キー不要
- カテゴリ 開発者ツール
一緒に使える
この種の作業を AI に教える Skill。これと一緒に使えます
andrej-karpathy-skills
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
graphify
Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.
この順位の理由
一覧は利用スコア(100 点満点)で並びます。内訳は次のとおり
| 人気 | 0/80 | GitHub スターか週間ダウンロード数。大きい方を 60、小さい方を 20 で数えます |
|---|---|---|
| 新しさ | 12/12 | 30 日以内のリリースかコード更新で満点 |
| 応答中 | 0/8 | 前回の確認でクラウドのエンドポイントが応答 |
| 利用スコア | 12/100 |
品質: 基本チェック 3/3 項目に合格(表示のみ、並び順には不使用) · 勢い: データなし (「急上昇」タブでのみ使用)
インストール
使っているAIアプリを選んで、設定をコピーしてください。
ひとことで AI にインストールしてもらう
Honeytokens as Code をインストールして。https://mcp.popnx.com/i/dradradre-honeytokens-as-code.md に従い、コマンドを見せて、私が OK するまで実行しないで。パソコンで作業できる AI(Claude Code や Cursor など)に貼り付けます。手順を読み、コマンドを見せて、あなたの OK を待ちます。キー不要・登録不要。 · AI が読む全文を見る
チェック 3/3 合格 · あなたのパソコンで動きます · ✓ コマンド確認済み 2026年11月25日
まず:どの AI を使っていますか?
使っているアプリを選ぶと、下に手順が表示されます。
Claude につなげますが、先に準備が必要です
先にパソコンへ Node.js を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
AI にインストールしてもらう
このメッセージを Claude のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。
このパソコンの Claude に MCP server Honeytokens as Code を入れてください。順番に:1) node -v で Node.js があるか確認。なければ https://nodejs.org/en/download から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "honeytokens-as-code": { "command": "npx", "args": [ "-y", "honeytokens-as-code", "mcp" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Honeytokens as Code のツールが本当に表示されるか確認する。このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。
Node.js を入れる(まだなければ)
もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter
node -v- バージョン番号(例 v26.13.1)が出る = 入っています。この手順は飛ばせます
- "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
ターミナルの開き方
Mac:⌘ + Space を押し、Terminal と入力して Enter
Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」
まだ入っていない場合: 公式ダウンロードページで LTS 版と、クリックで進むインストーラーを選びます:Mac は .pkg、Windows は .msi。ダブルクリックして最後まで進めるだけで、curl コマンドは不要です
入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です:
node -v一度入れれば、Node.js を使うすべてのツールで使えます
パソコン版 Claude アプリの設定ファイルを開く
SettingsDeveloperEdit Config
この設定を貼り付けて保存
{ "mcpServers": { "honeytokens-as-code": { "command": "npx", "args": [ "-y", "honeytokens-as-code", "mcp" ] } } }Claude を終了してもう一度開く
試してみる
Honeytokens as Code を使って、私に何ができるか教えて、1 つやってみせて✓ Claude が Honeytokens as Code を使っていると言うか、回答に Honeytokens as Code のツール名が出れば接続成功です
追加の設定 2 項目(入力しなくても使えます)
上のコマンドはこれらがなくても動きます。変えたいときだけ作者の説明に沿って追加してください。
HONEYTOKEN_BASE_URLPublic URL of your alert server, used in webhook traps (default http://127.0.0.1:8787)HONEYTOKEN_HOMEトラップレジストリとアラートログのデータディレクトリ(デフォルト /.honeytoken)英語の原文を見る
Data directory for the trap registry and alert log (default ~/.honeytoken)
説明は自動翻訳です。変数名は原文のままです。迷ったら原文を確認してください。
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
ChatGPT はまだ Honeytokens as Code につなげません
Honeytokens as Code はパソコンに入れて使うものですが、ChatGPT は Web 上で動くサーバーにしかつなげません
代わりにできること
A · Honeytokens as Code につなげるアプリを使う
- 先にパソコンへ Node.js を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
- 先にパソコンへ Node.js を入れてください(1 回だけ)
- 先にパソコンへ Node.js を入れてください(1 回だけ)
- 先にパソコンへ Node.js を入れてください(1 回だけ)
B · 開発者ツール の中で ChatGPT につなげる別のサーバー
同じカテゴリでよく使われているものから、キーなしでアドレスだけでつなげるものを選びました
- Sentry✓ ChatGPT
- Compiler Explorer✓ ChatGPT
- GitDiagram✓ ChatGPT
Claude Code につなげますが、先に準備が必要です
先にパソコンへ Node.js を入れてください(1 回だけ)
AI にインストールしてもらう
このメッセージを Claude Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。
このパソコンの Claude Code に MCP server Honeytokens as Code を入れてください。順番に:1) node -v で Node.js があるか確認。なければ https://nodejs.org/en/download から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):claude mcp add --scope user honeytokens-as-code -- npx -y honeytokens-as-code mcp 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Honeytokens as Code のツールが本当に表示されるか確認する。このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。
Node.js を入れる(まだなければ)
もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter
node -v- バージョン番号(例 v26.13.1)が出る = 入っています。この手順は飛ばせます
- "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
ターミナルの開き方
Mac:⌘ + Space を押し、Terminal と入力して Enter
Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」
まだ入っていない場合: 公式ダウンロードページで LTS 版と、クリックで進むインストーラーを選びます:Mac は .pkg、Windows は .msi。ダブルクリックして最後まで進めるだけで、curl コマンドは不要です
入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です:
node -v一度入れれば、Node.js を使うすべてのツールで使えます
ターミナルを開く
Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く
このコマンドを貼り付けて Enter
claude mcp add --scope user honeytokens-as-code -- npx -y honeytokens-as-code mcpClaude Code で /mcp と入力
Honeytokens as Code が一覧にあり、接続済みと表示されれば OK です
試してみる
Honeytokens as Code を使って、私に何ができるか教えて、1 つやってみせて✓ Claude Code が Honeytokens as Code を使っていると言うか、回答に Honeytokens as Code のツール名が出れば接続成功です
追加の設定 2 項目(入力しなくても使えます)
上のコマンドはこれらがなくても動きます。変えたいときだけ作者の説明に沿って追加してください。
HONEYTOKEN_BASE_URLPublic URL of your alert server, used in webhook traps (default http://127.0.0.1:8787)HONEYTOKEN_HOMEトラップレジストリとアラートログのデータディレクトリ(デフォルト /.honeytoken)英語の原文を見る
Data directory for the trap registry and alert log (default ~/.honeytoken)
説明は自動翻訳です。変数名は原文のままです。迷ったら原文を確認してください。
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
Cursor につなげますが、先に準備が必要です
先にパソコンへ Node.js を入れてください(1 回だけ)
AI にインストールしてもらう
このメッセージを Cursor のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。
このパソコンの Cursor に MCP server Honeytokens as Code を入れてください。順番に:1) node -v で Node.js があるか確認。なければ https://nodejs.org/en/download から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "honeytokens-as-code": { "command": "npx", "args": [ "-y", "honeytokens-as-code", "mcp" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Honeytokens as Code のツールが本当に表示されるか確認する。このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。
Node.js を入れる(まだなければ)
もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter
node -v- バージョン番号(例 v26.13.1)が出る = 入っています。この手順は飛ばせます
- "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
ターミナルの開き方
Mac:⌘ + Space を押し、Terminal と入力して Enter
Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」
まだ入っていない場合: 公式ダウンロードページで LTS 版と、クリックで進むインストーラーを選びます:Mac は .pkg、Windows は .msi。ダブルクリックして最後まで進めるだけで、curl コマンドは不要です
入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です:
node -v一度入れれば、Node.js を使うすべてのツールで使えます
Cursor の AI チャットを Agent モードで開く
試してみる
Honeytokens as Code を使って、私に何ができるか教えて、1 つやってみせて✓ Cursor が Honeytokens as Code を使っていると言うか、回答に Honeytokens as Code のツール名が出れば接続成功です
追加の設定 2 項目(入力しなくても使えます)
上のコマンドはこれらがなくても動きます。変えたいときだけ作者の説明に沿って追加してください。
HONEYTOKEN_BASE_URLPublic URL of your alert server, used in webhook traps (default http://127.0.0.1:8787)HONEYTOKEN_HOMEトラップレジストリとアラートログのデータディレクトリ(デフォルト /.honeytoken)英語の原文を見る
Data directory for the trap registry and alert log (default ~/.honeytoken)
説明は自動翻訳です。変数名は原文のままです。迷ったら原文を確認してください。
メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
VS Code につなげますが、先に準備が必要です
先にパソコンへ Node.js を入れてください(1 回だけ)
AI にインストールしてもらう
このメッセージを VS Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。
このパソコンの VS Code に MCP server Honeytokens as Code を入れてください。順番に:1) node -v で Node.js があるか確認。なければ https://nodejs.org/en/download から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "servers": { "honeytokens-as-code": { "type": "stdio", "command": "npx", "args": [ "-y", "honeytokens-as-code", "mcp" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Honeytokens as Code のツールが本当に表示されるか確認する。このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。
Node.js を入れる(まだなければ)
もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter
node -v- バージョン番号(例 v26.13.1)が出る = 入っています。この手順は飛ばせます
- "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
ターミナルの開き方
Mac:⌘ + Space を押し、Terminal と入力して Enter
Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」
まだ入っていない場合: 公式ダウンロードページで LTS 版と、クリックで進むインストーラーを選びます:Mac は .pkg、Windows は .msi。ダブルクリックして最後まで進めるだけで、curl コマンドは不要です
入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です:
node -v一度入れれば、Node.js を使うすべてのツールで使えます
VS Code の AI チャットを Agent モードで開く
試してみる
Honeytokens as Code を使って、私に何ができるか教えて、1 つやってみせて✓ VS Code が Honeytokens as Code を使っていると言うか、回答に Honeytokens as Code のツール名が出れば接続成功です
追加の設定 2 項目(入力しなくても使えます)
上のコマンドはこれらがなくても動きます。変えたいときだけ作者の説明に沿って追加してください。
HONEYTOKEN_BASE_URLPublic URL of your alert server, used in webhook traps (default http://127.0.0.1:8787)HONEYTOKEN_HOMEトラップレジストリとアラートログのデータディレクトリ(デフォルト /.honeytoken)英語の原文を見る
Data directory for the trap registry and alert log (default ~/.honeytoken)
説明は自動翻訳です。変数名は原文のままです。迷ったら原文を確認してください。
メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
開発者向け:ターミナルのコマンドと JSON 設定
パソコンにインストール
Claude Code
claude mcp add --scope user honeytokens-as-code -- npx -y honeytokens-as-code mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"honeytokens-as-code": {
"command": "npx",
"args": [
"-y",
"honeytokens-as-code",
"mcp"
]
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"honeytokens-as-code": {
"command": "npx",
"args": [
"-y",
"honeytokens-as-code",
"mcp"
]
}
}
}VS Code (mcp.json)
{
"servers": {
"honeytokens-as-code": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"honeytokens-as-code",
"mcp"
]
}
}
}自分で入力する値
HONEYTOKEN_BASE_URLenvPublic URL of your alert server, used in webhook traps (default http://127.0.0.1:8787)HONEYTOKEN_HOMEenvトラップレジストリとアラートログのデータディレクトリ(デフォルト /.honeytoken)英語の原文を見る
Data directory for the trap registry and alert log (default ~/.honeytoken)
説明は自動翻訳です。変数名は原文のままです。迷ったら原文を確認してください。
この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
ひと目でわかる
- レジストリ名
io.github.Dradradre/honeytokens-as-code- 週あたりのダウンロードi
- npm/PyPIにない
- 接続方法
- パソコンで動く
- 最新バージョンi
- 0.5.3
- レジストリ公開日i
- 2026年11月25日
- コードの最終更新i
- 2026年11月25日
- 作者
- Dradradre
- パッケージ
npm: honeytokens-as-code- ウェブサイト
- github.com
- レジストリでの状態
- 有効
使えるアプリ
このサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。
パソコン上で動かせるアプリ
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
できること
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
基本チェックi
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月26日にチェック
- ✓ 合格
作者とリポジトリが一致
レジストリ名は、リポジトリを所有するGitHubアカウント Dradradre で確認済みです
- ✓ 合格
今もメンテナンスされている
コードの最終更新:昨日
- ✓ 合格
ライセンスがある
MITを使用
- – 対象外
エンドポイントが応答する
これはパソコンで動くため、インターネット上のエンドポイントはありません
- – 対象外
OAuthでサインイン
パソコンで動き、代わりにローカルの設定を使います
- … 未チェック
ツールの説明に隠れた指示がない
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
公開済みの脆弱性(OSV.dev)
OSV.dev に honeytokens-as-code@0.5.3 の登録はありません
このバージョンのパッケージ本体のみ確認。すべての依存関係ではありません · 確認日 2026年11月25日
作者の方へ:再確認の依頼・情報の誤りの報告
作者向け:README にバッジを付ける
作者の方は、このコードを README に貼れます。バッジはこのページにリンクします。
[](https://mcp.popnx.com/en/servers/dradradre-honeytokens-as-code)話し合い
質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。
ユーザーレビュー
まだレビューはありません
開発者ツールのほかのサーバーとの比較i
- このカテゴリのほかの8006件のうち0%よりスターが多い
- このカテゴリのほかの8006件のうち95%より最近レジストリに公開
- 基本チェックの結果が、このカテゴリのほかの8006件のうち99%と同じかそれ以上
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
よくある質問
Honeytokens as Codeは安全ですか?
当てはまる基本チェック3項目のうち3項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
どんなキーやコードが必要ですか?
レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。
パソコンで動きますか、それともクラウドですか?
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
今もメンテナンスされていますか?
GitHubリポジトリの最終更新は昨日、最新バージョン(0.5.3)がレジストリに届いたのは昨日です。
どのアプリで使えますか?
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。
代わりに使えるものは?
同じカテゴリには:GitDiagram, Appllama, Cloudflare MCP, Omnara, Repowise
似た働きのほかの候補
同じカテゴリでほかの作者のもの。コマンドは確認済み。公式を先に、次にスター順。
カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
GitDiagram
Architecture diagrams, explanations and Mermaid source for public GitHub repositories.
Appllama
Study screens, flows and paywalls from top-earning iOS apps, then build from what wins.
Cloudflare MCP
Cloudflare MCP servers
Omnara
Deploy durable AI agents with Omnara, an open-source managed-agent platform.
Repowise
Codebase intelligence for AI coding agents: graph, git history, docs, decisions, code health.
| これ Honeytokens as Code | GitDiagram | Appllama | Cloudflare MCP | Omnara | Repowise | |
|---|---|---|---|---|---|---|
| 動く場所 | パソコンにインストールが必要 | クラウドで動き、インストール不要 | クラウドで動き、インストール不要 | クラウドで動き、インストール不要 | クラウドで動き、インストール不要 | クラウドでもパソコンにインストールでも使える |
| キーが必要 | いいえ | いいえ | いいえ | いいえ | いいえ | いいえ |
| Claude で + から追加 | いいえ | いいえ | いいえ | はい | いいえ | いいえ |
| 基本チェック | 3/3 | 4/4 | 4/4 | 4/4 | 4/4 | 5/5 |
| ライセンス | MIT | MIT | MIT | Apache-2.0 | Apache-2.0 | AGPL-3.0 |
| 料金 | 登録情報に費用の記載なし | 登録情報に費用の記載なし | 登録情報に費用の記載なし | 登録情報に費用の記載なし | 登録情報に費用の記載なし | 登録情報に費用の記載なし |
作者のREADME
READMEを開く
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
English · 한국어
Your coding agent plants the canaries. Not another canary that watches your agent.
Say plant honeytokens in this repo . A minute later, real powerless AWS keys and internal-looking webhook traps sit where an intruder would look, written in your repo's own accent, tracked and checked.
Open-source honeytoken and canary token toolkit: an MCP server , an Agent Skill and a CLI that let Claude Code , Cursor and other AI coding agents plant AWS canary credentials and webhook tripwires in your repositories, then alert you through CloudTrail , Slack or Discord when a leaked secret is used.
How it works · Two kinds of trap · Quickstart · Anatomy of an alert · Paranoid by default · Reference
Recorded from a real run: a separate Claude Code session got only the prompt above, the skill and the MCP server, and picked the spots, names and prefixes itself in 50 s (20 turns, about $0.27). The AWS part ran against a local AWS emulator; the alerts went through the real alert server to a real Slack channel:
The third message is the cooldown summary: the S3 attempt came seconds after the first call from the same address, so it was held back and sent when the window closed instead of being dropped.
Why this exists
Repos leak. A contractor's laptop gets popped, a CI token gets scraped, a private repo goes public for eleven minutes. The first thing anyone does with a stolen repo is grep it for secrets and try them.
Honeytokens turn that grep against them: credentials that do nothing except tell you, loudly, that someone is using them. The idea is old. The problem has always been the planting.
Not to be confused with the many 2026 tools that plant canaries to catch a *misbehaving AI agent*
(prompt injection, exfiltration). Honeytokens as Code points the other way: the agent is on your side, and the
canaries are for whoever steals your repo, your CI or your laptop.
| Classic canary tokens | Honeytokens as Code | |
|---|---|---|
| What the decoy looks like | The same generic key, pasted in the same place | A real AWS key named like the repo's other service users, or an endpoint and token dressed as one of the repo's own internal services |
| Who picks the spot | You, by hand, in a hurry | Your coding agent, after reading how the repo is wired |
| Will production call it by accident? | Hopefully not | The playbook makes the agent prove nothing loads the file |
| Where did it leak from? | You check your notes | The alert says acme-payments/deploy/legacy/export.env:7 |
| Keeping it fresh | Nobody remembers | check_traps flags lost or stale traps, rotate_trap swaps one in place |
| After removal | The token is dead, old leaks go unnoticed | The trap is *retired* and keeps watching: git history still holds the bait |
The brain and the hands
Honeytokens as Code never calls an LLM. The model you already pay for is the brain; this tool is a small, deterministic pair of hands that does only the parts that must be exactly right.
sequenceDiagram
autonumber actor You participant Agent as Coding agent (the brain) participant MCP as honeytoken mcp (the hands) participant Repo as Your repo participant Reg as ~/.honeytoken (outside the repo) participant Server as honeytoken serve actor Intruder
You->>Agent: "plant honeytokens in this repo" Agent->>Repo: read .env.example, config/, routes Agent->>MCP: create_aws_trap(userName) / create_webhook_trap(...) MCP->>Reg: record trap MCP-->>Agent: key / url + token Agent->>Repo: write decoy on one line, in a file nothing loads Agent->>MCP: register_planted_token(id, file) MCP->>Repo: read file, find the lines itself MCP->>Reg: record file:line Note over Repo,Intruder: ... days pass, the repo leaks ... Intruder->>Server: calls the trap URL (webhook) Intruder-->>Server: uses the AWS key → CloudTrail → found by polling Server->>Reg: which trap? planted where? Server->>You: Slack / Discord / console: "acme-payments/deploy/legacy/export.env:7 leaked"
| Part | What it is | What it does |
|---|---|---|
| Agent Skill | skills/honeytoken-planting/SKILL.md | A short playbook: study the repo's naming → pick a trap kind → plant where nothing loads it → register → verify |
| MCP server | honeytoken mcp | Eight tools: create (aws, webhook), register_planted_token, list_traps, check_traps, rotate_trap, clean_traps, list_alerts |
| Alert server | honeytoken serve | One process for every repo. Answers webhook hits, searches CloudTrail for AWS key use, logs, forwards to Slack and Discord |
| CLI | honeytoken … | Everything above, by hand |
Two kinds of trap
| 🔑 AWS | 🪝 Webhook | |
|---|---|---|
| What gets planted | A real access key for an IAM user in your AWS account, with an explicit deny-all policy | A URL on your alert server and a token, named like an internal service: pgw_live_… next to BILLING_GATEWAY_URL |
| When it fires | Any AWS call with the key, even sts get-caller-identity, found in CloudTrail | Any request to the URL, or carrying the token |
| Speed | Minutes (CloudTrail delivery + poll interval) | Instant |
| Catches tools that keep only keys that verify | ✅ The key is real, and verifying it is the alarm | ❌ There is nothing to verify against |
| Needs | The aws CLI signed in to an account you may create IAM users in | Nothing; a public URL to catch real intruders |
This split follows how established canary products work: Thinkst Canarytokens and GitGuardian Honeytoken issue real AWS keys and detect their use through CloudTrail (Rapid7 described the no-privilege IAM user behind the idea in 2016), and Thinkst offers URL tokens for everything else.
[!IMPORTANT]
Never fake a third-party provider's key. We checked: GitHub push protection covers Stripe, Slack, OpenAI,
Anthropic, GitHub, npm, SendGrid, Discord and AWS key formats and is on by default for public repos, so the
commit that plants a fake
sk_live_key gets blocked. Scanners like TruffleHog verify a key against the real
provider and drop invalid ones, and an intruder who tries a fake Stripe key calls Stripe, never your URL.
The tool refuses these formats (
sk_live_,ghp_,xoxb-,AKIA,sk-ant-, …) unless the operator
overrides it on the CLI.
Quickstart
[!TIP]
Rather have a permanent command?
npm install -g honeytokens-as-code, thenhoneytoken init.
1. Set up (once per machine)
npx honeytokens-as-code init
✓ skill ~/.claude/skills/honeytoken-planting/SKILL.md
✓ mcp registered with Claude Code (user scope: no file in any repo) ✓ aws AWS account 123456789012 reachable. Permissions needed: honeytoken iam-policy issuer · alerts HONEYTOKEN_BASE_URL is not set: webhook traps only fire on this machine. AWS traps need no public URL. · next Open your repo in Claude Code and say: plant honeytokens in this repo
init installs the agent skill, registers the MCP server with Claude Code at user scope, and checks your AWS CLI. --dry-run shows what it would do. Without Claude Code it prints the config for other MCP clients.
2. Watch (pick one)
honeytoken watch # AWS traps only, no server, no open port
honeytoken serve # AWS traps + webhook traps (listens on 127.0.0.1:8787)
Or watch AWS traps from a scheduled GitHub Actions job with nothing running anywhere: see Watch AWS traps without a server. Slack and Discord forwarding: HONEYTOKEN_SLACK_WEBHOOK, HONEYTOKEN_DISCORD_WEBHOOK.
Using AWS traps
AWS traps use the aws CLI you already have, with its usual profile, SSO and environment settings (AWS_PROFILE and friends). Ideally point it at a dedicated account in your organization: the canary user lives there, and nothing else does.
The identity that issues traps (create aws, rotate, clean, check) needs sts:GetCallerIdentity and iam:CreateUser, iam:PutUserPolicy, iam:GetUserPolicy, iam:DeleteUserPolicy, iam:CreateAccessKey, iam:ListAccessKeys, iam:DeleteAccessKey, iam:DeleteUser. The identity honeytoken serve runs as needs cloudtrail:LookupEvents and ec2:DescribeRegions.
Every trap user gets an inline policy that denies everything, attached before its key exists. If issuing fails halfway, the user is deleted again.
Cursor, Windsurf and other MCP clients
Register a stdio server with the command honeytoken mcp (or node /abs/path/dist/cli.js mcp) and HONEYTOKEN_BASE_URL in its environment. Use your client's user-level config rather than a project file you commit (see Paranoid by default). If the client has no skill support, paste SKILL.md into its rules; the server also ships a condensed version of the playbook as MCP instructions.
3. Ask
› plant honeytokens in this repo
4. Prove it fires
honeytoken list
curl -X POST # webhook: instant AWS_ACCESS_KEY_ID=… AWS_SECRET_ACCESS_KEY=… aws sts get-caller-identity # AWS: a few minutes honeytoken alerts
5. Keep them fresh
honeytoken check # still planted? due for rotation? AWS key intact? exits 1 if not (CI-friendly)
honeytoken rotate # fresh value in the same lines; the old one keeps watching
Watch AWS traps without a server
AWS traps need no listener: their use lands in CloudTrail, and anything that can read CloudTrail can raise the alert. A scheduled GitHub Actions job in a private ops repository (never a repo that holds decoys) is enough:
- Role: in the canary account, create an IAM role the ops repo can assume t