Home / Claude Code mods / Security / secret-guard

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.

Updated 2026-10-04

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.

TypeClaude code mod
AuthorShriD5
RepositoryShriD5/claude-mods
Popularity1 GitHub stars
CategorySecurity
SecurityLow risk (100/100)
Rank#2,305 of 5,272 Claude Code mods; #278 in Security
LicenseMIT
Last commit2026-10-04
Hooks3 events
Seesevery tool call
Draws onnothing

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.

CheckResult
No network accessPass
Starts no processesPass
Writes no files or configPass
Doesn't read environment variablesPass
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
$.command.register
$.fs.readreads files
$.store.getkeeps its own state
$.store.setkeeps its own state
$.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/ShriD5/claude-mods
    claude plugin validate ./claude-mods/secret-guard
  3. 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)