Abstract
The proliferation of large language models (LLMs) has underscored concerns regarding their security vulnerabilities, notably against jailbreak attacks, where adversaries design jailbreak prompts to circumvent safety mechanisms for potential misuse. Addressing these concerns necessitates a comprehensive analysis of jailbreak prompts to evaluate LLMs' defensive capabilities and identify potential weaknesses. However, the complexity of evaluating jailbreak performance and understanding prompt characteristics makes this analysis laborious. We collaborate with domain experts to characterize problems and propose an LLM-assisted framework to streamline the analysis process. It provides automatic jailbreak assessment to facilitate performance evaluation and support analysis of components and keywords in prompts. Based on the framework, we design JailbreakLens, a visual analysis system that enables users to explore the jailbreak performance against the target model, conduct multi-level analysis of prompt characteristics, and refine prompt instances to verify findings. Through a case study, technical evaluations, and expert interviews, we demonstrate our system's effectiveness in helping users evaluate model security and identify model weaknesses.
Introduction
As Large Language Models (LLMs) become ubiquitous, "jailbreaking"—the craft of designing adversarial prompts to bypass safety filters—has evolved from simple tricks to complex, multi-paragraph templates like the "DAN" (Do Anything Now) persona. Analyzing these attacks presents significant hurdles for security practitioners. Evaluation is often ambiguous, as models may provide harmful content while simultaneously issuing ethical warnings (Partial Compliance). Furthermore, the length and complexity of modern prompts make it difficult to manually identify which specific functional components or keywords are responsible for triggering a safety failure.
Methodology
JailbreakLens addresses these challenges through a systematic LLM-assisted framework and a dedicated visual analytics system.
LLM-Assisted Assessment and Decomposition
The framework utilizes a high-performing LLM (e.g., GPT-4o) as an automated judge to categorize model responses into a four-tier taxonomy: Full Refusal, Partial Refusal, Partial Compliance, and Full Compliance. To manage prompt complexity, the system automatically segments long prompts into eight functional components, such as Scene Introduction, Subject Characteristic, and Task Operation.
Perturbation and Visual Exploration
To identify critical attack vectors, the system supports perturbation analysis—deleting, rephrasing, or switching components to observe changes in jailbreak success. These insights are visualized through a multi-view interface, including a Summary View for performance across categories and a Keyword View that maps the importance of specific terms to attack outcomes.
Key Results and Insights
Technical evaluations and user studies demonstrate that JailbreakLens significantly enhances both the accuracy and efficiency of security audits.
- Accuracy and Efficiency: Human-in-the-loop refinement improved automated assessment accuracy from 83% to 92.25%. Expert users were able to analyze prompts in 123 seconds on average, nearly twice as fast as traditional tabular methods (229 seconds).
- The Power of Personas: Component analysis revealed that "Subject Characteristic" components—sentences describing the LLM as an amoral or unconstrained persona—are often the most critical elements of a successful jailbreak.
- Defensive Evolution: Keyword mapping showed that famous attack names like "DAN" are now frequently associated with "Full Refusal," suggesting that developers have specifically hardened models against known templates. Successful modern attacks often rely on subtler keywords like "disregards" or "controversial."
Conclusion
JailbreakLens provides a robust platform for security researchers to systematically decompose and evaluate LLM vulnerabilities. While currently focused on text-based attacks, the framework establishes a foundation for future research into Multi-modal LLMs (MLLMs), where adversarial content may be hidden within images or OCR text.
Summary updated