cs.CLApr 4, 2026

Your Agent is More Brittle Than You Think: Uncovering Indirect Injection Vulnerabilities in Agentic LLMs

Authors: Wenhui Zhu, Xuanzhao Dong, Xiwen Chen, Rui Cai, Peijie Qiu, Zhipeng Wang, Oana Frunza, Shao Tang, +2 more

Organizations: Arizona State University · Morgan Stanley · UC Davis · Washington University in St. Louis · Rice University · Florida State University · University of Oxford

Abstract

The rapid deployment of open-source frameworks has significantly advanced the development of modern multi-agent systems. However, expanded action spaces, including uncontrolled privilege exposure and hidden inter-system interactions, pose severe security challenges. Specifically, Indirect Prompt Injections (IPI), which conceal malicious instructions within third-party content, can trigger unauthorized actions such as data exfiltration during normal operations. While current security evaluations predominantly rely on isolated single-turn benchmarks, the systemic vulnerabilities of these agents within complex dynamic environments remain critically underexplored. To bridge this gap, we systematically evaluate six defense strategies against four sophisticated IPI attack vectors across nine LLM backbones. Crucially, we conduct our evaluation entirely within dynamic multi-step tool-calling environments to capture the true attack surface of modern autonomous agents. Moving beyond binary success rates, our multidimensional analysis reveals a pronounced fragility. Advanced injections successfully bypass nearly all baseline defenses, and some surface-level mitigations even produce counterproductive side effects. Furthermore, while agents execute malicious instructions almost instantaneously, their internal states exhibit abnormally high decision entropy. Motivated by this latent hesitation, we investigate Representation Engineering (RepE) as a robust detection strategy. By extracting hidden states at the tool-input position, we revealed that the RepE-based circuit breaker successfully identifies and intercepts unauthorized actions before the agent commits to them, achieving high detection accuracy across diverse LLM backbones. This study exposes the limitations of current IPI defenses and provides a highly practical paradigm for building resilient multi-agent architectures.

Figures & tables

Explore similar work

CardsList
  1. ICON: Indirect Prompt Injection Defense for Agents based on Inference-Time Correction

    Feb 24, 2026Che Wang, Fuyao Zhang, Jiaming Zhang +6Prompt Injection DefenseAI Agent Security

  2. AdapTools: Adaptive Tool-based Indirect Prompt Injection Attacks on Agentic LLMs

    Feb 24, 2026Che Wang, Jiaming Zhang, Ziqi Zhang +6Indirect Prompt InjectionPrompt Injection Attacks

  3. AgentSentry: Mitigating Indirect Prompt Injection in LLM Agents via Temporal Causal Diagnostics and Context Purification

    Feb 26, 2026Tian Zhang, Yiwei Xu, Juan Wang +8Prompt Injection DefensePrompt Injection Attacks on AI Agents