Skip to content

Security · 7 min read · 10 Nov 2026

AI red teaming: what it is, what it finds and how to start

AI red teaming means attacking your own AI systems before someone else does. Here's what it covers, how it differs from a pen test, and a sensible way to begin.

AI red teaming is the practice of attacking an AI system on purpose, the way a real adversary would, to find weaknesses before someone else does. Microsoft describes it as testing generative AI systems to find safety and security weaknesses so they can be strengthened. For a company shipping an assistant or an agent, it means finding out whether the thing can be tricked into leaking data, taking actions it shouldn’t, or saying something harmful, and fixing that before customers find out first.

This guide covers what it tests, how it differs from a standard penetration test, where automation helps, and how to start without a dedicated team.

What AI red teaming looks for

The risks fall into a few groups.

  • Prompt injection. Instructions hidden in input or in content the model reads, which the model follows. We cover this in depth in Prompt injection: examples and the practical defence.
  • Data leakage. The system reveals its instructions, other users’ data or confidential documents it can reach.
  • Jailbreaks. Getting a model to ignore its safety rules and produce content it was set up to refuse.
  • Tool and agent misuse. An agent with access to email, files or payments is talked into using them. What makes an AI agent safe to give real access covers the design side.
  • Poisoned sources. A retrieval system pulls in a document, web page or tool description that carries an attack. See the MCP security checklist for one route.
  • Harmful or wrong output. Unsafe advice, biased answers, or confident falsehoods in a setting where that matters.

OWASP’s Top 10 for LLM applications is a useful checklist for the technical categories, and MITRE maintains ATLAS, a knowledge base of adversary tactics against AI systems.

How it differs from a penetration test

They overlap, and a good tester does both, but the emphasis differs.

Penetration test AI red teaming
Target Applications, APIs, networks The model, the prompts, and how they’re wired into the product
Typical flaws Broken access control, injection, misconfiguration Prompt injection, jailbreaks, unsafe tool use, leakage through output
Behaviour Mostly deterministic: the same input gives the same result Probabilistic: the same attack may work one time in ten
Success measure A confirmed exploit A failure rate across many attempts, plus the worst case

The probabilistic part matters. A traditional bug either exists or it doesn’t. An AI failure that happens in 3 per cent of attempts is still a failure, so red teaming runs many variations and reports how often they work. It also means a clean result today says little about next month’s model update.

Application security still counts, since the AI feature sits inside a normal application. A VAPT covers that half, and AI red teaming covers the half classic testing wasn’t built for.

What Microsoft learned from 100 products

The most useful public source on this is Microsoft’s account of red teaming more than 100 generative AI products, in a January 2025 write-up and an accompanying paper. Their three headline takeaways, in summary:

  1. AI adds new risks and keeps the old ones. Outdated software components still matter, and prompt injection is a new attack path on top.
  2. People remain essential. Automation helps generate prompts, run attacks and score results, but human experts are needed for specialist subjects, cultural context and sensitive interactions.
  3. Layered defences are necessary. No mitigation removes risk entirely, so red teaming should repeat: test, fix, retest, so that attacks cost more over time.

We agree with the second point most, and it shapes how we’d advise you to use automated tools.

Where automation helps, and where it doesn’t

Automated attack suites are good at breadth. They can run hundreds of known injection and jailbreak patterns against every release, record the results, and show whether a fix held. Our AI Governance Scanner does this and saves the results as evidence.

They’re weaker at the creative part: a tester who understands your product, your users and your business logic will think of an attack no suite includes. We’d treat an automated scan as the regression test that runs on every release, and a human-led exercise as the periodic deep look. Being clear about that is more useful to you than a tool promising full coverage.

How to start

  1. Write down what the system can do. Which data can it read, which tools can it call, who can talk to it? Attacks follow capabilities.
  2. List what must never happen. Leaking another customer’s data, issuing a refund without approval, revealing internal instructions. Turn each into a test.
  3. Cover every input channel. Direct chat, uploaded files, retrieved documents, web pages, tool outputs.
  4. Run each attack many times, with variations, and record the failure rate.
  5. Fix and retest. Narrow permissions first; prompt changes alone rarely hold up.
  6. Automate what repeats, so every release gets the regression suite, and book a human-led session for major changes.
  7. Keep the evidence. Test results are exactly what an auditor or customer asks for under frameworks such as ISO/IEC 42001 and the NIST AI RMF.

Our testing guide goes through building the test cases in more detail.

Common questions

What is AI red teaming?

Deliberately attacking an AI system the way an adversary would, to find security and safety weaknesses so they can be fixed. It covers things like prompt injection, jailbreaks, data leakage and misuse of tools.

Is AI red teaming the same as penetration testing?

Not quite. Penetration testing targets the application and infrastructure. AI red teaming targets the model and how it’s used inside the product. Many engagements combine both.

Can AI red teaming be fully automated?

Parts of it can, mainly running known attacks at scale and scoring results. Microsoft’s experience is that human expertise remains essential for specialist topics and for creative attacks, so we’d use both.

How often should we red team an AI system?

We don’t know of an agreed schedule. A sensible rule is whenever something significant changes (a new model, new tools or data sources), and on a regular rhythm in between. Automated regression tests can run on every release.

Do small companies need it?

If your product exposes an AI feature to customers or lets it act on company data, some form of it is worth doing, scaled to the risk. A single well-scoped test of your riskiest feature is a reasonable start.

Keep reading

Related articles

Security

Testing AI features before launch

The attacks that target AI features, from prompt injection to data leaks, and how to test for them before launch rather than after.

Security

Keeping secrets out of public code

How API keys and passwords leak into public code, how quickly attackers find them, and how to catch and rotate them before they're used.

Security

The OWASP Top 10 for LLM apps, for developers

The OWASP Top 10 for LLM applications explained for developers: the ten ways AI apps get attacked, in plain language, and where to start.

Next step

Want help with this?

Book a scoping call and talk it through with our team.