Sensitive Canary
Description
Claude Code hooks that guard secrets and PII before they reach the Anthropic API
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
Sensitive Canary
[](https://github.com/coo-quack/sensitive-canary/actions/workflows/ci.yml) [](https://opensource.org/licenses/MIT)
A security plugin that prevents unintended data leaks from Claude Code. Automatically detects and blocks secrets and PII — in prompts, file reads, and command executions — before they are sent to the Anthropic API.
No proxy server. No background process. Native Claude Code hooks only.
📖 **[Documentation](https://coo-quack.github.io/sensitive-canary/)** — Installation guide, detection rules reference, and allow tag details.
Why sensitive-canary?
Claude Code is a powerful development tool, but file reads and command executions can inadvertently send secrets and personal information to the Anthropic API. API keys in `.env` files, tokens embedded in config files, credentials pasted into the terminal — once sent to the API, they leave your machine.
**sensitive-canary intercepts them before they are sent, preventing unintended data leaks.**
| Without sensitive-canary | With sensitive-canary |
|---|---|
cat .env → full contents sent to Claude ❌ |
Blocked by name before Claude reads it ✅ |
| Paste a live AWS key in a prompt ❌ | Blocked before the API call is made ✅ |
Read customers.csv full of email addresses ❌ |
PII detected before Claude sees the file ✅ |
echo $API_KEY with live key ❌ |
Env var value scanned and blocked ✅ |
cat docker-compose.yml with POSTGRES_PASSWORD: ❌ |
Assignment detected in YAML and JSON too ✅ |
- Two hooks —
UserPromptSubmitandPreToolUsecover both directions of risk - 76 detection rules — sourced from gitleaks and TruffleHog detector definitions
- Checksum validation — credit cards (Luhn) and national ID numbers (JP My Number, FR NIR, IT Codice Fiscale, DE S
Related Skills
Auto Update
Pull the latest ECC repo changes and reinstall the current managed targets.
Development Ecc Guide
Navigate ECC's current agents, skills, commands, hooks, install profiles, and docs from the live repository su
Development Epic Claim
Claim an epic issue, stamp coordination state, and sync local ownership.
Development Epic Publish
Publish a validated epic update back to the issue and local cache.
Development Epic Review
Mark epic review requested, approved, or changes requested.
Development Epic Unblock
Sweep blocked epic issues and reopen anything whose dependencies are closed.
Development Related Agents
Django Build Resolver
Django/Python build, migration, and dependency error resolution specialist. Fixes pip/Poetry errors, migration
Openai Codex CLI
(55.8k ⭐) - Lightweight coding agent that runs in your terminal.
src/agents/ — 11 Agent Definitions
**Generated:** 2026-04-11