What is AI red teaming?
AI red teaming uses controlled adversarial attempts to expose weaknesses and potential harms in an AI system before real users or attackers encounter them.
AI red teaming is a structured testing effort that uses controlled adversarial attempts to expose weaknesses and potential harms in an artificial intelligence system. NIST describes it as a search for flaws and vulnerabilities, often in a controlled environment and in collaboration with the system's developers. Testers probe for harmful answers, confidential data leaks, or unauthorized actions. The exercise can target just the underlying model that generates responses, or the entire application, including the documents it reads, its permissions, and its connected tools. Before testing, participants agree on objectives, permitted access, and safety limits; afterward they document attempts, results, and fixes. If testing finds no weaknesses, the result applies only to the conditions examined: it does not prove immunity to other attacks. Red teaming complements other evaluations and can be repeated when components, data, or usage patterns change.
See also: Prompt injectionPrompt injection is an attack that places deceptive instructions in an AI system's inputs to alter its responses or actions in ways nobody has authorized.
What gets tested
A model-only exercise might attempt a jailbreak, a request crafted to bypass the model's output restrictions. An application test might instead probe for prompt injection: malicious instructions embedded in the request or in content the system reads. The NIST generative AI profile distinguishes direct injection from instructions hidden in data retrieved by an application and describes confidentiality risks. Scope should reflect what the business actually uses: testing the model alone does not test the application's documents, connections, and permissions.
Evals, repeatable tests with explicit criteria, help check fixes against previously discovered cases. Exploratory red teaming also hunts for unexpected attack paths, adapting each attempt to the responses. The two complement each other: replaying known cases cannot cover every possible attack. A 2022 study of language models found that those trained with human feedback became harder to red team as they scaled, while other model types showed a flat trend.
An enterprise example
A company is evaluating an assistant that reads customer case files and drafts responses. In an authorized test environment, the team plants malicious instructions in a dummy document and checks whether the assistant reveals information from another case. The team logs the text, permissions, version, and response, then reruns the case after a fix. If the assistant can also change data, testing must include that access, with limits that prevent real-world impact: NIST distinguishes tools by permissions, from read-only to write, and by environment, trusted or untrusted.
Why it matters for decision makers
When comparing proposals, ask which version and integrations are covered, who may access the findings, which scenarios are excluded, and whether the price includes retesting after fixes. The report should include reproducible evidence, impact, limitations, and who is responsible for remediation. An exercise with no critical findings does not replace production monitoring or demonstrate regulatory compliance. The NIST secure development profile is also intended for AI system acquirers and builds security into the development lifecycle.
Frequently asked questions
Related terms
- Prompt injectionPrompt injection is an attack that places deceptive instructions in an AI system's inputs to alter its responses or actions in ways nobody has authorized.
- AI jailbreakA linguistic technique that bypasses an AI model's safety rules, distinct from prompt injection.
- Evals (model evaluation)Evals are systematic assessments that measure an AI system against defined cases and criteria, helping teams compare versions and understand its risks.
- AI governanceAI governance sets the rules, responsibilities and controls an organization uses to select, operate and monitor its artificial intelligence systems over time.
If it is a risk for your company, I will tell you where to start without selling you fear.
See security and compliance