Cryptography and Security · arXiv:2602.22724 v2 · submitted 26 Feb 2026
AgentSentry: Mitigating Indirect Prompt Injection in LLM Agents via Temporal Causal Diagnostics and Context Purification
The paper says
“It records no observed successful attack in the evaluated cases (ASR = 0%) and achieves an average Utility Under Attack (UA) of 76.10%.”
from the abstract · picked out as the main claim by a classifier
Reviews
Reviews by people
No person has reviewed this paper on Pith yet. A scientist listed on Pith can review it for a fee, and their review is published here whatever it concludes.
The paper
Abstract
Tool-augmented large language model (LLM) agents aggregate dialogue history, tool outputs, and retrieved content into an accumulated runtime state to complete multi-step tasks. This execution model exposes agents to indirect prompt injection (IPI) attacks, in which attacker-controlled instructions embedded in external artifacts enter the agent state and later influence tool use. Multi-turn IPI is especially challenging because injected content can persist across steps and trigger unauthorized state-changing actions only after merging with user intent. This creates a source-attribution problem: existing inference-time defenses can often detect suspicious behavior but do not directly distinguish whether a pending action is supported by the user task or influenced by injected content. They therefore resort to conservative blocking, termination, or broad filtering. We propose AgentSentry, an inference-time defense that operationalizes temporal causal diagnostics through boundary-local counterfactual re-executions at tool-return boundaries. It substitutes the mediator under a restored snapshot, records whether the pending proposal survives, and aggregates user-view and probe scores across adjacent boundaries. When a proposal is mediator-sensitive, AgentSentry purifies the implicated mediator content while preserving task-relevant evidence and resumes execution from the sanitized state. We evaluate AgentSentry on AgentDojo across four task suites, three IPI attack families, and three black-box LLM backbones. It records no observed successful attack in the evaluated cases (ASR = 0%) and achieves an average Utility Under Attack (UA) of 76.10%. Over the strongest evaluated baseline, it improves average UA by 1.84–7.60 percentage points, with benign FPRs of 2.06%–5.15%. We further evaluate long-horizon and adaptive attacks, imperfect purification, runtime overhead, and an OpenClaw case study.
The paper's own sentences, arranged. Each label is drawn from a closed vocabulary; the number beside it is the probability the classifier gave that label. No sentence in this record was written by a model.
abstract compiled · 2026-10-28 · no language-model review
How the main claim is stated: asserted 1.00
What the abstract itself states, as probabilities: claims first 0.05 · states limitation 0.33 · human participants 0.05 · controlled comparison 0.93 · randomized assignment 0.01 · states quantitative result 0.99 · compares with prior results 0.97 · mentions code or data availability 0.03
The abstract, sentence by sentence
This table labels the abstract only (arXiv listing abstract v2). The number is the probability the classifier gave the label.
| Sentence | Role | The authors' own work | States the main conclusion | Strength |
|---|---|---|---|---|
| Tool-augmented large language model (LLM) agents aggregate dialogue history, tool outputs, and retrieved content into an accumulated runtime state to complete multi-step tasks. | background 1.00 | 0.05 | 0.02 | asserted 1.00 |
| This execution model exposes agents to indirect prompt injection (IPI) attacks, in which attacker-controlled instructions embedded in external artifacts enter the agent state and later influence tool use. | background 1.00 | 0.06 | 0.03 | asserted 1.00 |
| Multi-turn IPI is especially challenging because injected content can persist across steps and trigger unauthorized state-changing actions only after merging with user intent. | background 0.98 | 0.06 | 0.02 | asserted 0.89 |
| This creates a source-attribution problem: existing inference-time defenses can often detect suspicious behavior but do not directly distinguish whether a pending action is supported by the user task or influenced by injected content. | gap 0.91 | 0.05 | 0.03 | asserted 0.69 |
| They therefore resort to conservative blocking, termination, or broad filtering. | background 0.73 | 0.04 | 0.02 | asserted 0.91 |
| We propose AgentSentry, an inference-time defense that operationalizes temporal causal diagnostics through boundary-local counterfactual re-executions at tool-return boundaries. | contribution 0.82 | 0.88 | 0.14 | asserted 1.00 |
| It substitutes the mediator under a restored snapshot, records whether the pending proposal survives, and aggregates user-view and probe scores across adjacent boundaries. | method 1.00 | 0.90 | 0.05 | asserted 0.98 |
| When a proposal is mediator-sensitive, AgentSentry purifies the implicated mediator content while preserving task-relevant evidence and resumes execution from the sanitized state. | method 0.99 | 0.76 | 0.13 | asserted 1.00 |
| We evaluate AgentSentry on AgentDojo across four task suites, three IPI attack families, and three black-box LLM backbones. | method 0.75 | 0.96 | 0.04 | asserted 0.99 |
| It records no observed successful attack in the evaluated cases (ASR = 0%) and achieves an average Utility Under Attack (UA) of 76.10%. | result 1.00 | 0.97 | 0.45 | asserted 1.00 |
| Over the strongest evaluated baseline, it improves average UA by 1.84--7.60 percentage points, with benign FPRs of 2.06%--5.15%. | result 1.00 | 0.96 | 0.19 | asserted 1.00 |
| We further evaluate long-horizon and adaptive attacks, imperfect purification, runtime overhead, and an OpenClaw case study. | contribution 0.81 | 0.95 | 0.04 | asserted 0.92 |
What kind of paper the classifier reports this is: method or tool 1.00 · evidence from observation or experiment 0.98
What was examined, and what was not
Sources read
- arXiv listing abstract v2
Not examined
- full text
- figures and tables
- references and citing sentences
- relations to other papers
Levels run
- P abstract
Not run
- S sections
- T body sentences
- C citations
- R cross-paper relations
How the labels were made
Compiled by classifier-1.13.0 via TypeSafe API, question bank abstract-p1-20260923, 2026-10-28: 1 request, 8,957 input tokens.
Every quoted sentence on this record is the authors'. Every label is from Pith's closed vocabulary, with the probability shown beside it. This record as JSON
Cited by 5 Pith papers
Reviewed papers on Pith that cite this one. OpenAlex reports about 42 citations worldwide. The full citation record
- CapLite: Prompt-Injection Defense for Small Language Model Agents without Model-Written Security Artifacts cs.AI · Nov 2026
- Intent-Conditioned Argument Mediation for Tool-Using LLM Agents: Blocking Trusted-but-Unauthorized Arguments cs.AI · Nov 2026
- Backtracking Agent Applications Security Incidents cs.CR · Nov 2026
- Safe Personal RSI: Evaluating and Repairing Personal-Agent Updates cs.SE · Nov 2026
- StateFence: Task-State Protection Against Evidence-Chain Contamination in Blue-Team LLM Agents cs.CR · Nov 2026
How the literature uses it
22 arXiv papers cite this in 26 sentences
Papers citing it · 10 sentences without a confident label
Cites it as support 1 paper
-
A growing body of work [ref] confirms they can reduce attack success rates substantially.
Why Formal Monitors Fail: Attack Distribution Entropy as a Coverage Bound for LTL-Based LLM Agent Safety · Introduction · 0.97
Cites it as background 13 papers
-
Causal attribution defenses [ref] use counterfactual re-execution to determine whether a proposed action is driven by user intent or by injected content.
Causality Laundering: Denial-Feedback Leakage in Tool-Calling LLM Agents · Introduction · 0.91
-
A third line studies runtime defenses and broader system safeguards, including Task Shield, CaMeL, ToolSafe, ToolShield, AgentSentry, CommandSans, AgentWatcher, AgentSys, BrowseSafe, refusal-alignment, and system-level agent-security analyses [ref] , together with world-model and code-world-model reasoning [ref] .
Trust No Tool: Evaluating and Defending LLM Agents under Untrusted Tool Feedback · Related Work · 1.00
-
Agent-C [ref] , AgentSpec [ref] , ProbGuard [ref] , AgentSentry [ref] , and AgentVerify [ref] provide monitoring frameworks.
Why Formal Monitors Fail: Attack Distribution Entropy as a Coverage Bound for LTL-Based LLM Agent Safety · Related Work · 1.00
Challenges and discussion
Know something about this paper? Leave a comment.
Come back by email
A short list of the week's newly reviewed papers. Nothing is sent until you confirm from your inbox, and every email has a link that stops it. No account.
No comments yet.
Sign in to comment