Skip to content
Preprint

AgentTracer: Tracing Indirect Prompt Injection Attack through Fine-Grained Intention-Execution Alignment

Oct 2026 · 0 citations · 49 references
Computer Science

TL;DR

AgentTracer is presented, an intent-aware tracing framework that treats IPI as task intent drift and recovers implicit decision dependencies among tool calls to construct an Intent-Driven Execution Graph that connects dispersed tool calls by task intent.

Abstract

Large language model (LLM) agents interact with external resources to complete complex user tasks, exposing them to indirect prompt injection (IPI), where malicious instructions redirect agents toward attacker-intended tasks. Since IPI is difficult to defend against in real-world environments, post-incident tracing is essential for locating the injection source and reconstructing the attack chain. However, existing tracing methods primarily capture explicit control-flow and data-flow dependencies, overlooking the implicit relationships among tool calls driven by the malicious instruction. These tool calls may lack explicit dependencies and be interleaved with legitimate operations, making complete attack-chain reconstruction difficult. In this paper, we present AgentTracer, an intent-aware tracing framework that treats IPI as task intent drift. AgentTracer recovers implicit decision dependencies among tool calls to construct an Intent-Driven Execution Graph that connects dispersed tool calls by task intent. It combines the user request with an operation knowledge base to construct a user intent authorization space and identify intent-drift tool calls. Starting from an anomalous tool call under audit, AgentTracer performs target-based pruning and backward tracing to reconstruct the attack chain and locate the injection source and injection point. To evaluate AgentTracer in the presence of noise from normal tasks, we combine execution logs constructed from successful IPI attacks in AgentDyn and InjecAgent with normal execution logs containing 1,800 user requests and 9,000 background tool calls without IPI. In end-to-end experiments, AgentTracer achieves 94.17 percent injection-point accuracy and 93.56 percent path precision. Comparative experiments show that AgentTracer improves injection-point accuracy over existing methods by 18 to 54 percent.

View source

Similar papers

#artificial intelligence Preprint Nov 2026

Beyond Instruction Override: Benchmarking Indirect Prompt Injection with Task-Tampering Attacks

A benchmark that makes this boundary explicit: in each of 90 validated cases across three tool-use environments, the user request specifies the source that resolves the targeted decision, and every attack tampers with a decision required by the benign task rather than replacing that task.

Rong-Ting Zhang, Martín Bertrán, Sandeep Avula et al. · 0 citations
Nov 2026

DISARM: Taint-gated counterfactual auditing for efficient defense against indirect prompt injection

The integration of external tools and untrusted data has transformed large language models (LLMs) into autonomous agents, but also exposes them to indirect prompt injection (IPI) attacks, where adversarial instructions in external content can manipulate tool use and compromise system behavior. Existing defenses use i...

Yuewantong Song, Guan-Hang Shi, Xue-Mei Luo et al. · 0 citations
Open access Nov 2026

IPIGuard++: Effect Authorization and Witness-Carrying Argument Checks for Tool-Using Agents

Tool-using language agents complete tasks by interpreting external records and issuing calls that can change application state. Because these operations can depend on adversarial evidence delivered through indirect prompt injections, preserving the user’s authority requires control over both the permitted operations an...

Wen-Sheng Bao, Chao-Qun Fu, Ren-Cheng Sun · 0 citations
#artificial intelligence Book Open access Oct 2026

Log-To-Leak: Prompt Injection Attacks on Tool-Using LLM Agents via the Model Context Protocol

Results show that successful task completion can coexist with unauthorized post-hoc disclosure and motivate host-controlled authorization for secondary tool calls and motivate host-controlled authorization for secondary tool calls.

Yue-Peng Hu, Chong-Yu Fan, Sirat Samyoun et al. · 9 citations · ⚡2

ToolFence: Fine-Grained Authorization for Secure Tool-Using LLM Agents

This work introduces ToolFence, which compiles a typed authorization blueprint before execution, enforces it through a deterministic monitor, and when the blueprint is incomplete asks a judge to grant new capabilities rather than adjudicate each concrete call, improving runtime efficiency.

Yan-Jie Li, Xiang-Yu He, Xue-Long Dai et al. · 3 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.