MetaMancer: Practical Tool Selection Attacks against LLM Agents
Wenbin Zhai, Yihao Liu, Dong Wang, Hao Chen, Bin Xiao
摘要
Large Language Model (LLM) agents increasingly rely on third-party tools, making tool selection a critical security boundary. By manipulating tool metadata, an attacker can steer an agent toward a malicious tool and thereby redirect downstream execution, even without controlling the user query or interacting with the victim system. Although prior attacks reveal the vulnerability of tool selection, they fail to fully capture the adversarial problem in realistic settings. Mounting a practical attack remains highly challenging, because the attacker should manipulate the complete tool metadata under a strict transfer-based black-box setting while preserving effectiveness, stealth, and robustness. To address this challenge, we formulate adversarial tool selection as a semantically constrained bilevel optimization problem, and propose MetaMancer, a multi-agent semantic optimization framework that estimates effectiveness and constraints in a surrogate ecosystem, and reconciles them through semantic projection and atomic joint updates. Experiments on ToolBench and MCPTools, spanning 20 tasks, 9,729 candidate tools, 8 target LLMs, and 6 representative defenses, demonstrate that MetaMancer achieves end-to-end attack success rates of 92.7% and 93.8% without defenses, and retains 91.2% and 92.2% after averaging over six defenses, exceeding state-of-the-art attacks by over 50 percentage points under defenses. These results indicate that the tool selection boundary of LLM agents remains under-protected. To mitigate this threat, we propose Core View Reconstruction (CVR), a lightweight defense that reconstructs tool metadata within the core capability boundary implied by required parameters. CVR reduces the end-to-end attack success rates of MetaMancer to 18.0% and 17.6%, while consistently suppressing other tool selection attacks.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
脉络
它引用的 Paper21
- ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIsYujia Qin, Shihao Liang, Yining Ye, Kunlun Zhu 等ICLR 2024 · 1,469 次引用
- M3-Embedding: Multi-Linguality, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge DistillationJianlyu Chen, Shitao Xiao, Peitian Zhang, Kun Luo 等ACL Findings 2024 · 762 次引用
- Formalizing and Benchmarking Prompt Injection Attacks and DefensesYupei Liu, Yuqi Jia, Runpeng Geng, Jinyuan Jia 等USENIX Security 2024 · 308 次引用
- Prompt Injection Attack to Tool Selection in LLM AgentsJiawen Shi, Zenghui Yuan, Guiyao Tie, Pan Zhou 等NDSS 2026 · 181 次引用
- Tool Learning in the Wild: Empowering Language Models as Automatic Tool AgentsZhengliang Shi, Shen Gao, Lingyong Yan, Yue Feng 等WWW 2025 · 59 次引用
相关 Paper
- Attractive Metadata Attack: Inducing LLM Agents to Invoke Malicious ToolsKanghua Mo, Li Hu, Yucheng Long, Zhihao LiNeurIPS 2025 · 37 次引用
- Think Twice Before You Act: Protecting LLM Agents Against Tool Description Poisoning via Isolated PlanningShanghao Shi, Xiao Wang, Chaoyu Zhang, Hao Li 等ICML 2026 · 1 次引用
- AGENTVIGIL: Automatic Black-Box Red-teaming for Indirect Prompt Injection against LLM AgentsZhun Wang, Vincent Siu, Zhe Ye, Tianneng Shi 等EMNLP Findings 2025 · 8 次引用
- Attack the Messages, Not the Agents: A Multi-round Adaptive Stealthy Tampering Framework for LLM-MASBingyu Yan, Xiaoming Zhang, Ziyi Zhou, Chaozhuo Li 等AAAI 2026 · 1 次引用
- MCPTox: A Benchmark for Tool Poisoning on Real-World MCP ServersZhiqiang Wang, Yichao Gao, Yanting Wang, Suyuan Liu 等AAAI 2026 · 6 次引用
