Home / Claude Code mods / Security / secret-guard

secret-guard

secret-guard is a Claude Code mod by vumichien that hides secrets in tool results before Claude reads them: the secret values of every .env and .env.* from your session's folder up to the drive root, and anything that looks like a secret.

Updated 2026-10-10

What is secret-guard?

secret-guard is a Claude Code mod by vumichien that hides secrets in tool results before Claude reads them: the secret values of every .env and .env.* from your session's folder up to the drive root, and anything that looks like a secret. It is listed under Security and has 2 GitHub stars.

TypeClaude code mod
Authorvumichien
Repositoryvumichien/claude-code-mods-kit
Popularity2 GitHub stars
CategorySecurity
SecurityLow risk (88/100)
Rank#1,424 of 5,272 Claude Code mods; #158 in Security
LicenseMIT
Last commit2026-10-10
Hooks6 events
Seesevery tool call, the system prompt
Draws onnothing

Is secret-guard safe to install?

secret-guard scores 88/100 on the MCPMods security check: Low risk. Things to review: reads environment variables. It passed 7 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
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
$.command.register
$.env.getreads env vars
$.fs.listreads files
$.fs.readreads files
$.session.root
$.store.getkeeps its own state
$.store.setkeeps its own state
$.ui.invalidatedraws interface
$.ui.logdraws interface
$.ui.statusdraws 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/vumichien/claude-code-mods-kit
    claude plugin validate ./claude-code-mods-kit/plugins/secret-guard
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add vumichien/claude-code-mods-kit && claude plugin install secret-guard@chien-mods

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/vumichien/claude-code-mods-kit/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 vumichien/claude-code-mods-kit

This repository has 8 Claude Code mods on MCPMods.

  • assumption-check: After a turn that edited files or ran commands, Haiku lists the choices Claude made that you did not state. Mark each ri (Low risk)
  • context-meter: A band above the prompt with what fills the context window, by category, a countdown to when the prompt cache expires, a (Low risk)
  • done-gate: Notices when Claude marks a task done while code it changed has not been tested since, and tells Claude and you; a band (Low risk)
  • idea-shelf: Park an idea while Claude works, without interrupting it: /idea , or the shelf's own box. Ideas are kept per project acr (Low risk)
  • plan-meter: A band above the prompt with how far your plan file is (phases and steps done, what is in progress, what is next) and Cl (Low risk)
  • prompt-enhancer: An Enhance button above the prompt: Haiku rewrites your draft to name the skills that fit, the questions Claude should a (Low risk)
  • session-monitor: See your other Claude Code sessions from this one: which are working, which wait for you, which are done, and which shar (Review before installing)