AI red teaming works only when the attacker is real. Too many teams run a few clever prompts, log the funny outputs, and call it a security review. A genuine red team exercise starts with a defined adversary, a structured set of attack categories, and a plan to turn findings into fixes. Without that, the exercise produces a screenshot folder, not a safer system.
Microsoft’s AI Red Team has tested large language model systems for years and publishes lessons from that work. Its guidance stresses that probabilistic systems need repeated, varied testing, because the same prompt can produce different outputs on different runs.
On this page
- Why AI red teaming differs from network red teaming
- Define the adversary before you test
- The core testing categories
- Use a structured framework, not ad hoc prompts
- Document findings as reproducible test cases
- From one-time exercise to continuous testing
- Feed findings back into the threat model
- FAQ
Why AI red teaming differs from network red teaming
Network red teaming looks for a fixed flaw: an open port, a missing patch, a weak credential. Once found, the fix is usually clear and the flaw does not return on its own. AI systems do not work that way. A large language model can refuse a harmful request once and comply with a near-identical phrasing the next time, because the output is probabilistic, not deterministic.
This changes what “fixed” means. There is no single patch that closes a jailbreak the way a firewall rule closes a port. Mitigations for AI systems are layered: input filtering, output filtering, system prompt design, and monitoring, and each layer reduces risk rather than eliminating it. Red teamers need to test the system as a whole, not just the model weights.
- Outputs vary run to run, so a single successful bypass does not prove the flaw is gone after a fix.
- Guardrails sit at multiple layers, so testing only the model misses the real attack surface.
- Success and failure are often graded on a spectrum, not a binary pass or fail.
Define the adversary before you test
Every red team exercise should start with a written adversary profile, not a blank prompt window. The profile answers three questions: how skilled is this attacker, what access do they already have, and what do they want. A curious employee testing boundaries is a different adversary than a paid attacker with API access and a financial motive.
Skipping this step is the most common reason red team exercises produce weak results. Testers default to whatever attacks are easy to try, usually public jailbreak prompts copied from a forum. Those prompts test against a low-skill, low-motivation adversary and say nothing about what a determined attacker with insider access could do.
- Skill level: casual user, security researcher, or funded attacker with tooling.
- Access level: public interface only, authenticated account, or backend API access.
- Motivation: curiosity, reputational harm, financial gain, or data theft.
The core testing categories
A realistic AI red team exercise covers several distinct attack categories, because each one exploits a different weakness. Jailbreaks try to override the model’s safety instructions through clever phrasing or role play. Prompt injection hides instructions inside content the model processes, such as a document or a web page, so the model follows the attacker’s commands instead of the user’s.
Data extraction attempts pull training data, system prompts, or other users’ information out of the model’s responses. Harmful content generation tests whether the system produces dangerous instructions or abusive material. Agent misuse is its own category now that many AI systems can take actions, not just generate text, so testers need to check whether an agent can be tricked into sending money, deleting files, or calling tools it should not call.
- Jailbreaks and prompt injection target the model’s instructions and boundaries.
- Data extraction and harmful content generation target the model’s outputs.
- Agent misuse targets the actions a system takes on a user’s behalf.
Use a structured framework, not ad hoc prompts
A structured framework maps each test back to a known attack technique, so results can be compared across systems and over time. The MITRE ATLAS knowledge base catalogs adversarial tactics and techniques against AI systems and gives teams a shared vocabulary for what they tested and what they did not.
The OWASP Top 10 for Large Language Model Applications offers a similar structure focused on application-level risks. Using a published framework also makes it easier to brief non-technical stakeholders, because the categories map to concrete business risks rather than clever prompt tricks.
- Frameworks give testers a checklist of technique categories, reducing blind spots.
- Shared vocabulary lets security and product teams compare results across releases.
- Mapped findings are easier to prioritize because they tie to known risk categories.
Operating rule: No test counts until it can be rerun by someone else and produce the same class of result. A screenshot is a lead, not evidence.
Document findings as reproducible test cases
A screenshot of a bad output is a weak artifact. It proves the model said something once, under conditions nobody wrote down. A reproducible test case records the exact prompt, the configuration, the model version, and the expected versus actual behavior, so an engineer can rerun it after a fix and confirm the issue is resolved.
This discipline matters more in AI systems than in traditional software because outputs vary. A finding that cannot be reproduced at some consistent rate is hard to prioritize or verify as fixed. Teams that skip this step often rediscover the same issue months later, because nobody could confirm whether the original fix worked.
- Record the exact prompt, context, and system configuration used.
- Note the model version and any relevant settings, since behavior shifts across versions.
- Track the reproduction rate, since AI outputs are not always consistent.
From one-time exercise to continuous testing
A single red team exercise gives a snapshot of risk on one day, against one model version, with one set of guardrails. Models get updated, prompts get changed, new features get shipped, and each change can reopen a closed issue. Treating red teaming as a one-time project before launch leaves the system unwatched for everything that happens afterward.
Continuous adversarial testing runs a rotating set of test cases on a schedule, or automatically whenever the model, prompt, or configuration changes. This does not replace deep manual exercises done by skilled testers, but it catches regressions between them and gives the security team an early warning when something breaks.
- Schedule automated reruns of known test cases after every model or prompt change.
- Keep manual, deep-dive exercises for new features and major model upgrades.
- Track findings over time to see whether the system is getting safer or drifting.
Feed findings back into the threat model
A red team report that sits in a shared drive has not made anything safer. The value comes from what happens after the report is delivered: findings need to update the threat model, drive changes to mitigations, and inform what gets tested next. Treating the report as the end product is the single biggest waste of a red team budget.
Practically, this means assigning an owner for each finding, setting a fix deadline, and scheduling a retest against the reproducible test case. It also means updating the adversary profile if the exercise revealed a more capable attacker should be assumed next time.
- Assign an owner and deadline for every confirmed finding.
- Retest against the original reproducible case, not a new prompt.
- Update the adversary profile and threat model with what the exercise revealed.
| Approach | What it produces | Main weakness |
|---|---|---|
| Ad hoc prompt testing | A list of interesting outputs | No defined adversary, no reproducibility |
| Framework-based red teaming | Findings mapped to known technique categories | Still a point-in-time snapshot |
| Continuous adversarial testing | Ongoing regression detection across changes | Needs automation investment to run well |
| Red teaming with feedback loop | Findings that change the threat model and mitigations | Requires ownership and process, not just testing |
FAQ
What is AI red teaming?
AI red teaming is the practice of testing an AI system by simulating a realistic adversary, using defined attack categories such as jailbreaks, prompt injection, and data extraction, to find weaknesses before real attackers do.
How is AI red teaming different from penetration testing?
Penetration testing usually targets deterministic software flaws that have a clear fix. AI red teaming targets a probabilistic system where the same input can produce different outputs, so mitigations are layered rather than a single patch.
Who should be on an AI red team?
A strong team mixes security testers who understand attack techniques, domain experts who understand the harms relevant to the product, and engineers who understand the system architecture well enough to explain why an attack worked.
How often should AI red teaming happen?
Deep manual exercises should happen before major launches and model upgrades. Automated reruns of known test cases should happen continuously, since prompts, configurations, and model versions change frequently.
What is an adversary profile?
An adversary profile is a written description of the attacker a test simulates, covering skill level, access level, and motivation. It should be defined before testing starts, not inferred afterward from whatever attacks were tried.
What is prompt injection?
Prompt injection is an attack where instructions hidden inside content the model processes, such as a document or web page, override the intended behavior set by the system or the user.
Why do reproducible test cases matter?
Because AI outputs vary, a single bad output does not prove a flaw or confirm a fix. A reproducible test case records the exact conditions so the finding can be verified and rechecked after mitigations are applied.
Related reading
- AI Security Needs Its Own Threat Model
- Prompt Injection Defense Needs Layered Controls
- AI Incident Response Needs a Model-Specific Playbook
Conclusion
AI red teaming earns its value only when it tests against a realistic adversary and feeds what it learns back into the system. Define the attacker before writing a single prompt. Cover jailbreaks, prompt injection, data extraction, harmful content, and agent misuse using a structured framework. Document findings as reproducible test cases, not screenshots, and treat the exercise as the start of continuous testing, not a one-time project. The report is not the finish line. The updated threat model and the fixed mitigations are.
Sources
More Stories
AI Access Logging Needs Prompt-Level Detail
Standard web access logs are not enough for AI systems. Prompt-level logging captures what an incident reconstruction actually needs.
Shadow AI Needs Discovery Before Policy
A policy written before discovery fails. Find actual AI use through network review, audits, procurement records, and non-punitive surveys.
AI Incident Response Needs a Model-Specific Playbook
A generic IT incident response plan misses AI failure modes. A model-specific playbook covers rollback, evidence, and decision rights.
AI Output Handling Needs Downstream Validation
Raw model output should never reach a database, shell, or user unvalidated. Apply the same discipline used for user input.
Training Data Poisoning Needs Source Control
Poisoning attacks corrupt training or fine-tuning data. Source control, provenance, and auditing reduce the risk before a training run.
Model Supply Chain Needs Provenance Checks
An unverified model file is a supply chain risk. Provenance, signing, and version pinning bring model artifacts under control.