We use analytics to count visits and form use. It is on unless you reject it. We show no ads on this site.

Glossary

AI red teaming

Published . Last updated . Published by Zapple.Tech, founded by the founders of CodeceptJS and Codeception, open-source testing frameworks.

Published
Updated
Related service
AI testing
Definition

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.

  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 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.

AI red teaming: who can reach the feature, what it can do and what a failure costs decide whether an evaluation set may be enough or red teaming is planned before release; each finding, with the input that caused it, becomes a regression case

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.

  • 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.

All terms in the glossary

Test AI

AI testing

AI testing services for LLM features, chatbots, agents and RAG. Evaluation datasets, regression baselines and CI checks. Start with a one-week baseline.

See the service

Questions about AI red teaming

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.

Request a QA audit quote

Tell us what you ship and what worries you.

What happens after you send this

  1. You send the form: your situation and what you need tested, then your name and work email.
  2. Within one business day, we reply with a suggested first step, its scope, timeline and a quote.
  • Fixed scope
  • You decide after each step
  • The tests live in your repository
  • An NDA signed before access

“They helped us to close the positions and consult our team how to proceed further. High-quality quick feedbacks with the deep checking of the required tasks, professional approach, great understanding of the company's technologies and product, detailed reports.”

Kristina Lavrentieva, Manager at keepgo.com, Israel
  • Rated 4.9 out of 5 on Clutch, from 7 client reviews
  • 42 completed test automation and infrastructure projects
  • Founded by the founders of CodeceptJS and Codeception, open-source testing frameworks

Request a QA audit quote

    What is closest to your situation?
    Optional. The product, the platforms, how often you release, what broke last.

    You decide after our reply whether to go ahead.

    Prefer to talk first? Book a call

    One-week QA audit · written report

    Request a QA audit quote