Best AI Red Teaming CompaniesAn independent guide to AI red teaming vendors

Home / AI red teaming: what it is and how it works

AI red teaming: what it is and how it works

AI red teaming is adversarial testing of models, LLM applications and agents. Testers attack the system the way a hostile user, a poisoned document or a misused tool would, then report what broke and how to fix it. This guide covers the definition, the attack classes, the three levels of testing and how an engagement runs.

Last reviewed November 9, 2026. 22 sources linked at the end.

The definition

NIST's Generative AI Profile defines AI red-teaming as "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" (NIST AI 600-1, July 2024). The EU AI Act uses the term "adversarial testing" for the same idea when it sets duties for the largest general-purpose models. We cover that in AI red teaming requirements.

LLM red teaming is the same practice applied to systems built on large language models. In 2026 that is most of the market: support chatbots, RAG assistants over internal documents, coding copilots and agents that call APIs.

Two points from NIST shape how buyers should think about it. Red teaming can happen before or after release. And the quality of the output "is related to the background and expertise of the AI red team itself." The team matters more than the tool.

How it differs from pen testing and from evals

Microsoft notes that "red teaming" used to mean adversarial attacks to test security. With LLMs it also covers harms like hate speech and violent or sexual content, because a benign user can trigger them by accident (Microsoft Learn). Its AI Red Team puts the line with evals bluntly: "AI red teaming is not safety benchmarking" (arXiv:2501.07238).

ActivityQuestion it answersTypical outputWhere it falls short for AI
Penetration testCan an attacker exploit this software, network or API?Exploitable bugs with CVSS-style severityAssumes deterministic behavior. Misses content harms and instructions hidden in data.
Evals and benchmarksHow often does the model do a known good or bad thing?Scores and rates on a fixed test setMeasures known behaviors. Does not search for new failure paths.
AI red teamingHow can this model, app or agent be made to fail, and how badly?Reproducible attack transcripts, severity, framework mapping, fixesFinds failures; cannot prove their absence or measure prevalence on its own.

A good AI red team still runs classic appsec checks on the surrounding application: auth, session handling, the APIs your tools call. What it adds is AI-specific method. OWASP lists as a red flag any vendor that offers AI red teaming as an extension of existing appsec testing with no AI-specific approach, or that cannot explain how testing an LLM endpoint differs from testing a normal API (OWASP vendor criteria, Feb 2026). If you are unsure which kind of test you are being sold, read our guide to AI penetration testing.

Model, application and agent testing

What you test changes who you hire. Microsoft separates two layers, and the OWASP agentic work adds a third.

  • Model level. The base model with its safety system, usually through an API endpoint. This is where frontier labs spend most of their effort: jailbreaks, dangerous capability uplift, multilingual gaps (Microsoft Learn).
  • Application level. The product your users touch, ideally tested through the production UI, before and after mitigations. Microsoft says reports should name the endpoint that was tested. This layer includes system prompts, retrieval, output handling and guardrails.
  • Agent level. Systems that plan, keep memory and call tools. The OWASP Top 10 for Agentic Applications 2026 (released 9 December 2025) covers risks such as agent goal hijack, tool misuse, identity and privilege abuse, memory and context poisoning, and cascading failures.

OWASP's GenAI Red Teaming Guide (January 2025) frames the work as four areas: model evaluation, implementation testing, infrastructure assessment and runtime behavior analysis. Most enterprise buyers need the second and fourth. Few need the first unless they train or fine-tune models.

The attack surface of an LLM app with tools

Every place untrusted text can reach the model is an entry point. Every place model output can act is a blast radius. The diagram shows the four zones a tester works through.

