Distract Large Language Models for Automatic Jailbreak Attack

Zeguan Xiao,Yan Yang,Guanhua Chen,Yun Chen
2024-09-30
Abstract:Extensive efforts have been made before the public release of Large language models (LLMs) to align their behaviors with human values. However, even meticulously aligned LLMs remain vulnerable to malicious manipulations such as jailbreaking, leading to unintended behaviors. In this work, we propose a novel black-box jailbreak framework for automated red teaming of LLMs. We designed malicious content concealing and memory reframing with an iterative optimization algorithm to jailbreak LLMs, motivated by the research about the distractibility and over-confidence phenomenon of LLMs. Extensive experiments of jailbreaking both open-source and proprietary LLMs demonstrate the superiority of our framework in terms of effectiveness, scalability and transferability. We also evaluate the effectiveness of existing jailbreak defense methods against our attack and highlight the crucial need to develop more effective and practical defense strategies.
Cryptography and Security,Artificial Intelligence,Computation and Language
What problem does this paper attempt to address?
The problem that this paper attempts to solve is the security issue of large - language models (LLMs), especially the "jailbreak attacks" against these models. Although a great deal of effort has been made to adjust their behavior to conform to human values before the release of LLMs, these carefully adjusted LLMs are still vulnerable to malicious operations, such as jailbreak attacks, which can cause the models to exhibit unexpected behavior. The paper proposes a new black - box jailbreak framework - Distraction - based Adversarial Prompts (DAP) - for automating red - team testing of LLMs. DAP aims to interfere with and take advantage of the distractibility and overconfidence phenomena of LLMs by designing malicious content hiding and memory reconstruction and combining iterative optimization algorithms, thereby achieving jailbreak attacks on LLMs. The paper also evaluates the effectiveness of existing jailbreak defense methods against this attack and emphasizes the importance of developing more effective and practical defense strategies.