In the AI governance guide
What is AI red teaming?
The short answer
Trying to make an AI system fail, on purpose, before someone else does
Updated · 3 min read
AI red teaming is structured adversarial testing: a team deliberately tries to make an AI system fail, misbehave or leak, so the weaknesses are found and fixed before launch or before an attacker or a customer finds them. It tests things ordinary evaluation misses, such as prompt injection, attempts to extract confidential data, jailbreaks that bypass safety rules, and inputs that push a system into confident, harmful errors.
Model developers red team their models. Companies that use those models still need to red team their own systems, because the risks come from how the model is used: the data it can reach, the actions it can take and the people who rely on it.
Red teaming vs evaluation
| Evaluation | Red teaming | |
|---|---|---|
| Question | How well does it work on normal use? | How can it be made to fail? |
| Inputs | Representative real cases | Adversarial and unusual cases |
| Output | Accuracy, quality and cost metrics | A list of failures, with severity and fixes |
| When | Before launch and after every change | Before launch of medium- and high-risk systems, and after major changes |
| Who | The building team | People who did not build it, internal or external |
Both are needed. A system can score well on evaluation and still leak data to the first person who asks cleverly.
What to test
| Area | Example attacks | What a failure looks like |
|---|---|---|
| Prompt injection | Instructions hidden in a document, email or web page the system reads | The system follows the hidden instruction |
| Data leakage | Asking for other customers' data, system prompts or internal documents | It reveals data the user should not see |
| Jailbreaks | Role-play and multi-step prompts to bypass rules | It produces content or takes actions its rules forbid |
| Harmful errors | Edge cases, ambiguous questions, contradictory sources | Confident wrong answers on consequential topics |
| Bias | Equivalent requests varying only by a group attribute | Different treatment without justification |
| Excessive agency | Getting an agent to act beyond its purpose | Unapproved actions, runaway loops, spending past limits |
The OWASP Top 10 for LLM Applications is a useful starting list of attack types.
How to run one for a business system
- Scope it to the tier. A Tier 1 system gets a full exercise. A Tier 2 system gets a lighter one. Tier 3 usually needs none. See AI risk assessment.
- Write down what failure means for this system: which data must never leak, which actions must never happen.
- Use people who did not build it, with a mix of security, domain and user perspectives.
- Time-box it. 2 to 5 days of focused testing finds most of what a business system will reveal.
- Rate and fix. Severity for each finding, an owner and a date. Retest the fixes.
- Turn findings into permanent tests. Every successful attack becomes a case in the regression set that runs on every change.
An example: Halden Freight
Halden Freight, the fictional logistics company used across these guides, red teamed its customer support assistant before expanding it from email to web chat. 4 people from security, customer service and the support assistant team spent 3 days on it. They found 7 issues. The most serious: a customer could get the assistant to describe another shipment's status by guessing a tracking number format, because the assistant checked the number but not the customer's account. It was fixed by adding an account check to the retrieval step, outside the model. All 7 attacks became permanent cases in the 200-question test set that now runs before every prompt change. See AI guardrails.
Sources
- NIST, Generative Artificial Intelligence Profile, NIST AI 600-1, July 2024
- OWASP, Top 10 for Large Language Model Applications
Questions leaders ask
What is AI red teaming?
AI red teaming is structured adversarial testing in which a team deliberately tries to make an AI system fail, misbehave or leak data, so weaknesses are found and fixed before launch. It covers attacks such as prompt injection, data extraction and jailbreaks, as well as harmful errors, bias and agents acting beyond their purpose.
Do companies need to red team AI they did not build?
Yes, for medium- and high-risk uses. Model developers test their models, but many risks come from how a company uses a model: the data it can reach, the actions it can take and who relies on it. Those can only be tested in the company's own system, with its own data and permissions.
How long does an AI red teaming exercise take?
For a typical business system, a focused exercise of 2 to 5 days by a small team that did not build it finds most significant issues. High-risk systems may need longer or external specialists. Findings should then become permanent regression tests that run on every change.
- Free toolsFree AI governance tools and templates4 tools and 2 downloads, free to use
- The TBM guideWhat is Technology Business Management (TBM)?A way to run technology like a business
- The FinOps for AI guideWhat is FinOps for AI?Knowing what each piece of AI work costs, and whether it pays
- The Operating model guideWhat is an operating model?How a company is set up to deliver its strategy
- The Strategic portfolio management guideWhat is strategic portfolio management?Deciding which work to fund, staff and stop, and changing your mind on purpose
- The Strategic planning guideWhat is strategic planning?Deciding where to compete, and how you will know
- The FinOps guideWhat is FinOps?Shared ownership of what cloud costs, and what it buys
- The Enterprise architecture guideWhat is enterprise architecture?A shared map of how the business and its technology fit, used to steer change