mlsanityData to 7 Oct 2026

Defensive Prompt Patch: A Robust and Interpretable Defense of LLMs against Jailbreak Attacks

arXiv 2405.20099 ↗First posted 30 May 2024cs.CRcited by 35

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

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 9; 2025: 19; 2026: 7.

35 papers.

Sort:

By area:

  1. 2024Safety Alignment Should Be Made More Than Just a Few Tokens Deepcited by 450
  2. 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deploymentcited by 110
  3. 2025Safety at Scale: A Comprehensive Survey of Large Model and Agent Safetycited by 63
  4. 2024SelfDefend: LLMs Can Defend Themselves against Jailbreaking in a Practical Mannercited by 57
  5. 2024Bag of Tricks: Benchmarking of Jailbreak Attacks on LLMscited by 47
  6. 2024Operationalizing a Threat Model for Red-Teaming Large Language Models (LLMs)cited by 44
  7. 2024Automatic Pseudo-Harmful Prompt Generation for Evaluating False Refusals in Large Language Modelscited by 35
  8. 2025EmoAgent: Assessing and Safeguarding Human-AI Interaction for Mental Health Safetycited by 21
  9. 2025T2VShield: Model-Agnostic Jailbreak Defense for Text-to-Video Modelscited by 17
  10. 2024A Study on Prompt Injection Attack Against LLM-Integrated Mobile Robotic Systemscited by 15
  11. 2025Dialogue Injection Attack: Jailbreaking LLMs through Context Manipulationcited by 13
  12. 2024SafeEmbodAI: a Safety Framework for Mobile Robots in Embodied AI Systemscited by 12
23 more
  1. 2025One Model Transfer to All: On Robust Jailbreak Prompts Generation against LLMscited by 12
  2. 2025Think Twice, Generate Once: Safeguarding by Progressive Self-Reflectioncited by 11
  3. 2025Interpretation Meets Safety: A Survey on Interpretation Methods and Tools for Improving LLM Safetycited by 10
  4. 2026Obscure but Effective: Classical Chinese Jailbreak Prompt Optimization via Bio-Inspired Searchcited by 10
  5. 2025PiCo: Jailbreaking Multimodal Large Language Models via Pictorial Code Contextualizationcited by 8
  6. 2026The Promptware Kill Chain: How Prompt Injections Gradually Evolved Into a Multistep Malware Delivery Mechanismcited by 7
  7. 2025Takedown: How It's Done in Modern Coding Agent Exploitscited by 6
  8. 2024Preventing Jailbreak Prompts as Malicious Tools for Cybercriminals: A Cyber Defense Perspectivecited by 3
  9. 2025STShield: Single-Token Sentinel for Real-Time Jailbreak Detection in Large Language Modelscited by 3
  10. 2025RADAR: A Risk-Aware Dynamic Multi-Agent Framework for LLM Safety Evaluation via Role-Specialized Collaborationcited by 3
  11. 2025Online Learning Defense against Iterative Jailbreak Attacks via Prompt Optimizationcited by 3
  12. 2026Jailbreaking Leaves a Trace: Understanding and Detecting Jailbreak Attacks from Internal Representations of Large Language Modelscited by 3
  13. 2025Beyond the Tip of Efficiency: Uncovering the Submerged Threats of Jailbreak Attacks in Small Language Modelscited by 2
  14. 2024Bridging Today and the Future of Humanity: AI Safety in 2024 and Beyondcited by 1
  15. 2025Enhancing Reliability in LLM-Integrated Robotic Systems: A Unified Approach to Security and Safetycited by 1
  16. 2025LLM in the Middle: A Systematic Review of Threats and Mitigations to Real-World LLM-based Systemscited by 1
  17. 2025VisualDAN: Exposing Vulnerabilities in VLMs with Visual-Driven DAN Commandscited by 1
  18. 2025MENTOR: A Metacognition-Driven Self-Evolution Framework for Uncovering and Mitigating Implicit Domain Risks in LLMscited by 1
  19. 2026Lingua-SafetyBench: A Benchmark for Safety Evaluation of Multilingual Vision-Language Modelscited by 1
  20. 2026Isolation as a First-Class Principle for LLM-Agent System Safety: Concepts, Taxonomy, Challenges and Future Directionscited by 1
  21. 2025Computational Safety for Generative AI: A Hypothesis Testing Perspectivecited by 0
  22. 2026Jailbreaking the Matrix: Nullspace Steering for Controlled Model Subversioncited by 0
  23. 2026AlcaTRAz - Anchored Tree-Rule Defense Against Jailbreakscited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2025SecurityLingua: Efficient Defense of LLM Jailbreak Attacks via Security-Aware Prompt Compression
  2. 2026Analysis of LLMs Against Prompt Injection and Jailbreak Attacks
  3. 2024RobustKV: Defending Large Language Models against Jailbreak Attacks via KV Eviction
  4. 2025Scalable Defense against In-the-wild Jailbreaking Attacks with Safety Context Retrieval
  5. 2025Do Methods to Jailbreak and Defend LLMs Generalize Across Languages?
  6. 2024Jailbreak Attacks and Defenses Against Large Language Models: A Survey
  7. 2024JailPO: A Novel Black-box Jailbreak Framework via Preference Optimization against Aligned LLMs
  8. 2025PandaGuard: Systematic Evaluation of LLM Safety against Jailbreaking Attacks