Bouncer: An MCP Proxy That Blocks Agents from Leaking API Keys, Cutting Attack Success to 0

eccentric_ez · reddit · 2026-08-15

A developer built Bouncer, a local MCP proxy that prevents AI agents from executing malicious instructions (like leaking API keys) after reading untrusted content. It uses deterministic Python (no LLM) to gate outbound tool calls: destinations from untrusted output are denied, explicitly trusted ones allowed, and new ones ask once and remember. In benchmarks on AgentDojo's workspace suite, attack success dropped from 0.33 to 0.00 while benign utility remained 1.00. Currently MCP-only and stdio-only, with documented limits including cross-server taint propagation. The author invites discussion on potential attack paths.

Original post →

More from Safety

Safety channel →