AI Security
Research reveals embedding-space attack that floods LLM agents with fake tools to block access to legitimate ones
A new technique called ToolFlood exploits how language model agents retrieve tools, poisoning results by injecting strategically positioned decoy tools that dominate search results.
Researchers have identified a vulnerability in how language model agents select tools for tasks. Rather than targeting the decision-making phase after tool retrieval, a new attack called ToolFlood compromises the retrieval mechanism itself, preventing legitimate tools from ever reaching the agent's attention in the first place.
How the attack works#
The method operates by injecting a small number of attacker-designed tools with metadata carefully crafted to exploit the mathematical structure of embedding space. These fake tools are positioned to respond to a wide range of user queries, saturating the top results and pushing all benign tools beyond the agent's reach.
The technique employs a two-stage strategy. First, researchers sample diverse queries and use an LLM to generate tool names and descriptions that cast a wide semantic net. Next, an iterative greedy algorithm selects tools that maximize coverage across remaining queries, working within embedding-space distance constraints, until all targeted queries are covered or a tool budget is exhausted.
Scale and effectiveness#
Testing on ToolBench, a large tool catalog, ToolFlood achieved success rates as high as 95% while injecting only around 1% extra tools—a strikingly low overhead. This suggests that semantic covering in embedding space leaves significant room for adversarial manipulation before detection becomes obvious.
Why it matters#
Previous research on attacking tool-augmented agents focused on influencing which tool gets selected after retrieval succeeds. ToolFlood exposes an earlier, less-studied vulnerability: the retrieval layer itself. By directly poisoning how embedding-based search ranks tools, the attack bypasses selection logic entirely, forcing agents to reason with compromised information before any downstream safeguards can intervene.
