AgentSentry stops indirect prompt injection, keeping utility at 74.55%
AgentSentry eliminates successful IPI attacks and raises utility under attack to 74.55%
AI/ML arXiv 26 Feb 2026 Defense Prototype evidence
Published as “AgentSentry: Mitigating Indirect Prompt Injection in LLM Agents via Temporal Causal Diagnostics and Context Purification”
Why it matters
Provides a deployable inference-time defense that stops hidden IPI attacks while preserving the agent's ability to complete real-world multi-tool workflows.
Summary
AgentSentry completely blocks indirect prompt injection attacks (ASR = 0%) and keeps the agent useful, achieving an average Utility Under Attack of 74.55%, which is 20.8 to 33.6 percentage points higher than the strongest prior defenses. The paper reports these results on the AgentDojo benchmark across multiple tasks and LLMs, but the abstract does not detail the exact experimental setup.
What they found 1
- AgentSentry eliminates all evaluated IPI attacks (ASR = 0%) and improves utility under attack.
“AgentSentry eliminates successful attacks and maintains strong utility under attack, achieving an average Utility Under Attack (UA) of 74.55%, improving UA by 20.8 to 33.6 percentage points over the strongest baselines without degrading benign performance.”
What’s new here 4
- Models multi-turn IPI as a temporal causal takeover rather than using surface heuristics.
- Localizes the exact tool-return boundary where attacker-controlled context becomes dominant via counterfactual re-executions.
- Applies causally gated context purification to remove malicious influence while preserving task-relevant evidence, enabling safe continuation instead of termination.
- Operates as a black-box inference-time layer without requiring model retraining or parameter access.