Structurally Close, Temporally Distant: Measuring Security Exposure in Long-Horizon LLM Agents
On the map: LLM agents and tool use → Agent threats, guardrails and governance
Abstract (arXiv)
Long-horizon LLM agents interact with untrusted content, persistent memory, external state, and sensitive tools. Existing analyses often characterize attacks by the number of execution steps between malicious input and a downstream action. We show that temporal remoteness can overstate security separation in stateful agents. We introduce a provenance-aware execution graph linking agent events through deterministic state, identifier, and tool provenance, and define influence distance DI as the shortest structural path from an untrusted source to a sensitive action. We compare it with sequence distance DT, the shortest injection--sink path in the ordered trajectory. Since the influence graph contains every sequence edge, DI ≤ DT; Gap=DT-DI measures the separation hidden by step count. Across 454 injection--sink pairs from 360 long-horizon AgentDojo trajectories over OpenAI's textttgpt-4o-mini and textttgpt-4o and Claude's Haiku 4.5 and Sonnet 4.6, Gap>0 for 96.9% of pairs, with a median gap of 9 hops; 91.0% remain decoupled after removing the largest provenance-only edge class. On AgentDojo's banking suite, 33.8% of 231 pairs from 377 trajectories decouple through different provenance mechanisms. Among 274 OpenAI pairs, Gap does not independently predict attack success after controlling for DT, attack family, and backend (βGap=0.066, p=.088). At matched thresholds k=2,3, a deterministic DI-based pre-execution gate blocks five attack sinks missed by a sequence-only gate with no additional benign blocking, although the paired gain is not significant (p=.0625). Execution structure therefore reveals proximity hidden by step count and can support targeted runtime intervention. We measure candidate influence pathways rather than causal attribution.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 21 of its 28 references that are in the map. First posted on arXiv 5 Sep 2026.
Builds on
21 of 28 references.
Closest ancestors · 7
Same direction, newest first
- 2025Defeating Prompt Injections by Design24 Mar
- 2025RTBAS: Defending LLM Agents Against Prompt Injection and Privacy Leakage13 Feb
- 2024Agent-SafetyBench: Evaluating the Safety of LLM Agents19 Dec
- 2024AgentHarm: A Benchmark for Measuring Harmfulness of LLM Agents11 Oct
- 2024IsolateGPT: An Execution Isolation Architecture for LLM-Based Agentic Systems8 Mar
- 2024InjecAgent: Benchmarking Indirect Prompt Injections in Tool-Integrated Large Language Model Agents5 Mar
- 2023Identifying the Risks of LM Agents with an LM-Emulated Sandbox25 Sep
Other references · 14
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,182
- 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 2,006
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,443
- 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Uglycited by 387
- 2024StruQ: Defending Against Prompt Injection with Structured Queriescited by 375
- 2023Formalizing and Benchmarking Prompt Injection Attacks and Defensescited by 364
- 2023Benchmarking and Defending Against Indirect Prompt Injection Attacks on Large Language Modelscited by 264
- 2025Securing AI Agents with Information-Flow Controlcited by 121
- 2024System-Level Defense against Indirect Prompt Injection Attacks: An Information Flow Control Perspectivecited by 96
- 2024Attention Tracker: Detecting Prompt Injection Attacks in LLMscited by 95
- 2020UNICORN: Runtime Provenance-Based Detector for Advanced Persistent Threatscited by 53
2 more
- 2017Practical Whole-System Provenance Capturecited by 19
- 2018Runtime Analysis of Whole-System Provenancecited by 4
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026CONTINUITY: Security-Context Contracts for Composable LLM Agent Controls
- 2026ElephantAgent: Contextual State Continuity in Agentic Systems
- 2026Trust No Tool: Evaluating and Defending LLM Agents under Untrusted Tool Feedback
- 2026The Granularity Mismatch in Agent Security: Argument-Level Provenance Solves Enforcement and Isolates the LLM Reasoning Bottleneck
- 2026Context-Fractured Decomposition Attacks on Tool-Using LLM Agents: Exploiting Artifact Provenance Gaps
- 2026Beyond Predefined Sinks: Security-Aware Dependency Analysis for LLM Agents
- 2026CyberClear: A Benchmark for LLM Agent Systems on APT Attack Chain Provenance
- 2026Early Detection of Distributed Backdoors in Multi-Agent LLM Systems: A Characterization Study