paper-with-me

홈 › Papers

AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Models

2023-10-03 · Xiaogeng Liu, Nan Xu, Muhao Chen, Chaowei Xiao

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.

📄 PDF Abstract BibTeX arXiv:2310.04451

Code (2)

sheltonliu-n/autodan 공식 구현 pytorch
NJUNLP/ReNeLLM pytorch

Tasks

Decision Making

Similar Papers 제목 키워드 기반

LARGO: Latent Adversarial Reflection through Gradient Optimization for Jailbreaking LLMs

2025-05-16 · Ran Li, Hao Wang, Chengzhi Mao

Efficient red-teaming method to uncover vulnerabilities in Large Language Models (LLMs) is crucial. While recent attacks often use LLMs as optimizers, the discrete language space make gradient-based methods struggle. We …

Red Teaming

AutoDAN: Interpretable Gradient-Based Adversarial Attacks on Large Language Models

2023-10-23 · Sicheng Zhu, Ruiyi Zhang, Bang An, Gang Wu 외

Safety alignment of Large Language Models (LLMs) can be compromised with manual jailbreak attacks and (automatic) adversarial attacks. Recent studies suggest that defending against these attacks is possible: adversarial …

Adversarial AttackBlockingSafety Alignment

Semantic Mirror Jailbreak: Genetic Algorithm Based Jailbreak Prompts Against Open-source LLMs

2024-02-21 · Xiaoxia Li, Siyuan Liang, Jiyi Zhang, Han Fang 외

Large Language Models (LLMs), used in creative writing, code generation, and translation, generate text based on input sequences but are vulnerable to jailbreak attacks, where crafted prompts induce harmful outputs. Most…

Code GenerationSemantic SimilaritySemantic Textual Similarity

ForgeDAN: An Evolutionary Framework for Jailbreaking Aligned Large Language Models

2025-11-17 · Siyang Cheng, Gaotian Liu, Rui Mei, Yilin Wang 외 arxiv

The rapid adoption of large language models (LLMs) has brought both transformative applications and new security risks, including jailbreak attacks that bypass alignment safeguards to elicit harmful outputs. Existing aut…

HAMSA: Hijacking Aligned Compact Models via Stealthy Automation

2025-08-22 · Alexey Krylov, Iskander Vagizov, Dmitrii Korzh, Maryam Douiba 외 arxiv

Large Language Models (LLMs), especially their compact efficiency-oriented variants, remain susceptible to jailbreak attacks that can elicit harmful outputs despite extensive alignment efforts. Existing adversarial promp…