Defensive Prompt Patch: A Robust and Interpretable Defense of LLMs against Jailbreak Attacks
On the map: LLM safety and security → Jailbreaking
Abstract (arXiv)
Safety, security, and compliance are essential requirements when aligning large language models (LLMs). However, many seemingly aligned LLMs are soon shown to be susceptible to jailbreak attacks. These attacks aim to circumvent the models' safety guardrails and security mechanisms by introducing jailbreak prompts into malicious queries. In response to these challenges, this paper introduces Defensive Prompt Patch (DPP), a novel prompt-based defense mechanism specifically designed to protect LLMs against such sophisticated jailbreak strategies. Unlike previous approaches, which have often compromised the utility of the model for the sake of safety, DPP is designed to achieve a minimal Attack Success Rate (ASR) while preserving the high utility of LLMs. Our method uses strategically designed interpretable suffix prompts that effectively thwart a wide range of standard and adaptive jailbreak techniques. Empirical results conducted on LLAMA-2-7B-Chat and Mistral-7B-Instruct-v0.2 models demonstrate the robustness and adaptability of DPP, showing significant reductions in ASR with negligible impact on utility. Our approach not only outperforms existing defense strategies in balancing safety and functionality, but also provides a scalable and interpretable solution applicable to various LLM platforms.
Key facts. Cited by 35 papers in the map (data through 7 Oct 2026). Placed in Jailbreaking, one of 12 directions in LLM safety and security. First posted on arXiv 30 May 2024.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2024: 9; 2025: 19; 2026: 7.
35 papers.
Sort:
By area:
- 2024Safety Alignment Should Be Made More Than Just a Few Tokens Deepcited by 450
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deploymentcited by 110
- 2025Safety at Scale: A Comprehensive Survey of Large Model and Agent Safetycited by 63
- 2024SelfDefend: LLMs Can Defend Themselves against Jailbreaking in a Practical Mannercited by 57
- 2024Bag of Tricks: Benchmarking of Jailbreak Attacks on LLMscited by 47
- 2024Operationalizing a Threat Model for Red-Teaming Large Language Models (LLMs)cited by 44
- 2024Automatic Pseudo-Harmful Prompt Generation for Evaluating False Refusals in Large Language Modelscited by 35
- 2025EmoAgent: Assessing and Safeguarding Human-AI Interaction for Mental Health Safetycited by 21
- 2025T2VShield: Model-Agnostic Jailbreak Defense for Text-to-Video Modelscited by 17
- 2024A Study on Prompt Injection Attack Against LLM-Integrated Mobile Robotic Systemscited by 15
- 2025Dialogue Injection Attack: Jailbreaking LLMs through Context Manipulationcited by 13
- 2024SafeEmbodAI: a Safety Framework for Mobile Robots in Embodied AI Systemscited by 12
23 more
- 2025One Model Transfer to All: On Robust Jailbreak Prompts Generation against LLMscited by 12
- 2025Think Twice, Generate Once: Safeguarding by Progressive Self-Reflectioncited by 11
- 2025Interpretation Meets Safety: A Survey on Interpretation Methods and Tools for Improving LLM Safetycited by 10
- 2026Obscure but Effective: Classical Chinese Jailbreak Prompt Optimization via Bio-Inspired Searchcited by 10
- 2025PiCo: Jailbreaking Multimodal Large Language Models via Pictorial Code Contextualizationcited by 8
- 2026The Promptware Kill Chain: How Prompt Injections Gradually Evolved Into a Multistep Malware Delivery Mechanismcited by 7
- 2025Takedown: How It's Done in Modern Coding Agent Exploitscited by 6
- 2024Preventing Jailbreak Prompts as Malicious Tools for Cybercriminals: A Cyber Defense Perspectivecited by 3
- 2025STShield: Single-Token Sentinel for Real-Time Jailbreak Detection in Large Language Modelscited by 3
- 2025RADAR: A Risk-Aware Dynamic Multi-Agent Framework for LLM Safety Evaluation via Role-Specialized Collaborationcited by 3
- 2025Online Learning Defense against Iterative Jailbreak Attacks via Prompt Optimizationcited by 3
- 2026Jailbreaking Leaves a Trace: Understanding and Detecting Jailbreak Attacks from Internal Representations of Large Language Modelscited by 3
- 2025Beyond the Tip of Efficiency: Uncovering the Submerged Threats of Jailbreak Attacks in Small Language Modelscited by 2
- 2024Bridging Today and the Future of Humanity: AI Safety in 2024 and Beyondcited by 1
- 2025Enhancing Reliability in LLM-Integrated Robotic Systems: A Unified Approach to Security and Safetycited by 1
- 2025LLM in the Middle: A Systematic Review of Threats and Mitigations to Real-World LLM-based Systemscited by 1
- 2025VisualDAN: Exposing Vulnerabilities in VLMs with Visual-Driven DAN Commandscited by 1
- 2025MENTOR: A Metacognition-Driven Self-Evolution Framework for Uncovering and Mitigating Implicit Domain Risks in LLMscited by 1
- 2026Lingua-SafetyBench: A Benchmark for Safety Evaluation of Multilingual Vision-Language Modelscited by 1
- 2026Isolation as a First-Class Principle for LLM-Agent System Safety: Concepts, Taxonomy, Challenges and Future Directionscited by 1
- 2025Computational Safety for Generative AI: A Hypothesis Testing Perspectivecited by 0
- 2026Jailbreaking the Matrix: Nullspace Steering for Controlled Model Subversioncited by 0
- 2026AlcaTRAz - Anchored Tree-Rule Defense Against Jailbreakscited by 0
- 2026AlcaTRAz - Anchored Tree-Rule Defense Against Jailbreaks3 Sep 2026
- 2026Isolation as a First-Class Principle for LLM-Agent System Safety: Concepts, Taxonomy, Challenges and Future Directions14 Jul 2026
- 2026Jailbreaking the Matrix: Nullspace Steering for Controlled Model Subversion11 Apr 2026
- 2026Obscure but Effective: Classical Chinese Jailbreak Prompt Optimization via Bio-Inspired Search26 Feb 2026
- 2026Jailbreaking Leaves a Trace: Understanding and Detecting Jailbreak Attacks from Internal Representations of Large Language Models12 Feb 2026
- 2026Lingua-SafetyBench: A Benchmark for Safety Evaluation of Multilingual Vision-Language Models30 Jan 2026
- 2026The Promptware Kill Chain: How Prompt Injections Gradually Evolved Into a Multistep Malware Delivery Mechanism14 Jan 2026
- 2025MENTOR: A Metacognition-Driven Self-Evolution Framework for Uncovering and Mitigating Implicit Domain Risks in LLMs10 Nov 2025
- 2025Online Learning Defense against Iterative Jailbreak Attacks via Prompt Optimization19 Oct 2025
- 2025VisualDAN: Exposing Vulnerabilities in VLMs with Visual-Driven DAN Commands9 Oct 2025
- 2025Think Twice, Generate Once: Safeguarding by Progressive Self-Reflection29 Sep 2025
- 2025Takedown: How It's Done in Modern Coding Agent Exploits29 Sep 2025
23 more
- 2025RADAR: A Risk-Aware Dynamic Multi-Agent Framework for LLM Safety Evaluation via Role-Specialized Collaboration28 Sep 2025
- 2025LLM in the Middle: A Systematic Review of Threats and Mitigations to Real-World LLM-based Systems12 Sep 2025
- 2025Enhancing Reliability in LLM-Integrated Robotic Systems: A Unified Approach to Security and Safety2 Sep 2025
- 2025Interpretation Meets Safety: A Survey on Interpretation Methods and Tools for Improving LLM Safety5 Jun 2025
- 2025One Model Transfer to All: On Robust Jailbreak Prompts Generation against LLMs23 May 2025
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deployment22 Apr 2025
- 2025T2VShield: Model-Agnostic Jailbreak Defense for Text-to-Video Models22 Apr 2025
- 2025EmoAgent: Assessing and Safeguarding Human-AI Interaction for Mental Health Safety13 Apr 2025
- 2025PiCo: Jailbreaking Multimodal Large Language Models via Pictorial Code Contextualization2 Apr 2025
- 2025STShield: Single-Token Sentinel for Real-Time Jailbreak Detection in Large Language Models23 Mar 2025
- 2025Dialogue Injection Attack: Jailbreaking LLMs through Context Manipulation11 Mar 2025
- 2025Beyond the Tip of Efficiency: Uncovering the Submerged Threats of Jailbreak Attacks in Small Language Models27 Feb 2025
- 2025Computational Safety for Generative AI: A Hypothesis Testing Perspective18 Feb 2025
- 2025Safety at Scale: A Comprehensive Survey of Large Model and Agent Safety2 Feb 2025
- 2024Preventing Jailbreak Prompts as Malicious Tools for Cybercriminals: A Cyber Defense Perspective25 Nov 2024
- 2024Bridging Today and the Future of Humanity: AI Safety in 2024 and Beyond9 Oct 2024
- 2024SafeEmbodAI: a Safety Framework for Mobile Robots in Embodied AI Systems3 Sep 2024
- 2024Automatic Pseudo-Harmful Prompt Generation for Evaluating False Refusals in Large Language Models1 Sep 2024
- 2024A Study on Prompt Injection Attack Against LLM-Integrated Mobile Robotic Systems7 Aug 2024
- 2024Operationalizing a Threat Model for Red-Teaming Large Language Models (LLMs)20 Jul 2024
- 2024Bag of Tricks: Benchmarking of Jailbreak Attacks on LLMs13 Jun 2024
- 2024Safety Alignment Should Be Made More Than Just a Few Tokens Deep10 Jun 2024
- 2024SelfDefend: LLMs Can Defend Themselves against Jailbreaking in a Practical Manner8 Jun 2024
- 2024SelfDefend: LLMs Can Defend Themselves against Jailbreaking in a Practical Mannercited by 57
- 2024Bag of Tricks: Benchmarking of Jailbreak Attacks on LLMscited by 47
- 2024Operationalizing a Threat Model for Red-Teaming Large Language Models (LLMs)cited by 44
- 2025T2VShield: Model-Agnostic Jailbreak Defense for Text-to-Video Modelscited by 17
- 2024A Study on Prompt Injection Attack Against LLM-Integrated Mobile Robotic Systemscited by 15
- 2025Dialogue Injection Attack: Jailbreaking LLMs through Context Manipulationcited by 13
- 2025Interpretation Meets Safety: A Survey on Interpretation Methods and Tools for Improving LLM Safetycited by 10
- 2026Obscure but Effective: Classical Chinese Jailbreak Prompt Optimization via Bio-Inspired Searchcited by 10
- 2026The Promptware Kill Chain: How Prompt Injections Gradually Evolved Into a Multistep Malware Delivery Mechanismcited by 7
- 2024Preventing Jailbreak Prompts as Malicious Tools for Cybercriminals: A Cyber Defense Perspectivecited by 3
- 2025STShield: Single-Token Sentinel for Real-Time Jailbreak Detection in Large Language Modelscited by 3
- 2025Online Learning Defense against Iterative Jailbreak Attacks via Prompt Optimizationcited by 3
12 most cited of 17 All 17 (JSON)
- 2026Jailbreaking the Matrix: Nullspace Steering for Controlled Model Subversion11 Apr 2026
- 2026Obscure but Effective: Classical Chinese Jailbreak Prompt Optimization via Bio-Inspired Search26 Feb 2026
- 2026Jailbreaking Leaves a Trace: Understanding and Detecting Jailbreak Attacks from Internal Representations of Large Language Models12 Feb 2026
- 2026The Promptware Kill Chain: How Prompt Injections Gradually Evolved Into a Multistep Malware Delivery Mechanism14 Jan 2026
- 2025MENTOR: A Metacognition-Driven Self-Evolution Framework for Uncovering and Mitigating Implicit Domain Risks in LLMs10 Nov 2025
- 2025Online Learning Defense against Iterative Jailbreak Attacks via Prompt Optimization19 Oct 2025
- 2025Interpretation Meets Safety: A Survey on Interpretation Methods and Tools for Improving LLM Safety5 Jun 2025
- 2025T2VShield: Model-Agnostic Jailbreak Defense for Text-to-Video Models22 Apr 2025
- 2025STShield: Single-Token Sentinel for Real-Time Jailbreak Detection in Large Language Models23 Mar 2025
- 2025Dialogue Injection Attack: Jailbreaking LLMs through Context Manipulation11 Mar 2025
- 2025Beyond the Tip of Efficiency: Uncovering the Submerged Threats of Jailbreak Attacks in Small Language Models27 Feb 2025
- 2025Computational Safety for Generative AI: A Hypothesis Testing Perspective18 Feb 2025
12 newest of 17 All 17 (JSON)
- 2024Safety Alignment Should Be Made More Than Just a Few Tokens Deepcited by 450
- 2024Automatic Pseudo-Harmful Prompt Generation for Evaluating False Refusals in Large Language Modelscited by 35
- 2025One Model Transfer to All: On Robust Jailbreak Prompts Generation against LLMscited by 12
- 2026AlcaTRAz - Anchored Tree-Rule Defense Against Jailbreakscited by 0
- 2026AlcaTRAz - Anchored Tree-Rule Defense Against Jailbreaks3 Sep 2026
- 2025One Model Transfer to All: On Robust Jailbreak Prompts Generation against LLMs23 May 2025
- 2024Automatic Pseudo-Harmful Prompt Generation for Evaluating False Refusals in Large Language Models1 Sep 2024
- 2024Safety Alignment Should Be Made More Than Just a Few Tokens Deep10 Jun 2024
- 2025Safety at Scale: A Comprehensive Survey of Large Model and Agent Safetycited by 63
- 2025PiCo: Jailbreaking Multimodal Large Language Models via Pictorial Code Contextualizationcited by 8
- 2025VisualDAN: Exposing Vulnerabilities in VLMs with Visual-Driven DAN Commandscited by 1
- 2026Lingua-SafetyBench: A Benchmark for Safety Evaluation of Multilingual Vision-Language Modelscited by 1
- 2026Lingua-SafetyBench: A Benchmark for Safety Evaluation of Multilingual Vision-Language Models30 Jan 2026
- 2025VisualDAN: Exposing Vulnerabilities in VLMs with Visual-Driven DAN Commands9 Oct 2025
- 2025PiCo: Jailbreaking Multimodal Large Language Models via Pictorial Code Contextualization2 Apr 2025
- 2025Safety at Scale: A Comprehensive Survey of Large Model and Agent Safety2 Feb 2025
- 2025Takedown: How It's Done in Modern Coding Agent Exploitscited by 6
- 2025RADAR: A Risk-Aware Dynamic Multi-Agent Framework for LLM Safety Evaluation via Role-Specialized Collaborationcited by 3
- 2026Isolation as a First-Class Principle for LLM-Agent System Safety: Concepts, Taxonomy, Challenges and Future Directionscited by 1
- 2026Isolation as a First-Class Principle for LLM-Agent System Safety: Concepts, Taxonomy, Challenges and Future Directions14 Jul 2026
- 2025Takedown: How It's Done in Modern Coding Agent Exploits29 Sep 2025
- 2025RADAR: A Risk-Aware Dynamic Multi-Agent Framework for LLM Safety Evaluation via Role-Specialized Collaboration28 Sep 2025
- 2025EmoAgent: Assessing and Safeguarding Human-AI Interaction for Mental Health Safetycited by 21
- 2024SafeEmbodAI: a Safety Framework for Mobile Robots in Embodied AI Systemscited by 12
- 2024Bridging Today and the Future of Humanity: AI Safety in 2024 and Beyondcited by 1
- 2025Enhancing Reliability in LLM-Integrated Robotic Systems: A Unified Approach to Security and Safetycited by 1
- 2025LLM in the Middle: A Systematic Review of Threats and Mitigations to Real-World LLM-based Systemscited by 1
- 2025LLM in the Middle: A Systematic Review of Threats and Mitigations to Real-World LLM-based Systems12 Sep 2025
- 2025Enhancing Reliability in LLM-Integrated Robotic Systems: A Unified Approach to Security and Safety2 Sep 2025
- 2025EmoAgent: Assessing and Safeguarding Human-AI Interaction for Mental Health Safety13 Apr 2025
- 2024Bridging Today and the Future of Humanity: AI Safety in 2024 and Beyond9 Oct 2024
- 2024SafeEmbodAI: a Safety Framework for Mobile Robots in Embodied AI Systems3 Sep 2024
Similar, not cited
Close in wording, no citation either way
- 2025SecurityLingua: Efficient Defense of LLM Jailbreak Attacks via Security-Aware Prompt Compression
- 2026Analysis of LLMs Against Prompt Injection and Jailbreak Attacks
- 2024RobustKV: Defending Large Language Models against Jailbreak Attacks via KV Eviction
- 2025Scalable Defense against In-the-wild Jailbreaking Attacks with Safety Context Retrieval
- 2025Do Methods to Jailbreak and Defend LLMs Generalize Across Languages?
- 2024Jailbreak Attacks and Defenses Against Large Language Models: A Survey
- 2024JailPO: A Novel Black-box Jailbreak Framework via Preference Optimization against Aligned LLMs
- 2025PandaGuard: Systematic Evaluation of LLM Safety against Jailbreaking Attacks