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.
By kenhuangusv0.2.0MITIn 1 marketplace
Local deterministic guard for dangerous Bash and PowerShell commands. Not the Rulebricks product; no network calls.
Code that runs inside Claude Code on every session, as you, unsandboxed.
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it sees, changes or blocks tool calls.
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.
Local, deterministic guard for dangerous Bash and PowerShell commands. It is a Rulebricks-style pattern implemented locally; it is NOT the Rulebricks product and it makes no network calls and uses no Rulebricks API.
/plugin install tool-call-guard --marketplace kenhuangus/claude-code-security-mods
Try it in one session without installing: claude --plugin-dir ./mods/tool-call-guard.
It runs by itself once loaded. A matching command is refused and Claude is told why.
tool.call with matcher { tool: ["Bash", "PowerShell"] }, checked before next:
{ deny } on a match, otherwise next(e). The Bash rules apply to Bash and the
PowerShell rules to PowerShell.Bash:
rm -rf (also -fR, --recursive --force, quoted targets) on /, /*, ~, ~/, $HOMEmkfs, dd writing to /dev/, a fork bomb, chmod -R 777 /curl / wget piped to sh / bash / zshPowerShell and cmd:
Remove-Item (and ri, rm, del, rd, rmdir, rd /s, del /s) with
-Recurse on a drive root, C:\Windows, C:\Users, a profile folder, or
$env:USERPROFILE / $HOME / ~ / %USERPROFILE%Format-Volume, Clear-Disk, Initialize-Disk, Remove-Partition, format C:Invoke-Expression (irm ... | iex) or iex on downloaded contentSet-MpPreference -DisableRealtimeMonitoring $true and similar Defender switches0.1.0 only inspected the Bash tool. On Windows Claude runs commands through the
PowerShell tool, which none of the rules covered, so every rule could be sidestepped
by switching shells. 0.2.0 adds the PowerShell rules above and a few Bash ones.
$(...), eval, wrappers, scripts, and
aliases, so pair it with permission deny rules and a sandbox for
destructive commands.C:\Program Files is not recognised as a root target.npm run check
claude plugin validate ./mods/tool-call-guard
Built 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 kenhuangus/claude-code-security-mods --plugin tool-call-guardPlugins from other owners that cover similar ground