AI red teaming
AI red teaming systematically tests a model or an AI application to find security flaws (injection, data leakage, tool abuse) and content-safety flaws: harmful outputs, bias, and guardrail evasion. It combines a classic pentest of the application wrapping the model with tests specific to model behavior, and it is always run on your own systems or with authorized scope.
Threat model
Section titled “Threat model”- What is assessed: the model, the application orchestrating it (RAG, agents), the tools it can invoke, and the data it touches.
- Two axes: security (injection, prompt/data leakage, tool abuse, unbounded consumption, model theft) and safety (harmful outputs, dangerous instructions, bias, jailbreaks that bypass the model’s policies).
- Robustness: adversarial inputs, out-of-distribution inputs, and hallucinations.
- Impact priority: real harm depends on the system’s agency (which tools and data it touches), so that’s where effort is concentrated.
Methodology
Section titled “Methodology”flowchart TD
A[1. Scope\nmodel / app / agent] --> B[2. Threat modeling\nATLAS + OWASP LLM]
B --> C[3. Tests\ninjection, extraction, agency abuse, jailbreaks]
C --> D[4. Automate\ngarak / PyRIT for scale and regression]
D --> E[5. Report\nfindings, impact, mitigations]
E --> F[6. Continuous regression]
F --> C
- Scope: which system is tested, which tools it has, and which data it touches; define rules of engagement.
- Modeling: AI-specific threats (MITRE ATLAS, OWASP LLM Top 10) plus the app’s classic surface.
- Tests: direct and indirect injection (Prompt injection), data extraction, agency abuse, and jailbreaks.
- Automate: red-teaming frameworks for scale and regression.
- Report: findings, impact, and mitigations (Defending AI systems), prioritized by real risk.
- Continuity: repeat on every model, prompt, or tool change.
MITRE ATLAS
Section titled “MITRE ATLAS”ATLAS is the equivalent of ATT&CK for AI systems: it catalogs real tactics and techniques for attacks on ML/LLM (model reconnaissance, access, evasion, poisoning, exfiltration). The recommended practice is to map each finding to ATLAS just as classic pentesting maps to ATT&CK (ATT&CK), to speak a common language with the defense team.
Tools (public)
Section titled “Tools (public)”| Tool | Purpose |
|---|---|
| garak | “nmap for LLMs”: probes for injection, leakage, toxicity, and jailbreak |
| PyRIT | AI red-teaming framework (Microsoft), orchestrates attacks and scoring |
| Giskard | Model robustness and bias testing |
| promptfoo | Prompt evaluation and comparison, with security cases |
On top of this comes the classic pentest of the application and the APIs around the model (API security).
Differences vs classic pentesting
Section titled “Differences vs classic pentesting”- Non-determinism: a payload that fails sometimes works; test repeatedly and vary.
- The instruction/data boundary (Prompt injection) is the core of many findings.
- Impact depends on the model’s agency (tools and permissions): prioritize there.
- Safety and security overlap: a jailbreak can enable a real security abuse.
Red Team
Section titled “Red Team”- Reproduce both direct and indirect injection and measure how far they scale (prompt leak, tool action).
- Test extraction of the system prompt and context data, and unbounded-consumption tests (cost/DoS).
- Run automated batteries with garak/PyRIT and keep the cases as regression.
- Document each finding with impact and an ATLAS mapping; avoid overstating the model’s capabilities in the report.
Blue Team
Section titled “Blue Team”- Continuous red teaming, not one-off: non-determinism and new jailbreaks demand regression.
- Prioritize by real impact: the agent’s agency (which tools and data it touches) rules.
- Turn findings into defenses (Defending AI systems) and into reproducible automated tests.
- Combine with a classic pentest of the app and APIs (API security) and with model governance (NIST AI RMF).
Checklist
Section titled “Checklist”- Define scope (model/app/agent, tools, data) and rules of engagement
- Model threats with ATLAS + OWASP LLM Top 10
- Test direct and indirect injection (Prompt injection)
- Prompt/data extraction and tool abuse (agency)
- Jailbreaks and safety/robustness tests
- Automate with garak/PyRIT and keep cases as regression
- Map to ATLAS; report with mitigations (Defending AI systems)