JailbreakBench: An Open Robustness Benchmark for Jailbreaking Large Language Models
About
Jailbreak attacks cause large language models (LLMs) to generate harmful, unethical, or otherwise objectionable content. Evaluating these attacks presents a number of challenges, which the current collection of benchmarks and evaluation techniques do not adequately address. First, there is no clear standard of practice regarding jailbreaking evaluation. Second, existing works compute costs and success rates in incomparable ways. And third, numerous works are not reproducible, as they withhold adversarial prompts, involve closed-source code, or rely on evolving proprietary APIs. To address these challenges, we introduce JailbreakBench, an open-sourced benchmark with the following components: (1) an evolving repository of state-of-the-art adversarial prompts, which we refer to as jailbreak artifacts; (2) a jailbreaking dataset comprising 100 behaviors -- both original and sourced from prior work (Zou et al., 2023; Mazeika et al., 2023, 2024) -- which align with OpenAI's usage policies; (3) a standardized evaluation framework at https://github.com/JailbreakBench/jailbreakbench that includes a clearly defined threat model, system prompts, chat templates, and scoring functions; and (4) a leaderboard at https://jailbreakbench.github.io/ that tracks the performance of attacks and defenses for various LLMs. We have carefully considered the potential ethical implications of releasing this benchmark, and believe that it will be a net positive for the community.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Jailbreak Attack | HarmBench | Attack Success Rate (ASR)64.3 | 624 | |
| Jailbreak Attack | Llama 7b 2 | ASR37 | 17 | |
| Safety Judge Evaluation | High-Confidence (HC) (test) | F1 Score83.5 | 13 | |
| Safety Classification | Safety OOD (holdout) | F1 Score61.5 | 12 | |
| Jailbreak Attack | JBB-Behaviors GPT-4o | Attack Success Rate (ASR)3 | 11 | |
| Jailbreak Attack | LLaMA-2 13B | Attack Success Rate (ASR)13 | 11 | |
| Jailbreaking | HarmBench | Llama 3 8B ASR18.7 | 11 | |
| Jailbreak Attack | Llama-2-70B | ASR7 | 11 | |
| Jailbreak Attack | JBB-Behaviors Llama-3.3-70B | Attack Success Rate (ASR)21 | 11 | |
| Jailbreak Attack | JBB-Behaviors Qwen2.5-14B | ASR4 | 11 |