跳到正文
arXiv (AI + Vision + Imaging)· Hussein Jawad, Nicolas J-B Brunel·· 8 天前AI 评分18

ToolFlood:通过语义覆盖将有效工具从LLM Agent中隐藏

ToolFlood: Beyond Selection -- Hiding Valid Tools from LLM Agents via Semantic Covering

AI 导读

ToolFlood是一种针对工具增强型LLM Agent的检索层攻击,通过注入少量攻击者控制的工具,利用嵌入空间几何特性覆盖大量用户查询,将良性工具挤出Agent上下文。该方法采用两阶段对抗工具生成策略,在ToolBench大规模工具库上以约1%的注入率实现最高95%的攻击成功率。

正文 · 原文

arXiv:2603.13950v2 Announce Type: replace Abstract: 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. Prior work on attacking these systems competes for tool selection, assuming benign tools remain in the retrieved set; the robustness of the retrieval stage that produces this set is underexplored. This paper introduces ToolFlood, a retrieval-layer attack on tool-augmented LLM agents. Rather than altering which tool is chosen after retrieval, ToolFlood attacks retrieval itself: it injects a few attacker-controlled tools whose metadata is positioned to exploit the geometry of embedding space, so that 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 intuition of retrieval saturation and show on a large catalog (ToolBench) that ToolFlood achieves up to a 95\% attack success rate with a ~1\% injection rate. The code is available at: https://github.com/as1-prog/ToolFlood

来源:arXiv (AI + Vision + Imaging) · arxiv.org