Home / Claude Code mods / Security / secret-guard

secret-guard

secret-guard is a Claude Code mod by LupusMalusDeviant that stops before Claude writes API keys, tokens, private keys or a non-ignored .env into files, git add or commits. Exceptions for test keys and example files: /secret-allow.

Updated 2026-11-30

What is secret-guard?

secret-guard is a Claude Code mod by LupusMalusDeviant that stops before Claude writes API keys, tokens, private keys or a non-ignored .env into files, git add or commits. Exceptions for test keys and example files: /secret-allow. It is listed under Security and has 1 GitHub stars.

TypeClaude code mod
AuthorLupusMalusDeviant
RepositoryLupusMalusDeviant/mod-box
Popularity1 GitHub stars
CategorySecurity
SecurityReview before installing (64/100)
Rank#3,871 of 9,397 Claude Code mods; #478 in Security
LicenseMIT
Last commit2026-11-30
Hooks4 events
Seesevery tool call
Draws onPane

Is secret-guard safe to install?

secret-guard scores 64/100 on the MCPMods security check: Review before installing. Things to review: starts processes outside the sandbox; writes files or config; reads environment variables. It passed 5 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts processes outside the sandboxReview
Writes files or configReview
Reads environment variablesReview
Only sees the events it hooksPass
Doesn't drive ClaudePass
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.now
$.command.register
$.env.getreads env vars
$.fs.readreads files
$.fs.statreads files
$.fs.writewrites files
$.process.runruns processes
$.session.cwd
$.state.get
$.state.set
$.store.getkeeps its own state
$.store.setkeeps its own state
$.ui.opendraws interface
$.ui.resolvedraws interface
$.ui.toastdraws interface

How do I install secret-guard?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/LupusMalusDeviant/mod-box
    claude plugin validate ./mod-box/plugins/secret-guard
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add LupusMalusDeviant/mod-box && claude plugin install secret-guard@mod-box

Or ask Claude to set it up

Paste this into Claude Code and it installs secret-guard for you:

Install the "secret-guard" Claude Code mod from https://github.com/LupusMalusDeviant/mod-box/tree/main/plugins/secret-guard. Run claude plugin validate on it first and show me what it can access before you enable it.

More from LupusMalusDeviant/mod-box

This repository has at least 9 Claude Code mods on MCPMods.

  • mod-box: 21 Claude Code mods in one plugin, each switchable on its own; /mod-box opens the window to switch, configure and import (Low risk)
  • blast-radius: Holds risky shell commands (rm -rf, git reset --hard, git clean, force push, migrations) and shows what they would hit. (Review before installing)
  • cache-meter: Band: time left on the warm cache, hit rate, context as weather with its trend over 12 turns, plan limits, compact and k (Review before installing)
  • ci-watch: After every git push, follows the GitHub Actions runs (via gh) until they finish; with an open pull request (also after (Review before installing)
  • handoff: /handoff writes a handoff note to .claude/handoff.local.md; a new session offers to continue from it. (Low risk)
  • package-guard: Before Claude installs or runs a package (npm, pnpm, yarn, bun, npx, pip, uv, poetry, pipx, cargo), asks the public regi (Low risk)
  • pet: A desktop pet and little companion on the Windows desktop, always on top and in front of borderless games: a cardboard b (High risk)
  • read-guard: Holds a whole-file Read (no offset/limit) of a file above the limit, a lockfile, minified code or a source map, and the (Low risk)