Attack surface of an LLM application with agent toolsUser input and retrieved content flow into the LLM application, which holds the system prompt, the model, guardrails and memory. The application calls tools such as APIs, databases and code execution, and sends outputs to users and downstream systems. Numbered markers show where direct injection, indirect injection, tool misuse and output-side attacks happen.your trust boundaryUser inputchat, uploads,voice, imagesRetrieved contentRAG docs, web pages,email, tool resultsLLM applicationSystem promptModelGuardrailsMemoryTools and agentsAPIs, MCP servers,databases, code execOutputsUI, email, tickets,downstream systems1234
  1. Direct injection and jailbreaks through anything the user types or uploads (OWASP LLM01).
  2. Indirect injection and poisoning through documents, pages, emails and tool results the model reads (LLM01, LLM04, LLM08). Note the return path: tool output is retrieved content too.
  3. Tool misuse and excessive agency when the model calls tools with more permission than the task needs (LLM06, ASI02, ASI03).
  4. Leakage and unsafe output: system prompt and data exfiltration, harmful content, and unvalidated output passed to other systems (LLM02, LLM05, LLM07).

Attack classes a red team should cover

These are the classes we expect in any serious scope, mapped to the OWASP Top 10 for LLM Applications 2025 and to MITRE ATLAS (release v2026.10, 28 October 2026). Ask vendors to map findings to the same IDs so you can compare reports.

Attack classWhat the tester triesFramework IDs
Direct prompt injectionUser input that overrides the system prompt or developer instructions.LLM01:2025; ATLAS AML.T0051.000
Indirect prompt injectionInstructions planted in content the model retrieves: a web page, a PDF, an email, a calendar invite, a tool result. Described in Greshake et al., 2023.LLM01:2025; AML.T0051.001
JailbreaksBypassing safety training. Includes optimized adversarial suffixes (GCG) and brute-force sampling of prompt variants (Best-of-N).AML.T0054
System prompt leakageExtracting hidden instructions, which often contain business logic or secrets.LLM07:2025; AML.T0085.003 (moved from AML.T0056 in v2026.10)
Data exfiltration and disclosureGetting the model to reveal PII, secrets, other users' data or memory, or to send it out through a rendered link or image.LLM02:2025; AML.T0024, AML.T0057, AML.T0136 (new in v2026.10)
Tool misuse and excessive agencyMaking an agent call tools it should not, with arguments it should not use, or with more privilege than the task needs.LLM06:2025; ASI02, ASI03; AML.T0053
Data and model poisoningTampering with training, fine-tuning or retrieval data. Research from 2025 found poisoning needs a near-constant number of samples regardless of model size (arXiv:2510.07192).LLM04:2025; LLM08:2025; AML.T0020; ASI06
Model extractionRecovering weights or behavior through queries. Carlini et al., 2024 recovered part of a production model.AML.T0005
Harmful contentHate, violence, sexual and self-harm content, and for frontier models, chemical, biological, radiological and nuclear (CBRN) uplift.NIST AI 600-1 risk categories
Supply chain and cost abuseCompromised models, datasets, plug-ins or MCP tools; prompts that run up compute bills or deny service.LLM03:2025, LLM10:2025; AML.T0010; ASI04

Prompt injection is first on the OWASP list for a reason. HackerOne reported in October 2025 that prompt injection reports on its platform rose 540% year over year, and valid AI vulnerability reports rose 210% (HackerOne). Definitions for every term here are in our AI red teaming glossary.

Human-led vs automated red teaming

Automated red teaming uses one model to generate attacks against another, an approach set out in Perez et al., 2022. Open-source tools such as garak, PyRIT and Promptfoo package it. They are good at breadth: thousands of known attack patterns, every release, in CI. We compare them in open-source AI red teaming tools.

Humans are good at depth. They read your product, guess what an attacker would want and chain small weaknesses into a real impact. Microsoft's AI Red Team says automation extends coverage but humans remain essential, and that attacking an AI system does not require gradient access (arXiv:2501.07238). Microsoft's planning guide recommends a first round of manual testing before systematic measurement (Microsoft Learn).

