Launching today

Agent Guard
A seatbelt for Claude Code that stops key leaks
0 followers
A seatbelt for Claude Code that stops key leaks
0 followers
One hidden line in a README, issue or MCP result can tell your coding agent to read ~/.ssh or post your AWS key to a paste site. Agent Guard is a local Rust hook that checks every Claude Code tool call before it runs: it asks before keys leave, secret files are read or backdoors are written, strips hidden instructions from web and MCP results, and refuses when the agent tries to turn it off. Tested against 95 exfil tricks. No model, no account. MIT.


Free
Launch Team

AWS Activate CreditsCredits that fuel your startupโs next milestone
Promoted
Hey Product Hunt ๐ I'm Minh, a developer who uses a coding agent every day.
A couple of times my agent did things I never asked for. Once it ran a curl | sh installer from a site I'd never heard of, and I spent the evening cleaning malware off my laptop. Another time a key ended up somewhere it shouldn't have.
The part that scared me: agents read a lot of text nobody checks. READMEs, GitHub issues, web pages, MCP results. One hidden line can tell them to run a script or send your keys to a stranger, and nothing checks that call before it runs.
So I built Agent Guard, a small Rust binary that sits in Claude Code's hooks and checks every tool call first:
๐ด Keys sent to a host that isn't their provider โ asks you
๐ด Reading ~/.ssh, ~/.aws, browser data โ asks you
๐ด Writing to ~/.zshrc, cron, authorized_keys โ asks you
๐ก Scripts piped from a site you haven't trusted โ warns
๐งน Hidden instructions in web and MCP results โ stripped
โ The agent trying to turn the guard off โ refused
Builds, tests and git run with no prompts. It's deterministic (no model, no API key, no account), takes a few milliseconds per call, and is tested against 95 exfiltration tricks that are all in the repo.
Honest limits: it's a seatbelt, not a sandbox. In light mode a clever command built at run time can slip past the parser, which is why there's a hardened mode that locks the policy in root-owned settings with Claude Code's sandbox. Claude Code only for now, macOS and Linux.
Found a bypass? Open an issue and it goes into the test corpus with credit to you.
Question for you: which coding agent should it guard next?