arXiv:2512.11783cs.CRcs.AI2025-12被引 1

提出可绕过多个安全模型的超级后缀,提升恶意生成检测能力

Super Suffixes: Bypassing Text Generation Alignment and Guard Models Simultaneously

  • 设计超级后缀,联合优化实现跨模型绕过对齐机制
  • 在5个模型上成功绕过Llama Prompt Guard 2,攻击成功率接近100%
  • 提出轻量级检测方法DeltaGuard,通过内部状态相似性识别恶意输入

大型语言模型(LLMs)快速部署带来了机器学习安全与隐私的迫切需求。由于LLMs常处理不可信文本输入甚至生成可执行代码,并具备访问敏感系统控制的能力,多家公司引入了守护模型(guard models)以抵御恶意输入。本文提出超级后缀(Super Suffixes),一种能覆盖多种模型对齐目标、适应不同分词方案的后缀,通过联合优化技术成功绕过五种文本生成模型上的Llama Prompt Guard 2,实现恶意文本与代码生成。据我们所知,这是首个揭示可通过联合优化攻破该守护模型的工作。通过分析模型内部状态在令牌序列处理中与特定概念方向的相似性变化,我们提出一种高效轻量的检测方法:残差流与特定概念方向的余弦相似度可作为模型意图的独特指纹。基于此提出的反制措施DeltaGuard显著提升对超级后缀攻击的检测能力,将非良性提示分类率提升至近100%,是守护模型体系的重要补充,增强了对抗性提示攻击的鲁棒性。

原文摘要 · Abstract (English)

The rapid deployment of Large Language Models (LLMs) has created an urgent need for enhanced security and privacy measures in Machine Learning (ML). LLMs are increasingly being used to process untrusted text inputs and even generate executable code, often while having access to sensitive system controls. To address these security concerns, several companies have introduced guard models, which are smaller, specialized models designed to protect text generation models from adversarial or malicious inputs. In this work, we advance the study of adversarial inputs by introducing Super Suffixes, suffixes capable of overriding multiple alignment objectives across various models with different tokenization schemes. We demonstrate their effectiveness, along with our joint optimization technique, by successfully bypassing the protection mechanisms of Llama Prompt Guard 2 on five different text generation models for malicious text and code generation. To the best of our knowledge, this is the first work to reveal that Llama Prompt Guard 2 can be compromised through joint optimization. Additionally, by analyzing the changing similarity of a model's internal state to specific concept directions during token sequence processing, we propose an effective and lightweight method to detect Super Suffix attacks. We show that the cosine similarity between the residual stream and certain concept directions serves as a distinctive fingerprint of model intent. Our proposed countermeasure, DeltaGuard, significantly improves the detection of malicious prompts generated through Super Suffixes. It increases the non-benign classification rate to nearly 100%, making DeltaGuard a valuable addition to the guard model stack and enhancing robustness against adversarial prompt attacks.

安全防护对抗攻击检测方法

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。