arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2510.01342cs.CR
收藏

高度约束黑盒设置下的微调越狱:一种三管齐下的方法

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(网络空间安全防御全国重点实验室)

Xiangfang Li, Yu Wang, Bo Li

AI总结:

针对黑盒微调接口,提出结合包装、编码和后门的三管齐下越狱攻击,在GPT-4.1和GPT-4o上成功率超97%。

摘要:

随着大型语言模型(LLMs)的快速发展,确保其安全使用变得越来越关键。微调是使模型适应下游任务的一种广泛使用的方法,然而它容易受到越狱攻击。然而,大多数现有研究集中在过于简化的攻击场景上,限制了其在实际防御设置中的相关性。为了使这种风险具体化,我们提出了一种三管齐下的越狱攻击,并在仅数据集的黑盒微调接口下,针对提供商的防御进行评估。在这种设置中,攻击者只能向提供商提交微调数据,而提供商可能在各个阶段部署防御措施:(1)上传前数据过滤,(2)训练时防御性微调,以及(3)训练后安全审计。我们的攻击结合了安全风格的词首/词尾包装、敏感令牌的良性词汇编码(下划线)以及后门机制,使模型能够学习有害行为,而单个数据点看起来无害。大量实验证明了我们方法的有效性。在实际部署中,我们的方法成功越狱了OpenAI平台上的GPT-4.1和GPT-4o,两个模型的攻击成功率均超过97%。我们的代码可在https://github.com/lxf728/tri-pronged-ft-attack获取。

英文摘要:

With the rapid advancement of large language models (LLMs), ensuring their safe use becomes increasingly critical. Fine-tuning is a widely used method for adapting models to downstream tasks, yet it is vulnerable to jailbreak attacks. However, most existing studies focus on overly simplified attack scenarios, limiting their practical relevance to real-world defense settings. To make this risk concrete, we present a three-pronged jailbreak attack and evaluate it against provider defenses under a dataset-only black-box fine-tuning interface. In this setting, the attacker can only submit fine-tuning data to the provider, while the provider may deploy defenses across stages: (1) pre-upload data filtering, (2) training-time defensive fine-tuning, and (3) post-training safety audit. Our attack combines safety-styled prefix/suffix wrappers, benign lexical encodings (underscoring) of sensitive tokens, and a backdoor mechanism, enabling the model to learn harmful behaviors while individual datapoints appear innocuous. Extensive experiments demonstrate the effectiveness of our approach. In real-world deployment, our method successfully jailbreaks GPT-4.1 and GPT-4o on the OpenAI platform with attack success rates above 97% for both models. Our code is available at https://github.com/lxf728/tri-pronged-ft-attack.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