AI Safety Compendium

Testing before release

Evaluating

Adversarial robustness and red-teaming

Attack the system deliberately to find and close jailbreaks.

Open in the compendium

Red-teaming means attacking an AI system on purpose, before and after release, to find ways it can be pushed into breaking its own rules. Adversarial robustness is the property the attacks test: how well the system holds up against people, or other AI systems, actively trying to make it misbehave. A safeguard that a determined user can bypass gives much less protection than it appears to.

How it works

Human experts red-team a model by hand, often under contract with the developer. Automated red-teaming uses one AI model to generate many test attacks against another and scores the replies; DeepMind showed in February 2022 that this could surface tens of thousands of offensive replies from a large chatbot. Public competitions and bug bounties pay outsiders for each successful break.

A jailbreak is an input that gets a model to do what its safety training forbids. A universal jailbreak works across many forbidden requests at once, so it is far more dangerous than a one-off trick. Known attack classes include automatically optimised text suffixes that transfer between models, many-shot jailbreaks that fill a long context window with fake dialogues, and prompt injection, where instructions hidden in a web page or file hijack an AI agent that reads it.

Developers then train or add defences and attack them again. Anthropic's Constitutional Classifiers (February 2025), for example, wrap a model in input and output filters. The filters are trained on synthetic examples generated from a written list of allowed and banned content. Anthropic then ran a two-month bug bounty and a public challenge to see whether people could still find a universal jailbreak.

Where research stands

Red-teaming is standard practice, and the field is crowded. Every major developer does it, and governments now run or sponsor it. Defences can raise the cost of attacks sharply. In Anthropic's bug bounty, 183 participants spent over 3,000 hours without finding a universal jailbreak of the classifier-guarded prototype. Against a determined, adaptive attacker, though, almost nothing holds. In Anthropic's public challenge in February 2025, one participant did find a universal jailbreak. In a March-April 2025 agent competition run by Gray Swan with the UK AI Security Institute, every one of 22 models was broken many times.

Many defences are tested only against fixed attack sets. In October 2025, researchers including Nicholas Carlini broke 12 published defences, most of which had reported near-zero attack success. AI agents that read untrusted content also face prompt injection, and their robustness tracks model size or capability only weakly. Anthropic's 2025 list of recommended research directions still says "there are still underexplored areas" in adversarial robustness, including jailbreak benchmarks that measure real harm rather than mere non-refusal.

Key results

Open problems

See all open problems in this group

Criticisms

Who works on it

Status

Crowded; Anthropic still says "there are still underexplored areas"

Start reading

Related approaches

In their own words

Language Models (LMs) often cannot be deployed because of their potential to harm users in hard-to-predict ways. Prior work identifies harmful behaviors before deployment by using human annotators to hand-write test cases. ... In this work, we automatically find cases where a target LM behaves in a harmful way, by generating test cases ("red teaming") using another LM.

Ethan Perez, Saffron Huang, Francis Song, Trevor Cai, Roman Ring, John Aslanides, Amelia Glaese, Nat McAleese, Geoffrey Irving (DeepMind), Red Teaming Language Models with Language Models, 2022

To defend against these attacks, we introduce Constitutional Classifiers: safeguards trained on synthetic data, generated by prompting LLMs with natural language rules (i.e., a constitution) specifying permitted and restricted content. ... Our work demonstrates that defending against universal jailbreaks while maintaining practical deployment viability is tractable.

Mrinank Sharma et al. (Anthropic), Constitutional Classifiers: Defending against Universal Jailbreaks across Thousands of Hours of Red Teaming, 2025

Suggest a correction Something wrong, out of date or missing, such as an organisation? Opens a GitHub issue (free account needed).