AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Models
The DOI matches its DataCite record; 10 of the 10 references it cites were found in a registry or an index.
Abstract
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.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
In the citing paper
“Existing jailbreaking methods typically aim to elicit any harmful output, e.g., via adversarial suffix optimization [20] or template manipulation [21], [22].”
From External Data Extraction Attacks Against Retrieval-Augmented Large Language Models (2026) · cites this paper as [21]
In the citing paper
“Existing jailbreaking techniques can be broadly categorized into token-level [20], [54] and prompt-level [21], [22], [55] approaches, but both face significant limitations when directly applied to EDEAs:”
From External Data Extraction Attacks Against Retrieval-Augmented Large Language Models (2026) · cites this paper as [21]
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Llama 2: Open Foundation and Fine-Tuned Chat Models
Touvron, H., Martin, L., Stone, K., Albert, P., Almahairi, A., Babaei, Y., Bashlykov, N., Batra, S., Bhargava, P., Bhosale, S., et al. (2023) · arXiv · doi:10.48550/arxiv.2307.09288 · Cited by 2,604
Self-citationTransferability in Machine Learning: from Phenomena to Black-Box Attacks using Adversarial Samples
Papernot, N., McDaniel, P., & Goodfellow, I. (2016) · arXiv · doi:10.48550/arxiv.1605.07277 · Cited by 1,326 · cited 1×
“Following the definitions in adversarial attacks, transferability refers to in what level the prompts produced to jailbreak one LLM can successfully jailbreak another model (Papernot et al., 2016).”
BackgroundGoldstein, J. A., Sastry, G., Musser, M., DiResta, R., Gentzel, M., & Sedova, K. (2023) · arXiv · doi:10.48550/arxiv.2301.04246 · Cited by 152
Red Teaming Language Models to Reduce Harms: Methods, Scaling Behaviors, and Lessons Learned
Ganguli, D., Lovitt, L., Kernion, J., Askell, A., Bai, Y., Kadavath, S., Mann, B., Perez, E., Schiefer, N., Ndousse, K., et al. (2022) · arXiv · doi:10.48550/arxiv.2209.07858 · Cited by 130 · cited 2×
“…the impressive capabilities of LLMs on a wide range of tasks (OpenAI, 2023b), these models sometimes produce outputs that deviate from human expectations, leading to research efforts for aligning LLMs more closely with human values and expectations (Ganguli et al., 2022; Touvron et al., 2023).”
BackgroundSelf-Instruct: Aligning Language Models with Self-Generated Instructions
Wang, Y., Kordi, Y., Mishra, S., Liu, A., Smith, N. A., Khashabi, D., & Hajishirzi, H. (2022) · arXiv · doi:10.48550/arxiv.2212.10560 · Cited by 118
Exploiting Programmatic Behavior of LLMs: Dual-Use Through Standard Security Attacks
Kang, D., Li, X., Stoica, I., Guestrin, C., Zaharia, M., & Hashimoto, T. (2023) · arXiv · doi:10.48550/arxiv.2302.05733 · Cited by 114 · cited 3×
“While the human alignment methods demonstrate promising effectiveness and pave the way to the practical deployment of LLMs, recent findings of jailbreaks show that the aligned LLMs can still provide undesirable responses in some situations (Kang et al., 2023; Hazell, 2023).”
BackgroundRecursively Summarizing Books with Human Feedback
Wu, J., Ouyang, L., Ziegler, D. M., Stiennon, N., Lowe, R., Leike, J., & Christiano, P. (2021) · arXiv · doi:10.48550/arxiv.2109.10862 · Cited by 76
Spear Phishing With Large Language Models
Hazell, J. (2023) · arXiv · doi:10.48550/arxiv.2305.06972 · Cited by 28 · cited 2×
“While the human alignment methods demonstrate promising effectiveness and pave the way to the practical deployment of LLMs, recent findings of jailbreaks show that the aligned LLMs can still provide undesirable responses in some situations (Kang et al., 2023; Hazell, 2023).”
Detecting Language Model Attacks with Perplexity
Alon, G., & Kamfonas, M. (2023) · arXiv · doi:10.48550/arxiv.2308.14132 · Cited by 27
GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via Cipher
Yuan, Y., Jiao, W., Wang, W., Huang, J.-T., He, P., Shi, S., & Tu, Z. (2023) · arXiv · doi:10.48550/arxiv.2308.06463 · Cited by 14 · cited 1×
“We can conclude them into two categories: 1) manually written jailbreak attacks (walkerspider, 2022; Wei et al., 2023; Kang et al., 2023; Yuan et al., 2023) and 2) learning-based jailbreak attacks (Zou et al., 2023; Lapid et al., 2023).”
Background
Cited by
A survey on large language model (LLM) security and privacy: The Good, The Bad, and The Ugly
Yao, Y., Duan, J., Xu, K., Cai, Y., Sun, Z., & Zhang, Y. (2024) · High-Confidence Computing · doi:10.1016/j.hcc.2024.100211 · Cited by 1,083
“In this section, we examine the range of existing defense methods against various attacks and vulnerabilities associated with LLMs 1 .”
BackgroundSecurity and Privacy Challenges of Large Language Models: A Survey
Das, B. C., Amini, M. H., & Wu, Y. (2025) · ACM Computing Surveys · doi:10.1145/3712001 · Cited by 445
Jailbreaking Leading Safety-Aligned LLMs with Simple Adaptive Attacks
Andriushchenko, M., Croce, F., & Flammarion, N. (2024) · arXiv · doi:10.48550/arxiv.2404.02151 · Cited by 396
“We follow this definition—which is discussed in more detail in Appendix A.2 —and describe the building blocks of our adaptive attacks, which we combine and adapt depending on the target LLMs. Impor-tantly, we customize our adaptive attacks for each model but not for each request.”
Zeng, Y., Lin, H., Zhang, J., Yang, D., Jia, R., & Shi, W. (2024) · arXiv · doi:10.48550/arxiv.2401.06373 · Cited by 174
Hughes, J., Price, S., Lynch, A., Schaeffer, R., Barez, F., Koyejo, S., Sleight, H., Jones, E., Perez, E., & Sharma, M. (2024) · arXiv · doi:10.48550/arxiv.2412.03556 · Cited by 129
Adaptive Attacks Break Defenses Against Indirect Prompt Injection Attacks on LLM Agents
Zhan, Q., Fang, R., Panchal, H. S., & Kang, D. (2025) · Findings of the Association for Computational Linguistics: NAACL 2025 · doi:10.18653/v1/2025.findings-naacl.395 · Cited by 124
JailbreakBench: An Open Robustness Benchmark for Jailbreaking Large Language Models
Chao, P., Debenedetti, E., Robey, A., Andriushchenko, M., Croce, F., Sehwag, V., Dobriban, E., Flammarion, N., Pappas, G. J., Tramer, F., et al. (2024) · arXiv · doi:10.48550/arxiv.2404.01318 · Cited by 116
“(1), either via first-order discrete optimization techniques (Zou et al., 2023; Geisler et al., 2024) or zero-th order methods, e.g. genetic algorithms (Lapid et al., 2023; Liu et al., 2023) or random search (Andriushchenko et al., 2024; Sitawarin et al., 2024; Hayase et al., 2024).”
MethodJailbreakBench: An Open Robustness Benchmark for Jailbreaking Large Language Models
Chao, P., Debenedetti, E., Robey, A., Andriushchenko, M., Croce, F., Sehwag, V., Dobriban, E., Flammarion, N., Pappas, G., Tramèr, F., et al. (2024) · Advances in Neural Information Processing Systems 37 · doi:10.52202/079017-1745 · Cited by 116
Zeng, Y., Lin, H., Zhang, J., Yang, D., Jia, R., & Shi, W. (2024) · Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/2024.acl-long.773 · Cited by 107
Optimization-based Prompt Injection Attack to LLM-as-a-Judge
Shi, J., Yuan, Z., Liu, Y., Huang, Y., Zhou, P., Sun, L., & Gong, N. Z. (2024) · Proceedings of the 2024 on ACM SIGSAC Conference on Computer and Communications Security · doi:10.1145/3658644.3690291 · Cited by 70
Ding, P., Kuang, J., Ma, D., Cao, X., Xian, Y., Chen, J., & Huang, S. (2024) · Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers) · doi:10.18653/v1/2024.naacl-long.118 · Cited by 58
PLeak: Prompt Leaking Attacks against Large Language Model Applications
Hui, B., Yuan, H., Gong, N., Burlina, P., & Cao, Y. (2024) · Proceedings of the 2024 on ACM SIGSAC Conference on Computer and Communications Security · doi:10.1145/3658644.3670370 · Cited by 55
“Zou et al. [10], He et al. [51], Coda-Forno et al. [54], and AutoDAN from Liu et al. [12] utilize crafted prompts to mislead the original goal of LLMs.”
InfluentialJatmo: Prompt Injection Defense by Task-Specific Finetuning
Piet, J., Alrashed, M., Sitawarin, C., Chen, S., Wei, Z., Sun, E., Alomair, B., & Wagner, D. (2023) · arXiv · doi:10.48550/arxiv.2312.17673 · Cited by 54
Jailbreak and Guard Aligned Language Models With Only Few In-Context Demonstrations
Wei, Z., Wang, Y., Li, A., Mo, Y., & Wang, Y. (2026) · IEEE Transactions on Pattern Analysis and Machine Intelligence · doi:10.1109/tpami.2026.3660147 · Cited by 545
Towards Understanding Jailbreak Attacks in LLMs: A Representation Space Analysis
Lin, Y., He, P., Xu, H., Xing, Y., Yamada, M., Liu, H., & Tang, J. (2024) · Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing · doi:10.18653/v1/2024.emnlp-main.401 · Cited by 46
From Prompt Injections to Protocol Exploits: Threats in LLM-Powered AI Agents Workflows
Ferrag, M. A., Tihanyi, N., Hamouda, D., Maglaras, L., Lakas, A., & Debbah, M. (2026) · ICT Express · doi:10.1016/j.icte.2025.12.001 · Cited by 46
“…of knowledge focused on four key objectives: defining a suitable CUA framework for safety analysis, categorizing known safety threats, organizing existing defense mechanisms into a comprehensive taxonomy, and reviewing benchmarks and datasets to evaluate CUA safety and effectiveness.”
SafeDecoding: Defending against Jailbreak Attacks via Safety-Aware Decoding
Xu, Z., Jiang, F., Niu, L., Jia, J., Lin, B. Y., & Poovendran, R. (2024) · Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/2024.acl-long.303 · Cited by 40
SmoothLLM: Defending Large Language Models Against Jailbreaking Attacks
Robey, A., Wong, E., Hassani, H., & Pappas, G. J. (2023) · arXiv · doi:10.48550/arxiv.2310.03684 · Cited by 37
Improved Few-Shot Jailbreaking Can Circumvent Aligned Language Models and Their Defenses
Zheng, X., Pang, T., Du, C., Liu, Q., Jiang, J., & Lin, M. (2024) · Advances in Neural Information Processing Systems 37 · doi:10.52202/079017-1034 · Cited by 24
Kong, D., Lin, S., Xu, Z., Wang, Z., Li, M., Li, Y., Zhang, Y., Peng, H., Chen, X., Sha, Z., et al. (2025) · arXiv · doi:10.48550/arxiv.2506.19676 · Cited by 23
Self-citationEfficient Adversarial Training in LLMs with Continuous Attacks
Xhonneux, S., Sordoni, A., Günnemann, S., Gidel, G., & Schwinn, L. (2024) · arXiv · doi:10.48550/arxiv.2405.15589 · Cited by 16
“Liu et al. [15] developed a hierarchical genetic algorithm to generate high-perplexity jailbreaks that can bypass the safety alignments of LLMs. Adversarial Training Previous work on continuous adversarial training (AT) on token embeddings has mostly focused on encoder-decoder models, such as BERT…”
BackgroundA Theoretical Understanding of Self-Correction through In-context Alignment
Wang, Y., Wu, Y., Wei, Z., Jegelka, S., & Wang, Y. (2024) · Advances in Neural Information Processing Systems 37 · doi:10.52202/079017-2854 · Cited by 11
AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge Bases
Chen, Z., Xiang, Z., Xiao, C., Song, D., & Li, B. (2024) · arXiv · doi:10.48550/arxiv.2407.12784 · Cited by 246
“Red-teaming LLM Agents Extensive works have assessed the safety and trustworthiness of LLMs and RAG by red-teaming them with a variety of attacks such as jailbreaks [42, 21, 5], backdoor [31, 13, 35], and poisoning [41, 43, 41].”
Self-citationStruQ: defending against prompt injection with structured queries
Chen, S., Piet, J., Sitawarin, C., & Wagner, D. (2024) · arXiv · doi:10.48550/arxiv.2402.06363 · Cited by 10
Refusal in Language Models Is Mediated by a Single Direction
Arditi, A., Obeso, O., Syed, A., Paleka, D., Panickssery, N., Gurnee, W., & Nanda, N. (2024) · arXiv · doi:10.48550/arxiv.2406.11717 · Cited by 9
Navigating the Risks: A Survey of Security, Privacy, and Ethics Threats in LLM-Based Agents
Gan, Y., Yang, Y., Ma, Z., He, P., Zeng, R., Wang, Y., Li, Q., Zhou, C., Li, S., Wang, T., et al. (2024) · arXiv · doi:10.48550/arxiv.2411.09523 · Cited by 8
Sharma, M., Tong, M., Mu, J., Wei, J., Kruthoff, J., Goodfriend, S., Ong, E., Peng, A., Agarwal, R., Anil, C., et al. (2025) · arXiv · doi:10.48550/arxiv.2501.18837 · Cited by 7
Liao, Z., & Sun, H. (2024) · arXiv · doi:10.48550/arxiv.2404.07921 · Cited by 7
Breaking Agents: Compromising Autonomous LLM Agents Through Malfunction Amplification
Zhang, B., Tan, Y., Shen, Y., Salem, A., Backes, M., Zannettou, S., & Zhang, Y. (2024) · arXiv · doi:10.48550/arxiv.2407.20859 · Cited by 5
Attacking Vision-Language Computer Agents via Pop-ups
Zhang, Y., Yu, T., & Yang, D. (2025) · Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/2025.acl-long.411 · Cited by 4
Uncovering Safety Risks of Large Language Models through Concept Activation Vector
Xu, Z., Huang, R., Chen, C., & Wang, X. (2024) · arXiv · doi:10.48550/arxiv.2404.12038 · Cited by 4
External Data Extraction Attacks Against Retrieval-Augmented Large Language Models
He, Y., Chen, Y., Li, Y., Shao, S., Qi, L., Li, B., Tao, D., & Qin, Z. (2026) · IEEE Transactions on Information Forensics and Security · doi:10.1109/tifs.2026.3705326 · Cited by 4
R2D2: Remembering, Replaying and Dynamic Decision Making with a Reflective Agentic Memory
Huang, T., Basu, K., Abdelaziz, I., Kapanipathi, P., May, J., & Chen, M. (2025) · Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/2025.acl-long.1464 · Cited by 4
Self-citationAre LLMs Reliable Rankers? Rank Manipulation via Two-Stage Token Optimization
Xing, T., Li, J., Du, Y., & Hu, X. (2026) · Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/2026.acl-long.413 · Cited by 3
Latent Adversarial Training Improves Robustness to Persistent Harmful Behaviors in LLMs
Sheshadri, A., Ewart, A., Guo, P., Lynch, A., Wu, C., Hebbar, V., Sleight, H., Stickland, A. C., Perez, E., Hadfield-Menell, D., et al. (2024) · arXiv · doi:10.48550/arxiv.2407.15549 · Cited by 3
Commercial LLM Agents Are Already Vulnerable to Simple Yet Dangerous Attacks
Li, A., Zhou, Y., Raghuram, V. C., Goldstein, T., & Goldblum, M. (2025) · arXiv · doi:10.48550/arxiv.2502.08586 · Cited by 2
“Current research in LLM security predominantly focuses on addressing vulnerabilities in isolated models, often concentrating on jailbreak attacks (Zou et al., 2023; Liu et al., 2024) or on extracting memorized training data from a trained model (Nasr et al., 2023).”
Manipulating Large Language Models to Increase Product Visibility
Kumar, A., & Lakkaraju, H. (2024) · arXiv · doi:10.48550/arxiv.2404.07981 · Cited by 2
“Furthermore, adversarial attacks can be designed to resemble natural text and bypass defense mechanisms based on perplexity filtering [16, 17].”
BackgroundAdvAgent: Controllable Blackbox Red-teaming on Web Agents
Xu, C., Kang, M., Zhang, J., Liao, Z., Mo, L., Yuan, M., Sun, H., & Li, B. (2024) · arXiv · doi:10.48550/arxiv.2410.17401 · Cited by 1
Dissecting Adversarial Robustness of Multimodal LM Agents
Wu, C. H., Shah, R., Koh, J. Y., Salakhutdinov, R., Fried, D., & Raghunathan, A. (2024) · arXiv · doi:10.48550/arxiv.2406.12814 · Cited by 1
“More recent works focus on “jailbreaking” LMs where certain prompts (Zou et al., 2023; Chao et al., 2023; Jones et al., 2023; Liu et al., 2023b; Wei et al., 2024) or query images (Carlini et al., 2023; Schlarmann & Hein, 2023; Zhao et al., 2023; Bailey et al., 2023; Shayegani et al., 2023; Li et…”
Chu, K. (2026) · arXiv · doi:10.48550/arxiv.2604.23338 · Cited by 1
Kuo, M., Zhang, J., Ding, A., Wang, Q., DiValentin, L., Bao, Y., Wei, W., Li, H., & Chen, Y. (2025) · arXiv · doi:10.48550/arxiv.2502.12893 · Cited by 1
$R^2$-Guard: Robust Reasoning Enabled LLM Guardrail via Knowledge-Enhanced Logical Reasoning
Kang, M., & Li, B. (2024) · arXiv · doi:10.48550/arxiv.2407.05557 · Cited by 1
Accumulating Context Changes the Beliefs of Language Models
Geng, J., Chen, H., Liu, R., Ribeiro, M. H., Willer, R., Neubig, G., & Griffiths, T. L. (2025) · arXiv · doi:10.48550/arxiv.2511.01805 · Cited by 1
Efficient LLM Safety Evaluation through Multi-Agent Debate
Lin, D., Shen, G., Yang, Z., Liu, T., Zhao, D., & Zeng, Y. (2025) · arXiv · doi:10.48550/arxiv.2511.06396 · Cited by 8
“…such as Random-Search [1] that employ iterative modification strategies with partial model information; Query-heuristic Attacks including AutoDAN [17], PAIR [5], and TAP [18] using pre-defined strategies and extensive querying; Rewrite Attacks that encompass template-based and LLM-based…”
InfluentialMei, L., Liu, S., Wang, Y., Bi, B., Mao, J., & Cheng, X. (2024) · arXiv · doi:10.48550/arxiv.2406.11668
Eraser: Jailbreaking Defense in Large Language Models via Unlearning Harmful Knowledge
Lu, W., Zeng, Z., Wang, J., Lu, Z., Chen, Z., Zhuang, H., Chen, C., & Peng, H. (2024) · arXiv · doi:10.48550/arxiv.2404.05880
STAR-1: Safer Alignment of Reasoning LLMs with 1K Data
Wang, Z., Tu, H., Wang, Y., Wu, J., Liu, Y., Mei, J., Bartoldson, B. R., Kailkhura, B., & Xie, C. (2025) · arXiv · doi:10.48550/arxiv.2504.01903
Yan, Y., Sun, S., Wang, Z., Lin, Y., Duan, Z., zheng, Z., Liu, M., yin, Z., & Zhang, J. (2025) · arXiv · doi:10.48550/arxiv.2508.16347
LLMs Cannot Reliably Judge (Yet?): A Comprehensive Assessment on the Robustness of LLM-as-a-Judge
Li, S., Xu, C., Wang, J., Gong, X., Chen, C., Zhang, J., Wang, J., Lam, K.-Y., & Ji, S. (2025) · arXiv · doi:10.48550/arxiv.2506.09443 · Cited by 40
“Jailbreaking involves designing inputs that circumvent an LLM’s built-in safeguards, coercing it into producing content that violates its usual policy constraints, such as harmful or unethical outputs [15], [16], [33], [34].”
Cohen, S., Bitton, R., & Nassi, B. (2024) · arXiv · doi:10.48550/arxiv.2409.08045
Metadata
- Authors
- Liu, X., Xu, N., Chen, M., & Xiao, C.
- Venue
- arXiv
- Publisher
- arXiv
- Published
- 2023
- arXiv
- 2310.04451
- References
- 10
- Type
- Preprint
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.