mlsanityData to 14 Oct 2026

SecOPD: Mitigating Adaptive Prompt Injections by On-Policy Distillation

arXiv 2608.21500 ↗First posted 21 Aug 2026cs.CR cs.AIcited by 3

On the map: LLM safety and security → Prompt injection and agent security

also in 1 more
Abstract (arXiv)

Prompt injection is listed as the #1 threat to AI agents. When an agent accesses external data from websites, files, or emails, an attacker may inject a prompt into the data, saying, "Ignore all prior instructions and perform <an attacker's task>." To prevent arbitrary manipulation of agents, defenders try to train secure LLMs, which, however, still suffer from near 100% attack success rates (ASRs) against adaptive prompt injections. We note that this is because existing defensive finetuning recipes rely on sequence-level feedback signals (in DPO or GRPO). Treating an entire output equally prevents the model from learning precisely which output tokens are insecure. In this paper, we propose Secure On-Policy Distillation (SecOPD) that provides token-level feedback to guide defensive fine-tuning. The LLM receives an injected sample and produces a rollout, whose tokens are scored by the initialization model given the corresponding clean input. With more fine-grained training signals, our defended Qwen3.6-27B achieves a 9.0% ASR against the SoTA PISmith adaptive prompt injections, compared to 94.0% for the prior SoTA, Meta-SecAlign. The obtained security generalizes to domains completely unseen in training: in agentic tool calling, SecOPD achieves a 4.7% ASR compared to 5.5% for Meta-SecAlign. Code and the model are available at https://github.com/pppyb/SecOPD and https://huggingface.co/pybbb/Qwen3.6-27B-SecOPD.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Placed in Prompt injection and agent security, one of 12 directions in LLM safety and security. Builds on 26 of its 42 references that are in the map. First posted on arXiv 21 Aug 2026.

Builds on

26 of 42 references.

Closest ancestors · 13

Same direction, newest first

  1. 2026PISmith: Reinforcement Learning-based Red Teaming for Prompt Injection Defenses13 Mar
  2. 2026IH-Challenge: A Training Dataset to Improve Instruction Hierarchy on Frontier LLMs11 Mar
  3. 2025Soft Instruction De-escalation Defense24 Oct
  4. 2025Defending Against Prompt Injection with DataFilter22 Oct
  5. 2025RL Is a Hammer and LLMs Are Nails: A Simple Reinforcement Learning Recipe for Strong Prompt Injection6 Oct
  6. 2025Stronger Enforcement of Instruction Hierarchy via Augmented Intermediate Representations25 May
  7. 2025DataSentinel: A Game-Theoretic Detection of Prompt Injection Attacks15 Apr
  8. 2025A Closer Look at System Prompt Robustness15 Feb
  9. 2024Instructional Segment Embedding: Improving LLM Safety with Instruction Hierarchy9 Oct
  10. 2024SecAlign: Defending Against Prompt Injection with Preference Optimization7 Oct
  11. 2024The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructions19 Apr
  12. 2024Defending Against Indirect Prompt Injection Attacks With Spotlighting20 Mar
1 more
  1. 2024StruQ: Defending Against Prompt Injection with Structured Queries9 Feb

Other references · 13

  1. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  2. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
  3. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
  4. 2023GPQA: A Graduate-Level Google-Proof Q&A Benchmarkcited by 2,879
  5. 2024MMLU-Pro: A More Robust and Challenging Multi-Task Language Understanding Benchmarkcited by 1,848
  6. 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,420
  7. 2022Solving Quantitative Reasoning Problems with Language Modelscited by 1,392
  8. 2024Length-Controlled AlpacaEval: A Simple Way to Debias Automatic Evaluatorscited by 897
  9. 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 832
  10. 2023Tree of Attacks: Jailbreaking Black-Box LLMs Automaticallycited by 672
  11. 2025The Attacker Moves Second: Stronger Adaptive Attacks Bypass Defenses Against Llm Jailbreaks and Prompt Injectionscited by 129
  12. 2024Can LLMs Separate Instructions From Data? And What Do We Even Mean By That?cited by 81
1 more
  1. 2025When "Correct" Is Not Safe: Can We Trust Functionally Correct Patches Generated by Code Agents?cited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 3.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Evaluation of Prompt Injection Defenses in Large Language Models
  2. 2026RAISED: Self-Distillation for Robustness to Prompt Injection in LLM Agents
  3. 2026Defending against Adaptive Prompt Injection Attacks via Reasoning-enabled Task Alignment
  4. 2026Assessing Automated Prompt Injection Attacks in Agentic Environments
  5. 2025Are My Optimized Prompts Compromised? Exploring Vulnerabilities of LLM-based Optimizers
  6. 2026AutoDojo: Adaptive Black-Box Attacks Reveal the Limits of IPI Defenses and Task-Specification Effects in LLM Agents
  7. 2025Meta SecAlign: A Secure Foundation LLM Against Prompt Injection Attacks
  8. 2026Architecting Secure AI Agents: Perspectives on System-Level Defenses Against Indirect Prompt Injection Attacks