Manuscript Offprint

arXiv:2611.01976

Beyond Prompt Injection: The Tool Update Gap in LLM Agent Security

Shiyu Kan, Yue Qi, Yufei Han, Xinjian Luo, Guojun Xiong, Xiaofeng Gao

Shiyu Kan

Shanghai Jiao Tong University

Shanghai, China

knives_and_forks@sjtu.edu.cn

Xinjian Luo

Shanghai Jiao Tong University

Shanghai, China

xinjianluo@sjtu.edu.cn

Yue Qi

Shanghai Jiao Tong University

Shanghai, China

july.yue.qi@sjtu.edu.cn

Guojun Xiong

Shanghai Jiao Tong University

Shanghai, China

gjxiong@sjtu.edu.cn

Yufei Han

Inria

Rennes, France

yufei.han@inria.fr

Xiaofeng Gao

Shanghai Jiao Tong University

Shanghai, China

gaoxiaofeng@sjtu.edu.cn

Abstract

Large language model (LLM)-based agents increasingly rely on external tools to invoke services and interact with web resources. These tools can evolve through software updates, yet agentic frameworks may continue trusting them without re-verifying their safety after implementation changes. This tool update gap creates a supply-chain vulnerability in agentic systems: because updated tool code executes outside the LLM's context window, malicious functionality embedded in tool updates can bypass defenses centered on model-visible interactions, leaving agents exposed to stealthy, persistent threats that existing in-context defenses can hardly address.

To thoroughly investigate this threat, we introduce ETUDE (Exploiting Tool Updates for Direct Execution), an attack that embeds malicious functionality into updates of initially benign tools to produce compromised tools, while preserving their legitimate tool functionality. Unlike prompt-based attacks, ETUDE operates entirely outside the LLM's context and requires no adversarial instructions, thereby bypassing defenses restricted to model-visible content, such as prompt-injection detectors and static skill scanning. We evaluate ETUDE across three representative attack workloads and seven widely used commercial and open-source agentic frameworks, including Gemini CLI, Codex CLI, and Claude Code. The results show that ETUDE achieves a 97.6% attack success rate while maintaining a 95.9% legitimate task completion rate.

We further examine three families of existing defenses and find that they provide insufficient protection against this threat: integrity verification and code review can be bypassed through obfuscation or disrupt legitimate maintenance, while runtime auditing faces coverage and computational overhead limitations. These findings expose a fundamental blind spot in current agent security practices: trust established for a tool does not necessarily remain valid after its implementation updates. Our results highlight the need for lifecycle-aware tool verification and execution-time security enforcement to secure LLM-based agents beyond the model context.

Keywords

LLM agents, tool updates, agent security, supply chain security

References (20)