The paper proposes a residual authority replay attack: authorizations in long-running agents can be reused across tasksWhen Consent Outlives Context: Residual Authority Replay in Long-Lived Agents
Translation in progress — untranslated text is omitted.
Researchers propose a residual authority replay attack that exploits user authorizations retained by long-running agents across tasks or sessions, reusing these authorizations to perform sensitive operations after the original authorization context has changed. The authors reverse-engineer authorization semantics from eight production-grade coding agent implementations and find that authorization states from prior interactions persist across task and session boundaries, allowing subsequent operations to bypass user approval that would otherwise be required. On 508 attack cases in AgentDojo across six LLM families, residual authority increases prompt injection attack success rates by up to 35.1 percentage points; on 55 Terminal-Bench cases with real-time context rebinding attacks on Codex, Gemini CLI, and Goose, attack success rates increase by an average of 24.9 percentage points. The authors propose context-bound authorization, recommending re-requesting approval when security-relevant bindings change.
- Long-lived agents retain user approval decisions across tasks or sessions to reduce the burden of repeated authorization. This causes user consent to become detached from the context in which it was originally granted, creating residual permission security risks that can be reused by subsequent operations.
- The authors propose a residual authority replay attack: first analyze the agent's authorization mechanism and rules, reverse-plan the required permissions for the target malicious operation, then induce the user to execute benign interactions to legitimately obtain those permissions, and finally replay residual permissions when the malicious context appears to bypass confirmation.
- On AgentDojo, residual permissions increase ASR by up to 35.1 percentage points for the four affected models at h=64; on Terminal-Bench, context rebinding attacks against three real code agents increase ASR by an average of 24.9 percentage points.
- The evaluated Terminal-Bench subset contains only 55 cases, of which content replacement and project redirection each have only 2 cases; the controlled experiments use a simulated authorization layer rather than end-to-end real agents; identifying minimal context bindings across heterogeneous tools remains to be explored.
The paper formalizes authorization residue in long-running agents as a reusable attack surface and provides quantified amplification results across models and real coding agents.