AI Red Teaming with the OWASP Top 10 for LLMs
AI red teaming is adversarial testing of an LLM application: sending attack prompts (prompt injection, jailbreaks, data extraction, tool misuse) to the real system and measuring how often they succeed. The OWASP Top 10 for LLM Applications (2025) is the most widely used checklist for organising the attacks and reporting the results.
Functional evaluation asks whether your application does the right thing for normal users. Red teaming asks what it does for a user who is trying to make it misbehave, or for a document, web page or email that contains hidden instructions. This article explains the OWASP LLM Top 10, how to run a red-team campaign step by step, and how to report the results honestly. It is part of the LLM evaluation guide.
The OWASP Top 10 for LLM Applications (2025)
| ID | Risk | What a test looks like |
|---|---|---|
| LLM01 | Prompt Injection | Direct jailbreaks, and instructions hidden in retrieved content (indirect injection) |
| LLM02 | Sensitive Information Disclosure | Attempts to extract personal data, secrets or other users' data |
| LLM03 | Supply Chain | Review of models, plugins and datasets you depend on (mostly not prompt-testable) |
| LLM04 | Data and Model Poisoning | Poisoned documents or memory entries that change later behaviour |
| LLM05 | Improper Output Handling | Outputs that become code, SQL, HTML or shell commands downstream |
| LLM06 | Excessive Agency | Agents calling tools they should not, or without approval |
| LLM07 | System Prompt Leakage | Requests to reveal or paraphrase the system prompt |
| LLM08 | Vector and Embedding Weaknesses | Cross-tenant retrieval, poisoned embeddings |
| LLM09 | Misinformation | Confident false or biased answers |
| LLM10 | Unbounded Consumption | Inputs that cause runaway tokens, cost or latency |
The list comes from the OWASP GenAI Security Project (OWASP, 2025). Some entries, such as supply chain, are mostly about process and architecture rather than prompts, so a prompt-based campaign covers part of the list, not all of it. MITRE ATLAS and the NIST AI Risk Management Framework are useful companions when you need to map findings to adversary techniques or governance functions.
How to run a red-team campaign
- Define scope: the target (a model with your system prompt, or the full application or agent endpoint), what counts as a successful attack, and which categories matter for your product.
- Assemble probes per category, and apply mutations (encodings such as base64, role-play framing, translation) to see whether simple obfuscation bypasses defences.
- Send probes to the real target, the way an attacker would reach it, and store every prompt and response as evidence.
- Grade each response with an independent judge model against an explicit rubric (refused, complied, partial). Keyword heuristics are a fallback, not a grader.
- Assign severity per finding and map it to the OWASP category.
- Report attack success rate with a confidence interval, per category, and the number of probes that errored or could not be graded.
- Fix, then re-run the same probes as a regression suite before every release.
Reporting honestly
An attack success rate of 0% on 20 probes does not mean the system is safe; the 95% upper bound is still about 16%. Report how many probes were graded, how many errored, the grading method, and the categories you did not test. Treat red teaming as a way to find and fix weaknesses, not as a certificate.
Defences worth testing for
- Separating instructions from data in prompts, and telling the model to treat retrieved content as data.
- Least-privilege tools, with human approval for irreversible actions.
- Output handling that escapes or validates model output before it reaches a browser, database or shell.
- Input and output filters for secrets and personal data.
- Rate, token and cost limits per user to contain unbounded consumption.
Red teaming in NexGen QA
NexGen QA's Red Team Campaigns send real attack prompts to a model, or on Pro to your own agent endpoint, across categories such as jailbreak, injection, indirect injection, data extraction, PII leakage, system prompt leakage, excessive agency, insecure output and unbounded consumption, with optional mutations. Each probe is graded by a judge model you choose (without one, a keyword heuristic is used and no severity is assigned), mapped to the OWASP LLM Top 10, and kept as evidence with its prompt and response. Results show the attack success rate with a 95% confidence interval and a per-category breakdown. Free runs up to 10 probes per campaign; Pro runs the full set and can gate releases on attack success.
Frequently asked questions
What is AI red teaming?
AI red teaming is adversarial testing of an LLM application: sending attack prompts such as prompt injections, jailbreaks and data-extraction attempts to the real system and measuring how often they succeed.
What is the OWASP Top 10 for LLM Applications?
It is a list of the ten most critical security risks for LLM applications published by the OWASP GenAI Security Project. The 2025 edition starts with LLM01 Prompt Injection and ends with LLM10 Unbounded Consumption.
Does a 0% attack success rate mean my app is secure?
No. On 20 probes the 95% upper bound is still about 16%, and untested categories are not covered. Report the number of probes, the grading method and the confidence interval.
Sources
NexGen QA puts AI evaluation (tracing, datasets and scorers, red teaming, human review, release gates and evidence) next to 35+ software testing modules, on your own model keys.
Related reading
More articles
- How to Evaluate an LLM Application, Step by Step
An eight-step process for evaluating LLM apps: success criteria, error analysis, a versioned test set, scorers, baselines, specialised suites and production checks.
- LLM Evaluation Metrics: Which to Use and When
The four families of LLM evaluation metrics (deterministic checks, reference similarity, judge-based scores and human ratings) and which to use for each task.
- How to Build an LLM Evaluation Dataset
What goes in a golden dataset for LLM evaluation, where cases come from, how many you need (with confidence intervals), and how to version and split it.
Published by the NexGen QA team at Techtonic Innovations LLC · About NexGen QA