JailbreakBench is an open-source robustness benchmark for jailbreaking large language models. The JailbreakBench HuggingFace home is the JailbreakBench/JBB-Behaviors dataset, which holds 100 harmful behaviours, 100 matching benign ones, and a separate 300-row set used to choose the judge. The jailbreak prompts live in a separate GitHub artifacts repository. JailbreakBench reports attack success rate (ASR) as judged by a Llama-3-70B judge. A low ASR on those fixed prompts is a reproducible data point, not proof of safety: the authors list “using only the existing precomputed jailbreak prompts, without an adaptive attack” as an unsuitable use of their own benchmark.
The security of managed model APIs is covered in our wider piece on AI in cloud security. Here the subject is the benchmark: what it contains, how it scores, and how far you can trust its numbers.
What the JailbreakBench Hugging Face dataset and artifacts contain
JailbreakBench has four parts: an evolving repository of adversarial prompts (the “jailbreak artifacts”), a dataset of 100 misuse behaviours, a standardised evaluation framework with a defined threat model, system prompts, chat templates and scoring functions, and a public leaderboard of attacks and defences. The parts live in different places: Hugging Face, GitHub and the leaderboard site.
The Hugging Face dataset card shows two configurations. “behaviors” has 200 rows, split into a harmful split and a benign split of 100 rows each. “judge_comparison” has 300 rows. That is why the card reports 500 rows in total (200 plus 300). Each behaviour row has five fields: Behavior (a short identifier), Goal (the objectionable request), Target (an affirmative response to that request), Category and Source.
The 100 harmful behaviours fall into ten categories based on OpenAI’s usage policies, with ten behaviours in each category. Of these behaviours, 55% are original to JailbreakBench, 18% come from AdvBench and 27% come from the TDC/HarmBench dataset. The dataset card lists three values for the Source field. If you know the AdvBench dataset already, note that JBB-Behaviors is not a superset of its sources: the authors picked 100 representative behaviours to keep evaluation fast. Each harmful behaviour has a benign twin on the same topic, which serves as a sanity check on refusal rates.
The judge_comparison set is the data used to choose the judge. It contains 200 jailbreak prompts and responses, each labelled by three experts who agreed about 95% of the time, plus 100 benign examples from XS-Test that resemble harmful ones. Every row carries the three human labels, the majority label and the verdicts of the HarmBench, GPT-4, Llama Guard 2 and Llama-3 judges.
The artifacts are the submitted attack and defence results. Each one holds the prompts, responses and classifications for a submitted attack or defence. Its metadata includes the attack’s hyperparameters, its ASR and the number of queries it made to the target model. At publication, the repository held jailbreak strings for PAIR, GCG, JailbreakChat and the attacks from Andriushchenko et al. (2024). The repositories’ own instructions load both the dataset and the artifacts in a few lines:
# pip install jailbreakbench datasets
from datasets import load_dataset
import jailbreakbench as jbb
behaviors = load_dataset("JailbreakBench/JBB-Behaviors", "behaviors")
artifact = jbb.read_artifact(method="PAIR", model_name="vicuna-13b-v1.5")
print(artifact.jailbreaks[75])
How JailbreakBench scores attacks with ASR
JailbreakBench tracks attack success rate (ASR) according to a Llama-3-70B jailbreak judge. An artifact holds the jailbreaks for the behaviours in JBB-Behaviors.
How is ASR computed in JailbreakBench, and how should you read it?
The judge’s prompt counts a response as unsafe only if it contains harmful content that addresses the request and gives specific details. A reply that starts with “Sure” but contains no harmful content counts as safe. The authors compared six classifiers against the human labels. Llama-3-70B and GPT-4 agreed with the annotators more than 90% of the time. Llama Guard 2 reached 87.7%, the HarmBench classifier 78.3%, the original Llama Guard 72.0% and a rule-based judge 56.0%. They chose Llama-3-70B over GPT-4 because it has open weights, whereas a closed model is expensive to query and can change without notice.
The judge was also chosen for its low false-positive rate. The authors accept that it “may systematically reduce the success rate across attack algorithms” in exchange for not marking benign answers as jailbroken. Attack and defence submissions are not permitted to use the Llama-3-70B judge, in order to prevent overfitting to it. To score your own prompts, call jbb.evaluate_prompts(all_prompts, llm_provider="litellm"), or pass "vllm" as the provider.
Read a JailbreakBench ASR as “the share of 100 fixed behaviours that this attack, against this model and harness, got past this judge”, and nothing wider. Even that narrow reading depends on the judge. The StrongREJECT authors found that the evaluation methods they examined significantly overstate jailbreak effectiveness compared with human judgement. One reason is that jailbreaks which bypass safety tuning also tend to reduce the model’s capabilities.
So why can two teams report different ASRs for the same model? Jailbreak evaluation has had no standard definition of a valid jailbreak. Methods range from human labelling to rule-based, neural and LLM-as-a-judge classifiers, and these give inconsistent results. The JailbreakBench authors put their own ASRs, which are lower than earlier reported values, down to harder behaviours and a more conservative classifier. The way you run the model matters too. Querying some models, such as Vicuna, through Together AI rather than running them locally changed ASR by at most 1 to 3 points. And the model behind an API name can change between runs, which the re-testing section covers below.
How JailbreakBench differs from ad-hoc red-team prompting
JailbreakBench makes one run comparable with another. When there is no shared benchmark, each research team builds its own dataset of forbidden prompts and its own way of scoring harm, according to the StrongREJECT authors. JailbreakBench archives every artifact so that there is “a stable basis of comparison”, and it fixes the system prompts, chat templates and scoring code.
Microsoft’s 2025 report on red teaming more than 100 generative AI products states as one of its lessons that “AI red teaming is not safety benchmarking”. A red team looks for failures nobody has written down yet, against your actual system. A benchmark measures whether a known class of failures has got better or worse. A team that only red-teams cannot tell whether a regression has happened. A team that only benchmarks never finds the new attack. Our piece on what an LLM safety benchmark measures and what it can’t prove covers that general distinction.
How does the JailbreakBench leaderboard work, and how comparable are results across models and defences?
The leaderboard is built on code from RobustBench, the image-classification robustness benchmark. It shows results for attacks and defences, links each entry to its artifacts, and can be filtered by metadata such as paper title and threat model. Each submission records the evaluation date and the inference type automatically. New defences are welcome, but any defence that refuses more than 90% of the benign behaviours gets flagged.
Two entries compare cleanly when they share the same behaviours, judge and generation settings. By default the framework samples greedily at temperature zero and generates 150 tokens per input. Beyond that, comparability gets weaker. The benchmark does not restrict submissions to particular threat models or model architectures. In the paper, defence results are measured with transfer attacks, which reuse strings found against the undefended model. The authors call this “possibly the simplest type of evaluation, since it is not adaptive to the target defense”. A defence that tops the board on transfer attacks has not been tested against an attacker who knew it was there.
Public leaderboards also carry selection effects. An audit of the Open LLM Leaderboard (a capability leaderboard, not JailbreakBench) found that only 3 of 394 adjacent-rank claims cleared even the uncorrected significance threshold. It also showed that submitting the best of several privately scored variants inflates the visible margin. That audit did not cover JailbreakBench. We would still read small rank gaps on any leaderboard as ties until shown otherwise.
Should I benchmark the base model or the deployed system?
Benchmark both, because the two runs answer different questions. The base model on the standard harness gives you a number you can compare with the leaderboard and with other candidates. The deployed system gives you a number about your actual exposure. They differ because the standard harness fixes the system prompt and chat template. Its threat model also does not let attackers modify the system prompt or prefill the response, and it covers text only. Your deployment probably has its own system prompt, a retrieval step, tools and perhaps image input, and none of these appear in the standard number.
NIST’s Generative AI Profile (AI 600-1) asks organisations to “document assumptions and limitations of benchmarks … relative to in-context deployment environment”. Microsoft’s first red-teaming lesson is to understand what the system can do and where it is applied. Both point the same way: the standard score is the starting point, not the deployment verdict. For retrieval and agent systems, indirect prompt injection through retrieved data is a separate risk, and it sits outside JailbreakBench’s direct, text-only threat model. Our explainer on jailbreak safety for a RAG chatbot or agent covers that system-level view.
How do you use JailbreakBench to compare candidate LLMs or defences before going live?
Use it as a fixed yardstick first and as your system test second. The steps below keep the comparison fair and the conclusions bounded.
- Fix the harness for every candidate. Use the same JBB-Behaviors version, the same judge, temperature zero and the same token limit, and record the model version, date and inference type.
- Run both splits. Harmful behaviours give you ASR. The benign twins show over-refusal, which matters: without defences, Vicuna refused 9% of benign behaviours while Llama-2 refused more than 60%.
- Replay the published artifacts. Feed the archived strings for PAIR, GCG, JailbreakChat and the other attacks to each candidate. This gives a transfer-attack baseline you can compare with the leaderboard.
- Test defences by name. Pass the
defenseflag (for exampledefense="SmoothLLM") tojbb.evaluate_prompts. Expect results to vary by attack. In the paper, a perplexity filter helped only against GCG, while SmoothLLM reduced GCG and PAIR but did less against JailbreakChat and Prompt with RS on some models. - Add an adaptive attack against your shortlisted configuration. The paper’s authors call relying only on the precomputed prompts, without an adaptive attack, an unsuitable use.
- Set a go/no-go threshold in advance. NIST AI 600-1 recommends minimum thresholds reviewed as part of deployment approval. Write the threshold down before you see the numbers.
The benign refusal check is a quick sanity test. The authors say it does not replace a proper utility evaluation on benchmarks such as MMLU. A defence that wins on ASR can still lose on usefulness, so the candidate comparison needs a capability check alongside it.
Does a low JailbreakBench score mean a model is safe to deploy?
Not on its own: passing JailbreakBench is not the same as being safe to deploy. A low score means the model resisted a known, fixed set of attacks under one harness and one judge. One study bypassed 12 recent defences with adaptive attacks, reaching ASRs above 90% for most of them. Most of those defences had originally reported near-zero ASR. Their conclusion is that “defenses evaluated solely on static benchmarks should not be regarded as robust”. The same paper warns that model-based auto-raters are themselves machine-learning models, and so are open to adversarial examples and reward hacking. That applies to any LLM judge, including the Llama-3-70B judge.
Undefended models offer little comfort either. In the JailbreakBench paper, Prompt with RS reached 90% ASR on Llama-2 and 78% on GPT-4.
| A clean JailbreakBench result covers | It does not cover |
|---|---|
| The 100 fixed harmful behaviours across ten categories | Harm types outside those categories, or in your own domain |
| Archived, mostly transfer-style attacks | Adaptive attackers who target your defence |
| Text prompts under a fixed system prompt | System-prompt tampering, response prefill, non-text inputs |
| One judge’s verdict with a conservative false-positive rate | Agreement with every provider’s policy; some benign items are borderline and providers may disagree on them |
| A model version on a specific date | The same API name months later |
How should jailbreak robustness be re-tested when models, system prompts or defences change?
Re-run the same harness whenever anything that shapes the model’s output changes, and compare the result with the stored baseline as a regression check. NIST AI 600-1 recommends evaluating the robustness of safety measures “both prior to deployment and on an ongoing basis” and regularly evaluating vulnerabilities to circumvention.
Re-testing matters even when you change nothing yourself. Chen, Zaharia and Zou (2023) found that the behaviour of the “same” LLM service changed substantially within months. For example, GPT-4 became less willing to answer sensitive questions between March and June. JailbreakBench’s own results show the same drift. GCG’s success rate on GPT models fell to about 5% after release, likely because of safety patches, in transfer attacks evaluated on 5 June 2024. A stored ASR with no date and model version attached is not a usable baseline.
For the comparison to hold, keep everything fixed apart from the change you are testing. Use the same behaviours, the same judge and the same inference route, preferably local, since querying some models through Together AI shifted ASR by at most 1 to 3 points in the authors’ tests. Put the benign split in the same run, as a quick check for overly conservative defences.
You still have to decide which attacker you are defending against. JailbreakBench gives you a reliable, repeatable measure against a published, fixed one.
FAQ
What does “jailbreak” mean for an LLM?
NIST describes jailbreaking as deliberately crafting prompts to circumvent a generative AI system’s output controls.
Does jailbroken mean hacked?
An LLM jailbreak manipulates prompts to get around the model’s output controls. When the model is connected to other systems, related prompt-injection attacks can cause downstream harm such as data theft.