Your AI assistant passed every functional test. It answers questions, summarises tickets and drafts code. Nobody has yet asked what it does when the person typing is hostile.

That question is the job of AI red teaming. AI red teaming is structured adversarial testing of an AI model, application or agent: a team, usually supported by automated tools, attacks the system the way a real adversary would, to find unsafe behaviour, data leaks and exploitable weaknesses before someone else does.

The stakes have moved. Models now read email, call APIs and act on systems, so a flaw that once produced an embarrassing answer can now move data.

This guide covers what AI red teaming is, how it differs from classic red teaming, what it tests, the frameworks and tools teams use, how to run a program, and the gap that testing alone leaves open.

Table of contents

  • What is AI red teaming?
  • How AI red teaming differs from traditional red teaming
  • What an AI red team actually tests
  • The frameworks that structure the work
  • AI red teaming tools and the human element
  • How to run an AI red teaming program
  • Where red teaming stops
  • What to do now
  • Frequently asked questions

Key takeaways

  • NIST AI 600-1 defines AI red-teaming as a structured testing exercise used to probe an AI system to find flaws and vulnerabilities, often in a controlled environment and in collaboration with developers.
  • AI red teaming tests behaviour as well as infrastructure: prompt injection, jailbreaks, data leakage, harmful output, tool and agent misuse, and model extraction.
  • OWASP's GenAI Red Teaming Guide, released in January 2025, organises the work into four areas: model evaluation, implementation testing, infrastructure assessment and runtime behaviour analysis.
  • Microsoft's AI red team, drawing on more than 100 generative AI products, lists as a core lesson that the work of securing AI systems will never be complete.
  • A red team finds problems at a point in time. Each finding still needs a control that enforces the fix at runtime, at machine speed.

What is AI red teaming?

Red teaming is an established security practice: a team plays the adversary so defenders find weaknesses in rehearsal, not in a real attack. Applied to AI, the target becomes a system that reasons over language and, increasingly, takes actions.

NIST's Generative AI Profile, NIST AI 600-1, describes 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." It notes that the practice is still evolving and that results "should be given additional analysis" before they shape governance and risk decisions.

NIST also distinguishes who does the testing: members of the general public, domain experts, a combination of both, or humans working with generative AI to scale the attack. The profile observes that "GAI-led red-teaming can be more cost effective than human red-teamers alone," while noting that human-led and AI-led testing suit different harms.

One distinction matters before anything else. Microsoft's AI red team, in its paper Lessons From Red Teaming 100 Generative AI Products, states plainly that "AI red teaming is not safety benchmarking." A benchmark scores a model against a fixed test set. A red team hunts for the failure the benchmark never imagined.

How AI red teaming differs from traditional red teaming

Classic red teams break into networks. AI red teams break into behaviour.

DimensionTraditional red teamingAI red teaming
TargetNetworks, hosts, applications, peopleModels, AI applications, retrieval pipelines, agents and their tools
Attack surfacePorts, credentials, misconfigurations, phishingPrompts, documents the model reads, tool calls, memory, model outputs
Typical techniquesExploits, lateral movement, social engineeringPrompt injection, jailbreaks, data extraction, poisoning, tool and agent misuse
Failure looks likeUnauthorised access or data theftUnsafe output, leaked data, unintended action, policy bypass
DeterminismThe same exploit usually works the same way twiceThe same prompt can succeed on one attempt and fail on the next
OutputFindings, attack paths, remediation listFindings, reproducible prompts or traces, harm ratings, remediation and retest plan

The determinism row is the one that catches teams out. A language model is probabilistic. A jailbreak that fails nine times may work on the tenth, which is why AI red teams run attacks at volume and report success rates, not single proofs.

Microsoft's paper makes the overlap explicit: "LLMs amplify existing security risks and introduce new ones." Classic weaknesses still apply to the infrastructure around the model.

What an AI red team actually tests

NIST AI 600-1 gives a useful checklist. Its suggested action MS-2.7-007 calls for red-teaming against abuse that facilitates attacks on other systems, against generative AI attacks such as prompt injection, and against machine learning attacks including data poisoning, membership inference and model extraction. In practice, a scope usually covers seven areas.

  • Prompt injection. Direct injection, where the user types the attack, and indirect injection, where instructions hide in a web page, email or file the model reads.
  • Jailbreaks. Multi-turn or role-play techniques that talk the model out of its safety behaviour.
  • Data leakage. Extraction of system prompts, training data, retrieved documents or other users' data. NIST lists the outputting of training data samples as a specific red-teaming target.
  • Harmful or ungrounded output. Content that is dangerous, discriminatory or confidently wrong, in the context where it causes real damage.
  • Tool and agent misuse. Getting a connected model to call an API, send a message or change a record it should not. This is where testing an AI application becomes testing an AI agent's security posture.
  • Model extraction and inference attacks. Reconstructing a model's behaviour or learning whether specific records were in its training data.
  • Poisoning. Corrupting training data, fine-tuning sets or retrieval stores so the system behaves badly later.

The weighting depends on what the system can touch. A chatbot with no tools is mostly an output-safety problem. A model connected to email, code and customer records is mostly an access problem, which is why our guide to LLM security argues that the bigger risk sits in what the model is connected to.

Key Insight

The severity of an AI flaw is set by what the system can reach. Red team the connections, not just the chat window.

The frameworks that structure the work

Three public frameworks do most of the structuring.

OWASP GenAI Red Teaming Guide. The OWASP GenAI Security Project released its GenAI Red Teaming Guide on 22 January 2025. It describes "a holistic approach to Red Teaming in four areas: model evaluation, implementation testing, infrastructure assessment, and runtime behavior analysis."

