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

EvaluationRed teaming
QuestionHow well does it work on normal use?How can it be made to fail?
InputsRepresentative real casesAdversarial and unusual cases
OutputAccuracy, quality and cost metricsA list of failures, with severity and fixes
WhenBefore launch and after every changeBefore launch of medium- and high-risk systems, and after major changes
WhoThe building teamPeople 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

AreaExample attacksWhat a failure looks like
Prompt injectionInstructions hidden in a document, email or web page the system readsThe system follows the hidden instruction
Data leakageAsking for other customers' data, system prompts or internal documentsIt reveals data the user should not see
JailbreaksRole-play and multi-step prompts to bypass rulesIt produces content or takes actions its rules forbid
Harmful errorsEdge cases, ambiguous questions, contradictory sourcesConfident wrong answers on consequential topics
BiasEquivalent requests varying only by a group attributeDifferent treatment without justification
Excessive agencyGetting an agent to act beyond its purposeUnapproved 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

  1. 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.
  2. Write down what failure means for this system: which data must never leak, which actions must never happen.
  3. Use people who did not build it, with a mix of security, domain and user perspectives.
  4. Time-box it. 2 to 5 days of focused testing finds most of what a business system will reveal.
  5. Rate and fix. Severity for each finding, an owner and a date. Retest the fixes.
  6. 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

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.

Keep goingSee every guide in the series