NIST describes four team types: general public, expert, combination, and human/AI. It also notes that AI-led red teaming "can be more cost effective than human red-teamers alone" (NIST AI 600-1). Anthropic lists domain-expert, automated, multimodal, crowdsourced and community methods, and says the lack of standard practice makes it hard to compare systems (Anthropic, June 2024). In practice, buy a mix. OWASP lists automation-only testing with no manual adversarial work as a red flag.

How an engagement runs

Most engagements follow the same five steps. The structure below follows Microsoft's planning guide, with OWASP for threat modeling.

  1. Scoping. Agree what is in scope: base model via API, the app via its UI, the retrieval pipeline, each tool and its permissions. Decide which harms matter, who tests (domain experts plus people with adversarial and benign mindsets), the rules of engagement and how results are recorded. Microsoft suggests logging a date, a unique ID, the prompt and the output for every finding.
  2. Threat model. List who would attack the system, what they want and which paths reach it. Map those paths to the OWASP LLM and Agentic Top 10 and to MITRE ATLAS tactics. OWASP's vendor criteria stress realistic threat models and matching depth to complexity: a chatbot is not a RAG system, and neither is a multi-agent workflow over MCP.
  3. Testing. Start with open-ended manual rounds, build a list of harms and weaknesses, then run guided rounds and automated attacks at scale. Test with and without mitigations so you can see what the guardrails actually stop.
  4. Reporting. Microsoft's recommended report lists the top issues, links to raw data, previews the next round and states that examples are not prevalence metrics. Each finding should be reproducible, mapped to a framework ID, rated for severity and paired with a fix.
  5. Retest. After fixes, rerun the findings on the production endpoint. A finding is not closed until it fails on the system users actually reach.

On timing, one vendor publishes estimates of about 5 days for a simple chatbot, 10 to 15 days for RAG or a small agent, 15 to 25 days for complex agentic systems and 20 to 30 days when compliance documentation is included (SecurityWall, vendor blog, unaudited). Budget figures are in our AI red teaming cost guide.

The evidence that agents break easily

If you are deploying agents, assume they can be hijacked until a test shows otherwise. The public data is consistent.

  • A public competition co-run by the UK AI Security Institute and Gray Swan between March and April 2025 (Gray Swan) collected 1.8 million prompt injection attacks against 22 frontier AI agents in 44 scenarios. It produced more than 60,000 policy violations. The authors write: "Nearly all agents exhibit policy violations for most behaviors within 10-100 queries" (arXiv:2507.20526).
  • NIST's Center for AI Standards and Innovation (CAISI) reported in March 2026 on a later competition: about 250,000 attacks from more than 400 participants against 13 frontier models. "At least one successful attack was found against all of the target frontier models." Attacks that worked on the most resistant models tended to transfer to weaker ones, rarely the reverse (CAISI).
  • OpenAI's GPT-5 system card reports more than 5,000 hours of external red teaming from over 400 testers. Bio red teamers filed 46 potential jailbreaks in about 380 hours, and two external groups ran a two-week prompt injection assessment of connectors (GPT-5 system card, August 2025).

The takeaway for buyers: the best-funded labs in the world still find breaks with sustained effort. Your vendor should not promise you zero findings.

What red teaming cannot do

A red team report is a sample of failures, not a safety certificate. Microsoft calls the work never finished. An academic review found red-teaming practice diverges on purpose, artifact and setting, and warned that without structure it "could verge on security theater" (Feffer et al., 2024). Treat any vendor claim of "100% coverage" or "certified safe" as a reason to keep looking. Our vendor selection checklist lists the other red flags.

Where to go next

This guide is general information written by our editors. It is not security advice for your specific system.

Common questions

What is AI red teaming?

Structured adversarial testing of an AI model, application or agent to find harmful, insecure or wrong behavior before attackers or users do. NIST AI 600-1 defines it as a structured exercise to probe an AI system for flaws and vulnerabilities, often with the system's developers.

