Dialogue Injection Attack: Jailbreaking LLMs through Context Manipulation
On the map: LLM safety and security → Jailbreaking
Abstract (arXiv)
Large language models (LLMs) have demonstrated significant utility in a wide range of applications; however, their deployment is plagued by security vulnerabilities, notably jailbreak attacks. These attacks manipulate LLMs to generate harmful or unethical content by crafting adversarial prompts. While much of the current research on jailbreak attacks has focused on single-turn interactions, it has largely overlooked the impact of historical dialogues on model behavior. In this paper, we introduce a novel jailbreak paradigm, Dialogue Injection Attack (DIA), which leverages the dialogue history to enhance the success rates of such attacks. DIA operates in a black-box setting, requiring only access to the chat API or knowledge of the LLM's chat template. We propose two methods for constructing adversarial historical dialogues: one adapts gray-box prefilling attacks, and the other exploits deferred responses. Our experiments show that DIA achieves state-of-the-art attack success rates on recent LLMs, including Llama-3.1 and GPT-4o. Additionally, we demonstrate that DIA can bypass 5 different defense mechanisms, highlighting its robustness and effectiveness.
Key facts. Cited by 14 papers in the map (data through 14 Oct 2026). Placed in Jailbreaking, one of 12 directions in LLM safety and security. Builds on 62 of its 93 references that are in the map. First posted on arXiv 11 Mar 2025.
Builds on
62 of 93 references.
Closest ancestors · 22
Same direction, newest first
- 2024AdaPPA: Adaptive Position Pre-Fill Jailbreak Attack Approach Targeting LLMs11 Sep
- 2024ChatBug: A Common Vulnerability of Aligned LLMs Induced by Chat Templates17 Jun
- 2024Defensive Prompt Patch: A Robust and Interpretable Defense of LLMs against Jailbreak Attacks30 May
- 2024Jailbreaking Leading Safety-Aligned LLMs with Simple Adaptive Attacks2 Apr
- 2024Great, Now Write an Article About That: The Crescendo Multi-Turn LLM Jailbreak Attack2 Apr
- 2024JailbreakBench: An Open Robustness Benchmark for Jailbreaking Large Language Models28 Mar
- 2024Don't Listen To Me: Understanding and Exploring Jailbreak Prompts of Large Language Models26 Mar
- 2024AutoDefense: Multi-Agent LLM Defense against Jailbreak Attacks2 Mar
- 2024Making Them Ask and Answer: Jailbreaking Large Language Models in Few Queries via Disguise and Reconstruction28 Feb
- 2024A Comprehensive Study of Jailbreak Attack versus Defense for Large Language Models21 Feb
- 2024Play Guessing Game with LLM: Indirect Jailbreak Attack with Implicit Clues14 Feb
- 2024Intention Analysis Makes LLMs A Good Jailbreak Defender12 Jan
10 more
- 2023A Wolf in Sheep's Clothing: Generalized Nested Jailbreak Prompts can Fool Large Language Models Easily14 Nov
- 2023DeepInception: Hypnotize Large Language Model to Be Jailbreaker6 Nov
- 2023AutoDAN: Interpretable Gradient-Based Adversarial Attacks on Large Language Models23 Oct
- 2023Jailbreaking Black Box Large Language Models in Twenty Queries12 Oct
- 2023Catastrophic Jailbreak of Open-source LLMs via Exploiting Generation10 Oct
- 2023Jailbreak and Guard Aligned Language Models with Only Few In-Context Demonstrations10 Oct
- 2023Defending Against Alignment-Breaking Attacks via Robustly Aligned LLM18 Sep
- 2023"Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Models7 Aug
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Models27 Jul
- 2023MasterKey: Automated Jailbreak Across Multiple Large Language Model Chatbots16 Jul
Other references · 40
- 2023GPT-4 Technical Reportcited by 18,396
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,720
- 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,998
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
- 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!cited by 1,154
28 more
- 2024Length-Controlled AlpacaEval: A Simple Way to Debias Automatic Evaluatorscited by 897
- 2023BeaverTails: Towards Improved Safety Alignment of LLM via a Human-Preference Datasetcited by 860
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 832
- 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 651
- 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 601
- 2024ORPO: Monolithic Preference Optimization without Reference Modelcited by 562
- 2024Safety Alignment Should Be Made More Than Just a Few Tokens Deepcited by 472
- 2023Ring Attention with Blockwise Transformers for Near-Infinite Contextcited by 457
- 2023Multi-step Jailbreaking Privacy Attacks on ChatGPTcited by 333
- 2023Effective Long-Context Scaling of Foundation Modelscited by 303
- 2024InfiniGen: Efficient Generative Inference of Large Language Models with Dynamic KV Cache Managementcited by 245
- 2023LLM Self Defense: By Self Examination, LLMs Know They Are Being Trickedcited by 244
- 2024ShieldGemma: Generative AI Content Moderation Based on Gemmacited by 243
- 2024Mooncake: A KVCache-centric Disaggregated Architecture for LLM Servingcited by 196
- 2023MART: Improving LLM Safety with Multi-round Automatic Red-Teamingcited by 163
- 2024On Prompt-Driven Safeguarding for Large Language Modelscited by 116
- 2024Pride and Prejudice: LLM Amplifies Self-Bias in Self-Refinementcited by 114
- 2024Data-efficient Fine-tuning for LLM-based Recommendationcited by 104
- 2024RazorAttention: Efficient KV Cache Compression Through Retrieval Headscited by 100
- 2024Bias and Unfairness in Information Retrieval Systems: New Challenges in the LLM Eracited by 98
- 2023Identifying and Mitigating the Security Risks of Generative AIcited by 91
- 2024Long Is More for Alignment: A Simple but Tough-to-Beat Baseline for Instruction Fine-Tuningcited by 85
- 2024Does Refusal Training in LLMs Generalize to the Past Tense?cited by 79
- 2024Learning or Self-aligning? Rethinking Instruction Fine-tuningcited by 43
- 2024TransLLaMa: LLM-based Simultaneous Translation Systemcited by 34
- 2024Malla: Demystifying Real-world Large Language Model Integrated Malicious Servicescited by 33
- 2023Bergeron: Combating Adversarial Attacks through a Conscience-Based Alignment Frameworkcited by 30
- 2023Safety Alignment in NLP Tasks: Weakly Aligned Summarization as an In-Context Attackcited by 11
Built on by
Citing papers per year: 2025: 6; 2026: 8.
14 papers.
Sort:
By area:
- 2025Multilingual and Multi-Accent Jailbreaking of Audio LLMscited by 31
- 2025Visual Contextual Attack: Jailbreaking MLLMs with Image-Driven Context Injectioncited by 25
- 2026Prompt Injection as Role Confusioncited by 17
- 2025Where to Start Alignment? Diffusion Large Language Model May Demand a Distinct Positioncited by 11
- 2025Web Intellectual Property at Risk: Preventing Unauthorized Real-Time Retrieval by Large Language Modelscited by 3
- 2026JailMeter: An Evidence-Based Evaluation Framework for Jailbreak Attacks on Large Language Modelscited by 2
- 2025PD3F: A Pluggable and Dynamic DoS-Defense Framework Against Resource Consumption Attacks Targeting Large Language Modelscited by 1
- 2026SaFeR-Steer: Evolving Multi-Turn MLLMs via Synthetic Bootstrapping and Feedback Dynamicscited by 1
- 2026Benign Fine-Tuning Breaks Safety Alignment in Audio LLMscited by 1
- 2026DataShield: Safety-degrading Data Filtering for LLM Benign Instruction Fine-Tuningcited by 1
- 2025The Emotional Baby Is Truly Deadly: Does your Multimodal Large Reasoning Model Have Emotional Flattery towards Humans?cited by 0
- 2026Persona Attack: Incremental Memory Injection Jailbreak Attack against Large Language Modelscited by 0
2 more
- 2026DuplexJail: Safety Alignment Breaks Under Spoken Interruption in Full-Duplex Models8 Sep 2026
- 2026Stress Testing Unlearning Algorithms23 Aug 2026
- 2026JailMeter: An Evidence-Based Evaluation Framework for Jailbreak Attacks on Large Language Models20 Jul 2026
- 2026DataShield: Safety-degrading Data Filtering for LLM Benign Instruction Fine-Tuning29 May 2026
- 2026Persona Attack: Incremental Memory Injection Jailbreak Attack against Large Language Models29 May 2026
- 2026Benign Fine-Tuning Breaks Safety Alignment in Audio LLMs17 Apr 2026
- 2026SaFeR-Steer: Evolving Multi-Turn MLLMs via Synthetic Bootstrapping and Feedback Dynamics18 Mar 2026
- 2026Prompt Injection as Role Confusion22 Feb 2026
- 2025Where to Start Alignment? Diffusion Large Language Model May Demand a Distinct Position17 Aug 2025
- 2025The Emotional Baby Is Truly Deadly: Does your Multimodal Large Reasoning Model Have Emotional Flattery towards Humans?6 Aug 2025
- 2025Visual Contextual Attack: Jailbreaking MLLMs with Image-Driven Context Injection3 Jul 2025
- 2025PD3F: A Pluggable and Dynamic DoS-Defense Framework Against Resource Consumption Attacks Targeting Large Language Models24 May 2025
- 2025Multilingual and Multi-Accent Jailbreaking of Audio LLMscited by 31
- 2026Prompt Injection as Role Confusioncited by 17
- 2025Where to Start Alignment? Diffusion Large Language Model May Demand a Distinct Positioncited by 11
- 2026JailMeter: An Evidence-Based Evaluation Framework for Jailbreak Attacks on Large Language Modelscited by 2
- 2026Persona Attack: Incremental Memory Injection Jailbreak Attack against Large Language Modelscited by 0
- 2026Stress Testing Unlearning Algorithmscited by 0
- 2026Stress Testing Unlearning Algorithms23 Aug 2026
- 2026JailMeter: An Evidence-Based Evaluation Framework for Jailbreak Attacks on Large Language Models20 Jul 2026
- 2026Persona Attack: Incremental Memory Injection Jailbreak Attack against Large Language Models29 May 2026
- 2026Prompt Injection as Role Confusion22 Feb 2026
- 2025Where to Start Alignment? Diffusion Large Language Model May Demand a Distinct Position17 Aug 2025
- 2025Multilingual and Multi-Accent Jailbreaking of Audio LLMs1 Apr 2025
- 2025Web Intellectual Property at Risk: Preventing Unauthorized Real-Time Retrieval by Large Language Modelscited by 3
- 2025PD3F: A Pluggable and Dynamic DoS-Defense Framework Against Resource Consumption Attacks Targeting Large Language Modelscited by 1
- 2026DataShield: Safety-degrading Data Filtering for LLM Benign Instruction Fine-Tuningcited by 1
- 2026DataShield: Safety-degrading Data Filtering for LLM Benign Instruction Fine-Tuning29 May 2026
- 2025PD3F: A Pluggable and Dynamic DoS-Defense Framework Against Resource Consumption Attacks Targeting Large Language Models24 May 2025
- 2025Web Intellectual Property at Risk: Preventing Unauthorized Real-Time Retrieval by Large Language Models19 May 2025
Similar, not cited
Close in wording, no citation either way
- 2024Jailbreaking and Mitigation of Vulnerabilities in Large Language Models
- 2024Jailbreak Attacks and Defenses Against Large Language Models: A Survey
- 2025AutoAdv: Automated Adversarial Prompting for Multi-Turn Jailbreaking of Large Language Models
- 2024Defending Large Language Models Against Jailbreak Attacks via Layer-specific Editing
- 2025AutoAdv: Automated Adversarial Prompting for Multi-Turn Jailbreaking of Large Language Models
- 2025ChatInject: Abusing Chat Templates for Prompt Injection in LLM Agents
- 2025Automating Deception: Scalable Multi-Turn LLM Jailbreaks
- 2024JailbreakHunter: A Visual Analytics Approach for Jailbreak Prompts Discovery from Large-Scale Human-LLM Conversational Datasets