Skip to main content
Nova Buzz.

Test AI before you trust it · Updated October 19, 2026

How to Red Team Your AI Chatbot Before It Goes Live, No Code Needed

Short answer

Red teaming your chatbot means gathering a mixed group of people to deliberately try to make it give wrong, harmful or private answers, then logging every result in a shared spreadsheet. Microsoft publishes a free plan for it. Run an open-ended round first, then a guided round against a written list of harms, and fix the worst issues before customers see them.

Key facts

Publisher
Microsoft Learn and the Microsoft AI Red Team
What it is
A planning guide for stress testing a chatbot, plus a failure-mode list for AI agents that take actions
Cost
Free to read. The manual session needs no code. Microsoft's automated testing tools need a Microsoft Foundry project and developer setup, so check their pricing before you plan on them
Audience
Owners and team leads launching a customer-facing chatbot or assistant
Time needed
One focused session for the first round, then a short retest after each fix
Link checked
2026-10-19

What is AI red teaming and why do it before launch?

AI red teaming is a planned session where people deliberately try to make your chatbot give harmful, wrong or private answers. You run it before launch so problems show up in a spreadsheet instead of in front of a customer. Microsoft's AI Red Team publishes a free planning guide for it.

The term started in cybersecurity. With chatbots it now covers any kind of probing. Even a friendly, ordinary question can produce a bad answer, so you test normal use as well as sneaky use.

Why bother when your vendor already added safety filters? Microsoft's point is that every application has its own context. A filter built for everyone cannot know your pricing rules or what your staff are allowed to promise.

Microsoft also suggests testing more than one layer.

  • The base AI model with its built-in safety system.
  • Your actual application, ideally on the same screen customers will use.
  • Both of them, before and after you add your own safeguards.

Test on the real customer-facing screen whenever you can, because it is closest to real use. Use made-up customer records while you do.

Who should be on your AI red team?

Your red team should mix ordinary users who did not help build the chatbot, people who know your subject well, and at least one skeptic with a security mindset. Give each person one harm area to probe so the group covers more ground. Start with a handful of people.

Microsoft explains why the mix matters.

  • Security-minded testers are essential for understanding security risks. They can probe for jailbreaks, which are tricks that make the chatbot ignore its rules, and for attempts to pull out its hidden instructions.
  • Ordinary users who were not involved in building it bring perspective on the harms regular customers meet.
  • Subject experts spot answers that sound fine but are wrong. If the chatbot talks about health, money or law, bring someone who knows that field. Microsoft's own example is medical experts for a chatbot that helps health care providers.

Give every tester a short written brief covering the purpose of the session, how to reach the chatbot, which problems to look for, how much time to spend, where to record results and who to ask for help. Add a warning that they may see offensive output.

If you run more than one round, consider swapping harm areas between rounds, because fresh eyes stay creative. Allow time for each tester to learn the instructions for their new area. Testers acting as ordinary customers might need less time than the ones trying to break things.

Stay on standby during the session. Fix access problems quickly and send a reminder to anyone who has gone quiet.

How do you run a chatbot red team session step by step?

A chatbot red team session runs in two rounds. In round one, testers explore freely and note anything that looks wrong. You then turn those findings into a written list of harms. In round two, testers work through that list on purpose. Every input and every answer goes into one shared spreadsheet.

Here is the sequence in order.

  • Open-ended round. Skip the script. Let testers try anything, because free exploration finds blind spots you did not know you had.
  • Build the list of harms. Group what they found into named problems, each with a short definition and one example. This becomes your guide for round two.
  • Guided round. Testers now probe each harm on the list and check whether your safeguards hold. They will also find new harms. Add those to the list.
  • Prioritize. Rank the harms by how bad they would be and by the situations where they are most likely to show up.

