Building Bouncer: open-source MCP proxy that denies agent sends to addresses first read in untrusted tool output. No LLM decides. Benchmark costs published.
I've put out Bouncer, an open-source MCP proxy. It denies an agent's send/share calls to addresses it first read in tool output. No LLM decides.
The catch: in my benchmark it allowed no send, so legitimate sends failed too. The demo is scripted. Numbers and limits below.
@ravibits@scalekitinc Thanks, that's lower than I guessed. Send-after-read in the same session is the number I'd most like to see, since that's the shape an injection needs. Even a rough share would help. Not logging payloads is the right call.
@free_ai_guides The split holds up. The hard part is what the permission layer can see. It knows the tool and the arguments, but not where an argument came from. An address the user typed and one copied out of a ticket look identical unless something tracks it.
@pauliusztin_ Nice project. A question on step 6: if the MCP client doesn't support elicitation, how does the approval reach the developer? I hit that in my own MCP proxy. Every ask turned into a deny, so I added one-time codes the human runs in a terminal.
@nexasxw I don't think you can teach them not to read. I ran gpt-4o-mini on AgentDojo's workspace attacks with a proxy blocking the sends, and the model still tried to email the attacker in 107 of 163 cases. The check has to sit outside the model.
@berman66 Per-agent identity fixes "which agent did it". The half I keep hitting is different: a tightly scoped agent can still send to an address it just read in a ticket. Do your policies look at where an argument came from, or only at who is calling?
pip install bouncer-mcp (0.1.4, early, MIT)
https://t.co/J9IYDna0OZ
My 0.1.0-0.1.2 exposed Bouncer's own tools to the agent in proxy mode. Fixed in 0.1.3. I used Claude Code a lot but wrote the rules.
How did your last security review of agent write tools go?
I've put out Bouncer, an open-source MCP proxy. It denies an agent's send/share calls to addresses it first read in tool output. No LLM decides.
The catch: in my benchmark it allowed no send, so legitimate sends failed too. The demo is scripted. Numbers and limits below.
0/163 isn't the point. The attacker's address is in tool output, so the rule fires by design. The run shows it firing end to end, and the cost.
Weak spots: one fixed attack that doesn't adapt, one model. The engine ran in AgentDojo's loop, not the proxy. MCP calls only.
Ran my MCP proxy, Bouncer, on AgentDojo. Attacks that reached their goal: 48 of 164 to 0 of 163. Legit email/share tasks: 4 of 6 to 0 of 6. Both numbers matter.
It's already on GitHub and PyPI. Full write-up Tuesday. Video is a scripted agent on the real proxy.