The Detour Is the Danger: Preserving Security During LLM Agent Recovery
Organizations: ∗Shandong University · †Xidian University · ‡Xi’an Aegiston Technology Co., Ltd · §Nanjing University ·
Abstract
LLM agents increasingly rely on external tools and reusable Skills to execute complex workflows, autonomously replanning when operations fail. However, such recovery may preserve task functionality while silently discarding the security protections required by the original workflow. In this paper, we investigate workflow security downgrade, a failure-induced security threat in which agents execute sensitive operations without satisfying their original protection requirements. Unlike prompt injection, this threat exploits autonomous recovery decisions triggered by execution failures, without modifying instructions or tool definitions. We systematically evaluate this behavior through fault injection in an executable MCP/Skill environment spanning seven LLMs, twelve task templates, and three security-sensitive domains. To address this threat, we propose ARGUS, an obligation-preserving recovery framework that combines resource-bound security evidence, isolated recovery-plan validation, and execution-time enforcement. In a separate 864-run evaluation, ARGUS prevents all observed protection-loss events under enforcement, while recovery assistance yields model-dependent improvements in protected task completion over blocking alone. Our findings demonstrate that secure agent recovery requires preserving security obligations across workflow changes, rather than merely restoring task functionality.
Figures & tables
| Model | Provider | Context | Year | Country |
|---|---|---|---|---|
| GPT-4.1 mini | OpenAI | 1M | 2025 | USA |
| GPT-4.1 | OpenAI | 1M | 2025 | USA |
| GPT-4o mini | OpenAI | 128K | 2024 | USA |
| DeepSeek Flash | DeepSeek | 1M ∗ | 2026 ∗ | China |
| DeepSeek V4 Pro | DeepSeek | 1M | 2026 | China |
| Qwen Plus | Alibaba | 1M † | 2024 | China |
| Task | Random | Targeted | Range (%) |
| File operations | |||
| F1: INI edit | 1/21 (4.8%) | 2/21 (9.5%) | 4.8–9.5 |
| F2: Append note | 0/21 (0.0%) | 2/21 (9.5%) | 0.0–9.5 |
| F3: Delete export | 0/21 (0.0%) | 1/21 (4.8%) | 0.0–4.8 |
| F4: Two-file update | 0/19 (0.0%) | 3/21 (14.3%) | 0.0–14.3 |
| Subtotal | 1/82 (1.2%) | 8/84 (9.5%) | 1.2–9.5 |
LLM Agent Security
Large language model agent security studies attacks and safeguards for systems that plan, use tools, retain memory, and act across applications.
See all 361 papers