Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Run automatically on Claude Code events. Claude doesn't decide.
1 caution to review before installing
A hook runs when Claude uses the Bash tool
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Prevents Claude from executing destructive file operations and supply chain attacks.
| Command | Reason |
|---|---|
rm -rf (outside /tmp) | Catastrophic file deletion |
shred | Unrecoverable file destruction |
truncate | Destroys file contents |
| Command | Reason |
|---|---|
find ... -delete | Mass file deletion |
find ... -exec rm | Mass file deletion via exec |
find ... -execdir rm | Mass file deletion via execdir |
find ... -exec shred | Mass file destruction |
find ... -exec chmod 000 | Removes all permissions |
find ... -exec mv ... /dev/null | Destroys files |
| Command | Reason |
|---|---|
... | xargs rm | Mass file deletion |
... | xargs shred | Mass file destruction |
... | xargs chmod 000 | Removes all permissions |
... | xargs rm -rf | Catastrophic file deletion |
| Command | Reason |
|---|---|
chmod 000 | Removes all permissions |
chmod 777 ... .ssh | Security risk on SSH files |
chmod 777 ... .env | Security risk on env files |
chmod -R 000 | Recursive permission removal |
| Pattern | Reason |
|---|---|
.env | May contain secrets |
.env.local, .env.production, etc. | May contain secrets |
Allowed: .env.example, .env.sample, .env.template, .env.dist
| Pattern | Reason |
|---|---|
curl ... | bash | Remote code execution |
wget ... | sh | Remote code execution |
bash -c "rm -rf ..." | Bypass attempt |
bash -c "git reset --hard ..." | Bypass attempt |
bash -c "git push --force ..." | Bypass attempt |
rm -rf /tmp/... - Temp directory cleanuprm -rf $TMPDIR/... - Temp directory cleanup.env.example - Template files (no secrets)claude plugin add ./plugins/safety-guard
This plugin provides enhanced .env protection compared to protect-env:
.env.example, .env.sample, .env.templateprotect-envBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub rbozydar/rbw-claude-code --plugin safety-guardPlugins from other owners that cover similar ground