AI red teaming is people, or tools, attacking an AI system on purpose to find harmful, unsafe or policy-breaking behavior before users or attackers do. It differs from scoring a fixed evaluation set and from a penetration test. It finds some failures, cannot show there are none, and its findings go stale when the model, prompt or tools change.
What is AI red teaming?
AI red teaming is attacking an AI system on purpose, as a determined user or an attacker would, to find harmful, unsafe or policy-breaking behavior before real ones do. The term comes from security, where a red team plays the attacker.
Microsoft’s documentation separates the two uses. Traditional red teaming “involves exploiting the cyber kill chain” to test for security vulnerabilities. With generative AI, the term AI red teaming “has been coined to describe probing for novel risks (both content and security related)”, which means simulating “an adversarial user who is trying to cause your AI system to misbehave in a particular way”.
What does a red team try? The OWASP Top 10 for LLM Applications 2026 lists prompt injection first, and its entry names two forms. In direct injection, “a user, or an attacker with the user’s access path, supplies input that changes model behavior in undesired ways”. In indirect injection, the model “ingests content from an external source (a web page, a document, an email, a tool response…) that contains data which acts as prompt injection”. The entry also says “jailbreaking is the subset of prompt injection where the attacker’s goal is to make the model violate its safety protocols”. Microsoft’s agent scans test the indirect form, whether an agent “can be manipulated by malicious instructions hidden in external data sources, such as emails or documents”.
Public frameworks exist for the work. The OWASP GenAI Security Project runs an AI Red Teaming initiative that sets out to establish guidelines for red teaming and evaluating large language models. MITRE ATLAS is described by its maintainers as a public knowledge base of adversary tactics, techniques and procedures aimed at AI systems.
How does red teaming differ from evaluation and from a penetration test?
The table is our reading of the three. It is a comparison for a buyer, not a sourced standard.
| AI red teaming | Evaluation on a fixed set | Penetration test | |
|---|---|---|---|
| Goal | Find behavior nobody planned for | Measure quality and compare runs | Find security vulnerabilities |
| Who does it | People with attacker skills, or attack tools | The team that owns the feature | Security testers |
| Input | Open-ended: new attacks, invented personas | A fixed set of cases | Attack paths against code, configuration and infrastructure |
| Output | Findings with the inputs that caused them | A score per case and per run | A list of vulnerabilities and fixes |
| When to repeat | After a change of model, prompt, tools or data access | On each change, in CI | On a schedule and after major releases |
An evaluation can use an off-the-shelf set. The UK AI Security Institute’s Inspect documentation lists a collection of over 200 pre-built evaluations that run on any model. Such a set tests what someone already thought to ask. Red teaming exists to look for what nobody thought to ask.
Does your AI feature need red teaming, or is an evaluation set enough?
Our rule of thumb: answer three questions about the feature.
- Who can reach it? A feature open to the public needs more adversarial testing than a tool used by five trained colleagues.
- What can it do? A model that only writes text can embarrass you. A model with tools can send an email, read a record or change one. The more it can do, the more a hostile input can cause.
- What does a failure cost? Count the legal, safety, money and reputation cost of one bad output reaching one user.
If the answers are “internal, text only, cheap”, a good evaluation set may be enough. If they are “public, has tools, expensive”, plan red teaming before release.
If an evaluation set is where you start, AI testing is the service that gives you an evaluation dataset for your AI feature, a measured baseline of how it behaves today, and checks that run in your CI on every change.
The law touches the question, narrowly. Article 55 of the EU AI Act obliges providers of general-purpose AI models with systemic risk to perform model evaluation “including conducting and documenting adversarial testing of the model with a view to identifying and mitigating systemic risks”. The Act’s technical documentation annex also refers to “internal and/or external adversarial testing (e.g. red teaming)”. Those duties sit on model providers, so check with counsel whether they reach you.
In-house, a vendor or automated attack tools: what does each find and miss?
Each has a use. The statements below are our judgment.
- Your own team knows the product and its rules, so it finds policy breaks quickly. It can share your blind spots.
- An outside team brings attacker habits and fresh eyes. It starts without product knowledge and costs more time to brief.
- Automated tools run a large number of probes cheaply and repeat them on each change. Microsoft says its red teaming agent helps “accelerate the identification and evaluation of known risks at scale”. Known risks is the limit: an automated scan tries the attacks it already has.
Microsoft’s agent also reports an Attack Success Rate, which its documentation says “calculates the percentage of successful attacks over the number of total attacks”. The same page says generative models evaluate the rate, so “there’s always a chance of false positives”. Our view: treat any such figure as a count for one tool and one set of attacks, not as a measure of safety.
How do you make the findings last?
Our view: a red-team round is a snapshot, so turn each successful attack into a regression case: the input, the failure and the expected safe behavior. Add those cases to the suite that runs on each model, prompt or tool change. Our guides on testing AI agents, testing an MCP server and automating a chatbot test cover where such cases fit. A model swapped by its vendor can bring old failures back, which is the situation our model drift page describes.
For the classic side of the work, see our overview of security testing tools. When a judge model scores attack results, check it as the LLM-as-a-judge page describes.
What does AI red teaming not solve?
A red-team round finds some failures. It cannot show there are none, and its findings expire when the model, prompt or tools change. Unless the findings become repeatable regression cases, the same failure returns. It does not replace an evaluation set, and it is not a safety or compliance certificate.
What does Zapple.Tech do about it?
If you are not sure what your current tests would catch on an AI feature, start with the evidence. Zapple.Tech starts with a one-week QA audit of one product area. It looks at its tests, pipeline and release process, and ends in a written report on what is at risk and what to fix first, plus a pilot plan you can run with Zapple.Tech or without it. Read more on the QA audit and assessment page.
Tell us about your AI feature in the form below.
How does AI red teaming relate to other terms?
- AI testing
AI testing is the testing of software that uses machine learning or large language models, whose outputs vary and cannot always be checked against one fixed answer. Our AI testing services build an evaluation dataset for your AI feature, a baseline of how it behaves today, and checks that run in your CI.
- LLM evaluation
LLM evaluation is the practice of measuring how a language-model feature or agent behaves on a defined set of tasks, using written success criteria and scores. It does not by itself show the feature is correct. Our AI agent testing builds a task set, a measured baseline and a suite that scores each model, prompt or tool change.
- Groundedness
Groundedness tells you whether an AI answer is supported by the source material the model was given, such as retrieved documents or a tool result. A grounded answer adds nothing the sources do not say. It does not tell you whether the sources are right, so you still need a check on correctness.
- Chatbot testing
Chatbot testing is checking that an AI chatbot answers correctly, stays within your policies and tone, and hands over to a person when it should, across whole conversations rather than single prompts. The AI chatbot testing service tests it the way customers use it and leaves you a conversation suite that reruns on every change.
Sources
- Microsoft Learn, AI Red Teaming Agent, Microsoft Foundry (ms.date 2026-08-19) (read 5 December 2026)
- OWASP GenAI Security Project, Initiatives: AI Red Teaming (current page) (read 5 December 2026)
- OWASP GenAI Security Project, Top 10 for LLM Applications 2026 (newest edition) and LLM01:2026 Prompt Injection (read 5 December 2026)
- MITRE ATLAS data repository, README (ATLAS: Adversarial Threat Landscape for AI Systems) (read 5 December 2026)
- EUR-Lex, Regulation (EU) 2024/1689 (AI Act), Article 55 and Annex XI, consolidated version of 2026-07-27 (as amended by Regulation (EU) 2026/1744) (read 5 December 2026)
- UK AI Security Institute, Inspect documentation (current docs) (read 5 December 2026)