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

通过字符串组合生成大量越狱攻击

Plentiful Jailbreaks with String Compositions

Haize Labs(海泽实验室)

Brian R. Y. Huang

AI总结:

本研究针对大语言模型易受编码类越狱攻击的问题,提出可逆字符串变换框架以统一各类编码攻击,构造可自动采样的字符串组合越狱方法,在HarmBench上对前沿模型取得了有竞争力的攻击成功率,凸显此类漏洞的持续性。

摘要:

大语言模型(LLM)仍易受大量对抗攻击与越狱方法的影响。白帽攻击者(即红队人员)常用的一种方法是使用字符串级混淆处理模型的输入与输出,混淆方式包括leet语、轮转密码、Base64、ASCII等。本研究通过将这类基于编码的攻击统一到可逆字符串变换框架下,对其进行了拓展。借助可逆性,我们可以构造任意字符串组合(即变换序列),并能通过编程方式实现端到端的编码与解码。我们设计了一种自动化的best-of-n攻击方法,可从组合数量极大的字符串组合中进行采样。在HarmBench基准上评估时,我们的越狱方法在多款领先的前沿模型上取得了具有竞争力的攻击成功率,凸显出即使在先进LLM中,基于编码的攻击仍是一种持续存在的漏洞。

英文摘要:

Large language models (LLMs) remain vulnerable to a slew of adversarial attacks and jailbreaking methods. One common approach employed by white-hat attackers, or red-teamers, is to process model inputs and outputs using string-level obfuscations, which can include leetspeak, rotary ciphers, Base64, ASCII, and more. Our work extends these encoding-based attacks by unifying them in a framework of invertible string transformations. With invertibility, we can devise arbitrary string compositions, defined as sequences of transformations, that we can encode and decode end-to-end programmatically. We devise a automated best-of-n attack that samples from a combinatorially large number of string compositions. Our jailbreaks obtain competitive attack success rates on several leading frontier models when evaluated on HarmBench, highlighting that encoding-based attacks remain a persistent vulnerability even in advanced LLMs.

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

↑