尽管大语言模型(LLM)展现出多样的功能,但它们仍会生成有害、有偏见和有毒的内容,人工设计的越狱提示的普遍存在就证明了这一点。在本研究中,我们提出了带剪枝的攻击树(Tree of Attacks with Pruning, TAP),这是一种仅需对目标LLM具备黑盒访问权限即可生成越狱提示的自动化方法。TAP利用一个攻击者LLM迭代优化候选(攻击)提示,直到其中一个优化后的提示成功越狱目标模型。此外,在将提示发送给目标模型之前,TAP会对其进行评估,剪枝掉那些不太可能实现越狱的提示,从而减少发送给目标LLM的查询次数。在实证评估中我们观察到,针对最先进的LLM(包括GPT4-Turbo和GPT4o),TAP生成的提示的越狱成功率超过80%。这一表现显著优于此前最先进的黑盒越狱生成方法,且使用的查询次数更少。此外,TAP还能够越狱受最先进防护机制(例如LlamaGuard)保护的LLM。
英文摘要:
While Large Language Models (LLMs) display versatile functionality, they continue to generate harmful, biased, and toxic content, as demonstrated by the prevalence of human-designed jailbreaks. In this work, we present Tree of Attacks with Pruning (TAP), an automated method for generating jailbreaks that only requires black-box access to the target LLM. TAP utilizes an attacker LLM to iteratively refine candidate (attack) prompts until one of the refined prompts jailbreaks the target. In addition, before sending prompts to the target, TAP assesses them and prunes the ones unlikely to result in jailbreaks, reducing the number of queries sent to the target LLM. In empirical evaluations, we observe that TAP generates prompts that jailbreak state-of-the-art LLMs (including GPT4-Turbo and GPT4o) for more than 80% of the prompts. This significantly improves upon the previous state-of-the-art black-box methods for generating jailbreaks while using a smaller number of queries than them. Furthermore, TAP is also capable of jailbreaking LLMs protected by state-of-the-art guardrails, e.g., LlamaGuard.
MIST: Jailbreaking Black-box Large Language Models via Iterative Semantic Tuning
School of Computer Science and Information Engineering, Hefei University of Technology(合肥工业大学计算机科学与信息工程学院);College of Computer Science and Technology, Zhejiang University(浙江大学计算机科学与技术学院);College of Cyber Security, Jinan University(暨南大学网络安全学院)
GAS-Leak-LLM: Genetic Algorithm-Based Suffix Optimization for Black-Box LLM Jailbreaking
Department of Electrical, Computer and Biomedical Engineering(电气、计算机与生物医学工程系);University of Pavia(帕维亚大学);Department of Computer Applications(计算机应用系);Cochin University of Science and Technology(科钦科学技术大学)
Jailbreaking for the Average Jane: Choosing Optimal Jailbreaks via Bandit Algorithms for Automatically Enhanced Queries
Centre for Machine Intelligence and Data Science, IIT Bombay(印度理工学院班加罗尔机器智能与数据科学中心);Department of Computer Science and Engineering, IIT Bombay(印度理工学院班加罗尔计算机科学与工程系)
Fuzz-Testing Meets LLM-Based Agents: An Automated and Efficient Framework for Jailbreaking Text-To-Image Generation Models
School of Cyber Science and Technology, Shandong University(山东大学网络科学与技术学院);Netflix Eyeline Studios;State Key Laboratory of Cryptography and Digital Economy Security, Shandong University(山东大学密码与数字经济安全国家重点实验室);Shandong Key Laboratory of Artificial Intelligence Security, Shandong University(山东省人工智能安全重点实验室)
Jailbreaking Large Language Models Through Alignment Vulnerabilities in Out-of-Distribution Settings
University of Notre Dame(圣母大学);Huazhong University of Science and Technology(华中科技大学);Tsinghua University(清华大学);Lehigh University(里海大学);University of Illinois Chicago(芝加哥大学伊利诺伊分校)
Geneshift: Impact of different scenario shift on Jailbreaking LLM
National University of Singapore(新加坡国立大学);NUS Graduate School(新加坡国立大学研究生院);Integrative Sciences and Engineering Programme(整合科学与工程项目);Institute of Data Science (IDS)(数据科学研究院);School of Computing(计算机学院)
Adaptive Prompt Embedding Optimization for LLM Jailbreaking
School of Information Studies, McGill University, Montreal, QC, Canada(麦吉尔大学信息研究学院);Department of Computer Science, Kean University, Union, NJ, United States(凯恩大学计算机科学系);Mila - Quebec AI Institute, Montreal, QC, Canada(魁北克人工智能研究所);Faculty of Information, University of Toronto, Toronto, ON, Canada(多伦多大学信息学院)
Cross-modality Information Check for Detecting Jailbreaking in Multimodal Large Language Models
School of Information Science and Technology, ShanghaiTech University(上海科技大学信息科学与技术学院);The State Key Laboratory of Blockchain and Data Security, Zhejiang University(浙江大学区块链与数据安全国家重点实验室)
Making Them Ask and Answer: Jailbreaking Large Language Models in Few Queries via Disguise and Reconstruction
Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络空间安全学院);RealAI;Tsinghua University(清华大学)
xJailbreak: Representation Space Guided Reinforcement Learning for Interpretable LLM Jailbreaking
Shenzhen Institutes of Advanced Technology, Chinese Academy of Sciences(中国科学院深圳先进技术研究院);Shenzhen University of Advanced Technology(深圳理工大学);WUST(武汉科技大学);HITSZ(哈尔滨工业大学(深圳));School of Biomedical Engineering, UNSW Sydney(新南威尔士大学悉尼分校生物医学工程学院)
Red-teaming the Multimodal Reasoning: Jailbreaking Vision-Language Models via Cross-modal Entanglement Attacks
Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);University of Chinese Academy of Sciences(中国科学院大学);People’s Public Security University of China(中国人民公安大学)
FigStep: Jailbreaking Large Vision-Language Models via Typographic Visual Prompts
Tsinghua University(清华大学);Carnegie Mellon University(卡内基梅隆大学);Zhongguancun Laboratory(中关村实验室);National Financial Cryptography Research Center(国家金融密码学研究中心);Shandong Institute of Blockchain(山东区块链研究院);Shandong University(山东大学)
Exploiting the Index Gradients for Optimization-Based Jailbreaking on Large Language Models
School of Computer Science and Technology, Soochow University(苏州大学计算机科学与技术学院);Dept. Computing Science, Alberta Machine Intelligence Institute (Amii)(阿尔伯塔大学计算科学系、阿尔伯塔机器智能研究所);University of Alberta(阿尔伯塔大学);Tencent(腾讯)
MaskForge: Structure-Aware Adaptive Attacks for Jailbreaking Diffusion Large Language Models
University of Wisconsin-Madison(威斯康星大学麦迪逊分校);Johns Hopkins University(约翰霍普金斯大学);University of Southern California(南加州大学);Responsible AI Research (RAIR) Centre, The University of Adelaide(阿德莱德大学负责任人工智能研究中心)
TRAP: Targeted Random Adversarial Prompt Honeypot for Black-Box Identification
Parameter Lab(参数实验室);IT University of Copenhagen(哥本哈根信息技术大学);Pioneer Centre for Artificial Intelligence(人工智能先锋中心);NAVER AI Lab(NAVER人工智能实验室);University of Tübingen(蒂宾根大学)
Jailbreaking Vision-Language Models Through the Visual Modality
Warsaw University of Technology(华沙理工大学);NASK National Research Institute(波兰国家研究研究院);University of Liverpool(利物浦大学);Indian Institute of Technology Roorkee(印度理工学院拉胡尔分校);Toyota Technological Institute at Chicago(芝加哥丰田技术研究所)