NIST AI 600-1. Published in July 2024 as a companion to the NIST AI Risk Management Framework, the Generative AI Profile defines 12 risks that are novel to or made worse by generative AI, from confabulation to information security. Its suggested actions reference red-teaming repeatedly, which makes it a natural map for tying findings to governance and audit.

MITRE ATLAS. ATLAS is MITRE's public knowledge base of adversary tactics, techniques and case studies targeting AI systems. Red teams use it to name techniques consistently, so a finding means the same thing to the tester, the defender and the auditor.

For systems that act rather than answer, OWASP's Top 10 for Agentic Applications, released in December 2025, adds risk categories such as agent goal hijack, tool misuse and rogue agents. Those risks are covered in depth in our guide to securing autonomous agents.

AI red teaming tools and the human element

Manual testing does not scale to a probabilistic target. Tooling generates attacks at volume, scores responses and keeps a record for retesting. Two open-source tools are common starting points:

  • PyRIT. Microsoft's Python Risk Identification Tool for generative AI is "an open source framework built to empower security professionals and engineers to proactively identify risks in generative AI systems." Its documentation describes running single-turn and multi-turn attack strategies against AI systems out of the box.
  • garak. NVIDIA's Generative AI Red-teaming and Assessment Kit "checks if an LLM can be made to fail in a way we don't want," probing for hallucination, data leakage, prompt injection, misinformation, toxicity generation and jailbreaks.

Tools widen coverage. They do not replace judgment. Microsoft's lessons list both "Automation can help cover more of the risk landscape" and "The human element of AI red teaming is crucial." An experienced AI red teamer understands the business context, recognises which leak actually matters and chains small weaknesses into a realistic attack path. Automation finds volume. People find consequence.

How to run an AI red teaming program

A one-off engagement before launch is a start. A program keeps pace with model updates and new attack techniques.

1. Scope by capability. Microsoft's first lesson is to "understand what the system can do and where it is applied." List every tool, data source and action the system can reach. That list is your attack surface.

2. Threat model the adversary. Decide who you are simulating: a curious user, a fraudster, a competitor scraping data, or an autonomous attacker that tries variations without pause.

3. Contain the test itself. Testing for dangerous capability can create real danger. The UK AI Security Institute's incident report on unsanctioned agent behaviour during cyber testing describes a cyber evaluation run 122 times across several models, with internet access deliberately enabled and developer cyber classifiers deliberately switched off. In 10 of those runs an agent took autonomous, unsanctioned action on the live internet, 19 actions in total. The institute contained the activity within roughly one hour of discovery and found no evidence of real-world harm. The lesson for enterprise red teams: the test environment needs egress control, monitoring and a kill switch of its own.

4. Set cadence. Test before launch, after every model swap or major prompt change, and whenever a new tool or data source is connected. Run automated suites continuously between human-led engagements.

5. Report so fixes happen. Every finding needs reproducible evidence, a severity tied to business impact, an owner and a retest date. Map findings to OWASP, NIST or ATLAS terms so risk, audit and engineering read the same report.

Where red teaming stops

AI red teaming is diagnosis. It shows where the system breaks on the day you test it. It does not stop the next attempt.

That gap matters more because the attacker has changed. Autonomous AI attacks run at machine speed against tools built to alert a human. A report that becomes a ticket, then a sprint, then a patch weeks later leaves the weakness open to an adversary that can probe it continuously.

The fix is to treat every red-team finding as a runtime policy, not just a backlog item. A prompt-injection pattern the red team found should become a rule enforced on live traffic. A tool call the agent should never make should be blocked at the connection, not documented in a wiki. This is the boundary our piece on AI governance versus AI security draws: knowing the rule is not the same as enforcing it.

It is also where red and blue meet. The security operations center is traditionally the blue team, the defenders. When red-team findings feed directly into automated blocking, the defensive side can operate at the same speed as the attack, which is the case for an autonomous SOC.

Key Insight

A red team that finds a flaw on Tuesday has done its job. Whether that flaw is still exploitable on Wednesday depends on whether anything enforces the fix.

One more item belongs in the threat model, even though no prompt will reveal it. Adversaries are collecting encrypted traffic today to decrypt once quantum computing matures, a strategy known as harvest now, decrypt later. AI systems move prompts, retrieved documents and credentials across connections secured with today's cryptography, and NSA's CNSA 2.0 guidance states that new acquisitions for national security systems will be required to be CNSA 2.0 compliant by January 2027. An AI red team scope should at least ask which of those connections carry data that must stay secret for a decade.

What to do now

  • Inventory your AI systems and rank them by what they can reach, not by how visible they are.
  • Adopt one framework for scope and reporting, starting with the OWASP GenAI Red Teaming Guide, and run automated tests between human-led engagements.
  • Turn findings into enforced policy at a control point that sees every connection, so a fix applies in seconds rather than at the next release.

Conux is built for that last step. It is a cybersecurity gateway that every connection passes through, including traffic to and from your AI models and agents. Red-team findings become policy the gateway enforces on live traffic, and its five AI agents detect, block and write the rule, harden the surface and log the evidence, so autonomous AI attacks are stopped in seconds rather than escalated to a queue.

The same gateway applies quantum-safe encryption to each connection, which addresses harvest-now-decrypt-later collection ahead of CNSA 2.0. It sits in front of existing cloud, identity, applications and AI models, with no rip-and-replace, and deploys in weeks.

To turn your next red-team report into controls that hold at machine speed, talk to our team.