ai newsDi., 1. Dez.

I put a policy proxy between a local model and its tools. Prompt injection attacks that worked went from 207 to 25 out of 936.

I've been building an open-source proxy called attenuo. It sits between an AI agent and its tools (MCP servers) and decides every tool call before it reaches the server. I wanted to know if it does anything useful, so I ran it on AgentDojo, a public benchmark for prompt injection against tool-using

dev.toSamstag 15:45 · 28.11.1 Min. Lesezeit
Bild: dev.to

Posted on Nov 28 • Edited on Nov 28 • AI-assisted

I've been building an open-source proxy called attenuo. It sits between an AI agent and its tools (MCP servers) and decides every tool call before it reaches the server. I wanted to know if it does anything useful, so I ran it on AgentDojo, a public benchmark for prompt injection against tool-using agents.

Here is what happened, including the parts that did not go well.

On the 936 attack cases that both arms scored:

So attacks that worked dropped from about 22% to about 3%.

It is not free. With no attack at all, the agent finished 38 of 96 tasks behind the proxy, against 49 without it. The policy sometimes refuses a call the task really needed, for example an invitation to someone who is not in the user's contacts. If your policy is strict, some real work gets blocked. That is the trade.

25 attacks still worked. They fall into a few groups, and I think these are the interesting part:

There is a demo that runs in Docker, no Rust needed. It plays a small leak scenario: one allowed read, two denied calls, a revocation, and the audit log.

git clone https://github.com/attenuo-dev/attenuo cd attenuo examples/github-leak-demo/run-docker.sh Enter fullscreen mode Exit fullscreen mode Repo: https://github.com/attenuo-dev/attenuo Full write-up of the benchmark: https://github.com/attenuo-dev/attenuo/blob/main/docs/evaluation/agentdojo-local-model.md

If you run MCP servers and try this in front of one, I would like to hear what broke. That is more useful to me than a star.

Quelle: dev.to (dev.to). Original öffnen