BLA
BLA는 오픈소스 Blue Defense MCP와 CLI로, 소프트웨어 자산을 자동 AI 리버스 엔지니어링으로부터 보호합니다
오픈소스 CLI가 프로젝트에 미끼 자격증명을 심고, AI 코딩 에이전트가 읽거나 값을 빼낼 때 즉시 호출을 차단합니다
Open source CLI that plants decoy credentials in your project, then blocks the tool call the moment an AI coding agent reads one or carries the value off the machine. Works with Claude Code, Cursor, C
보안TypeScript · JavaScriptGitHub @aiagentflow온라인운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기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