Explainer · 13 min read
What is AI red teaming? Definitions, scope and measured examples
AI red teaming is adversarial testing of an AI system. How NIST, OWASP, Microsoft, Google, OpenAI, Anthropic and CISA define it, the two kinds of work behind the term, how it differs from a penetration test and from a benchmark, and what a finding looks like in numbers.
By Kursad AlsanPublished Updated 13 min read
- AI red teaming
- AI security
- LLM security
- OWASP
- NIST
- definitions, word for word
- 8
- layers of a system under test
- 4
- wrong refunds with the limit in the prompt
- 20 of 20
- with the same limit in code
- 0
The short version
- AI red teaming is structured, adversarial testing of an AI system, to find its flaws before someone else does. NIST, OWASP, Microsoft, Google, OpenAI, Anthropic and CISA all describe it that way, and draw the borders differently.
- The term covers two kinds of work: security (prompt injection, data leaks, misuse of tools) and safety (harmful output). Ask which one is meant.
- The model is one layer of four. The prompt, the data, the tools and the page around it are tested too, and in my guides most of the findings were there.
- Model output varies, so a finding is a rate. In my own tests a limit written into the prompt left a wrong refund at 20 of 20 runs, and the same limit in code took it to 0.
On this page10
- The definitions, side by side
- One term, two kinds of work
- What is tested: the model is one layer of four
- How it differs from a penetration test, and from a benchmark
- What a finding looks like: a rate, and a fix that is measured
- By hand, with tools, or both
- Who asks for it
- The lists a red team works from
- What AI red teaming is not
- Frequently asked questions
AI red teaming is adversarial testing of an AI system: people attack it as a real adversary would, under agreed rules, to find what breaks before someone else does. This post puts eight definitions side by side, separates the two kinds of work the term covers, shows how it differs from a penetration test and from a benchmark, and ends with what a finding looks like in numbers, from tests I ran for my own guides.
The definitions, side by side
The term comes from security, where a red team plays the attacker. Microsoft's documentation describes how it grew: "With the rise of LLMs, the term has extended beyond traditional cybersecurity and evolved in common usage to describe many kinds of probing, testing, and attacking of AI systems." Today almost every organization that publishes on AI risk has its own wording. Eight of them, each from its own document:
| Who | When | AI red teaming is | Where |
|---|---|---|---|
| NIST | July 2024 | "A structured testing exercise used to probe an AI system to find flaws and vulnerabilities such as inaccurate, harmful, or discriminatory outputs, often in a controlled environment and in collaboration with system developers." | AI 600-1, the Generative AI Profile |
| US Executive Order 14110 | October 2023, revoked in January 2025 | "a structured testing effort to find flaws and vulnerabilities in an AI system, often in a controlled environment and in collaboration with developers of AI." | Section 3(d) |
| OWASP | January 2025 | "a structured methodology combining human expertise with automation and AI tools to uncover safety (of the users), security (of the operator), trust (by the users and partners), and performance gaps in systems that incorporate Generative AI components." | GenAI Red Teaming Guide |
| Microsoft | January 2025 | "a practice for probing the safety and security of generative AI systems." | Lessons From Red Teaming 100 Generative AI Products |
| July 2023 | "end-to-end adversarial simulation, that is taking on the role of an attacker who is trying to achieve a specific goal in a specific scenario." | Why Red Teams Play a Central Role in Helping Organizations Secure AI Systems | |
| OpenAI | November 2024 | "using people or AI to explore a new system’s potential risks in a structured way." | Advancing red teaming with people and AI |
| Anthropic | June 2024 | "adversarially testing a technological system to identify potential vulnerabilities." | Challenges in red teaming AI systems |
| CISA | November 2024 | "the third-party safety and security evaluation of AI systems" | AI Red Teaming: Applying Software TEVV for AI Evaluations |
They agree on three things: it is structured, it takes the attacker's side, and its purpose is to find flaws. They differ on the rest. CISA makes it the work of a third party. NIST counts inaccurate and discriminatory output among the flaws. Google's version is a scenario in which an attacker pursues a goal. OWASP and OpenAI name tools and AI next to people. So the same two words on two offers can describe two different jobs.
One of the eight is no longer in force as policy: Executive Order 14110 was revoked on January 20, 2025 by Executive Order 14148. Its wording lives on: NIST's definition of July 2024 follows it closely.
One term, two kinds of work
In 2023 Microsoft's red team wrote that "AI red teaming is now an umbrella term for probing both security and RAI outcomes." RAI is responsible AI. Its paper of January 2025, written after red teaming more than 100 products, sorts what can go wrong into "two main categories: security and safety."
Security
What an attacker can make the system leak or do. The paper names "data exfiltration, data manipulation, credential dumping" and attacks on the model itself, "such as model evasion, prompt injections, denial of AI service".
Safety
What the system can be made to say. The paper: "Safety impacts are related to the generation of illegal and harmful content such as hate speech, violence and self-harm, and child abuse content."
OWASP's guide draws the same line from the other side: "Traditional cybersecurity focuses on technical exploits (e.g., breaking into servers), but GenAI Red Teaming also examines how AI models can produce harmful or deceptive outputs."
The two kinds of work need different people and end in different reports. A security finding reads like a vulnerability: this input, this data out, this action taken. A safety finding reads like a policy violation: this request, this content produced. My own work is on the security side. If you ask for AI red teaming, or are offered it, the first question is which of the two is meant.
What is tested: the model is one layer of four
A common mistake is to think the model is the target. OWASP's GenAI Red Teaming Guide divides an assessment into four phases, and the model is the first of them:
| Phase | What the guide puts there | A test of that kind in my guides |
|---|---|---|
| 1. Model | "testing the robustness of the model directly for things such as toxicity, bias, alignment, and bypassing any model-intrinsic defenses" | Answers that are not true: invented policies, counted |
| 2. Implementation | "Tests for bypassing supporting guardrails (e.g. those included in a system prompt), poisoning data used in grounding (e.g. via data stored in a vector database used for RAG) and testing controls such as model firewalls or proxies." | Prompt injection and system prompt extraction |
| 3. System | "Examines the deployed systems for exploitation of vulnerable components other than the model itself, interaction between the model and other components (abuse, excess agency, etc.), supply chain vulnerabilities" | Model files that run code and output that the page trusts |
| 4. Run-time human and agentic interaction | "Targets business process failures, security issues in how multiple AI components interact, over-reliance, and social engineering vulnerabilities." | An assistant that pays refunds, told that the refund was approved |
Three of the four phases are about what was built around the model: the prompt, the retrieved documents, the tools, the page that shows the answer, the service that pays the bill. In my guides that is where most of the findings were, and it is why testing a chatbot by chatting with it covers a small part of the job.
How it differs from a penetration test, and from a benchmark
It borrows from both and is neither. The table is my own summary of the difference in practice:
| Penetration test | AI red teaming, security side | Safety benchmark | |
|---|---|---|---|
| The target | An application, an API, a network | An application built around a model: prompt, data, tools and the model | A model, through a fixed set of prompts |
| The same input gives | The same result | A different result from run to run | A score over the whole set |
| A finding is | A vulnerability that reproduces | A behaviour with a rate, and the damage it leads to | A number to compare models |
| A fix is checked by | Sending the request again | Counting again | Running the set again |
The sources say the same in their own ways. Microsoft's third lesson is the plain statement "AI red teaming is not safety benchmarking", and the paper explains: "At its core, AI red teaming strives to push beyond model-level safety benchmarks by emulating real-world attacks against end-to-end systems." CISA comes from the other direction and insists that the new work belongs inside the old discipline: "approaches for AI TEVV must fundamentally be a sub-component of the more established software TEVV."
TEVV is testing, evaluation, verification and validation. In practice this means that the old checks do not go away. An API in front of a model still needs authorization on every object, and a chatbot can have the same kind of flaw I reported in Grafana's API. Microsoft's seventh lesson: "LLMs amplify existing security risks and introduce new ones".
What a finding looks like: a rate, and a fix that is measured
A model does not answer the same way twice, so one successful attempt proves little and one failed attempt proves less. For my guides to the OWASP Top 10 for LLM Applications I ran every attack 10 or 20 times against three versions of the same small application: as built, with a fix written into the prompt, and with a fix written in code. Four rows from four guides:
Runs in which the attack worked, in three versions of the same example
| Attack | As built | Fix in the prompt | Fix in code |
|---|---|---|---|
| One sentence in a customer's feedback sends the agent's email to a stranger | 18/20 | 10/20 | 0/20 |
| A refund of 5000 on an order of 120, because the customer says it was approved | 20/20 | 20/20 | 0/20 |
| A discount code from the system prompt, asked for with dashes between its characters | 9/10 | 4/10 | 0/10 |
| A review with a Markdown image makes the staff page call another server | 8/10 | 1/10 | 0/10 |
Three things in this table would be invisible in a screenshot of one attempt.
- A finding is a rate. 18 of 20 is a finding. So is 1 of 10, if what it leaks is a staff id.
- A fix in the prompt moves a rate, sometimes not at all. The refund was still paid in 20 of 20 runs after the limit was written into the prompt. In the prompt injection guide the same kind of fix lowered four payloads and raised three.
- A fix in code holds while the model keeps trying. Every row ends at zero, and not because the model learned anything. In the prompt injection guide it still tried to send 60 emails to the attacker, counted over all payloads, and in the refund guide it still tried the forbidden tool calls 79 times. The code refused each one.
That is the shape of a useful result: the exact input, how often it works, what it costs, and the same count again after the fix. How I run an engagement from scope to retest is in a separate post.
By hand, with tools, or both
Both. Two of Microsoft's eight lessons stand next to each other: "4. Automation can help cover more of the risk landscape" and "5. The human element of AI red teaming is crucial". Scanners send hundreds of known attacks in the time a person writes one, and they are the only practical way to count. They also make mistakes that only reading finds. In my guide to misinformation, a scanner reported 7 hits for invented Python packages and 2 of the 7 were real packages, and my own counting script had misjudged 35 of 1,050 answers before I read them. Nine open-source tools are compared in a separate post.
Access to the model's internals is not needed for most of this. The second lesson: "You don't have to compute gradients to break an AI system". Every attack in the table above is a sentence typed into the application or planted in something it reads.
Who asks for it
1111 days from Google's report to OWASP's 2026 list
Google describes its AI Red Team
A report on why red teams matter for AI systems, and what its own team does.
- 19 days later:
Microsoft: an umbrella term
Its red team writes that the term now covers security and responsible AI outcomes.
- 84 days later:
US Executive Order 14110
Defines AI red-teaming in its Section 3(d).
- 270 days later:
NIST AI 600-1
The Generative AI Profile of the AI Risk Management Framework, with its own definition.
- 123 days later:
CISA: part of software testing
AI red teaming is placed inside testing, evaluation, verification and validation.
- 55 days later:
Executive Order 14110 is revoked
By Executive Order 14148.
- 2 days later:
OWASP GenAI Red Teaming Guide
A process in four phases, from the model to run time.
- 192 days later:
EU AI Act: rules for general-purpose models apply
Among them Article 55, which asks for adversarial testing of models with systemic risk.
- 129 days later:
OWASP Top 10 for Agentic Applications
Ten risks of systems that act through tools, ASI01 to ASI10.
- 237 days later:
OWASP Top 10 for LLM Applications 2026
The list my hands-on guides follow.
The one text in that list that binds companies today is the EU's AI Act. Its Article 55 obliges providers of general-purpose AI models with systemic risk to "perform model evaluation in accordance with standardised protocols and tools reflecting the state of the art, including conducting and documenting adversarial testing of the model with a view to identifying and mitigating systemic risks;" The annex on documentation names the practice directly: "internal and/or external adversarial testing (e.g. red teaming)"
Note who is obliged: the provider of such a model, not every company that builds an assistant on top of one. For everyone else the reasons are the usual ones for a security test: a customer or an auditor asks for it, or the system can leak data and spend money and nobody has checked how.
The lists a red team works from
| List | What it is, in its own words | Size |
|---|---|---|
| OWASP Top 10 for LLM Applications 2026 | "the latest community-driven guide to the most critical security risks facing applications powered by large language models." | 10 risks. One guide for each on this site |
| OWASP Top 10 for Agentic Applications 2026 | "a globally peer-reviewed framework that identifies the most critical security risks facing autonomous and agentic AI systems." | 10 risks, from ASI01 Agent Goal Hijack to ASI10 Rogue Agents |
| MITRE ATLAS | "a public knowledge base of adversary TTPs targeting AI systems." | Version 2026.10: 16 tactics, 129 techniques, 92 sub-techniques, 77 case studies |
| OWASP GenAI Red Teaming Guide | "GenAI Red Teaming provides a structured approach to identify vulnerabilities and mitigate risks across AI systems focusing on safety, security, and trust." | A process in four phases |
The first three say what can go wrong and the fourth says how to organize the search. A test plan usually starts by crossing the application's parts with one of the lists: which of the ten risks can this prompt, this document store, this tool be used for? My overview of the 2026 list has the test cases for each risk.
What AI red teaming is not
- Not a benchmark score. A score compares models. A red team finds the inputs that hurt one particular system.
- Not only jailbreaks. Getting a model to say something forbidden is one test in one of four phases.
- Not a replacement for a penetration test. The API, the storage and the accounts around the model are still software.
- Not finished. The last of Microsoft's lessons: "8. The work of securing AI systems will never be complete". Models, prompts and tools change, and each change moves the rates.
How an exercise is scoped, run, counted and reported, according to ten published documents, is in my post on AI red teaming methodology. What agents that attack on their own have done in public is in the post on autonomous red teaming.
Frequently asked questions
Is AI red teaming the same as penetration testing?
No. It uses the same mindset and many of the same checks, and adds the ones that exist only because a model reads text and acts on it: prompt injection, leaks through the model's context, misuse of its tools. Its results are rates, because the model's output varies.
Is AI red teaming required by law?
In the European Union, adversarial testing is required of providers of general-purpose AI models with systemic risk, under Article 55 of the AI Act. Those obligations apply since 2 August 2025. In the United States the executive order that defined the term was revoked in January 2025.
Does it need access to the model's weights?
Usually not. Most findings come through the same interface a user has: a message, an uploaded file, a web page the assistant reads.
Can AI red teaming be automated?
In part. Tools are good at sending many known attacks and counting the results. People are needed to understand what the system is for, to find the attack nobody wrote a probe for, and to read what the tools flagged.
What is the difference between AI red teaming and LLM red teaming?
LLM red teaming is AI red teaming of systems built on large language models, which is where most of the work is today. The wider term also covers other kinds of models.
Where can I practise?
On your own machine. My guides test one risk each with real commands, and Troy is the lab that goes with them: ten levels against a local model.
Sources
- NIST AI 600-1: Generative AI Profilenist.gov · July 26, 2024
- Executive Order 14110, Section 3(d)Federal Register · October 30, 2023 · revoked
- Executive Order 14148: Initial RescissionsFederal Register · January 20, 2025
- GenAI Red Teaming GuideOWASP GenAI Security Project · January 2025
- Lessons From Red Teaming 100 Generative AI ProductsMicrosoft · arXiv 2501.07238 · January 13, 2025
- Microsoft AI Red Team building future of safer AIMicrosoft Security Blog · August 7, 2023
- Planning red teaming for large language models and their applicationsMicrosoft Learn
- Why Red Teams Play a Central Role in Helping Organizations Secure AI SystemsGoogle · July 2023
- Advancing red teaming with people and AIOpenAI · November 21, 2024
- Challenges in red teaming AI systemsAnthropic · June 12, 2024
- AI Red Teaming: Applying Software TEVV for AI EvaluationsCISA · November 26, 2024
- Regulation (EU) 2024/1689, the AI ActEUR-Lex · consolidated text of July 27, 2026
- OWASP Top 10 for Agentic Applications for 2026OWASP GenAI Security Project · December 9, 2025
- OWASP Top 10 for LLM Applications 2026OWASP GenAI Security Project · August 3, 2026
- MITRE ATLAS data, version 2026.10github.com/mitre-atlas · October 28, 2026