What is secret-guard?
secret-guard is a Claude Code mod by ShriD5 that stops Claude from writing API keys, tokens, private keys and database passwords into files. It is listed under Security and has 1 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | ShriD5 |
| Repository | ShriD5/claude-mods |
| Popularity | 1 GitHub stars |
| Category | Security |
| Security | Low risk (100/100) |
| Rank | #2,305 of 5,272 Claude Code mods; #278 in Security |
| License | MIT |
| Last commit | 2026-10-04 |
| Hooks | 3 events |
| Sees | every tool call |
| Draws on | nothing |
Is secret-guard safe to install?
secret-guard scores 100/100 on the MCPMods security check: Low risk. No checks raised a concern. It passed 8 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 no processes | Pass |
| Writes no files or config | Pass |
| Doesn't read environment variables | Pass |
| 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 |
|---|---|
$.command.register | |
$.fs.read | reads files |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.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/ShriD5/claude-mods claude plugin validate ./claude-mods/secret-guard
- Install it. Run this in your terminal, then /reload-plugins in an open session.
git clone https://github.com/ShriD5/claude-mods && claude --plugin-dir ./claude-mods/secret-guard
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/ShriD5/claude-mods/tree/main/secret-guard. Run claude plugin validate on it first and show me what it can access before you enable it.
More from ShriD5/claude-mods
This repository has at least 9 Claude Code mods on MCPMods.
- chai-meter: A taxi meter for the session's cost in the status line, in dollars and cups of chai. (Low risk)
- commit-coach: Rewrites lazy commit subjects into conventional commits from the staged diff, and strips AI attribution trailers (Low risk)
- main-guard: A red band when you are on main or in prod, and no force-push, reset --hard or unconfirmed push to a protected branch (Review before installing)
- night-mode: Late at night Claude gets more careful and asks before deploys, force pushes and rm -rf (Review before installing)
- phone-approve: Approve or deny Claude Code's permission prompts from Telegram, with the terminal prompt as the fallback. (Low risk)
- rubber-duck: A fast second opinion on every edit: a small model flags removed error handling, deleted tests, secrets and more (Low risk)
- ship-log: /ship turns what you built this session into a build-in-public post for X or LinkedIn (Review before installing)
- standup: /standup writes yesterday's standup (since Friday on Mondays) from your git commits and copies it (Review before installing)