BLA
BLA (Blind LLM Agents) is the open-source Blue Defense MCP and CLI built to protect software artifacts against automated AI reverse-engineering workflows.
翻譯準備中
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證Honeyfiles and canary tokens for AI coding agents. Plants decoy credentials your agents should never touch, then trips on any read or exfiltration.
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗Honeyfiles and canary tokens for AI coding agents.
canaryhook plants decoy credential files that nothing in your project should ever read, then blocks and records the moment an agent reads one or lets a canary string leave the machine. It is a smoke detector for AI coding sessions: no model, no signatures, and close to zero false positives by construction.
Works with Claude Code, Cursor, Codex CLI, Antigravity CLI and Gemini CLI.
Part of the aiagentflow suite. Website: aiagentflow.dev/canaryhook
https://github.com/user-attachments/assets/878c35aa-248c-4cdc-af04-54934a792e02
npm install -g canaryhook
cd /your/project
canaryhook init
Or with Homebrew:
brew install aiagentflow/tap/canaryhook
init plants four decoys, registers canaryhook's hooks for each agent you use
(merging with hooks you already have), and adds the decoys plus .canaryhook/
to .gitignore. Upgrading from 0.2.0, run canaryhook init --force to add the
PostToolUse hook.
By default init wires Claude Code plus any agent the project already uses,
judged by its config folder. Name them yourself with --agents:
canaryhook init --agents claude,cursor,codex
| Agent | --agents | Config file | Before a call | After a call | Session start |
|---|---|---|---|---|---|
| Claude Code | claude | .claude/settings.json | PreToolUse | PostToolUse | SessionStart |
| Cursor | cursor | .cursor/hooks.json | preToolUse | postToolUse | sessionStart |
| Codex CLI | codex | .codex/hooks.json | PreToolUse | PostToolUse | SessionStart |
| Antigravity CLI | antigravity | .agents/hooks.json | PreToolUse | not supported | SessionStart |
| Gemini CLI | gemini | .gemini/settings.json | BeforeTool | AfterTool | SessionStart |
Per agent:
init, run
/hooks in Codex and approve canaryhook's; until then nothing is watched.grep -r AKIA . is only caught
once a canary string shows up in a later call.status and doctor report every wired agent, and clean removes canaryhook's
hooks from all of them.
canaryhook init # plant decoys, register the hook
canaryhook status # are decoys planted, is the hook wired
canaryhook alerts # list recorded trips
canaryhook doctor # fire a test payload through the hook to prove it is wired
canaryhook verify # exit non-zero if anything tripped (for CI)
canaryhook clean # remove decoys, unregister the hook
Flags: --json on every command, --agents on init to choose the agents,
--commit to track decoys in git instead of ignoring them, --force to
replant, --keep-alerts on clean.
Signature scanning fails against an agent that rewrites its own code, and the
attack surface around coding agents keeps growing: prompt injection in a fetched
page or a GitHub issue, a hostile MCP server tool, a dependency postinstall
script, or simply your own agent being overzealous and reading a credentials file
into its context, where it then lands in a transcript you push somewhere.
canaryhook does not look at the attacker at all. The trap lives in the environment. An attacker cannot tell a decoy credential from a real one without reading it, and reading it is the trip.
canaryhook init plants these, each holding a unique, realistic, dead fake
secret:
| File | Bait |
|---|---|
.env.backup | AWS-shaped access key and secret |
credentials.json.bak | Stripe-shaped live secret key |
deploy_key.old | OpenSSH private key block |
db_dump_2026.sql | API token in an INSERT statement |
Nothing in your code, build, lint or test path references these files, so a hit
is almost never a false positive. The canary strings are recorded in
.canaryhook/canaries.json, which is itself watched.
Four checks then run on every tool call:
Read with a file_path, a shell cat, or anything else that mentions it.
A shell glob that expands to a decoy counts too: cat .env* or
grep key *.bak in the project root reads the decoy without naming it.grep -r AKIA .. The call already ran, so it cannot be
blocked, but it is recorded and the agent is told the value is fake..canaryhook/, running canaryhook clean, removing the hook
from an agent's config file, or switching hooks off there (disableAllHooks
in Claude Code, hooks = false in Codex). Otherwise an
agent that tripped a decoy could erase the record and carry on. You can still
do all of these yourself from a terminal, where no hook runs.On a trip, canaryhook returns a deny decision so the tool call never runs,
tells the agent the file was a tripwire and not to retry, and appends to
.canaryhook/alerts.jsonl:
{"at":"2026-10-14T21:53:40.809Z","reason":"canary-exfil","decoy":".env.backup","tool":"Bash","detail":"canary string from .env.backup appears in the tool call"}
Recorded trips are read back to the agent at the start of the next session, so a trip you were not watching for does not sit unnoticed in the file.
A malformed hook payload never blocks a call, so a broken install fails open
rather than wedging your session. Failing open means a broken install is a
quiet one, so canaryhook doctor runs the registered hook command for real,
with a planted payload on stdin, and tells you whether the deny came back.
For a job that runs a coding agent, plant the decoys before the agent step and
check the record after it. The decoys and .canaryhook/ are gitignored, so
they only exist in a job that ran init; verify fails where canaryhook was
never initialized rather than reporting a clean record it cannot have.
- run: npm install -g canaryhook && canaryhook init
# ... the step that runs the agent ...
- run: canaryhook verify
canaryhook detects, it does not prevent. An attacker that ignores the decoys is
not caught, and a targeted one that reads only the real .env walks past. A
sweep like grep -r AKIA . reads the decoys without naming them, so it is
recorded only after it has run, on the output path. It is a smoke detector, not
a lock. Its value is that it costs nothing to run, needs no
model, and stays quiet enough that you leave it installed.
MIT