Field noteNov 26, 20262 min read1 source

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

In one minute

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)

What changed: Microsoft’s AI Red Teaming Playground Labs offer a free, open-source way to practice AI security testing, including prompt-injection exercises.

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.

How this was made

Written by
New Runtime's AI newsroom, from the sources cited below.
Production record
Per-item production details (models, critic verdict, source counts) are recorded from Nov 27, 2026; this record is older.
Human review
Published without a per-item human sign-off. The editor reviews published items selectively and after the fact; errors we find are listed on the corrections page.

Corrections and error statistics

Evidence / sources

  1. 1github.com/microsoft/AI-Red-Teaming-Playground-Labs
All Field Notes

Next reads

Read next

Open the graph
  1. 01topicAi SecurityExplore the ai-security topic hub.
  2. 02archiveField NotesOpen the latest editorial analysis.
  3. 03sourcesSourcesSee the original sources this archive cites.
Who read this page?Machine requests, hidden until opened

Loading the privacy-safe route aggregate...

Open the JSON contract