Red teaming

Red teaming is structured adversarial testing in which people or automated systems deliberately try to make an AI model or other system fail or behave harmfully, so problems can be fixed before release.

The term comes from Cold War military exercises. In simulations run for the US military in the 1960s, including by the RAND Corporation, a red team played the Soviet Union and a blue team the United States. Security practice kept the idea: a US government definition used by NIST describes a red team as a group authorised and organised to emulate a potential adversary's attacks, so defenders can see what works against them.

In AI the adversary is anyone who might get a model to do harm, and the target is the model's behaviour as well as its security. Red teamers try to extract dangerous instructions, provoke biased or abusive output, leak private data, get round safety training with jailbreaks or turn an AI agent's tools against its user. Specialists are brought in for areas such as biology and cybersecurity, where judging whether an answer is dangerous takes expertise. Unlike a benchmark, which scores a model on a fixed set of questions, red teaming looks for failures nobody has listed yet.

An influential 2022 paper led by Deep Ganguli, Red Teaming Language Models to Reduce Harms, released 38,961 attacks written by human red teamers against models of 2.7, 13 and 52 billion parameters. It found that models trained with reinforcement learning from human feedback became harder to red team as they grew, while other model types showed no such trend.

Red teaming can also be automated. In February 2022 Ethan Perez and colleagues used one language model to generate test questions for another, a 280 billion parameter chatbot, and found tens of thousands of offensive replies, cases where the chatbot gave out real personal and hospital phone numbers as its own contact details, and leaks of private training data. Reflecting on more than 100 generative AI products in January 2025, Microsoft's AI red team concluded that automation helps cover more ground but that human judgement remains crucial, and that securing an AI system is never finished.

Red teaming finds problems; it cannot prove there are none left. When a company says a model was red teamed, the useful questions are who did it, for how long, with what expertise, what they found and what was changed as a result.

Common questions

What is AI red teaming?

AI red teaming is deliberately attacking an AI model or product to find ways it can be made to fail or cause harm, such as producing dangerous instructions, leaking data or bypassing its safeguards. The findings are used to fix problems before or after release. It is done by internal teams, outside experts and increasingly by automated tools.

What is the difference between red teaming and penetration testing?

Penetration testing focuses on breaking into systems within an agreed scope to find security weaknesses. Red teaming emulates an adversary more broadly and, in AI, also covers harmful or unwanted model behaviour that is not a security flaw at all, such as biased or dangerous answers.

Who does red teaming for AI companies?

Labs use their own internal red teams, paid outside experts in areas such as biology, chemistry and cybersecurity, and specialist testing firms. Some also run bug bounty programmes that reward the public for finding jailbreaks.

Can red teaming be automated?

Partly. Since at least 2022 researchers have used one language model to generate attacks on another, finding many failures quickly. Practitioners such as Microsoft's AI red team say automation widens coverage, but people are still needed to judge what matters and to find new kinds of failure.

Finding more

Search for "AI red teaming", "red teaming language models", "automated red teaming" or "red team findings system card" to learn more. Reliable sources include the original research papers on arXiv, published lessons from industry red teams, guidance from government AI safety and security institutes, and the system cards in which labs describe their testing. Statements that a model was extensively red teamed carry little weight without detail on what was tested and found.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.