# AI red teaming

> AI Red Teaming: What It Is and When You Need It. Canonical page: <https://zapple.tech/glossary/ai-red-teaming/>

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](https://learn.microsoft.com/en-us/azure/foundry/concepts/ai-red-teaming-agent) 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](https://genai.owasp.org/top-10-for-llm-applications-2026/) lists prompt injection first, and its [entry](https://genai.owasp.org/llm2026/llm012026-prompt-injection/) 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](https://genai.owasp.org/initiatives/) runs an AI Red Teaming initiative that sets out to establish guidelines for red teaming and evaluating large language models. [MITRE ATLAS](https://github.com/mitre-atlas/atlas-data) 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](https://inspect.aisi.org.uk/) 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.

1. **Who can reach it?** A feature open to the public needs more adversarial testing than a tool used by five trained colleagues.
2. **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.
3. **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](/services/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](https://eur-lex.europa.eu/legal-content/EN/TXT/HTML/?uri=CELEX:02024R1689-20260727) 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](/blog/types-of-automation-testing/how-to-test-ai-agents/), [testing an MCP server](/blog/types-of-automation-testing/how-to-test-mcp-server/) and [automating a chatbot test](/blog/types-of-automation-testing/how-do-you-automate-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](/glossary/model-drift/) page describes.

For the classic side of the work, see our overview of [security testing tools](/blog/types-of-automation-testing/10-types-of-security-testing-tools/). When a judge model scores attack results, check it as the [LLM-as-a-judge](/glossary/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](/services/audit-and-assessment/) page.

Tell us about your AI feature in the form below.

## FAQ

### What is AI red teaming?

AI red teaming is probing an AI system on purpose, by simulating a user who is trying to make it misbehave, to find harmful or unsafe behavior. Microsoft's documentation says the term was coined for probing novel content and security risks that generative AI systems present.

### What is the difference between AI red teaming and penetration testing?

A penetration test looks for security vulnerabilities in a system, in its code, configuration and infrastructure. AI red teaming adds content risks, such as harmful or false output, and attacks the model's behavior through its inputs. Our view is that an AI feature may need both.

### What is the difference between red teaming and evaluation?

In our reading, an evaluation scores a system on a fixed set of cases you chose, so you can compare runs. Red teaming searches for cases nobody chose, by thinking like an attacker. Evaluation measures what you already know to ask. Red teaming looks for what you do not.

### Is AI red teaming required by law?

The EU AI Act names adversarial testing for providers of general-purpose AI models with systemic risk. Its Article 55 requires them to conduct and document it. Whether that covers a product that only uses such a model is a legal question for your counsel.

### How often should you red team an AI system?

There is no sourced interval. Our rule of thumb: before the first release, and again after a change of model, prompt, tools or data access. Turn each finding into a repeatable test so that the same failure does not return unnoticed.

## Sources

- [Microsoft Learn, AI Red Teaming Agent, Microsoft Foundry (ms.date 2026-08-19)](https://learn.microsoft.com/en-us/azure/foundry/concepts/ai-red-teaming-agent)
- [OWASP GenAI Security Project, Initiatives: AI Red Teaming (current page)](https://genai.owasp.org/initiatives/)
- [OWASP GenAI Security Project, Top 10 for LLM Applications 2026 (newest edition) and LLM01:2026 Prompt Injection](https://genai.owasp.org/llm2026/llm012026-prompt-injection/)
- [MITRE ATLAS data repository, README (ATLAS: Adversarial Threat Landscape for AI Systems)](https://github.com/mitre-atlas/atlas-data)
- [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)](https://eur-lex.europa.eu/legal-content/EN/TXT/HTML/?uri=CELEX:02024R1689-20260727)
- [UK AI Security Institute, Inspect documentation (current docs)](https://inspect.aisi.org.uk/)
