mlsanityData to 24 Nov 2026

SecPO: Principled Adversarial Training for Prompt Injection Security

arXiv 2610.41998 ↗Submitted 30 Oct 2026cs.CR cs.AIcited by 0

On the map: LLM safety and security → Prompt injection and agent security also fits: Backdoor and data poisoning attacks

Abstract (arXiv)

Recognized as a top threat to AI agents, prompt injection allows instructions from untrusted data (email, documents, websites) to manipulate the agent's operation. The existing best-defended LLM, Meta-SecAlign, is trained with the DPO loss but still suffers from attack success rates (ASRs) approaching 100% under adaptive prompt injections. One reason is that DPO anchors the model around the undefended reference model, which is insecure. We show an idealized reference model---an injection-invariant, utility-preserving oracle---can nevertheless be approximated, as its output distribution in training is interestingly accessible. This new observation motivates a theoretically principled SecPO loss. Another Meta-SecAlign shortcoming is that it trains on weak simulated attacks. We implement an efficient adversarial training (AT) pipeline that synthesizes strong injected inputs (best@240), and train the model on them. Our AT reduces ASRs by 1.5-14.5× across three SoTA adaptive attacks, compared with Meta-SecAlign; the SecPO loss reduces them by a further 2.4-4.6× compared with using DPO loss. In agentic workflows, our SecPO + AT Qwen3.6-27B is much more secure than Meta-SecAlign: 8.8% vs. 78.8% AgentDojo ASR@800 under the AttackerMovesSecond attack. Moreover, our defended model shows no noticeable reduction in benign utility in nine benchmarks covering agentic tool calling, instruction following, science, and math. We release our href//github.com/Sizhe-Chen/SecPOcode, href//huggingface.co/datasets/Sizhe-Chen/Qwen3.6-27B-Instruct-SecPO-trainsettraining data (with optimized injections from AT), and href//huggingface.co/Sizhe-Chen/Qwen3.6-27B-Instruct-SecPOmodel.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Prompt injection and agent security, one of 12 directions in LLM safety and security. Builds on 75 of its 118 references that are in the map. Submitted 30 Oct 2026.

Builds on

75 of 118 references.

Closest ancestors · 39

Same direction, newest first

  1. 2026CoER: Defending against Adaptive Indirect Prompt Injection via Adversarial Co-Evolution and Refinement7 Sep
  2. 2026Repeat-After-Me: Black-Box Adaptive Visual Prompt Injection3 Sep
  3. 2026SecOPD: Mitigating Adaptive Prompt Injections by On-Policy Distillation21 Aug
  4. 2026StepJack: Benchmarking Computer-Use Agent Safety Against Multi-Step Indirect Prompt Injection6 Aug
  5. 2026GPT-Red: Automated Red Teaming via Self-Play at Scale28 Jul
  6. 2026Twin Agent: Context Residual Compression for Privilege Separated Agents21 Jul
  7. 2026AI Agents May Always Fall for Prompt Injections17 May
  8. 2026DecodingTrust-Agent Platform (DTap): A Controllable and Interactive Red-Teaming Platform for AI Agents6 May
  9. 2026LocalAlign: Enabling Generalizable Prompt Injection Defense via Generation of Near-Target Adversarial Examples for Alignment Training2 May
  10. 2026PIArena: A Platform for Prompt Injection Evaluation9 Apr
  11. 2026PISmith: Reinforcement Learning-based Red Teaming for Prompt Injection Defenses13 Mar
  12. 2026IH-Challenge: A Training Dataset to Improve Instruction Hierarchy on Frontier LLMs11 Mar
27 more
  1. 2026Prompt Injection as Role Confusion22 Feb
  2. 2026Learning to Inject: Automated Prompt Injection via Reinforcement Learning5 Feb
  3. 2026MAGIC: A Co-Evolving Attacker-Defender Adversarial Game for Robust LLM Safety2 Feb
  4. 2025ceLLMate: Sandboxing Browser AI Agents14 Dec
  5. 2025Soft Instruction De-escalation Defense24 Oct
  6. 2025Defending Against Prompt Injection with DataFilter22 Oct
  7. 2025PromptLocate: Localizing Prompt Injection Attacks14 Oct
  8. 2025CommandSans: Securing AI Agents with Surgical Precision Prompt Sanitization9 Oct
  9. 2025Adversarial Reinforcement Learning for Large Language Model Agent Safety6 Oct
  10. 2025RL Is a Hammer and LLMs Are Nails: A Simple Reinforcement Learning Recipe for Strong Prompt Injection6 Oct
  11. 2025AEGIS : Automated Co-Evolutionary Framework for Guarding Prompt Injections Schema27 Aug
  12. 2025PromptArmor: Simple yet Effective Prompt Injection Defenses21 Jul
  13. 2025May I have your Attention? Breaking Fine-Tuning based Prompt Injection Defenses using Architecture-Aware Attacks10 Jul
  14. 2025Meta SecAlign: A Secure Foundation LLM Against Prompt Injection Attacks3 Jul
  15. 2025Stronger Enforcement of Instruction Hierarchy via Augmented Intermediate Representations25 May
  16. 2025A Critical Evaluation of Defenses against Prompt Injection Attacks23 May
  17. 2025LlamaFirewall: An open source guardrail system for building secure AI agents6 May
  18. 2025DataSentinel: A Game-Theoretic Detection of Prompt Injection Attacks15 Apr
  19. 2025Defeating Prompt Injections by Design24 Mar
  20. 2025A Closer Look at System Prompt Robustness15 Feb
  21. 2025MELON: Provable Defense Against Indirect Prompt Injection Attacks in AI Agents7 Feb
  22. 2024Instructional Segment Embedding: Improving LLM Safety with Instruction Hierarchy9 Oct
  23. 2024SecAlign: Defending Against Prompt Injection with Preference Optimization7 Oct
  24. 2024The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructions19 Apr
  25. 2024Defending Against Indirect Prompt Injection Attacks With Spotlighting20 Mar
  26. 2024StruQ: Defending Against Prompt Injection with Structured Queries9 Feb
  27. 2023Formalizing and Benchmarking Prompt Injection Attacks and Defenses19 Oct

