Generating key points…
Answers are grounded in this paper and cite their sources.
LLM agents are vulnerable to indirect prompt injection: malicious instructions hidden in untrusted external data sources, such as web pages, emails, or documents, can hijack agent behavior and induce unauthorized actions. Most existing defenses either rely on hardened prompts, which remain brittle against tool-aware payloads, or block suspicious executions, protecting security at the cost of task completion. Recent correction attempts, meanwhile, do not restore the execution state. These limitations motivate recovery mechanisms that preserve legitimate task progress. We present AgentHealer, a runtime defense that treats IPI as a recoverable contamination problem. AgentHealer maintains a Logical Dependency Tree to track the causal provenance of agent execution through sanitized semantic summaries. A detection module uses this structure to detect invocations whose task anchor deviates from the user's request, while a Healer module sanitizes contaminated tool returns and rolls the agent back to a clean checkpoint. On the AgentDojo benchmark, AgentHealer reduces ASR from 23.50% to 1.16%, achieves higher utility under attack than the undefended baseline, and preserves near-baseline overhead on benign tasks. Across multiple attack variants and different LLM models, AgentHealer substantially suppresses unauthorized tool use, although targeted attribution attacks expose remaining vulnerabilities. These results show that correction and rollback can substantially weaken the security&utility tradeoff of tool-using agents.
No takes yet. Share an insight, caveat, or question.
Liu et al. (2026) studied this question.
Synapse has enriched 10 related papers. Consider them for comparative context: