← Browse
protect-secrets
karanb192 ★ 576
This PreToolUse hook intercepts Read, Edit, Write, Bash, and Grep calls to block or prompt on access to sensitive files (.env, SSH keys, cloud credentials) and commands that expose or exfiltrate them (cat secrets, printenv, curl uploads, scp transfers). Safety levels (critical/high/strict) and per-level ask mode are tunable via environment variables without code changes.
Install
> /plugin marketplace add karanb192/claude-code-hooks/tree/HEAD/plugins/protect-secrets
> /plugin install protect-secrets
Source: https://github.com/karanb192/claude-code-hooks/tree/HEAD/plugins/protect-secrets
What it's made of
1 hook
- Commands
- 0
- Agents
- 0
- Skills
- 0
- MCP servers
- 0
- Hooks
- 1 · PreToolUse
What it needs & plugs into
- API keys
- none
- Paid services
- none detected
- External tools
node- Talks to
- nothing external detected
Analyzed . Facts extracted from the plugin's files. Prose generated by claude-haiku-4-5-20251001.
Is this your plugin?
Claim it to keep the card accurate and enter the weekly contest. Requires signing in as the GitHub owner (karanb192).