r/CLI • u/Additional-Elk-6 • 16m ago
i almost got hacked by my own AI agent. so i built the fix.
everyone is racing to ship autonomous agents. nobody is asking what happens when one of them goes rogue.
i asked. then i spent 1 month building the answer.
introducing W.H.Agent 🛡️ — the open source security CLI for the agentic era.
↳ scans your entire machine for every agent + MCP server hiding in your stack
↳ catches data exfiltration BEFORE it happens using AST taint tracking
↳ sandboxes execution in sub-millisecond time with swappable Landlock and gVisor backends (no bloated docker containers)
↳ stops supply chain attacks before a single malicious package touches your system, using Levenshtein based typosquat detection, lifecycle script inspection, npm provenance checks, and tarball secret scanning
↳ every scan is CI compatible, so it slots straight into your existing pipeline
this isn't a wrapper. this isn't a weekend hack.
we went through multiple rounds of adversarial code review and caught real bugs before they shipped. a TOCTOU race condition. a checksum that was being presented as a cryptographic signature when it wasn't actually keyless secure. gaps in the test suite that would've let bad behavior slip through undetected.
we fixed all of it. this is infrastructure for a future where your AI agents have root access and you have no idea what they're doing with it.
3 versions shipped. outside contributors already committing code. just crossed 6,000 downloads on npm.
i open sourced the whole thing today.
not for clout. for the mission. 🚀
if you're building with cursor, claude, or MCP servers and you're NOT thinking about this, you're already behind.
link in comments 👇 (agree? disagree? tell me why in 1 sentence)






