Back to Glossary

Red Teaming

Synonyms: adversarial testing, AI red teaming, security stress testing, adversarial probing, attack simulation

Do not index

Definition

Red teaming is the practice of deliberately attacking your own product like an adversary would, to find weaknesses before real users or bad actors do. For AI, that means probing a model for harmful outputs, jailbreaks, prompt injection, bias, and leaked data. It comes from military and cybersecurity, and it's now standard at every major AI lab.

Use cases

Skip it and your users (or the press) become your red team, usually right after launch. The cost is harmful outputs, viral jailbreaks, data leaks, and brand damage.
  • The five-word system-prompt leak. A chatbot ships with unit and load tests, then someone extracts the hidden system prompt, including internal API logic, with one clever sentence.
  • The grandma jailbreak. A model refuses a harmful request directly, but complies when it's reframed as "my late grandmother used to read me...". Red teamers hunt these reframings, so guardrails hold in the wild.
  • The "helpful" injection. An AI that reads web pages or emails follows hidden instructions buried in that content and leaks data. Indirect prompt injection stays invisible until someone tests for it.

How it's used in practice

  • Threat-model first: list what could go wrong (harmful content, leaks, misuse, bias) and map it to a taxonomy like the OWASP Top 10 for LLMs before you start.
  • Mix manual and automated: hand-crafted attacks find subtle, creative failures; scanners (PyRIT, garak) give broad, repeatable coverage.
  • Recruit diverse attackers: test across languages, cultures, and abuse cases that a homogeneous team would miss.
  • Make it continuous: a model that resists today's jailbreaks falls to tomorrow's, so re-run after every change instead of treating it as a launch gate.
 
🪄
Pro-tip: Put designers in the red team alongside security. Beyond "can we break it?", design the failure UX: what a user sees when the AI refuses, gets jailbroken, or produces something off.
A graceful, honest failure state turns a caught attack into a non-event, so test the recovery experience too.

Challenges & limitations

  • It's a moving target. New jailbreaks appear constantly (GPT-5 was reportedly broken within 24 hours of release), so a clean red-team report has a short shelf life.
  • Coverage is never complete. AI systems behave differently every run, so passing your tests proves you didn't find a hole, not that none exists.
  • It needs real expertise and diversity. Generic testers miss domain-specific and culturally specific attacks, and good red teaming is a staffed, ongoing program, not a one-off.

Free resources

 
notion image
 
 
 
 
 
 
 
 
 

Share this post

Get free UX resources

Get portfolio templates, list of job boards, UX step-by-step guides, and more.

Download for FREE
 
 
 

The best email 📮 for growing 🌱 designers

 
Honest notes about the work behind the work. Read in 2 minutes, weekly. Free forever.
 
 
     
    notion image
     
    Join 13,045 designers and get tactics, hacks, and tips.