Skip to content
Pwnversity
AI-REDTEAMadvanced · 5 min · upd. 2026-10

AI red teaming

MITRE ATLAS

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.

  • 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.
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
  1. Scope: which system is tested, which tools it has, and which data it touches; define rules of engagement.
  2. Modeling: AI-specific threats (MITRE ATLAS, OWASP LLM Top 10) plus the app’s classic surface.
  3. Tests: direct and indirect injection (Prompt injection), data extraction, agency abuse, and jailbreaks.
  4. Automate: red-teaming frameworks for scale and regression.
  5. Report: findings, impact, and mitigations (Defending AI systems), prioritized by real risk.
  6. Continuity: repeat on every model, prompt, or tool change.

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.

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).

  • 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.
  • 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.
  • 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).
  • 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)