AI red teaming is adversarial testing performed with permission to uncover how AI systems fail before hostile actors exploit them. Unlike traditional red teaming that targets fixed infrastructure, AI red teaming addresses probabilistic systems where the same input can produce different outputs and weaknesses often lie in language interpretation. The field has matured from academic research to mainstream practice with standardized frameworks (OWASP Top 10 for LLM Applications, MITRE ATLAS, NIST AI Risk Management Framework) and regulatory requirements like the EU AI Act mandating adversarial testing for capable AI models.
- Fundamental difference from traditional red teamingTraditional red teaming targets deterministic systems with fixed weaknesses in networks and applications, where an exploit either works or does not. AI red teaming addresses probabilistic systems where the same input produces different outputs on different days, and weaknesses typically involve language interpretation rather than code flaws or misconfigurations. Results must be repeated and measured rather than confirmed as single successes, requiring different testing methodology and reporting practices.
- Core areas AI red teams testTesting covers prompt injection (user or fetched content overriding instructions), data exposure (revealing hidden instructions or unauthorized access), agent and tool abuse (steering assistants into unintended actions), retrieval and memory tampering, output handling (whether model output is trusted without verification), safety behavior (whether models produce restricted content), cost and availability attacks, and supply chain risks. These map directly to the OWASP Top 10 for LLM applications, which serves as the primary scoping checklist for the field.
- Structured engagement methodologyEngagements follow a formal process: establishing written scope and rules defining in-scope systems and what constitutes harm, mapping the system architecture from user input through model to tools and data, threat modeling to identify attackers and objectives, combining manual testing (finding unexpected failures) with automated runs (measuring weakness frequency), reporting findings with impact and reproducible steps, and retesting after fixes and model changes. Measurement is critical because results vary; testers report success rates across multiple attempts and settings.
- Required skills are layeredAI red teamers need understanding of how language models work (tokens, context windows, system prompts, temperature settings), how AI applications are built (retrieval, embeddings, agents, tool calling), web and API security concepts that apply around models (authentication, access control, injection, SSRF), and scripting capability (Python is standard) for test automation. Machine learning research background is not required; many practitioners transition from web application testing or bug bounty work by learning model-specific concepts.
- Field maturation through shared frameworksThe field evolved from academic adversarial examples against image classifiers in the mid-2010s through Microsoft's 2018 AI red team establishment, MITRE's 2021 ATLAS catalog, the DEF CON 31 public red teaming event in 2023, OWASP's LLM Top 10, and regulatory requirements in the EU AI Act. By 2025, with OWASP's GenAI Red Teaming Guide published and Microsoft sharing findings from testing 100+ generative AI products, practitioners now work from standardized references similar to web security's established baselines.
- Automation and human judgment interactionMicrosoft's experience from testing over 100 generative AI products demonstrated that automation helps cover more ground and measure weakness frequency at scale, but human judgment remains essential for finding unexpected failures and directing testing toward meaningful threats. This requires combining manual adversarial testing with automated runs rather than relying on either approach alone.
- Distinct from AI safety evaluationSafety evaluation measures a model against predefined categories of harm at scale using systematic methodology, while red teaming is adversarial and open-ended, looking for failures nobody anticipated in advance. Organizations employ both approaches complementarily; red teaming finds novel failure modes that inform safety evaluation frameworks.
Bottom line: AI red teaming requires testing both the AI model layer (prompt injection, data exposure, safety behavior) and the application layer around it (agent tool abuse, output handling, supply chain risks), using standardized frameworks like OWASP Top 10 for LLM applications, with success measured through repeated testing and automation supplemented by human adversarial thinking. Beginning practitioners should focus on understanding how models process language and application architecture rather than m
AI red teaming is the practice of attacking an AI system on purpose, with permission, to find out how it fails before someone hostile does. The tester behaves like an adversary: probing the model, the data it reads and the tools it can use, then reporting what went wrong and how to fix it.
This guide covers what AI red teamers actually test, how an engagement runs from start to finish, how the work differs from traditional red teaming, and how to build the skill.
What makes it different from traditional red teaming
A traditional red team attacks networks, applications and people to reach a goal such as domain admin or a crown-jewel database. An AI red team works on a system whose behaviour is not fixed. The same input can produce different output on different days, and the weakness is often in how the system interprets language, not in a line of code.
| Traditional red team | AI red team | |
|---|---|---|
| Target | Networks, hosts, applications, staff | Models, prompts, retrieval data, agents and tools |
| Typical weakness | Misconfiguration, missing patch, weak credential | The model follows the wrong instruction or reveals what it should not |
| Behaviour | Deterministic: an exploit works or it does not | Probabilistic: results must be repeated and measured |
| Fix | Patch, reconfigure, remove access | Redesign permissions, add controls around the model, retest |
| Also in scope | Rarely | Harmful or misleading output, bias and safety failures |
The two overlap. An AI application still runs on servers, uses APIs and stores data, so ordinary web and cloud weaknesses apply as well.
Where the field came from
Testing AI systems by attacking them is older than chatbots. Researchers were fooling image classifiers with altered inputs in the mid-2010s, and Microsoft set up a dedicated AI red team in 2018. The work became mainstream once language models reached the public.
- 2021. MITRE published ATLAS, a catalogue of real attacks on machine learning systems, modelled on its ATT&CK framework.
- 2023. Thousands of people tested models from the major AI labs at the DEF CON 31 Generative Red Team event, the largest public exercise of its kind at the time. OWASP released its first Top 10 for LLM applications the same year.
- 2024. The EU AI Act became law. It requires adversarial testing for the most capable general-purpose models.
- 2025. OWASP published its GenAI Red Teaming Guide, and Microsoft shared what it learned from red teaming more than 100 generative AI products. One of its findings: automation helps cover more ground, but human judgement is still needed.
The result is a field with shared references. A tester today works from the OWASP Top 10 for LLM Applications, MITRE ATLAS and the NIST AI Risk Management Framework, in the way a web tester works from the OWASP Top 10.
What an AI red team tests
- Prompt injection. Whether text from a user or from fetched content can override the application’s instructions. See our prompt injection guide.
- Data exposure. Whether the system reveals hidden instructions, other users’ data or documents beyond the user’s access.
- Agent and tool abuse. Whether an assistant with tools can be steered into actions its user did not ask for.
- Retrieval and memory. Whether planted content in a knowledge base or long-term memory changes later answers.
- Output handling. Whether model output is trusted by a browser, database or shell without checks.
- Safety behaviour. Whether the model can be led into producing content its owner has ruled out.
- Cost and availability. Whether a user can drive up usage or tie up the service.
- Supply chain. Where models, datasets and plugins came from and whether they can be trusted.
These map closely to the OWASP Top 10 for LLM applications, which is the most widely used checklist for scoping this work.
How an engagement runs
- Scope and rules. Agree in writing which systems are in scope, what counts as harm, what data may be touched and who to call if something breaks.
- Understand the system. Draw the path from user input to model to tools and data. Note every place outside content enters and every action the system can take.
- Threat model. Decide who would attack this system and what they would want: data, money, reputation damage, free compute.
- Test. Work through each input against each harm. Combine manual testing, which finds the unexpected, with automated runs, which measure how often a weakness appears.
- Measure. Because results vary, report rates: how many attempts in how many succeeded, under which settings.
- Report. For each finding give the impact, the evidence, steps to reproduce and a fix the team can act on.
- Retest. Confirm the fix, and repeat after model or prompt changes.
Skills an AI red teamer needs
- How language models work. Tokens, context windows, system prompts, temperature, and why a model follows one instruction over another.
- How AI applications are built. Retrieval, embeddings, agents, tool calling and protocols such as MCP.
- Web and API security. Authentication, access control, injection and server-side request forgery all reappear around the model.
- Enough scripting to automate. Python is the common choice for running tests at volume.
- Clear writing. A finding nobody understands does not get fixed.
You do not need a machine learning research background to start. Many working AI red teamers come from web application testing or bug bounty and learn the model-specific parts on top.
How to start
- Learn the basics of how models process a prompt. Our AI and LLM hacking course begins there.
- Practise on systems built to be attacked. Start with a direct prompt injection lab, then indirect injection, then an agent with tools. The full set is on the labs page.
- Read the OWASP list and tie each risk to something you have done by hand.
- Write up what you find, as if for a client. The report is the product.
- Prove it. The SE-ARTCP certification is a hands-on exam in AI red teaming.
For companies
If your teams are shipping AI features, the people who build them need to see these failures first-hand. A short exercise on a safe range teaches more than a policy document. SecurityElites runs team training and red team days on the same labs.
Frequently asked questions
Is AI red teaming legal?
Yes, when you have permission from the system’s owner or you are using a range built for practice. Testing someone else’s AI product without permission is not.
Is it only about jailbreaking chatbots?
No. Jailbreaking is one small part. Most serious findings involve data exposure and agents taking actions, which come from how the application is built around the model.
Do I need to know machine learning?
You need to understand how models behave, not how to train one. Application security experience is the more useful starting point.
How is it different from AI safety evaluation?
Safety evaluation measures a model against defined harms, often at scale. Red teaming is adversarial and open-ended: the tester looks for failures nobody listed in advance. Organisations use both.
How often should a system be tested?
Before launch, and again whenever the model, the prompts, the tools or the data sources change.