What is LLM red teaming?

AI red teaming aimed at systems built on large language models: chatbots, RAG assistants, copilots and agents. The main targets are prompt injection, jailbreaks, data leakage, tool misuse and harmful content.

How is AI red teaming different from a penetration test?

A pen test looks for exploitable bugs in deterministic software. AI red teaming also covers probabilistic outputs and content harms, including failures a normal user can trigger by accident. OWASP flags vendors that simply relabel appsec testing as AI red teaming.

Is AI red teaming the same as running evals or benchmarks?

No. Microsoft's AI Red Team states that AI red teaming is not safety benchmarking. Evals measure how often a known behavior occurs; red teaming hunts for new ways the system fails, and its examples are not prevalence metrics.

Can automated tools replace human red teamers?

Not fully. Automation extends coverage, but Microsoft, after testing more than 100 generative AI products, says humans remain essential. It recommends manual rounds first, then automated measurement at scale.

How long does an AI red teaming engagement take?

Vendor-published estimates put a simple chatbot at about 5 testing days, RAG or a small agent at 10 to 15 days, and complex agentic systems at 15 to 25 days, plus a retest window. These are unaudited vendor figures.

Are AI agents harder to secure than chatbots?

Yes. In a 2025 public competition with 1.8 million prompt injection attacks, nearly all 22 tested agents violated policy for most behaviors within 10 to 100 queries. Tools and autonomy turn a bad answer into a bad action.

Can red teaming prove an AI system is safe?

No. It shows that specific failures exist and how to trigger them. A clean report means the testers did not find a break within their scope and time, not that none exists.

How often should we red team?

We suggest testing before launch, after any change to the model, system prompt, tools or retrieval sources, and continuously for production agents. Microsoft describes AI security work as never finished.

Sources

  1. NIST AI 600-1: Generative AI Profile (26 Jul 2024)
  2. Microsoft Learn: Planning red teaming for LLMs and their applications (updated 5 Jun 2026)
  3. Microsoft AI Red Team: Lessons from red teaming 100 generative AI products, arXiv:2501.07238 (Jan 2025)
  4. OWASP Top 10 for LLM Applications 2025
  5. OWASP Top 10 for Agentic Applications 2026 (9 Dec 2025)
  6. OWASP GenAI Red Teaming Guide (22 Jan 2025)
  7. OWASP Vendor Evaluation Criteria for AI Red Teaming Providers and Tooling v1.0 (4 Feb 2026)
  8. MITRE ATLAS data CHANGELOG (v2026.10, 28 Oct 2026)
  9. Agent red teaming competition results: 1.8M attacks on 22 agents, arXiv:2507.20526 (2025)
  10. Gray Swan: UK AISI x Gray Swan agent red teaming challenge results
  11. NIST CAISI: Insights from a large-scale AI agent red teaming competition (23 Mar 2026)
  12. HackerOne: 2025 Hacker-Powered Security Report press release (1 Oct 2025)
  13. OpenAI: GPT-5 system card (13 Aug 2025)
  14. Anthropic: Challenges in red teaming AI systems (12 Jun 2024)
  15. Greshake et al.: Indirect prompt injection, arXiv:2302.12173 (2023)
  16. Zou et al.: Universal and transferable adversarial attacks (GCG), arXiv:2307.15043 (2023)
  17. Best-of-N jailbreaking, arXiv:2412.03556 (2024)
  18. Carlini et al.: Stealing part of a production language model, arXiv:2403.06634 (2024)
  19. Poisoning attacks on LLMs need a near-constant number of samples, arXiv:2510.07192 (2025)
  20. Perez et al.: Red teaming language models with language models, arXiv:2202.03286 (2022)
  21. Feffer et al.: Red-teaming for generative AI: silver bullet or security theater? arXiv:2401.15897 (2024)
  22. SecurityWall: LLM security audit cost (vendor blog)