ToolFlood: Beyond Selection -- Hiding Valid Tools from LLM Agents via Semantic Covering
On the map: LLM agents and tool use → Tool learning and function calling
Abstract (arXiv)
Large Language Model (LLM) agents increasingly use external tools for complex tasks and rely on embedding-based retrieval to select a small top-k subset for reasoning. As these systems scale, the robustness of this retrieval stage is underexplored, even though prior work has examined attacks on tool selection. This paper introduces ToolFlood, a retrieval-layer attack on tool-augmented LLM agents. Rather than altering which tool is chosen after retrieval, ToolFlood overwhelms retrieval itself by injecting a few attacker-controlled tools whose metadata is carefully placed by exploiting the geometry of embedding space. These tools semantically span many user queries, dominate the top-k results, and push all benign tools out of the agent's context. ToolFlood uses a two-phase adversarial tool generation strategy. It first samples subsets of target queries and uses an LLM to iteratively generate diverse tool names and descriptions. It then runs an iterative greedy selection that chooses tools maximizing coverage of remaining queries in embedding space under a cosine-distance threshold, stopping when all queries are covered or a budget is reached. We provide theoretical analysis of retrieval saturation and show on standard benchmarks that ToolFlood achieves up to a 95% attack success rate with a low injection rate (1% in ToolBench). The code will be made publicly available at the following link: https://github.com/as1-prog/ToolFlood
Key facts. No citing papers in the map yet (data through 13 Oct 2026). Placed in Tool learning and function calling, one of 16 directions in LLM agents and tool use. Builds on 22 of its 34 references that are in the map. First posted on arXiv 14 Mar 2026.
Builds on
22 of 34 references.
Closest ancestors · 5
Same direction, newest first
- 2025SEEM: Exploiting Black-Box Text Attacks to Manipulate Tool Selection7 Apr
- 2024StableToolBench: Towards Stable Large-Scale Benchmarking on Tool Learning of Large Language Models12 Mar
- 2023MetaTool Benchmark for Large Language Models: Deciding Whether to Use Tools and Which to Use4 Oct
- 2023Gorilla: Large Language Model Connected with Massive APIs24 May
- 2023Toolformer: Language Models Can Teach Themselves to Use Tools9 Feb
Other references · 17
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,502
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,156
- 2022Do As I Can, Not As I Say: Grounding Language in Robotic Affordancescited by 2,321
- 2021WebGPT: Browser-assisted question-answering with human feedbackcited by 1,736
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,417
- 2023Prompt Injection attack against LLM-integrated Applicationscited by 600
- 2024Agent Security Bench (ASB): Formalizing and Benchmarking Attacks and Defenses in LLM-based Agentscited by 360
- 2024PoisonedRAG: Knowledge Corruption Attacks to Retrieval-Augmented Generation of Large Language Modelscited by 265
- 2022MRKL Systems: A modular, neuro-symbolic architecture that combines large language models, external knowledge sources and discrete reasoningcited by 154
- 2025Prompt Injection Attack to Tool Selection in LLM Agentscited by 152
- 2025Practical Poisoning Attacks against Retrieval-Augmented Generationcited by 36
- 2024RevPRAG: Revealing Poisoning Attacks in Retrieval-Augmented Generation through LLM Activation Analysiscited by 33
5 more
- 2025Defending against Indirect Prompt Injection by Instruction Detectioncited by 30
- 2025Traceback of Poisoning Attacks to Retrieval-Augmented Generationcited by 28
- 2025ToolTweak: An Attack on Tool Selection in LLM-based Agentscited by 24
- 2025Attractive Metadata Attack: Inducing LLM Agents to Invoke Malicious Toolscited by 23
- 2025POISONCRAFT: Practical Poisoning of Retrieval-Augmented Generation for Large Language Modelscited by 6
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Extracting Knowledge from Tools in LLM Agents
- 2026Tools Are Not Islands: Set-Level Tool Retrieval for LLM Agents via Query-Conditioned Hyperedge Prediction
- 2026ToolSearcher: Optimizing Tool Selection at Scale via Reinforcement Learning
- 2025GRETEL: A Goal-driven Retrieval and Execution-based Trial Framework for LLM Tool Selection Enhancing
- 2026ToolChoiceConfusion: Causal Minimal Tool Filtering for Reliable LLM Agents
- 2026Universal Defenses for Tool-Integrated LLM Agents Against Adversarial Attacks
- 2024Toolshed: Scale Tool-Equipped Agents with Advanced RAG-Tool Fusion and Tool Knowledge Bases
- 2025BiasBusters: Uncovering and Mitigating Tool Selection Bias in Large Language Models