Skip to main content
← Guides

How to prepare a red-team session

Guardrails & safety

Fix scope, harm list and record format first, let a team probe separately, then turn findings into measurable risk items instead of reading one session as proof of safety.

What this guide covers

A red team is an organised attempt to attack, used to map the risk surface. It cannot prove safety; it can only show which attacks have not yet been found. The Microsoft documentation draws this boundary explicitly: Official text: "red teaming is not a replacement for systematic measurement" This guide shows how to run a session that produces items you can measure.

Who this is for

  • A product about to face external users, or about to be given tools with write access.
  • Guardrails and filters exist, but you do not know what they miss under real phrasings.
  • You must tell reviewers or regulators which attack paths you probed yourself.
  • The team only has developer self-tests and lacks a non-developer perspective.

Not a fit: there is no end-to-end flow that runs yet. With nothing testable, a red team becomes a chat competition.

Prerequisites

  1. A scope statement: which version, which entry point (API or product UI), and which tools may be triggered.
  2. Composition: the official documentation recommends a diverse team by experience and discipline, covering both adversarial testers and ordinary-user testers.
  3. Assignment: allocate harm entries to people, and decide whether assignments rotate between rounds.
  4. A recording place: one shared sheet with input, output, unique identifier, time surfaced, tester.
  5. Boundaries and authorisation: which test accounts exist, what could be damaged, who cleans up.
  6. A content-warning mechanism: findings may include harmful samples, so distribution is decided in advance.

The Microsoft documentation recommends recording a reproducible identifier for each input/output pair, so that later rounds can return to the same example.

Seven steps

  1. Fix the goal: is this round mapping the risk surface, or validating one specific mitigation.
  2. Start open-ended: no list at first, so testers surface blind spots.
  3. Consolidate into a harm list: merge findings into entries, each with a definition and an example. Entries left off the list count as uncovered, not as safe.
  4. Run a guided round: probe the listed entries and keep recording new ones.
  5. Compare against mitigations: run once with guardrails and once without, otherwise the effect is only a feeling.
  6. Prioritise and assign: order by severity and the conditions under which the harm appears, then name owners.
  7. Publish a short report: the official structure is top issues, a link to raw data, the plan for the next round, and acknowledgement of testers.

Step 5 is the one people skip.

Worked example: one session for a ticket assistant

The scenario and the numbers are illustrative — invented assumptions, not measured results for any product.

  • Input: an internal ticket assistant that reads customer mail and can change ticket status.
  • Processing: 4 people x 90 minutes (example arrangement); two with security background, two from the support business team. Round one is open-ended, round two follows six harm entries; a control run disables the output guardrail on the same attack phrasings.
  • Judging the result (example): 23 findings in total, 5 of which make the assistant promise compensation outside policy. Of those 5, 3 are still blocked by the tool layer with the output guardrail off, so the current block comes from the tool layer, not the output layer. As the official documentation warns, this is identification, not an incident rate.
  • What to do after a failure: Add the 5 compensation-promise samples to the evaluation set as permanent regression items; for the "impersonating a supervisor" entry, add a tool-argument guardrail and retest in the next round; record what was not covered — this session did not test multilingual input or attachment parsing.

One test for the session: at the end, can you show the number of new measurable entries and the plan for the next round. Stories without entries mean the work is unfinished.

Acceptance

  • [ ] Every finding has a reproducible input and a note on that round's environment
  • [ ] Each harm entry carries a definition and at least one example
  • [ ] Both the mitigation-on and mitigation-off results stay in the record
  • [ ] The report states which entries, languages and data types were not covered
  • [ ] Fixes land in evaluation or guardrail configuration, with a retest date
  • [ ] Report distribution is controlled, and harmful samples stay out of open channels

Troubleshooting branches

  • Findings cluster in two or three people: rotate assignments, or let the business-side testers write the list first.
  • Everything found is a known issue: the attack surface has become fixed, so switch entry point (product UI rather than API).
  • Testers are blocked by their own environment (401 / 403): that is a permission problem, not a successful attack — fix access first.
  • Requests get rate-limited mid-session (429): lower concurrency and repetition; do not log a rate limit as a protection result.
  • A previous example no longer reproduces: check whether the model version or tool permissions changed, and record the version each round.
  • The report turns one example into a rate: the official documentation separates identification from measurement, so the wording must change.
  • A fix keeps getting bypassed: the value of the OWASP list is its entries — check which category you patched and which stays open.

Next steps

  1. Hand the reproducible samples to the evaluation pipeline so they become regression items.
  2. When a new blocking point is needed, decide its layer using the guardrail-placement guide.
  3. Before the next round, put this round's uncovered items into its goal list.
  4. For procurement work, convert the finding types into vendor questions.

What was verified and what is not

On 2026-11-06 four official sources were fetched directly: the Microsoft Learn red-teaming planning page, the Anthropic blog on red-teaming challenges, the arXiv red-teaming methodology abstract, and the OWASP LLM application risks repository; the OpenAI Agents SDK guardrails page was refetched the same day. This guide reports only the practices and boundaries those pages state. No red-team activity was organised or executed.

Unknowns:

  • How the documented team size, duration and composition transfer to products of other scales — the documentation itself says its recommendations do not fit every scenario.
  • Current practical detail of the automated and crowdsourced methods described in the Anthropic post — execution data was not read here.
  • Whether the paper's finding ("RLHF models are increasingly difficult to red team as they scale") transfers to your model and its safety training — public conclusions cannot decide that.
  • The exact entry numbering in the OWASP list version you use — the tables were not checked line by line here.

Sources

SourceURL
Microsoft Learn · Planning red teaming for LLMs (direct fetch 200 on 2026-11-06)https://learn.microsoft.com/en-us/azure/foundry/openai/concepts/red-teaming
Anthropic engineering blog · Challenges in red teaming AI systems (direct fetch 200 on 2026-11-06)https://anthropic.com/news/challenges-in-red-teaming-ai-systems
Red-teaming methodology paper (arXiv 2209.07858, abstract page direct-fetched 2026-11-06)https://arxiv.org/abs/2209.07858
OWASP Top 10 for LLM Applications official repository (direct fetch 200 on 2026-11-06)https://github.com/OWASP/www-project-top-10-for-large-language-model-applications
OpenAI Agents SDK official docs · Guardrails (direct fetch 200 on 2026-11-06)https://openai.github.io/openai-agents-python/guardrails/

Source snapshot: 2026-11-06; item-specific rechecks and their scope are recorded in the text or source notes. Features and terms may change; check the original sources before use.