Safety & factuality

HarmBench

by Center for AI Safety & collaborators

What is HarmBench? HarmBench is a safety & factuality eval made by Center for AI Safety & collaborators. A standard framework for red-teaming: it tests how easily attacks can make a model produce harmful content and how well defences hold.

Page last updated 2026-10-18 · Evals Review

Editor note

A standard framework for red-teaming: it tests how easily attacks can make a model produce harmful content and how well defences hold.

What it tests
Robustness to jailbreaks and harmful requests.
Original source
www.harmbench.org/
Last updated
Not checked yet
License
Not checked yet — see source

Facts come only from the linked source (checked 15–16 Oct 2026). Credit belongs to the creators. We don't score or rank evals: how we review.

When to use HarmBench

  • You are comparing automated red-teaming attacks, or testing how well a model and its defences refuse harmful requests, in one standard setup.
  • You want results comparable with a large baseline: the paper compares 18 red-teaming methods against 33 target LLMs and defences.

Limitations

  • Running the full pipeline is compute-heavy; the example commands use a Slurm cluster.
  • It measures refusal of harmful behaviour, not over-refusal of safe requests; pair it with a test such as XSTest.

How to run it

  1. Clone the repository and install requirements.
  2. Run the pipeline for chosen attack methods and target models.
git clone https://github.com/centerforaisafety/HarmBench.git
pip install -r requirements.txt
python ./scripts/run_pipeline.py --methods GCG --models all --step all --mode slurm

Notable results

  • The paper also introduces an adversarial training method that it reports improves LLM resistance across a wide range of attacks. [Paper (arXiv)]

Sources

Everything above comes from the sources listed, read on 15–16 Oct 2026. Commands are copied from the official instructions; check the source for changes.

Compare HarmBench

Reviews

No reviews yet.

Reviews are written by people who sign in with GitHub, one per account per eval. We can't confirm that each reviewer used the eval; we remove reviews that break our rules, never just for being negative, and we never add, buy or edit reviews. Averages, when shown, come only from these reviews.

Sign in with GitHub to review

Related safety & factuality evals

  • TruthfulQA — Truthfulness versus imitating human misconceptions.
  • StrongREJECT — Real effectiveness of jailbreak attacks.
  • SimpleQA — Short-form factuality and calibration.
  • XSTest — Over-refusal (exaggerated safety).

All Safety & factuality evals

Discussion

No one has discussed HarmBench yet. Have you run it? Share what it caught, what it missed or how you set it up.

Sign in with GitHub to comment

Be specific and kind. No promotion or affiliate links. Community rules · All discussions