Home / Claude Code mods / Security / security-guard

security-guard

security-guard is a Claude Code mod by UsamaSadiq that checks git commit and PR commands against the rules in your own and the project's CLAUDE.md files.

Updated 2026-10-11

What is security-guard?

security-guard is a Claude Code mod by UsamaSadiq that checks git commit and PR commands against the rules in your own and the project's CLAUDE.md files. It is listed under Security and has no public popularity data yet.

TypeClaude code mod
AuthorUsamaSadiq
RepositoryUsamaSadiq/claude-mods
Popularityno public popularity data yet
CategorySecurity
SecurityLow risk (84/100)
Rank#4,953 of 5,272 Claude Code mods; #510 in Security
LicenseMIT
Last commit2026-10-11
Hooks1 events
SeesBash calls
Draws onnothing

Is security-guard safe to install?

security-guard scores 84/100 on the MCPMods security check: Low risk. Things to review: reads environment variables. It passed 6 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
Drives Claude (model calls, prompts)Note
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.env.getreads env vars
$.fs.existsreads files
$.fs.readreads files
$.model.completedrives Claude
$.session.root

How do I install security-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/UsamaSadiq/claude-mods
    claude plugin validate ./claude-mods/plugins/security-guard
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add UsamaSadiq/claude-mods && claude plugin install security-guard@claude-mods

Or ask Claude to set it up

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

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

More from UsamaSadiq/claude-mods

This repository has 8 Claude Code mods on MCPMods.

  • cross-fire: Holds destructive shell commands (rm -r, force pushes, hard resets, DROP TABLE) for your confirmation and says what they (Low risk)
  • erp-log-nudge: Reminds you late on weekdays to log your ERP time when today is still empty, pointing at /generate-erp-logs (Low risk)
  • render-md: Renders the Markdown files Claude edits in a side pane, plus /render-md to open any Markdown file (Low risk)
  • ringtones: Short synthesized chimes when a long turn finishes, a call is blocked, a turn fails or you ship (Low risk)
  • session-resume: Picks the session back up with "continue" when a rate-limit window resets after a limit stopped your turn (Low risk)
  • terminal-pet: A cat in the empty prompt box that reacts to your day, plus /pet-stats silly stats (Low risk)
  • usage-band: Session and weekly plan usage as gauges in a bar above the prompt (Low risk)