arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2502.11853cs.LG
收藏

StructTransform:面向安全对齐大语言模型的可扩展攻击面

StructTransform: A Scalable Attack Surface for Safety-Aligned Large Language Models

Qatar Computing Research Institute(卡塔尔计算研究所)

Shehel Yoosuf, Temoor Ali, Ahmed Lekssays, Mashael AlSabah, Issa Khalil

AI总结:

本文提出 StructTransform 结构变换攻击,通过多样语法空间编码意图,并自适应结合内容变换,在严格对齐 LLM 上实现超 96% 攻击成功率且零拒绝,揭示现有安全对齐主要依赖 token 级模式而无法识别有害概念。

摘要:

在这项工作中,我们提出了一系列针对大语言模型(LLM)对齐的结构变换攻击,其中我们使用多样的语法空间对自然语言意图进行编码,范围从简单的结构格式和基础查询语言(例如 SQL),到完全由 LLM 创建的全新空间和语法。我们广泛的评估表明,即使是在使用 SOTA 对齐机制的严格 LLM(如 Claude 3.5 Sonnet)上,我们最简单的攻击也能达到接近 90% 的成功率。我们通过使用一种自适应方案进一步提升了攻击性能,该方案将结构变换与现有的内容变换相结合,从而实现了超过 96% 的攻击成功率(ASR),且拒绝率为 0%。为了推广我们的攻击,我们探索了多种结构格式,包括完全由 LLM 生成的语法。我们的结果表明,这类新颖语法易于生成,并能带来较高的 ASR,这表明防御我们的攻击并非一个直接的过程。最后,我们构建了一个基准,并针对该基准评估了现有的安全对齐防御,结果表明其中大多数防御均以 100% 的 ASR 失败。我们的结果表明,现有的安全对齐主要依赖于 token 级模式,而无法识别有害概念,这凸显并激励了在该方向上进行严肃研究的必要性。作为案例研究,我们展示了攻击者如何利用我们的攻击轻松生成一个恶意软件样本和一个欺诈短信语料库,这些样本在绕过检测方面表现良好。

英文摘要:

In this work, we present a series of structure transformation attacks on LLM alignment, where we encode natural language intent using diverse syntax spaces, ranging from simple structure formats and basic query languages (e.g., SQL) to new novel spaces and syntaxes created entirely by LLMs. Our extensive evaluation shows that our simplest attacks can achieve close to a 90% success rate, even on strict LLMs (such as Claude 3.5 Sonnet) using SOTA alignment mechanisms. We improve the attack performance further by using an adaptive scheme that combines structure transformations along with existing content transformations, resulting in over 96% ASR with 0% refusals. To generalize our attacks, we explore numerous structure formats, including syntaxes purely generated by LLMs. Our results indicate that such novel syntaxes are easy to generate and result in a high ASR, suggesting that defending against our attacks is not a straightforward process. Finally, we develop a benchmark and evaluate existing safety-alignment defenses against it, showing that most of them fail with 100% ASR. Our results show that existing safety alignment mostly relies on token-level patterns without recognizing harmful concepts, highlighting and motivating the need for serious research efforts in this direction. As a case study, we demonstrate how attackers can use our attack to easily generate a sample malware and a corpus of fraudulent SMS messages, which perform well in bypassing detection.

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

↑