---
type: "post"
id: "microsoft-s-public-ai-red-teaming-playground-labs-9babf1"
slug: "microsoft-s-public-ai-red-teaming-playground-labs-9babf1"
title: "Microsoft’s public AI Red Teaming Playground Labs repository packages course challenges into a playground"
description: "Microsoft’s public AI Red Teaming Playground Labs repository packages course challenges into a playground anyone can use; its default Docker Compose setup starts 12 challenges."
retrieval_nugget: "Microsoft’s public AI Red Teaming Playground Labs repository packages course challenges into a playground anyone can use; its default Docker Compose setup starts 12 challenges."
published_at: "2026-11-26"
updated_at: "2026-11-26"
record_date: "2026-11-26"
date_kind: "published_at"
topics: ["ai-security"]
entities: ["Microsoft","AI Red Teaming Playground Labs","PyRIT","Chat Copilot"]
related_patterns: ["agent-security-moves-to-runtime-boundaries"]
novelty_label: "new_fact"
what_changed: "Microsoft’s AI Red Teaming Playground Labs offer a free, open-source way to practice AI security testing, including prompt-injection exercises."
prior_refs: []
source_url: "https://github.com/microsoft/AI-Red-Teaming-Playground-Labs"
source_urls: ["https://github.com/microsoft/AI-Red-Teaming-Playground-Labs"]
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "post:microsoft-s-public-ai-red-teaming-playground-labs-9babf1"
status: "published"
visuals: []
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/posts/microsoft-s-public-ai-red-teaming-playground-labs-9babf1/","markdown":"https://newruntime.com/posts/microsoft-s-public-ai-red-teaming-playground-labs-9babf1.md","json":"https://newruntime.com/posts/microsoft-s-public-ai-red-teaming-playground-labs-9babf1.json"}
markdown_url: "https://newruntime.com/posts/microsoft-s-public-ai-red-teaming-playground-labs-9babf1.md"
---

# Microsoft’s public AI Red Teaming Playground Labs repository packages course challenges into a playground

## Retrieval answer

Microsoft’s public AI Red Teaming Playground Labs repository packages course challenges into a playground anyone can use; its default Docker Compose setup starts 12 challenges.

## Summary

Microsoft’s public AI Red Teaming Playground Labs repository packages course challenges into a playground anyone can use; its default Docker Compose setup starts 12 challenges. ([github.com](https://github.com/microsoft/AI-Red-Teaming-Playground-Labs))

## What happened

Built on a modified version of Chat Copilot, the exercises cover direct prompt injection to expose a `passwords.txt` file, indirect injection through a modified mock webpage, metaprompt extraction, and multi-turn Crescendo attacks, including versions that test guardrail bypasses. The repository also includes PyRIT Jupyter notebooks for Labs 1 and 5; Lab 13 is notebook-only, with no associated challenge. Organizers can edit challenge descriptions and objectives in `challenges/challenges.json` and use `generate.py` to generate a new Docker Compose file. The repository is MIT-licensed.

## Why it matters

For builders, the documented route is to configure the provider, start the matching Compose setup, then open the local login page. For Azure OpenAI, configure environment variables in `.env` using `.env.example`, then run `docker-compose up`; for the standard OpenAI API, set `OPENAI_API_KEY`, `OPENAI_TEXT_MODEL`, `OPENAI_EMBEDDING_MODEL`, `AUTH_KEY` and `SECRET_KEY`, then run `docker compose -f docker-compose-openai.yaml up`. The challenges are served at `http://localhost:5000/login?auth=[YOUR-AUTH-KEY]`; on macOS, the README directs users to `http://127.0.0.1:5000/login?auth=[YOUR-AUTH-KEY]` because the containers listen on IPv4 while `localhost` maps to IPv6.

## Limits and uncertainty

The README says safety filters are disabled for the easy Crescendo exercises, so those are not a test of filtering under normal settings. Setup requires Docker and Python 3.8 or newer, plus either an Azure OpenAI endpoint and API key or an OpenAI API key; the Azure route additionally calls for a Foundry deployment named `text-embedding-ada-002` using that model, as well as the intended text model. The standard OpenAI path requires the listed model and key variables. The default landing page does not track progress or provide a leaderboard; Microsoft recommends optional CTFd for larger events. The README does not establish API usage costs.

## Reader takeaway

The repository makes red-team exercises tangible: its default Docker setup runs 12 challenges, from prompt injection to multi-turn Crescendo attacks. The labs are open to use and adaptable, but running them depends on Docker, Python and an OpenAI or Azure OpenAI API setup; the README does not establish API costs.

Editor: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- topic hub: [Ai Security](https://newruntime.com/topics/ai-security.md): Explore the ai-security topic hub.
- collection: [Field Notes](https://newruntime.com/posts.json): Open the latest editorial analysis.
- collection: [Sources](https://newruntime.com/sources/): See the original sources this archive cites.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