Other references · 36

  1. 2024The Llama 3 Herd of Modelscited by 16,113
  2. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,494
  3. 2014Explaining and Harnessing Adversarial Examplescited by 7,581
  4. 2021Emerging Properties in Self-Supervised Vision Transformerscited by 7,264
  5. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,374
  6. 2023GPQA: A Graduate-Level Google-Proof Q&A Benchmarkcited by 3,191
  7. 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,526
  8. 2022Solving Quantitative Reasoning Problems with Language Modelscited by 1,478
  9. 2020DocVQA: A Dataset for VQA on Document Imagescited by 1,404
  10. 2024Length-Controlled AlpacaEval: A Simple Way to Debias Automatic Evaluatorscited by 966
  11. 2023Tree of Attacks: Jailbreaking Black-Box LLMs Automaticallycited by 724
  12. 2018Born Again Neural Networkscited by 578
24 more
  1. 2023Detecting Language Model Attacks with Perplexitycited by 457
  2. 2026DFlash: Block Diffusion for Flash Speculative Decodingcited by 217
  3. 2024Latent Adversarial Training Improves Robustness to Persistent Harmful Behaviors in LLMscited by 193
  4. 2025The Attacker Moves Second: Stronger Adaptive Attacks Bypass Defenses Against Llm Jailbreaks and Prompt Injectionscited by 164
  5. 2023Beyond One-Preference-Fits-All Alignment: Multi-Objective Direct Preference Optimizationcited by 134
  6. 2024Direct Preference Optimization with an Offsetcited by 128
  7. 2024Efficient Adversarial Training in LLMs with Continuous Attackscited by 123
  8. 2024Improved Techniques for Optimization-Based Jailbreaking on Large Language Modelscited by 116
  9. 2024Attacking Large Language Models with Projected Gradient Descentcited by 100
  10. 2024Can LLMs Separate Instructions From Data? And What Do We Even Mean By That?cited by 90
  11. 2026AgentDyn: Are Your Agent Security Defenses Deployable in Real-World Dynamic Environments?cited by 81
  12. 2024WPO: Enhancing RLHF with Weighted Preference Optimizationcited by 57
  13. 2026AgentLAB: Benchmarking LLM Agents against Long-Horizon Attackscited by 50
  14. 2025SafeDPO: A Simple Approach to Direct Preference Optimization with Enhanced Safetycited by 39
  15. 2024Understanding Reference Policies in Direct Preference Optimizationcited by 23
  16. 2024Exploiting the Index Gradients for Optimization-Based Jailbreaking on Large Language Modelscited by 16
  17. 2025MixAT: Combining Continuous and Discrete Adversarial Training for LLMscited by 15
  18. 2025Safety Alignment of LMs via Non-cooperative Gamescited by 12
  19. 2025Preference Optimization by Estimating the Ratio of the Data Distributioncited by 10
  20. 2025KL Penalty Control via Perturbation for Direct Preference Optimizationcited by 7
  21. 2025Pre-DPO: Improving Data Utilization in Direct Preference Optimization Using a Guiding Reference Modelcited by 7
  22. 2026SecureClaw: Clawing Back Control of LLM Agentscited by 3
  23. 2026Mitigating Mismatch within Reference-based Preference Optimizationcited by 2
  24. 2026Render Before Reading: Visual Rendering as a Prompt Injection Defensecited by 2

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Defending against Adaptive Prompt Injection Attacks via Reasoning-enabled Task Alignment
  2. 2026Evaluation of Prompt Injection Defenses in Large Language Models
  3. 2023Learn from the Past: A Proxy Guided Adversarial Defense Framework with Self Distillation Regularization
  4. 2026Evaluating Prompt Injection Defenses for Educational LLM Tutors: Security-Usability-Latency Trade-offs
  5. 2025SecInfer: Preventing Prompt Injection via Inference-time Scaling
  6. 2025Fast Proxies for LLM Robustness Evaluation
  7. 2026Defense Against Indirect Prompt Injection via Tool Result Parsing
  8. 2025Transferable Direct Prompt Injection via Activation-Guided MCMC Sampling