Lune

ICLR2024Top-tier venue

AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Models

Xiaogeng Liu, Nan Xu, Muhao Chen, Chaowei Xiao

Abstract

Warning: This paper contains potentially offensive and harmful text. The aligned Large Language Models (LLMs) are powerful language understanding and decision-making tools that are created through extensive alignment with human feedback. However, these large models remain susceptible to jailbreak attacks, where adversaries manipulate prompts to elicit malicious outputs that should not be given by aligned LLMs. Investigating jailbreak prompts can lead us to delve into the limitations of LLMs and further guide us to secure them. Unfortunately, existing jailbreak techniques suffer from either (1) scalability issues, where attacks heavily rely on manual crafting of prompts, or (2) stealthiness problems, as attacks depend on token-based algorithms to generate prompts that are often semantically meaningless, making them susceptible to detection through basic perplexity testing. In light of these challenges, we intend to answer this question: Can we develop an approach that can automatically generate stealthy jailbreak prompts? In this paper, we introduce AutoDAN, a novel jailbreak attack against aligned LLMs. AutoDAN can automatically generate stealthy jailbreak prompts by the carefully designed hierarchical genetic algorithm. Extensive evaluations demonstrate that AutoDAN not only automates the process while preserving semantic meaningfulness, but also demonstrates superior attack strength in cross-model transferability, and cross-sample universality compared with the baseline. Moreover, we also compare AutoDAN with perplexity-based defense methods and show that AutoDAN can bypass them effectively. Code is available at https://github.com/SheltonLiu-N/AutoDAN .

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

350 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via Cipher cites Red Teaming Language Models with Language Models
  • GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via Cipher cites Training language models to follow instructions with human feedback
  • Improving Alignment and Robustness with Circuit Breakers cites Tree of Attacks: Jailbreaking Black-Box LLMs Automatically
  • Improving Alignment and Robustness with Circuit Breakers cites Red Teaming Language Models with Language Models
  • Improving Alignment and Robustness with Circuit Breakers cites HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusal
  • Improving Alignment and Robustness with Circuit Breakers cites Training language models to follow instructions with human feedback
  • Tree of Attacks: Jailbreaking Black-Box LLMs Automatically cites HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusal
  • FigStep: Jailbreaking Large Vision-Language Models via Typographic Visual Prompts cites GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via Cipher
  • FigStep: Jailbreaking Large Vision-Language Models via Typographic Visual Prompts cites Red Teaming Language Models with Language Models
  • FigStep: Jailbreaking Large Vision-Language Models via Typographic Visual Prompts cites Training language models to follow instructions with human feedback
  • Understanding Dataset Difficulty with V-Usable Information cites Training language models to follow instructions with human feedback
  • WildTeaming at Scale: From In-the-Wild Jailbreaks to (Adversarially) Safer Language Models cites GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via Cipher
  • WildTeaming at Scale: From In-the-Wild Jailbreaks to (Adversarially) Safer Language Models cites Improving Alignment and Robustness with Circuit Breakers
  • WildTeaming at Scale: From In-the-Wild Jailbreaks to (Adversarially) Safer Language Models cites Tree of Attacks: Jailbreaking Black-Box LLMs Automatically
  • WildTeaming at Scale: From In-the-Wild Jailbreaks to (Adversarially) Safer Language Models cites Red Teaming Language Models with Language Models
  • WildTeaming at Scale: From In-the-Wild Jailbreaks to (Adversarially) Safer Language Models cites HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusal
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers350

  1. Tree of Attacks: Jailbreaking Black-Box LLMs AutomaticallyAnay Mehrotra, Manolis Zampetakis, Paul Kassianik, Blaine Nelson et al.NeurIPS 2024 · 835 citations
  2. AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge BasesZhaorun Chen, Zhen Xiang, Chaowei Xiao, Dawn Song et al.NeurIPS 2024 · 539 citations
  3. Improving Alignment and Robustness with Circuit BreakersAndy Zou, Long Phan, Justin Wang, Derek Duenas et al.NeurIPS 2024 · 362 citations
  4. FigStep: Jailbreaking Large Vision-Language Models via Typographic Visual PromptsYichen Gong, Delong Ran, Jinyuan Liu, Conglei Wang et al.AAAI 2025 · 350 citations
  5. WildTeaming at Scale: From In-the-Wild Jailbreaks to (Adversarially) Safer Language ModelsLiwei Jiang, Kavel Rao, Seungju Han, Allyson Ettinger et al.NeurIPS 2024 · 247 citations

Builds on8

  1. Training language models to follow instructions with human feedbackLong Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida et al.NeurIPS 2022 · 24,707 citations
  2. HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust RefusalMantas Mazeika, Long Phan, Xuwang Yin, Andy Zou et al.ICML 2024 · 1,031 citations
  3. GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via CipherYouliang Yuan, Wenxiang Jiao, Wenxuan Wang, Jen-tse Huang et al.ICLR 2024 · 441 citations
  4. Understanding Dataset Difficulty with V-Usable InformationKawin Ethayarajh, Yejin Choi, Swabha SwayamdiptaICML 2022 · 337 citations
  5. Red Teaming Language Models with Language ModelsEthan Perez, Saffron Huang, H. Francis Song, Trevor Cai et al.EMNLP 2022 · 239 citations

Related papers

  1. Attention Eclipse: Manipulating Attention to Bypass LLM Safety-AlignmentPedram Zaree, Md Abdullah Al Mamun, Quazi Mishkatul Alam, Yue Dong et al.EMNLP 2025
  2. Defensive Prompt Patch: A Robust and Generalizable Defense of Large Language Models against Jailbreak AttacksChen Xiong, Xiangyu Qi, Pin-Yu Chen, Tsung-Yi HoACL Findings 2025 · 9 citations
  3. One Model Transfer to All: On Robust Jailbreak Prompts Generation against LLMsLinbao Li, Yannan Liu, Daojing He, Yu LiICLR 2025
  4. DrAttack: Prompt Decomposition and Reconstruction Makes Powerful LLMs JailbreakersXirui Li, Ruochen Wang, Minhao Cheng, Tianyi Zhou et al.EMNLP Findings 2024 · 27 citations
  5. Defending Against Alignment-Breaking Attacks via Robustly Aligned LLMBochuan Cao, Yuanpu Cao, Lu Lin, Jinghui ChenACL 2024 · 34 citations
Dusk over the sea between two cliffs drawn in fine vertical lines