Red Teaming
Synonyms: adversarial testing, AI red teaming, security stress testing, adversarial probing, attack simulation
Definition
Use cases
- 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.
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
- OWASP Top 10 for LLM Applications — the standard list of the most critical LLM risks, updated yearly.
- OWASP GenAI Red Teaming Guide — a methodology and evaluation criteria specifically for AI red teaming.
- promptfoo Red Teaming — an open-source scanner with OWASP and MITRE presets, easy to wire into CI/CD.

