Subverting Tool Arguments: Defense-Evading Metadata Poisoning in LLM Agents
Shih-Chieh Dai, Xinyu Sun, Haichuan Zhang, Zhiyuan Zhong, Guanhong Tao
Abstract
Conventional indirect prompt injection (IPI) attacks hijack an LLM agent's workflow through malicious instructions embedded in retrieved external content. The growing adoption of the Model Context Protocol (MCP) exposes another attack surface: tool descriptions supplied by third-party MCP servers. Attackers can manipulate this metadata to induce malicious argument generation during tool calls. The challenge is to ensure that the modified descriptions still appear benign to both LLMs and users. Existing IPI attacks, however, struggle to achieve both high attack success and low detectability in this setting. To address this challenge, we propose GRAFT, an LLM-based optimization method for crafting adversarial tool descriptions. Specifically, GRAFT uses a masking mechanism to identify argument-relevant token positions for targeted injection. It then iteratively refines candidate descriptions using dynamic mutation strategies proposed by an LLM, guided by the agent's tool choices and generated arguments. We evaluate GRAFT on three public datasets against several attack baselines. The results show that GRAFT achieves higher attack success while maintaining low detection rates across five filter-based defenses. It also bypasses several existing IPI defenses. Even under an adaptive defense trained on GRAFT-generated injections, GRAFT remains more effective than the baselines.
Create a lesson
Related papers
Poisoning Attacks and Collaborative Defense Framework for LightRAG-Based Construction Regulation Knowledge
Shared title terminology · Yingyan He
ToolPulse: Side-Channel Eavesdropping on Tool-Using LLM Agents
Shared title terminology · Zihao Dan, Jinyu Zhang, Jinzhao Lian et al.
Attacks and Defenses in Decentralized Multi-Agent Systems with Hop-by-Hop Task Decomposition and Delegation
Shared title terminology · Matthew D. Laws, Maria Lazou, Alina Oprea et al.
Gradient-Based Defensive Poisoning Against System Identification Attacks on Cyber-Physical Systems
Shared title terminology · Gonçalo Fernandes, José Cecílio, Victor Mattos et al.
Intent Contracts: Taking Tools Away from Agents
Shared title terminology · Ziyuan Wang, Genliang Zhu, Xiaobo Chen et al.
Weighing the Envelope: Component Weight and Arbitration in Envelope-Layer Defenses for a Single LLM Agent
Shared title terminology · Yuelin Han