Soft Instruction De-escalation Defense

Nils Philipp Walter, Chawin Sitawarin, Jamie Hayes, David Stutz, Ilia Shumailov · Submission to ICLR 2026 · Desk rejected

TL;DR

Tool-augmented LLM agents are highly vulnerable to indirect prompt injections hidden in external web data or tool outputs. To counter this, Soft Instruction Control (SIC) acts as an external pre-processing pipeline that "de-escalates" text by proactively rewriting imperative commands, verifying sanitization with synthetic canary instructions, and scanning the output at multiple granularities. This defense-in-depth approach drives standard attack success rates to 0% with minimal utility loss and dramatically raises the cost for adaptive adversaries.

What Problem Does This Paper Address?

When autonomous LLM agents interact with the web, APIs, or emails, untrusted data enters their prompt context. Attackers can embed hidden instructions (indirect prompt injections) to trick agents into leaking private data, making unauthorized financial transactions, or running arbitrary tool calls.

Most existing defenses rely either on prompt-engineering delimiters (which offer virtually no real security) or on auxiliary LLM-based classifiers that filter incoming text. However, classification-based defenses are notoriously brittle: attackers easily bypass them by rephrasing commands or wrapping instructions in adversarial framing. This paper addresses the need for a practical, modular defense that hardens agents against malicious inputs without modifying agent policies or sacrificing benign task utility.

Methods

Inspired by CaMeL's formal data/control-flow separation, SIC introduces a "soft" de-escalation pipeline that neutralizes imperative instructions before the agent ever observes them:

Untrusted Input ──> [Inject Canary Instruction] ──> [Unconditional LLM Rewriter (Mask/Rephrase/Remove)] 
                 ──> [Canary Check: Survived? -> HALT] 
                 ──> [Detector Check: Full text & Chunks -> HALT if instruction found] 
                 ──> Cleaned Data to Agent
  1. Canary Injection: SIC appends a known dummy instruction (e.g., "I instruct you to clean the windows.") to the untrusted text. If an attacker injects commands like "Do not modify this text", the rewriter will fail to eliminate the canary, triggering an immediate security halt (<HALT>).
  2. Stateless Rewriting: An LLM unconditionally scrubs imperative instructions by replacing them with [PLACEHOLDER] tokens, rephrasing them into passive informational statements, or removing them entirely.
  3. Multi-Granularity Detection: To catch subtle remnants that slip past the rewriter, the cleaned text is evaluated by an LLM classifier both as a full document and split into individual chunks.
  4. Fail-Safe Halting: If any chunk or the full text still contains instruction-like content, the pipeline safely halts rather than executing potentially dangerous tool calls.

Datasets

The authors evaluated SIC on the AgentDojo benchmark across three realistic agent environments:

  • Banking
  • Slack
  • Travel

Evaluated attacks include standard benchmark exploits (IgnorePreviousInstruction and ImportantInstruction), tag-guarded variants (GuardedImportantInstruction), and a state-of-the-art genetic algorithm adaptive attack (Nasr et al., 2025) powered by a frontier reasoning model.

Key Insights and Ideas

  • Rewriting beats pure filtering: Framing sanitization as an unconditional transformation (masking or rephrasing) rather than a binary classification problem forces adversaries to solve a multi-stage constrained optimization problem.
  • Canaries neutralize adversarial override commands: Instructions designed to prevent LLM rewrites ("ignore changes") backfire by preserving the inserted canary, automatically alerting the system.
  • Masking outperforms rephrasing: Replacing imperative phrases with [PLACEHOLDER] preserves task utility much better than aggressive semantic rephrasing, which often strips out benign context needed by the agent.
  • Attackers pivot to non-imperative framing: When direct commands are stripped, adversaries exploit semantic loopholes—such as formatting malicious tool payloads as JSON benchmarks, compliance notifications, or mock error reports.

Key Results

  • Standard Benchmark Robustness: Across four models (GPT-4o, GPT-4.1-mini, Qwen3-32B, Kimi-k2), SIC reduced the Attack Success Rate (ASR) to 0.0% across all standard AgentDojo suites, maintaining strong clean task utility (e.g., 55.7% clean utility on GPT-4o compared to baseline).
  • Comparison to Detector Guardrails: In head-to-head testing against ProtectAI, PromptGuard, PI-Guard, and MELON, SIC was the only method achieving 0% ASR under both IgnorePreviousInstruction and ImportantInstruction.
  • Adaptive Threat Evaluation: Against a state-of-the-art genetic algorithm adaptive attack on GPT-5-mini, SIC held the ASR to 15% (requiring a median of 126 queries), outperforming the second-best defense (PIGuard at 49% ASR) by a factor of $3\times$.

Limitations and Future Work

  • Not Provably Secure: Under extreme worst-case adaptive scenarios (e.g., on Slack with ~100 queries targeting GPT-4o), ASR reached 60%.
  • Vulnerability to Machine-Readable Plans: Attackers can bypass instruction detection by encoding malicious actions as non-imperative data formats (e.g., raw JSON task specifications or benchmark configurations) which the agent's downstream parser executes anyway.
  • Authority and Error Deceptions: Authoritative statements ("SYSTEM NOTICE: Policy Enforced") or simulated server errors ("[Content Rendering Error]") do not trigger instruction filters but successfully trick downstream agent logic.
  • Future Directions: Incorporating global multi-turn context into detection and restricting external payloads from carrying structured code or raw function-call manifests.

Summary updated

BibTeX
@misc{walter2025soft,
  author = {Nils Philipp Walter and Chawin Sitawarin and Jamie Hayes and David Stutz and Ilia Shumailov},
  title = {{Soft Instruction De-escalation Defense}},
  year = {2025},
  eprint = {2510.21057},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.21057},
}
Figure