跳到正文
arXiv cs.AI· Sizhe Chen, Yibo Peng, Jaewon Chang, Chawin Sitawarin, David Wagner·· 11 小时前AI 评分58

SecPO:面向提示注入安全的原则化对抗训练方法

SecPO: Principled Adversarial Training for Prompt Injection Security

AI 导读

研究者提出 SecPO 损失,并配合对抗训练流程,用于防御 AI 智能体的提示注入攻击。相比 Meta-SecAlign,该方法在三种 SoTA 自适应攻击下将攻击成功率降低 1.5-14.5 倍;相比使用 DPO 损失,SecPO 损失进一步降低 2.4-4.6 倍。

正文 · 原文

View PDF HTML (experimental)

Abstract: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$\times$ across three SoTA adaptive attacks, compared with Meta-SecAlign; the SecPO loss reduces them by a further 2.4-4.6$\times$ 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/SecPO}{\text{code}}$, $\href{//huggingface.co/datasets/Sizhe-Chen/Qwen3.6-27B-Instruct-SecPO-trainset}{\text{training data}}$ (with optimized injections from AT), and $\href{//huggingface.co/Sizhe-Chen/Qwen3.6-27B-Instruct-SecPO}{\text{model}}$.
Subjects: Cryptography and Security (cs.CR); Artificial Intelligence (cs.AI)
Cite as: arXiv:2610.41998 [cs.CR]
  (or arXiv:2610.41998v1 [cs.CR] for this version)
  https://doi.org/10.48550/arXiv.2610.41998

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Sizhe Chen [view email]
[v1] Fri, 30 Oct 2026 16:43:17 UTC (379 KB)

来源:arXiv cs.AI · arxiv.org