Opinions Updated November 22, 2026

Prompt injection cannot be fixed by a filter that reads attacker text

New evaluations show that safeguards, retrieval layers and agent harnesses all fail when they trust the text they read. The audit finds that no improvement in how safeguards judge that writing can close the gap.

Geometric cross-section of a sealed vault beside an open funnel feeding blank cards through pipes.
Illustration: where a trust boundary belongs in a system

Prompt injection is not a filter that needs better tuning, because the person who writes the text a safeguard reads is the person it is meant to stop. ToolFlood, a retrieval-layer attack, reaches up to a 95\% attack success rate on the large ToolBench catalog with a ~1\% injection rate [3]. It hides every legitimate tool from the agent. The same pattern appears in misuse safeguards and agent harnesses [1][2].

Key Takeaways

  • ToolFlood hides legitimate tools by flooding the embedding-based retrieval step that feeds an agent.
  • Attack success reaches up to 95% on ToolBench with a ~1% injection rate, the authors report.
  • The harness results come from fixed benchmarks and named models, not from production agent deployments.

Prompt injection is an architecture problem, not a filter problem

Prompt injection is an architecture problem, because the safeguards and harnesses studied here all decide inside the same context an attacker can write to [1][2]. The audit of 129 papers states the limit. A better reading of the user’s text cannot close the vulnerability, because a claimed professional identity is itself untrusted input [1].

Retrieval has the same structure. ToolFlood wins by occupying the space where retrieval matches tool descriptions to queries, before the model reasons about tools [3]. A harness is the code that wraps a model and its tools. It can evolve against stressors and cut attack success, but it remains a learned policy that untrusted text passes through [2].

Prompt injection exploits the context that safety checks share

ToolFlood targets the retrieval stage itself, not the model’s choice after retrieval [3]. The attacker writes tools to span many user queries. Those tools fill the retrieved shortlist and push legitimate tools out of the agent’s context [3].

  1. Sample subsets of the target queries the agent is expected to serve [3].
  2. Have a language model generate diverse attacker tool names and descriptions for those queries [3].
  3. Choose tools greedily, each pick covering the most remaining queries in embedding space under a cosine-distance threshold [3].
  4. Stop when every query is covered or the injection budget runs out [3].

“Because the vulnerability lies in what users write, no improvement in how safeguards judge that writing can close it.”

Pingyu Wu, Weiming Zhang and Nenghai Yu [1]

At a glance
Item Detail
ToolFlood result On the ToolBench catalog, ToolFlood reports attacks succeeding up to 95% of the time at a ~1% injection rate [3].
Defenses audited The authors report the flaw in all defenses across 129 papers drawn from the latest editions of 12 top venues [1].
Harness on AgentDyn On AgentDyn with GPT-4o-mini, an evolved harness reduced attack success from 50.4% to 3.0% [2].
Harness on Agent-SafetyBench On Agent-SafetyBench with Qwen2.5-7B-Instruct, attack success fell from 82.6% to 62.0% [2].
Cross-model transfer The evolved harness transferred without further evolution to Qwen3.5-35B-A3B, cutting attack success from 32.1% to 0.9% [2].
Attack target ToolFlood attacks embedding-based tool retrieval rather than the model's choice after retrieval [3].
Fix status The misuse-safeguard paper's fix is a proposed patch, with no implementation, deployment or independent validation reported in the abstract [1].
grey metal chain on brown wooden door
Photo: Grey metal chain on brown wooden door. Shown for context. Sheldon Kennedy / Unsplash, Unsplash License

No studied defense enforces policy without reading untrusted text

  • Benchmarks miss it. The authors argue that current safeguard benchmarks cannot expose the flaw, because a model can score high on them and still give an attacker a dangerous answer [1].
  • Scope of audit. The finding concerns misuse safeguards that decide from user-written claims of professional identity or purpose, not every prompt-injection filter [1].
  • Strongest counter. On AgentDyn with GPT-4o-mini, harness evolution cut attack success from 50.4% to 3.0%, but only with the task model, benchmark, tools and evaluator held fixed [2].
  • Attack conditions. ToolFlood’s 95% success rate is measured on the ToolBench catalog at a ~1% injection rate [3].

What builders can do

  • If you resell model calls, treat a caller’s claimed identity as untrusted input, because the audit argues no safeguard judgment can close that gap [1].
  • For teams that retrieve tools by embedding, assume an attacker can fill the shortlist. The paper reports a ~1% injection rate was enough on ToolBench [3].
  • If you run an agent harness, plan to revise it as stressors change. The authors describe static, hand-designed defenses as the starting point [2].

What to watch

  • The next revision of the misuse-safeguard audit, now at version 2, and whether it covers deployed systems
  • A published defense that enforces policy outside the model context, not inside it
  • Attack success for evolved harnesses on live traffic, not on fixed benchmarks

Sources and method

Ainaptic did not test the product. Figures are the publisher’s own unless the article says otherwise.

Not independently verified:

  • The 95% attack success and ~1% injection figures are the ToolFlood authors' own measurements on the ToolBench catalog.
  • The harness gains are the Evolution Under Fire authors' own results on AgentDyn and Agent-SafetyBench.
  • The 129-paper audit is the authors' own survey and has not been peer reviewed.
  1. [2607.27951] LLM Misuse Safeguards Rely on Untrusted Input: A Widespread, High-Risk Vulnerability
  2. [2611.22583] Evolution Under Fire: Evolving Agent Safety Harnesses with Adaptive Injection Stressors
  3. [2603.13950] ToolFlood: Beyond Selection — Hiding Valid Tools from LLM Agents via Semantic Covering
Ainaptic
Editorial desk

Ainaptic tracks what is actually shipping in AI and technology, and digs through GitHub for the projects worth your time. Each repo pick is read, not just starred, and we say what it is good for and where it falls short. An editor oversees what we publish, and we correct mistakes in the open. Tips and corrections: [email protected]