Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By kenhuangusv0.2.0MITIn 1 marketplace
Redacts secret patterns from prompts, shell commands and shell output, blocks writes that contain secrets, and denies reads and mentions of secret files.
Code that runs inside Claude Code on every session, as you, unsandboxed.
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it sees, changes or blocks tool calls; reads or rewrites your prompts.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Redacts secret patterns from prompts and shell commands and output, blocks writes that contain secrets, and denies reads and @-mentions of secret files.
/plugin install secret-scrubber --marketplace kenhuangus/claude-code-security-mods
Try it in one session without installing: claude --plugin-dir ./mods/secret-scrubber.
It runs by itself once loaded. Secrets you type or that a command prints are
replaced with [REDACTED] before Claude reads them. A write that would put a
secret into a file is refused with a reason, and .env, .pem, SSH keys and
.aws/credentials cannot be read or @-mentioned.
prompt.submit: rewrite text with next({...e, text}) before the turn.tool.call for Bash and PowerShell: rewrite command before next, then
redact result.stdout and result.stderr after next.tool.call for Edit / Write / MultiEdit / NotebookEdit: { deny } when
new_string, content or new_source holds a secret.tool.call for Read: { deny } when file_path is a secret file.prompt.mention: { deny } for secret-file paths.{ ref, result: { stdout, stderr, ... }, text }. 0.1.0 looked for
content/output/text on result, which Bash does not have, and returned
the original ref, which the engine reuses verbatim. 0.2.0 redacts
stdout/stderr and returns a new { result } without ref or text.token = "abc" became the invalid token=[REDACTED]
in your source. 0.2.0 refuses the write and tells Claude to use an environment
variable.C:\Users\me\.ssh\id_rsa, .env.local), and
.env.example / .env.sample stay readable.next redaction is the real protection. Post-next redaction is
best-effort only: the tool already ran, and the raw result may already be
in logs or in the tool's own side effects.session.append.Read tool, @-mentions, shell commands and file writes are covered.
Grep, Glob and shell commands that print a secret file (cat .env) are
caught by output redaction, not by path.npm run check
claude plugin validate ./mods/secret-scrubber
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub kenhuangus/claude-code-security-mods --plugin secret-scrubberPlugins from other owners that cover similar ground