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
claude-code, hooks, guardrail, secrets, credentials, ssn, exfiltration, scanner ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A Claude Code hook that blocks secrets and US Social Security numbers before a call sends them to the API.
cat .envis one keystroke, and the file is in the transcript before anyone reads a line of it.
Claude Code sends what it reads to the API, and there is no undo. Git secret scanners do not help, because a file read into a session is never committed. spill-guard runs before the call and stops it there. It is a net for the accident rather than a wall, and what it does not catch is worth reading before you rely on it.
| The call | What happens |
|---|---|
cat deploy.log, a Read of it, or @deploy.log in a prompt, with a key in the file | Blocked, naming the rule and byte offset and never the value |
| A prompt with a key pasted into it | Blocked the same way |
cat .env, a Read of .env, or @.env in a prompt | Blocked on the path alone, whatever the file holds |
cat ~/.aws/credentials, or four other credential files | Blocked on the path alone |
env, printenv | Blocked, offering env | cut -d= -f1 for the names |
grep -r password . | Blocked, offering the same command with the output scanned |
cat go.mod | Allowed, and nothing is said |
The other four are ~/.netrc, ~/.git-credentials, ~/.docker/config.json and ~/.kube/config.
The path refusals exist because most of what those files hold matches no rule.
No rule recognises an AWS secret access key, a netrc password or a base64 registry auth, so a clean scan of one of those files would report a safety the scan is not providing.
This is what comes back. The line breaks are added and the path is shortened. The rest is verbatim.
> cat deploy.log
spill-guard: blocked. 1 rule match(es) in what this call would have sent:
"aws-access-key-id" at byte 15 of "/home/you/app/deploy.log". Nothing was sent.
The values are not repeated here, because this text reaches the API as well.
Remove or rotate what the rules name, then try again.
> cat .env
spill-guard: blocked. "/home/you/app/.env" is a dotenv file, and this refused
to read it on that alone. Nothing here opened the file, so nothing here has an
opinion about what is in it -- the class is refused because most of what these
files hold matches no rule in this set, and a clean scan of one would report a
safety it is not providing. Nothing was sent. If you want the shape of the file
rather than its values, a filter with a stage after it -- `cat FILE | cut -d=
-f1` -- is not refused and is still scanned. This reaches the readers it knows
and no others: an interpreter told to open the same path goes straight past it,
so read this as a net for the accident rather than as a claim that the path is
guarded.
On a tool call Claude gets the refusal in place of the result, so the way forward lands where the command gets rewritten.
It matches AWS key IDs, GitHub tokens of both kinds, Slack tokens and webhooks, Stripe live keys, OpenAI, Anthropic and Google API keys, Anthropic OAuth and session tokens, PEM private keys and JWTs.
It also matches US Social Security numbers, in one narrow form: written ###-##-####, with ssn or social security within 64 bytes before, in any case and spelled with a space, hyphen, underscore or nothing.
Nine bare digits do not match, neither does a label after the number, and neither do the shapes SSA never assigns or its best-known examples.
How many real numbers that finds is unmeasured.
Payment cards, Chinese resident IDs and public IPv4 addresses ship disabled.
rules/README.md has what keeps each one quiet.
Two halves. The binary does the reading, and the plugin tells Claude Code which calls to hand it. A plugin with no binary blocks every call it sees and names the install command in the refusal, so a half-finished install is loud.
The binary, on macOS and Linux:
curl -fsSLO https://github.com/karlkfi/claude-spill-guard/releases/latest/download/install.sh
sh install.sh
On Windows:
curl.exe -fsSLO https://github.com/karlkfi/claude-spill-guard/releases/latest/download/install.ps1
powershell -ExecutionPolicy Bypass -File install.ps1
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 karlkfi/claude-spill-guard --plugin spill-guardPlugins from other owners that cover similar ground