Home / Claude Code mods / Security

Security Claude Code mods

932 security Claude Code mods, ranked by popularity.

Updated 2026-12-01

932 security Claude Code mods, most popular first. Every listing shows its security level and install command.

NamePopularitySecurity
branch-guard
Keeps work off protected branches: no commit, merge, rebase, cherry-pick, am or push on main/master/release/*
2 ★Review before installing
clobber-guard
Stops accidental truncation of real code: no "// ... rest of the code" placeholders over real code, and a ques
2 ★Low risk
path-guard
Protected files and a project boundary: Claude can't edit .env, keys or .git, asks before touching lockfiles a
2 ★Low risk
secret-shield
Keeps credentials out of your code, your shell commands and Claude's context: blocks hard-coded secrets in edi
2 ★Review before installing
cache-guard
Asks before /model, /output-style, /fast, /effort, MCP or plugin changes and /config rows that would throw awa
2 ★Low risk
alias-import-guard
Refuses deep ../../ imports when tsconfig paths has an alias for the folder, and names the alias to use
2 ★Low risk
amend-guard
Asks before git commit --amend or git rebase rewrites commits that are already on a remote branch
2 ★Low risk
any-guard
Asks before an edit adds any to TypeScript: ": any", "as any", "" or any[]
2 ★Low risk
archive-add-guard
Asks before git add stages an archive, installer or database file, or any file over 5 MB
2 ★Low risk
big-read-guard
Refuses reading a file over 512 KB whole and asks for a slice
2 ★Low risk
cat-guard
Refuses cat, type and Get-Content on a file over 100 KB and points to a slice or Grep
2 ★Low risk
catch-swallow-guard
Refuses edits that add an empty catch block or an except that only passes
2 ★Low risk
chmod-guard
Blocks world-writable permissions, recursive chown on root or home, and icacls grants to Everyone
2 ★Low risk
ci-config-guard
Asks before an edit to pipeline and deploy configuration: GitHub workflows, GitLab CI, Jenkinsfile, vercel.jso
2 ★Low risk
client-env-guard
Refuses browser code in Vite and Next.js that reads an env variable the bundler never exposes
2 ★Low risk
cors-open-guard
Asks before an edit opens CORS to every origin with * or a bare cors()
2 ★Low risk
credential-file-guard
Blocks reading or copying SSH keys, cloud and registry credentials and shell history, with Read and in the she
2 ★Low risk
debug-flag-guard
Asks before an edit leaves a debug flag on, exposes every actuator endpoint or sets development mode in a prod
2 ★Low risk
debugger-guard
Refuses edits that add a debugger statement, breakpoint(), pdb or binding.pry
2 ★Low risk
deny-toast
A toast whenever a tool call is refused, naming the tool and the first line of the reason
2 ★Low risk
dep-source-guard
Asks before a dependency is pinned to a git URL or tarball, or pulled over plain http
2 ★Low risk
dev-server-guard
Asks before npm run dev, next dev or vite starts while something already answers on that dev server's port
2 ★Low risk
docker-guard
Asks before destructive Docker commands: system prune, volume rm or prune, rm -f, rmi -f and compose down -v
2 ★Low risk
dotfile-guard
Blocks edits to your shell and tool profiles: .bashrc, .zshrc, .gitconfig, .ssh/config and the PowerShell prof
2 ★Low risk
dup-block-guard
Refuses an edit whose new code repeats a block of 6 or more lines already in the same file
2 ★Low risk
dynamic-exec-guard
Asks before an edit adds eval, new Function, innerHTML or a shell command built from a variable
2 ★Low risk
empty-test-guard
Refuses a test file edit that adds test cases with no assertion in them
2 ★Low risk
env-dump-guard
Blocks dumping the whole environment: bare env, printenv, set and export -p, Get-ChildItem Env:
2 ★Low risk
env-guard
Protects .env files from reading and writing (Read, Edit, Write, cat and @mention)
2 ★Low risk
esm-guard
Refuses require, module.exports and __dirname in .js files of a package that declares "type": "module"
2 ★Low risk
expo-install-guard
Refuses npm, pnpm or yarn installs of packages the Expo SDK pins and names the npx expo install command, and t
2 ★Low risk
file-compare
/cmp shows how one project file differs from another, and refuses files that hold secrets
2 ★Review before installing
file-diff
/fdiff shows what changed in one file since the last commit, without printing secret files
2 ★Review before installing
generated-guard
Prevents edits in node_modules, dist, build, .next, coverage, .git and the like
2 ★Low risk
git-guard
Blocks destructive git: push --force, reset --hard, clean -f, --no-verify, branch -D
2 ★Low risk
gitignore-guard
Asks before a .gitignore edit drops an entry that protects .env, keys or credentials, or git add -f forces one
2 ★Low risk
hardcoded-secret-guard
Asks before an edit puts a hardcoded password, connection string or JWT into source
2 ★Low risk
head-file
/head shows the first numbered lines of a project file, and never prints files that hold secrets
2 ★Low risk
kill-guard
Blocks broad process kills: kill -1, killall, loose pkill, taskkill on system or wildcard names, Stop-Process
2 ★Low risk
large-write-guard
Refuses a Write over 1,500 lines or 200 KB and asks for the file to be split or generated by a script
2 ★Low risk
lockfile-guard
Prevents hand edits to lockfiles (package-lock, yarn.lock, pnpm-lock, Cargo.lock...)
2 ★Low risk
main-branch-guard
Refuses commit, push, merge and rebase while the current branch is main/master
2 ★Low risk
marker-guard
Refuses a commit whose staged changes still hold conflict markers, listing the files
2 ★Low risk
metro-guard
Asks before expo start or react-native start when a Metro bundler already answers on its port
2 ★Low risk
migration-guard
Refuses edits to existing database migrations (Prisma, Rails, Django, Alembic, Flyway); a new file is the fix
2 ★Low risk
missing-import-guard
Refuses an edit that imports a package which is neither in package.json nor in node_modules
2 ★Low risk
next-boundary-guard
Refuses Next.js app router edits that break the client/server boundary: hooks without 'use client', or server-
2 ★Low risk
oracle-name-guard
Refuses an edit that creates a table, index, constraint, sequence or trigger named over 30 characters, the Ora
2 ★Low risk
oracle-paging-guard
Refuses an edit that adds FETCH FIRST, OFFSET ROWS or LIMIT to SQL, which Oracle 11g cannot run, and names the
2 ★Low risk
oracle-syntax-guard
Refuses an edit that adds IDENTITY columns, LISTAGG ON OVERFLOW, JSON functions or BOOLEAN columns, none of wh
2 ★Low risk
persistence-guard
Asks before a command that makes something run on its own later: cron, schtasks, systemd, launchd or a Startup
2 ★Low risk
pipe-shell-guard
Blocks curl | sh, wget | bash, iwr | iex and variants
2 ★Low risk
pm-guard
Refuses npm, pnpm, yarn or bun commands that use a different package manager than the project's lockfile, and
2 ★Low risk
private-host-guard
Asks before an edit adds a private IP address or an internal hostname to source
2 ★Low risk
prod-guard
Requires your confirmation for deploys, publishes, terraform apply, kubectl and migrations
2 ★Low risk
prompt-secret-guard
Stops prompts that contain secrets pasted by mistake from being sent
2 ★Low risk
registry-guard
Asks before a command changes where packages come from: npm, pnpm, yarn and pip registry or index settings
2 ★Low risk
reread-guard
Refuses reading again a file Claude already read this session when it has not changed, once, with a reason
2 ★Low risk
rm-guard
Blocks rm -rf and Remove-Item -Recurse on root, home and drives, plus mkfs, dd and format
2 ★Low risk
script-guard
Refuses npm run or pnpm run of a script that package.json does not declare and lists the ones it does
2 ★Low risk
script-mode-guard
Asks before a script or config gets a world-writable mode, umask 0 or an Everyone grant
2 ★Low risk
secret-scan
Refuses Write/Edit whose content carries API keys, tokens or private keys
2 ★Low risk
security-rules
Always-on security rules: validate input, parameterized queries, no secrets in code or logs, least privilege,
2 ★Low risk
shield-band
Band with the count of calls blocked by guards and the last reason
2 ★Low risk
snapshot-update-guard
Asks before a command rewrites test snapshots: jest -u, vitest -u, --snapshot-update, insta accept
2 ★Low risk
sql-concat-guard
Asks before an edit builds an SQL statement by joining strings or interpolating values
2 ★Low risk
sql-guard
Blocks DROP, TRUNCATE and DELETE/UPDATE without WHERE in shell commands
2 ★Low risk
stage-guard
Refuses git add -A, git add . and git commit -a while a .env, key or certificate is waiting to be staged
2 ★Low risk
sudo-guard
Blocks privilege elevation: sudo, doas, su -c, runas and Start-Process -Verb RunAs
2 ★Low risk
suppress-guard
Refuses an edit that adds a blanket suppression: eslint-disable, @ts-ignore, @ts-nocheck, bare # noqa or # typ
2 ★Low risk
test-skip-guard
Refuses an edit that adds a skipped or focused test: .skip, .only, xit, fit, @Ignore, @Disabled, @pytest.mark.
2 ★Low risk
tls-off-guard
Asks before TLS certificate verification is switched off in code or in a command
2 ★Low risk
tree-flood-guard
Refuses an unfiltered find, ls -R or dir /s that would list node_modules, and suggests git ls-files or Glob
2 ★Low risk
tunnel-guard
Asks before a command that exposes your machine to the internet: ngrok, cloudflared, ssh -R, tailscale funnel,
2 ★Low risk
upload-guard
Asks before a command sends a local file out: curl uploads, wget --post-file, scp or rsync to a host, nc
2 ★Low risk
weak-crypto-guard
Asks before an edit hashes passwords with MD5 or SHA-1, makes tokens with Math.random, or picks ECB or an unsi
2 ★Low risk
wip-commit-guard
Refuses commits whose message is wip, fix, asdf, a dot or similar, so the history says what changed
2 ★Low risk
wrapper-guard
Refuses a global mvn or gradle command when the project ships mvnw or gradlew, so the pinned build tool runs
2 ★Low risk
concurrency-guard
Caps parallel subagents and monitors; more need a stated reason and the user's approval
2 ★Low risk
context-budget
Measures what every session starts with, warns when CLAUDE.md, rules, memory or skill descriptions outgrow the
2 ★Review before installing
machine-guard
Puts every command that changes the machine in front of the user before it runs
2 ★Low risk
cloakroom
Check your secrets at the door. Claude gets a ticket; the real value only comes back where you allow it.
2 ★Review before installing
flashcards
[Experimental] Flashcards from your repo's specs, ADRs and vault task cards — /cards build generates a review
2 ★Low risk
obw
Obsidian Workspace — project-scoped vault project management. /obw:pm is the one command: it owns setup, folde
2 ★Review before installing
superpowers-tracker
Live tracker for obra/superpowers: a stage rail above the prompt, a dashboard pane, resume detection, toasts a
2 ★High risk
token-weather
A live forecast of the context window above the prompt, with the 5-hour and 7-day usage windows, the session c
2 ★Low risk
exo
An exoskeleton for Claude Code: guards against costly mistakes, a cockpit while working, a recap at the end an
2 ★High risk
osm
Replaces a secret with a format-preserving fake before the model reads it, and restores the real credential on
2 ★Low risk
secret-entry
Lets Claude write files that contain secrets: the write holds, you paste each value into a masked prompt, and
2 ★Review before installing
shroud
Revenantworks shroud mod for Claude Code 2.1.287+: masks secrets (its own shapes plus the gitleaks rule set),
2 ★High risk
learn
Learn while working: Claude ends a reply with a short, precise point on the security, architecture or pattern
2 ★Review before installing
barmkin-mod
Claude Code mods security layer: secret redaction, untrusted-content taint with a Rule-of-Two egress gate, ski
2 ★Review before installing
rate-limit-guard
At 90% of the 5-hour limit, tells the orchestrator and every subagent to checkpoint and stop at a safe point,
2 ★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
2 ★Review before installing
night-mode
Late at night Claude gets more careful and asks before deploys, force pushes and rm -rf
2 ★Review before installing
phone-approve
Approve or deny Claude Code's permission prompts from Telegram, with the terminal prompt as the fallback.
2 ★Low risk
rubber-duck
A fast second opinion on every edit: a small model flags removed error handling, deleted tests, secrets and mo
2 ★Low risk
secret-guard
Stops Claude from writing API keys, tokens, private keys and database passwords into files.
2 ★Low risk
assertion-guard
Catches edits that weaken tests to make them pass: assertions removed, expectations loosened or rewritten, tes
2 ★Low risk
hit-rate
Gives each finding of done-gate, assertion-guard, self-audit and zukan a later verdict from what the session d
2 ★Low risk

Pages: 1 2 3 4 5 6 7 8 9 10