Secretscan — Productivity skill for Claude Code
Real-time secret & credential detector for Claude Code — 47 patterns, PostToolUse hook, lossless recovery.
How to install Secretscan
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open Manavarya09/secretscan and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Secretscan does
Real-time secret & credential detector for Claude Code — 47 patterns, PostToolUse hook, lossless recovery.
Alternatives in Productivity
- Linear - Ticket Management — You are tasked with managing Linear tickets, including creating tickets from thoughts documents, updating exis 10k ★
- Tradingview MCP — Real-time crypto & stock screening, advanced technical indicators, Bollinger Bands intelligence, candlestick p 2.6k ★
- GrokSearch — Integrate Grok's powerful real-time search capabilities into Claude via the MCP protocol 1.8k ★
README
SecretScan
**Real-time secret & credential detector for Claude Code.** Blocks API keys, tokens, private keys, and database passwords from ever entering your LLM context window.
[](https://www.rust-lang.org/) [](https://www.npmjs.com/package/@masyv/secretscan) [](LICENSE)
The Problem
When Claude Code runs tools, their outputs flow directly into the context window. That includes:
cat .env→ your API keysgit log→ commit messages with accidentally committed credentials- Database query results → connection strings, hashed passwords
curlresponses → tokens, JWTs, session cookies
**SecretScan intercepts every tool output** before it reaches Claude, redacts detected secrets, and logs them locally. Claude sees `[REDACTED:anthropic_api_key:bbfc6912]` — not `sk-ant-api03-...`.
47 Built-in Patterns
| Severity | Providers |
|---|---|
| 🔴 Critical | Anthropic, OpenAI, AWS, GitHub, Stripe, Google Service Account, PostgreSQL, MySQL, MongoDB, PEM Private Keys |
| 🟠 High | GitLab, Slack, npm, SendGrid, Cloudflare, Azure, Redis, Heroku, Vercel, Datadog, HuggingFace, Discord, Shopify |
| 🟡 Medium | JWT tokens, Twilio, env file secrets, Slack webhooks |
| 🔵 Low | Test keys, certificates, high-entropy strings |
Plus **Shannon entropy analysis** for detecting unknown secrets by statistical pattern.
Quick Start
# Install from source
git clone https://github.com/Manavarya09/secretscan
cd secretscan
./scripts/build.sh && ./scripts/install.sh
# Auto-configure Claude Code
secretscan setup
# That's it — restart Claude Code and you're protected.
What It Looks Like
$ echo 'ANTHROPIC_API_KEY=sk-ant-api03-...' | secretscan scan
🚨 1 secret found:
🔴 [CRITICAL] Anthropic API Key fingerprint: bbfc6912
sk-ant-api03-xxxxx…
``
Related Skills
Claude Code Hooks Multi Agent Observability
Real-time monitoring for multi-agent Claude Code sessions via hook event tracking.
Hook Lab
A web dashboard for watching Claude Code hook events in real time.
Claude Code Remote
claude-code-remote is a real-time monitoring system for Claude Code sessions. A lightweight Go server runs on
Lasso Claude-hooks
Prompt injection defense hooks: scans files, web fetches, and command output in real-time. Detects 50+ injecti
Termexo
Local-first Windows workspace for Claude Code, Codex, OpenCode and Antigravity: real terminals, session recove
Pwned
Post-exploitation workflow after getting shell access — privesc, credential harvest, lateral movement
Related Agents
Bully Evaluator
Evaluates a single bully semantic-evaluation payload against a diff and returns a structured violation list. I
Claude Code Hook Comms (hcom)
by aannoo - Lightweight CLI tool for real-time communication between Claude Code sub agents using hooks. Enabl
Conflicts Verifier
Verifies platform support from installers, adapters, and hook definitions, and checks for real install-time an