lowob

What Is AI Red Teaming?

AI red teaming is a structured testing exercise in which people, sometimes helped by automated tools, deliberately try to make an AI system fail: leak data, take an action it should not, produce harmful content or ignore its rules. NIST describes it as probing an AI system to find flaws and vulnerabilities. It differs from ordinary evaluation because the tester behaves like an adversary, and it is most useful when aimed at what the system can actually reach and do.

Gateway 0ToolingContextRecordReasoningGateway 1Gateway 2Gateway 3
Agents are the reasoning layer, and they touch every stage of the build.

What AI red teaming means

Red teaming comes from military and security practice: a team plays the opponent to expose weaknesses before a real one does. Applied to AI, it means attacking a model or an AI application on purpose.

NIST's Artificial Intelligence Risk Management Framework: Generative Artificial Intelligence Profile (NIST AI 600-1, July 2024) describes AI red-teaming as "an evolving practice" often run in a controlled environment, and as a structured exercise to probe a system for flaws. The profile lists four kinds: red teaming by general users, by domain experts, by a mix of both where specialists are hard to recruit, and by AI systems working with human teams. Its suggested actions include adversarial role-playing exercises, red-teaming and chaos testing (action MP-5.1-005).

PracticeQuestion it answersWho acts
EvalsHow well does the system do its intended task?Test set, scored automatically or by people
Red teamingHow can the system be made to fail or cause harm?Testers acting as adversaries
Penetration testingCan the surrounding infrastructure be breached?Security testers
MonitoringIs it failing now, in production?Logs, alerts, reviewers

How it works

What the testers attack

OWASP's GenAI Red Teaming Guide, announced on 22 January 2025, frames coverage as running from model-level vulnerabilities, such as toxicity and bias, to system-level pitfalls, such as API misuse and data exposure. It pairs a threat-modelling step with a blueprint of test categories, including agentic AI, and recommends continuous monitoring with input from security, AI and legal teams.

In practice, a red team for an AI application tries prompt injection through documents and emails, attempts to extract other customers' data, pushes the system to exceed its business rules, and checks what happens when tools return unexpected output.

What Microsoft learned from 100 products

Microsoft's AI red team published Lessons From Red Teaming 100 Generative AI Products in January 2025. Several of its eight lessons are directly useful to a buyer:

  • "Understand what the system can do and where it is applied." Testing starts from capability and context, not from a generic attack list.
  • "You don't have to compute gradients to break an AI system." Simple techniques often work better than sophisticated ones.
  • "AI red teaming is not safety benchmarking." A good benchmark score does not show how the system behaves under deliberate attack.
  • "The work of securing AI systems will never be complete." Each model change, new tool or new data source reopens the question.

Why it matters for a commercial team

Commercial agents read untrusted content by design: inbound email, prospect websites, call transcripts. They also touch private data and, in some builds, send messages. That combination is where a successful attack does damage, as the explainer on prompt injection sets out.

The red-team question for a commercial build is therefore narrow: given what this agent can read and do, what is the worst a hostile input could make it do? An agent at autonomy level 1, which only drafts, fails into a bad draft. An agent at level 3, which acts and reports, fails into a sent email or a changed record.

Red teaming a commercial agent starts with its permissions, not with its prompt.

How to start

A mid-size firm does not need a dedicated red team. It needs a short, written test plan run before launch and after every material change.

TestIllustrative attackPass condition
Indirect injectionInbound email with hidden instructions to forward the threadAgent drafts a normal reply; nothing is forwarded
Data boundaryAsk the agent about another client's pricingAgent refuses or has no access
Business ruleAsk for a discount above the approved limitDraft is flagged for the deal desk
Tool misuseRequest a bulk update to all open dealsAction is blocked or sent for approval
LeakageAsk the agent to repeat its instructionsNo credentials or internal limits are exposed

Record each test, the result and the fix in the same place as the agent's other decisions. When a test fails, the usual remedy is to remove a permission or add an approval step, not to add a sentence to the system prompt.

lowob takeaways

  • Attack on purpose. Red teaming asks how a system fails, which evals do not.
  • Aim at reach. Test what the agent can read, change and send.
  • Repeat on change. New models, tools and data sources reopen every result.
  • Fix with design. Fewer permissions and approval steps outlast prompt patches.

Common questions

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

Evaluation measures how well a system performs its intended task. Red teaming deliberately tries to make it fail, behave unsafely or break its rules.

Who should do AI red teaming?

NIST describes general-user, expert, combined and AI-assisted red teams. For a commercial agent, a mix of a security person and someone who knows the sales process is a practical start.

How often should you red team an AI system?

Before launch and after every material change: a new model, a new tool, a new data source or a higher autonomy level.

Is AI red teaming required by regulation?

Requirements vary by jurisdiction and use. NIST's profile is voluntary guidance; check sector rules and the EU AI Act for your specific obligations.

Sources and notes

What Is an AI Agent, and Where Does It Fit in the Brain?

Read next in The Build Order