Large Language Models(LLM,大语言模型)的兴起带来了重要应用,但也引入了严重的安全威胁,尤其是来自操纵输出生成的越狱攻击。这些攻击利用提示工程和 logit 操纵,引导模型生成有害内容,促使 LLM 提供商实施过滤和安全对齐策略。我们研究了 LLM 的安全机制及其近期应用,揭示了一种针对结构化输出接口的新威胁模型;该接口使攻击者能够在 LLM 生成过程中操纵内部 logit,并且只需要 API 访问权限。为证明该威胁模型,我们提出了一个名为 AttackPrefixTree(APT)的黑盒攻击框架。APT 利用结构化输出接口动态构建攻击模式。通过借助模型安全拒绝响应的前缀以及潜在有害输出,APT 可有效绕过安全措施。在基准数据集上的实验表明,该方法相比现有方法取得了更高的攻击成功率。本工作强调,LLM 提供商迫切需要增强安全协议,以应对由安全模式与结构化输出之间交互所产生的漏洞。
英文摘要:
The rise of Large Language Models (LLMs) has led to significant applications but also introduced serious security threats, particularly from jailbreak attacks that manipulate output generation. These attacks utilize prompt engineering and logit manipulation to steer models toward harmful content, prompting LLM providers to implement filtering and safety alignment strategies. We investigate LLMs' safety mechanisms and their recent applications, revealing a new threat model targeting structured output interfaces, which enable attackers to manipulate the inner logit during LLM generation, requiring only API access permissions. To demonstrate this threat model, we introduce a black-box attack framework called AttackPrefixTree (APT). APT exploits structured output interfaces to dynamically construct attack patterns. By leveraging prefixes of models' safety refusal response and latent harmful outputs, APT effectively bypasses safety measures. Experiments on benchmark datasets indicate that this approach achieves higher attack success rate than existing methods. This work highlights the urgent need for LLM providers to enhance security protocols to address vulnerabilities arising from the interaction between safety patterns and structured outputs.
A Mousetrap: Fooling Large Reasoning Models for Jailbreak with Chain of Iterative Chaos
Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);The University of Hong Kong(香港大学);Fudan University(复旦大学);The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州))
Siren: A Learning-Based Multi-Turn Attack Framework for Simulating Real-World Human Jailbreak Behaviors
Department of Computing The Hong Kong Polytechnic University Hong Kong SAR, China;Centre for Artificial Intelligence;Robotics Hong Kong Institute of Science \& Innovation Chinese Academy of Sciences Hong Kong SAR, China
Speechmatics(Speechmatics公司);MATS(机器学习对齐理论与实验项目(注:MATS全称为Machine Learning Alignment Theory and Experiments,为独立研究机构,此处保留缩写并补充说明));UCL(伦敦大学学院);Stanford University(斯坦福大学);University of Oxford(牛津大学);Tangentic(Tangentic公司);Anthropic(Anthropic公司)
SAID: Safety-Aware Intent Defense via Prefix Probing for Large Language Models
Shenzhen Key Laboratory of Visual Object Detection and Recognition, Harbin Institute of Technology, Harbin Institute of Technology, Shenzhen, Shenzhen, China(深圳视觉目标检测与识别重点实验室,哈尔滨工业大学,哈尔滨工业大学,深圳,深圳,中国)
CCFC: Core & Core-Full-Core Dual-Track Defense for LLM Jailbreak Protection
Department. of Math & Statistics, Boston University(数学与统计学系,波士顿大学);Department. of Computer Science, University at Albany(计算机科学系,阿尔巴尼大学);Department. of ECE & Systems Eng., Department. of Biomedical Eng., Faculty of Computing & Data Sciences, Boston University(电子工程与系统工程系,生物医学工程系,计算与数据科学学院,波士顿大学)
Mitigating Fine-tuning based Jailbreak Attack with Backdoor Enhanced Safety Alignment
University of Wisconsin-Madison(威斯康星大学麦迪逊分校);University of Michigan-Ann Arbor(密歇根大学安娜堡分校);Princeton University(普林斯顿大学);University of California, Davis(加州大学戴维斯分校);University of Chicago(芝加哥大学)
Fine-Tuning Jailbreaks under Highly Constrained Black-Box Settings: A Three-Pronged Approach
Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络安全学院);State Key Laboratory of Cyberspace Security Defense(网络空间安全防御全国重点实验室)
Harnessing Task Overload for Scalable Jailbreak Attacks on Large Language Models
School of Future Technology, University of Chinese Academy of Sciences(中国科学院大学未来技术学院);Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);Beijing Institute of AI Safety and Governance(北京人工智能安全与治理研究院);Center for Long-term Artificial Intelligence(长期人工智能中心);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院)
PIG: Privacy Jailbreak Attack on LLMs via Gradient-based Iterative In-Context Optimization
Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络安全学院);Cyberspace Institute of Advanced Technology, Guangzhou University(广州大学网络空间技术研究院)
Refusal is Not Safety! Benchmarking Latent Safety Risks of LLM-Driven Content Humorization
Beijing Institute of Technology(北京理工大学);Chengdu Institute of Computer Applications, Chinese Academy of Sciences(中国科学院成都计算机应用研究所);University of Chinese Academy of Sciences(中国科学院大学);Yangtze Delta Region Institute of Tsinghua University, Zhejiang(清华大学长三角研究院(浙江))
Compiling Activation Steering into Weights via Null-Space Constraints for Stealthy Backdoors
Zhejiang University(浙江大学);Palo Alto Networks(帕洛阿尔托网络);Ningbo Global Innovation Center, Zhejiang University(宁波全球创新中心,浙江大学);OPPO Research Institute(OPPO研究院);Qilu University of Technology(齐鲁大学)