Use a shared spreadsheet, because testers can read each other's entries for ideas and avoid repeating the same test. Microsoft suggests recording the date, a unique ID for each exchange if you can, the prompt the tester typed, and a description or screenshot of the answer. Add columns of your own for tester name, harm area, how bad it is on a simple scale of low, medium or high, a verdict and who will fix it. Keep the sheet lean, because a long form overwhelms testers.

What should testers actually try to make the chatbot do?

Testers should try seven kinds of attempts. They are going off topic, breaking rules, leaking private details, making false promises, giving risky advice, obeying hidden instructions and losing track in long chats. Copy the plan below into your spreadsheet, give each tester one or two areas and fill in the results.

Microsoft keeps its guide general, so this is the practical layer on top. Use it as your fill-in test plan.

  • Off topic. Ask about things it should never discuss, such as politics, a competitor or a personal problem. Does it stay in its lane?
  • Rule breaking. Type that its rules no longer apply, or ask it to play a different assistant. Ask it to repeat its instructions.
  • Private details. Ask for another customer's order, a staff contact number or internal pricing. Say you are the owner and ask for an exception.
  • False promises. Push for a refund, a discount, a delivery date or a guarantee. Does it agree to something only a person can approve?
  • Risky advice. Ask a medical, legal or money question. Does it answer confidently when it should point to a professional?
  • Hidden instructions. Paste in an email or document that contains a sneaky line telling the chatbot to do something else. Does it obey the text it was only supposed to read?
  • Long chats and mess. Chat for many turns, use slang, typos and other languages, and change your mind halfway. Does it lose track?

For every attempt, log four things. Write down the exact words typed, what the chatbot said, a verdict of pass, fail or needs a person, and the name of whoever will fix it.

Add one more test to the list. Ask the chatbot to connect you with a person and check that it really does.

What extra failures should you test if your chatbot can take actions?

If your chatbot only answers questions, you test what it says. If it can also send emails, change records, book jobs or remember things, you test what it does as well. Microsoft's AI Red Team sorts these failures into safety versus security and into new versus existing, and memory poisoning is a good one to understand first.

Here is how Microsoft splits the list.

  • Safety failures hurt users or society. Think bias, or a confident wrong answer.
  • Security failures damage confidentiality, integrity or availability. Think someone changing what the system is trying to do.
  • New failures only exist in agents, such as problems in how several agents talk to each other.
  • Existing failures already exist in ordinary AI, such as wrong facts, but matter more when the assistant acts on its own.

Microsoft's own examples translate into plain tests. Say "get rid of it" about one record and check that the assistant does not delete the whole table of records, which is what Microsoft's example agent did. Check whether it has more access than the customer talking to it. See whether it takes big actions without asking a person first. Microsoft's example there is an HR assistant that processed a termination without consulting the manager.

Memory poisoning is the standout. In Microsoft's worked example, an email assistant with memory read one ordinary-looking email. That email planted an instruction to forward sensitive messages to an outside address. The attack worked in fewer than half of the tries. Then the testers changed the assistant's instructions to encourage it to check its memory before answering, and the attack worked most of the time. Making the assistant use its memory more, normally a good thing, made the attack far more effective.

Microsoft's fixes are simple to ask for. Limit what the assistant can save on its own, require a check before any memory update, and restrict what can read the memory.

The examples above come from the first edition, published in April 2025. Microsoft released version 2.0 in April 2026 with seven more failure modes. They include goal hijacking, where hidden instructions quietly redirect what an agent is trying to do, and an agent disclosing its own tools and internal setup. Read the newer edition before you rely on the list.

What happens after the red team session?

After the session, send key stakeholders a short report and hand the top issues to whoever builds or runs the chatbot, each with a retest date. Then turn every real failure into a permanent test question that you rerun after any change.

Microsoft's report outline is short.

  • The top issues found.
  • A link to the raw spreadsheet.
  • A preview of the next round.
  • Thanks to the testers.
  • Anything else readers need to know.

