mlsanityData to 14 Oct 2026

QueryIPI: Query-agnostic Indirect Prompt Injection on Coding Agents

arXiv 2510.23675 ↗First posted 27 Oct 2025cs.CR cs.AIcited by 2

On the map: LLM agents and tool use → Agent threats, guardrails and governance

also in 1 more
Abstract (arXiv)

Modern coding agents integrated into IDEs orchestrate powerful tools and high-privilege system access, creating a high-stakes attack surface. Prior work on Indirect Prompt Injection (IPI) is mainly query-specific, requiring particular user queries as triggers and leading to poor generalizability. We propose query-agnostic IPI, a new attack paradigm that reliably executes malicious payloads under arbitrary user queries. Our key insight is that malicious payloads should leverage the invariant prompt context (i.e., system prompt and tool descriptions) rather than variant user queries. We present QueryIPI, an automated framework that uses tool descriptions as optimizable payloads and refines them via iterative, prompt-based blackbox optimization. QueryIPI leverages system invariants for initial seed generation aligned with agent conventions, and iterative reflection to resolve instruction-following failures and safety refusals. Experiments on five simulated agents show that QueryIPI achieves up to 87% success rate, outperforming the best baseline (50%). Crucially, generated malicious descriptions transfer to real-world coding agents, highlighting a practical security risk.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 20 of its 38 references that are in the map. First posted on arXiv 27 Oct 2025.

Builds on

20 of 38 references.

Closest ancestors · 9

Same direction, newest first

  1. 2025A First Look at the Security Issues in the Model Context Protocol Ecosystem18 Oct
  2. 2025MCPTox: A Benchmark for Tool Poisoning Attack on Real-World MCP Servers19 Aug
  3. 2025AgentVigil: Generic Black-Box Red-teaming for Indirect Prompt Injection against LLM Agents9 May
  4. 2025Prompt Injection Attack to Tool Selection in LLM Agents28 Apr
  5. 2025Adaptive Attacks Break Defenses Against Indirect Prompt Injection Attacks on LLM Agents27 Feb
  6. 2024AdvAgent: Controllable Blackbox Red-teaming on Web Agents22 Oct
  7. 2024AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge Bases17 Jul
  8. 2024AgentDojo: A Dynamic Environment to Evaluate Prompt Injection Attacks and Defenses for LLM Agents19 Jun
  9. 2024InjecAgent: Benchmarking Indirect Prompt Injections in Tool-Integrated Large Language Model Agents5 Mar

Other references · 11

  1. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
  2. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
  3. 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,443
  4. 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,420
  5. 2023Tree of Attacks: Jailbreaking Black-Box LLMs Automaticallycited by 672
  6. 2024Defending Against Indirect Prompt Injection Attacks With Spotlightingcited by 267
  7. 2023LooGLE: Can Long-Context Language Models Understand Long Contexts?cited by 202
  8. 2024Defense Against Prompt Injection Attack by Leveraging Attack Techniquescited by 40
  9. 2025MCP-Zero: Active Tool Discovery for Autonomous LLM Agentscited by 33
  10. 2024Prompt Leakage effect and defense strategies for multi-turn LLM interactionscited by 23
  11. 2025You Can't Steal Nothing: Mitigating Prompt Leakages in LLMs via System Vectorscited by 4

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Red-Teaming Coding Agents from a Tool-Invocation Perspective: An Empirical Security Assessment
  2. 2026ROPE: Routed Origin Policy Enforcement against Indirect Prompt Injection
  3. 2026Prompt Injection Attacks on Agentic Coding Assistants: A Systematic Analysis of Vulnerabilities in Skills, Tools, and Protocol Ecosystems
  4. 2026Agent Data Injection Attacks are Realistic Threats to AI Agents
  5. 2026Architecting Secure AI Agents: Perspectives on System-Level Defenses Against Indirect Prompt Injection Attacks
  6. 2025"Your AI, My Shell": Demystifying Prompt Injection Attacks on Agentic AI Coding Editors
  7. 2026Your Agent is More Brittle Than You Think: Uncovering Indirect Injection Vulnerabilities in Agentic LLMs
  8. 2026Authority Is Not a String: A Capability-Scoped Harness for Prompt-Injection-Resistant Coding Agents