What is automated red teaming?

Secure and govern
HoneyHive Engineering

Automated red teaming uses an attacker model, a target and a scorer to generate and grade attacks at scale. The method families and how to read the scores.

Automated red teaming is the use of software, usually another language model, to generate attacks against an AI system and score the replies, so far more cases are tried than people could write by hand. Perez and colleagues proposed using one language model to red team another in February 2022, because human-written test cases are costly and limit the number and diversity of tests.

This page covers how the automation works and how to read its output. For the definition see AI red teaming, and for the human-led procedure see how to red team an LLM application.

The loop: attacker, target, scorer

Every automated method fills the same three roles.

Role What it does
Attacker Proposes a test prompt or conversation
Target The model or application under test
Scorer Decides whether the reply is a failure

In the original design, one language model generates test questions for the target and a classifier flags offensive replies. On a 280B-parameter chatbot, the authors found tens of thousands of offensive replies, and they also surfaced leaked training data, real personal and hospital phone numbers given as the chatbot’s own contact details, and harms that appear over the course of a conversation.

Methods differ in how the attacker works and how much access it needs to the target.

Method families

Family Example How it attacks Access to target
Generate and classify Perez and colleagues One LM writes many test prompts, a classifier flags bad replies, from zero-shot prompting to reinforcement learning Black box
Gradient search Zou and colleagues (GCG) Greedy and gradient-based search for a suffix that pushes the model toward an affirmative reply Open model weights, then transfer
Iterative refinement Chao and colleagues (PAIR) An attacker LLM rewrites a prompt after each reply Black box
Tree search with pruning Mehrotra and colleagues (TAP) Like PAIR, but branches and drops unlikely candidates before querying Black box
Multi-turn escalation Russinovich and colleagues (Crescendo) A conversation that looks benign at each step Black box
Trained attacker Beutel and colleagues Reinforcement learning with a reward for differing from past attempts Black box

Zou and colleagues report that suffixes optimized on open models (Vicuna-7B and 13B) transferred to the public interfaces of ChatGPT, Bard and Claude. Chao and colleagues say PAIR “often requires fewer than twenty queries to produce a jailbreak” with black-box access only. Mehrotra and colleagues report that TAP jailbroke GPT4-Turbo and GPT4o for more than 80% of prompts and could bypass guardrails such as LlamaGuard, while pruning to cut the number of queries.

Russinovich and colleagues describe Crescendo as “a simple multi-turn jailbreak that interacts with the model in a seemingly benign manner”, and report that an automated version beat other jailbreak methods on a subset of AdvBench. Single-prompt tests miss this pattern. CSET notes that tools built on static datasets may not assess dynamic behavior such as multi-turn interaction and adversarial prompting.

These are the defining papers, from 2022 to 2024, and several have been revised since. Check each paper’s latest version before relying on a figure.

Diversity matters as much as success

An attacker that finds one working jailbreak and repeats it tells you little. Beutel and colleagues argue that existing methods usually optimize for either diversity or effectiveness, not both. Their approach first generates diverse attack goals, then trains a reinforcement learning attacker to produce effective attacks for each goal, with a reward for differing from past attempts. They applied it to prompt injection and to prompts that elicit unsafe responses, and report more diverse attacks than earlier approaches with high effectiveness. See prompt injection for that attack class.

Comparing methods fairly

Attack papers used to measure themselves in different ways. Mazeika and colleagues built HarmBench, a standardized framework for evaluating automated red teaming, and used it to compare 18 methods against 33 target models and defenses. They also present an adversarial training method that improves robustness across many attacks, and they argue the framework lets attacks and defenses be developed together.

When you read a vendor or paper claim of “X% attack success”, ask which attacks, which targets and which scorer produced it.

Reading the scores

CSET’s survey of tools, published in October 2025, makes four points worth keeping in mind:

  • Benchmark-style tools are “typically convenient to run and capable of processing a large number of tests at once”, but most run predetermined prompts through predetermined pipelines.
  • Attack success rate, the share of tests the system failed, compresses variation between individual prompts and responses.
  • AI scorers appeared in over half the surveyed tools, and CSET warns that “An AI evaluator may not catch a mistake made by another AI.”
  • It found no reliability guarantees for those scores in the tools’ documentation.

So sample the failures a scorer flags and the passes it let through, and read them yourself. A single aggregate number hides which prompts failed.

What automation does not do

Microsoft’s team, after red teaming more than 100 generative AI products, found that automation helps with prompt creation, attack orchestration and response scoring, while “red teaming can’t be automated entirely.” Use it to widen coverage of harms people have already named, and keep people for new threat models and judgment calls. A scorer or attacker model also has its own failure modes, so check both against human labels before trusting the results. A related idea is synthetic test data, which widens a few found attacks into a larger test set, and AI guardrails, where many fixes land.

Re-running an attack set in HoneyHive

An attack set is most useful when you can run it on every change. In HoneyHive you can upload attack prompts as a dataset and run an offline experiment that scores outputs with an evaluator, to catch regressions before deploy. Online evaluations can score production traces automatically. See LLM evaluation for the wider practice.

FAQ

What is automated red teaming?

Using software, usually another language model, to generate attacks against an AI system and score the replies. Perez and colleagues used one language model to write test questions for a target and a classifier to flag offensive replies, because human-written test cases are costly and limit coverage.

What is the difference between PAIR, TAP and GCG?

PAIR and TAP use an attacker LLM that rewrites prompts using only black-box access to the target; TAP also prunes unlikely candidates before querying. GCG searches for an adversarial suffix with greedy and gradient-based methods, on open models whose suffixes then transfer to other systems.

Can automated red teaming replace human testers?

No. Microsoft's team found that automation helps with prompt creation, attack orchestration and response scoring, but that red teaming can't be automated entirely.

Is attack success rate a reliable number?

Treat it with care. CSET warns that aggregate numbers compress variation between prompts and that AI scorers are noisy, and it found no reliability guarantees in the surveyed tools' documentation.

What is continuous automated red teaming?

Running automated attacks repeatedly instead of once. The loop is the same attacker, target and scorer; what changes is that you re-run it as the application changes. HoneyHive's experiments docs describe scoring dataset outputs offline to catch regressions before deploy.

Share