JailbreakZoo: Survey, Landscapes, and Horizons in Jailbreaking Large Language and Vision-Language Models

Haibo Jin, Leyang Hu, Xinuo Li, Peiyan Zhang, Chonghan Chen, Jun Zhuang, Haohan Wang · OpenReview

Abstract

The rapid evolution of artificial intelligence (AI) through developments in Large Language Models (LLMs) and Vision-Language Models (VLMs) has brought significant advancements across various technological domains. While these models enhance capabilities in natural language processing and visual interactive tasks, their growing adoption raises critical concerns regarding security and ethical alignment. This survey provides an extensive review of the emerging field of jailbreaking—deliberately circumventing the ethical and operational boundaries of LLMs and VLMs—and the consequent development of defense mechanisms. Our study categorizes jailbreaks into seven distinct types and elaborates on defense strategies that address these vulnerabilities. Through this comprehensive examination, we identify research gaps and propose directions for future studies to enhance the security frameworks of LLMs and VLMs. Our findings underscore the necessity for a unified perspective that integrates both jailbreak strategies and defensive solutions to foster a robust, secure, and reliable environment for the next generation of language models.

Introduction

As Large Language Models (LLMs) like GPT-4 and Claude become increasingly integrated into critical infrastructure, the stakes for "ethical alignment" have never been higher. Developers employ techniques such as Reinforcement Learning from Human Feedback (RLHF) to ensure these models refuse to generate harmful, biased, or illegal content. However, this has sparked a sophisticated cat-and-mouse game. Attackers have developed "jailbreaks"—carefully crafted prompts designed to bypass these safety guardrails—while researchers work to build more resilient "cages."

JailbreakZoo addresses a significant gap in current literature: while most security surveys focus exclusively on text-based LLMs, modern AI is increasingly multi-modal. By processing both text and images, Vision-Language Models (VLMs) introduce a wider attack surface that remains poorly understood. This paper provides the first unified taxonomy for jailbreaking across both LLMs and VLMs, offering a structured landscape of the current state of AI security.

An illustrative case of a successful jailbreak on an LLM, showing how a "Dr. Al" persona can bypass a standard refusal.

The Jailbreak Landscape: A Unified Taxonomy

The survey systematizes the field into a clear hierarchy, categorizing the threat landscape into two primary branches: LLM attacks and VLM attacks.

LLM Attack Vectors

  1. Gradient-based: These attacks use the model's internal mathematical gradients to find "magic" character strings (adversarial suffixes) that maximize the probability of a model generating a prohibited response.
  2. Evolutionary: Using genetic algorithms, attackers "breed" successful prompts by iteratively mutating and selecting for those that trigger a safety failure.
  3. Demonstration-based: These rely on static, hard-coded personas or roleplay scenarios (e.g., the "DAN" or "Do Anything Now" prompt) to trick the model into ignoring its instructions.
  4. Rule-based: This involves decomposing malicious intent into benign-looking logic, such as asking the model to write code that performs a harmful action rather than asking for the action directly.
  5. Multi-agent: These sophisticated attacks use one LLM to iteratively probe and "break" another model through a conversational feedback loop.

VLM Attack Vectors

VLM attacks exploit the unique interaction between visual and textual modalities. For instance, "typographic attacks" hide harmful instructions within an image. While a text-based safety filter might miss the instruction, the vision encoder processes the text in the image, leading the model to follow the hidden command.

The overall structure of the JailbreakZoo survey, categorizing alignment, jailbreak processes, threats, and defenses.

Defense Strategies

To counter these threats, the survey categorizes defenses into several strategic layers. For LLMs, these range from Prompt Detection (identifying malicious intent before it reaches the model) to Model Fine-tuning (baking safety directly into the model's weights). One of the most effective current defenses is Response Evaluation, where a secondary, "supervisor" AI reviews the output of the primary model to ensure it adheres to safety guidelines before it is shown to the user.

Key Insights and Results

  • The Multi-Modal Vulnerability Gap: VLMs are often significantly more fragile than their text-only counterparts. Because safety training is often English-centric and text-focused, the visual channel remains an open door for adversarial exploitation.
  • Transferability: A major security concern is the transferability of attacks. Jailbreak suffixes discovered on open-source models (like Llama) are frequently effective when applied to closed-source models (like GPT-4), suggesting shared underlying vulnerabilities across different architectures.
  • Attack Success Rates: Under certain conditions, gradient-based attacks can achieve near 100% Attack Success Rate (ASR) on aligned models, highlighting the fragility of current alignment techniques.

Benchmarking and Resources

The paper reviews critical benchmarks such as AdvBench for adversarial suffixes and MM-SafetyBench for multi-modal safety. To support the community, the authors introduced JailbreakZoo, a companion website and repository that serves as a living resource for tracking new attack vectors and defensive benchmarks.

Future Horizons

Despite rapid progress, several "horizons" remain unprotected. Multilingual safety is a primary concern, as models often fail to maintain safety guardrails when queried in low-resource languages. Furthermore, the field needs to move toward "model editing"—the ability to surgically remove harmful knowledge from a model's weights without degrading its general utility. As AI continues to evolve toward more complex multi-modal integrations, a unified, proactive approach to security will be essential for building reliable and trustworthy systems.

Summary updated

BibTeX
@misc{jin2024jailbreakzoo,
  author = {Haibo Jin and Leyang Hu and Xinuo Li and Peiyan Zhang and Chonghan Chen and Jun Zhuang and Haohan Wang},
  title = {{JailbreakZoo: Survey, Landscapes, and Horizons in Jailbreaking Large Language and Vision-Language Models}},
  year = {2024},
  eprint = {2407.01599},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.01599},
}
Figure