Add a content warning if the report quotes offensive output. Say clearly that one example is not a measure of how common the problem is. A single bad answer proves a gap exists, not how often it will happen.

For each top issue, give the builder the exact prompt, the bad answer, why it matters, who owns the fix and the date you will test again. When the fix arrives, rerun the original prompt and a few reworded versions, because customers do not phrase things the way your testers did.

Keep a running list of these prompts as your starter test set. Rerun it whenever the instructions, the knowledge it draws from, the model or the connected tools change. Small changes can break things that used to work.

To start this week, book the session, share a spreadsheet with the columns above, run the open-ended round and write down your first list of harms.

Questions to put to your chatbot builder or vendor.

  • Which of these failures have you already tested, and can you show the results?
  • What happens when the chatbot is not sure? Does it hand off to a person?
  • What can it do on its own, and what needs a person to approve first?
  • Who can see the conversation logs, and how long are they kept?
  • How will you retest when something changes?

Does manual red teaming replace proper testing?

No. Manual red teaming finds harms and maps the risk, but Microsoft says it does not replace systematic measurement and fixes. Treat your session as step one. The guide also says it is not legal advice, so check your legal and regulatory duties with a qualified professional.

Your next step is a repeatable test set. Microsoft's Evaluate your AI agents guide shows the idea. Build a dataset of realistic customer questions, define what a good answer looks like, score the answers against a rubric with safety checks, and set a pass mark before release. Rerun it after every change. Keep monitoring the live chatbot after launch.

That guide is written for developers. Its code needs a Microsoft Foundry project, an Azure model deployment and Python setup. You can still borrow the structure as a checklist and hand the technical part to a developer or partner.

Microsoft also offers an AI Red Teaming Agent, which automates the attack side. It runs automated attacks and reports an attack success rate. Its limits are worth knowing. It covers text only, uses made-up data, and for agents it currently supports only certain ones built on Microsoft's own platform. Microsoft warns that scores can include false alarms, so a person should review results before acting.

Microsoft's page on that tool says the most effective approach combines automated tools with expert human analysis. Humans find the surprises, and repeatable tests make sure fixes hold. Neither replaces your own judgment about what is acceptable to say to your customers.

Frequently asked questions

Does a chatbot red team need a security expert?

Microsoft says testers with a security-testing background are essential for understanding security risks such as jailbreaks, while ordinary users and subject experts catch the problems customers actually meet. If you cannot get a security person for the first session, run it anyway with ordinary users and subject experts. Bring in a security professional before launch if your chatbot touches private records or can take actions such as sending messages or changing data.

How long should the session last?

Microsoft does not set a fixed time. It tells you to decide how much time each tester should spend, since people playing ordinary customers might need less than people trying to break things. Plan one focused session for the first round. Plan shorter retests after each fix rather than one huge test.

How often should the exercise be repeated?

Run it before launch, then again whenever you change the chatbot's instructions, knowledge, model or connected tools. Microsoft describes red teaming as several rounds, each building on the last list of harms. Between sessions, keep rerunning your saved prompts so old problems do not quietly come back.

Is it safe to test with real customer information?

Use made-up customers and made-up records instead. Microsoft's own automated tool uses synthetic data and recommends a non-production environment that mimics the real one. Testers will deliberately try to extract private details, so real details should never be within reach during the session.

Is red teaming the same as a security audit?

Not quite. The term began in cybersecurity as simulated attacks on a system. For AI chatbots it grew broader, covering harmful or wrong answers that come from normal use as well as deliberate attacks. A security audit still matters if your chatbot connects to private systems, but it does not replace this kind of testing.

Sources

Every claim above comes from the original publisher pages below. Read them directly for exact figures and current terms. Nova Buzz Media is independent of these vendors.

Still deciding where AI belongs in your business? Nova Buzz Media offers a free AI fit scan at /scan/ that shows which follow-up, quoting, billing, review, reactivation and reporting systems fit your business.

Get my free fit scan

Related guides