Tool filter
tool filtering
A prompt-injection defence that fixes which tools an AI agent may use for a task before it reads any untrusted data.
In our briefings
What our briefings say about Tool filter itself, with the most direct claims first.
Defenses that set the agent's tools or plan from the opening request suffered what the authors call "severe utility drops", because AgentDyn's tasks need steps that only become legitimate partway through, such as reading the one-time passcode a checkout sends to the user's inbox. In the authors' account, Tool Filter "usually blocks essential tools required for later dynamic interactions", CaMeL and DRIFT lose work through the same reliance on an initial plan, and Progent, which updates permissions during a task, mis-sets them on larger tool sets. Moving from AgentDojo to AgentDyn on GPT-4o, the share of tasks finished under attack fell from 56.3% to 4.9% for Tool Filter, from 64.3% to 5.8% for Progent and from 62.3% to 27.1% for DRIFT. By their count only 6 of AgentDojo's 97 tasks need the plan to change, which, they argue, lets a defense look secure there just by holding the agent to its first plan. Agents often stopped at such steps to ask the user for confirmation, so the authors told every agent to finish without asking; no human approval step was tested.
None of nine prompt-injection defenses both stopped attacks and kept a GPT-4o agent working on tasks that change mid-runBI-FIND-2026-1855
On AgentDojo's banking suite, RTBAS took about double the undefended agent's tokens, price and time per task: 5,049 to 5,852 tokens against 2,710, $0.0275 to $0.0317 against $0.0147, and 8.73 to 9.71 seconds against 4.37. AgentDojo's own tool filter, which the authors call the existing state of the art, used fewer tokens and cost less than no defense at all (1,505 tokens, $0.0087), and the authors report it slightly raised utility with no attack. Its integrity is lower: about 0.93 in Figure 5, where both RTBAS screeners sit near the top. So we read the paper's claim to beat the tool filter as resting on stopping more attacks, at more cost and, in Figure 5, fewer finished tasks. These cost numbers cover one suite of four, at OpenAI's pricing.
A Carnegie Mellon defense blocked every policy-breaking injection in tests, if its labels and tools hold upBI-FIND-2025-0649
DRIFT used 2.37 million tokens on the AgentDojo run against 0.82 million for the undefended agent, nearly three times as many, and less than half of CaMeL's 6.09 million. On the paper's efficiency score, utility minus attack success per million tokens, DRIFT's 20.9 sits just below the undefended agent's 21.4 and at about a quarter of the tool filter's 86.6, a gap the authors call "slightly below tool filter". They note that the tool filter still let 7.6% of attacks through, against 1.4% for DRIFT.
A fixed tool plan blocks prompt injection but breaks tasks; in DRIFT's tests, letting a model widen it wins most backBI-FIND-2026-1352
›Cited in 8 briefings
Every briefing that discusses this term, newest first.
- None of nine prompt-injection defenses both stopped attacks and kept a GPT-4o agent working on tasks that change mid-run
Paper · · arXiv · Hao Li et al. · Feb 3, 2026
- AgentArmor cut attack success to 3% in its authors' tests; most misses came when a user said to follow a file
Paper · · arXiv · Peiran Wang et al. · Nov 18, 2025
- A fixed tool plan blocks prompt injection but breaks tasks; in DRIFT's tests, letting a model widen it wins most back
Paper · · arXiv · Hao Li et al. · Mar 26, 2026
- Auth0's agent gateway keeps downstream credentials away from the agent; the post shows no step where a person approves
Article · · Auth0 Blog · Andrés Aguiar · Sep 18, 2026
- Attacks tuned to each defense got past all 12 prompt-injection and jailbreak defenses tested
Paper · · arXiv · Milad Nasr et al. · Oct 10, 2025
- Google's CaMeL stops nearly all prompt injection in tests, but agents finish fewer tasks and need written policy
Paper · · arXiv · Debenedetti · Mar 24, 2025
- A Carnegie Mellon defense blocked every policy-breaking injection in tests, if its labels and tools hold up
Paper · · arXiv · Peter Yong Zhong et al. · Feb 13, 2025
- AgentDojo's best defence against prompt injection was a tool list fixed before the agent reads anything
Paper · · arXiv (NeurIPS 2024 Datasets and Benchmarks) · Edoardo Debenedetti et al. · Jun 19, 2024