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.
| Type | Claude code mod |
|---|---|
| Author | LupusMalusDeviant |
| Repository | LupusMalusDeviant/mod-box |
| Popularity | 1 GitHub stars |
| Category | Security |
| Security | Review before installing (64/100) |
| Rank | #3,871 of 9,397 Claude Code mods; #478 in Security |
| License | MIT |
| Last commit | 2026-11-30 |
| Hooks | 4 events |
| Sees | every tool call |
| Draws on | Pane |
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.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts processes outside the sandbox | Review |
| Writes files or config | Review |
| Reads environment variables | Review |
| Only sees the events it hooks | Pass |
| Doesn't drive Claude | Pass |
| Passes claude plugin validate | Pass |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.now | |
$.command.register | |
$.env.get | reads env vars |
$.fs.read | reads files |
$.fs.stat | reads files |
$.fs.write | writes files |
$.process.run | runs processes |
$.session.cwd | |
$.state.get | |
$.state.set | |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.ui.open | draws interface |
$.ui.resolve | draws interface |
$.ui.toast | draws interface |
How do I install secret-guard?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- 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
- 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)