An LLM application that reads documents, calls tools and acts on behalf of users has an attack surface unlike any traditional software. Inputs are natural language, behavior is probabilistic, and the line between data and instructions is thin. Independent red teaming is how organizations find out what an attacker, or an ordinary user having an unusual day, can make the system do. This playbook explains how to scope, run and report an engagement that produces findings engineers can fix and leaders can act on.
Why independence matters
The people who build a system know how it is supposed to work, and that knowledge shapes the tests they think to run. NIST's Generative AI Profile (NIST AI 600-1) addresses this directly, recommending that organizations "verify those conducting structured human feedback exercises are not directly involved in system development tasks for the same GAI model"1. The same profile calls for engaging internal and external evaluations and red-teaming with people who are familiar with the context of use1.
Practitioners reach the same conclusion. Microsoft's AI Red Team, which has operated since 2018, published lessons from red teaming more than 100 generative AI products. Among them: "You don't have to compute gradients to break an AI system," "AI red teaming is not safety benchmarking," and "The human element of AI red teaming is crucial"23. In other words, simple, creative attacks from people who think differently from the build team often matter more than sophisticated tooling.
A red team's value comes from asking the questions the build team did not think to ask, then proving the answer with a reproducible test.
Independence also supports governance. A report produced by a team outside the delivery chain carries more weight with risk committees, auditors and regulators than a self-assessment, and it gives the build team a clear, impartial list of what to fix. Quantabase provides this through Assure, which evaluates and red-teams AI systems independently of the teams that built them.
The regulatory and standards context
Adversarial testing has moved from good practice to an explicit expectation in several frameworks:
- EU AI Act, Article 55. Providers of general-purpose AI models with systemic risk must "perform model evaluation in accordance with standardised protocols and tools reflecting the state of the art, including conducting and documenting adversarial testing of the model." These obligations have applied since 2 August 20254.
- EU AI Act, Article 15. High-risk AI systems must achieve "an appropriate level of accuracy, robustness, and cybersecurity" throughout their lifecycle, with technical measures addressing data poisoning, model poisoning, adversarial examples or model evasion, confidentiality attacks and model flaws5. Under the Digital Omnibus on AI, which entered into force on 27 July 2026, the application date for stand-alone Annex III high-risk systems moved to 2 December 2027, and to 2 August 2028 for AI embedded in products covered by EU product safety legislation6.
- NIST AI Risk Management Framework. AI RMF 1.0 (January 2023) organizes risk work into Govern, Map, Measure and Manage, and the Generative AI Profile (July 2024) lists twelve risk areas including confabulation, data privacy, information security and value chain and component integration71.
- CISA and UK NCSC. The joint Guidelines for Secure AI System Development, developed with 21 other agencies and ministries including all G7 members, cover secure design, development, deployment, and operation and maintenance8.
- UK AI Security Institute. The institute released Inspect, an open-source evaluation framework under the MIT License, in May 2024 to support standardized testing of model capabilities and safety9.
- OWASP Top 10 for LLM Applications (2025). The most widely used taxonomy of LLM application risks, from LLM01 Prompt Injection to LLM10 Unbounded Consumption10.
Scoping checklist
A well-scoped engagement is the single largest predictor of useful findings. OpenAI's published approach to external red teaming identifies four design decisions: the composition of the red team, the model or system versions testers can access, the interfaces and instructions provided, and how the data is synthesized into evaluations11. The checklist below turns those decisions into concrete questions.
- System description. What does the application do, for whom, and in which workflow? Which model or models does it use, and which versions?
- Architecture. System prompt, retrieval sources, memory, tools and APIs, output destinations (screens, emails, databases, code execution).
- Trust boundaries. Which inputs come from users, which from third parties (web pages, emails, uploaded files), and which from internal systems?
- Agency. What can the system do without a human approving it? Which actions are reversible?
- Data sensitivity. What personal, confidential or regulated data can the system see, and what should it never reveal?
- Harm policy. What content and behaviors are out of bounds for this product and domain?
- Environment and access. Production, staging or a dedicated test environment; test accounts with realistic roles; rate limits and cost caps.
- Rules of engagement. Testing windows, prohibited actions, data handling, stop conditions and the contact for urgent findings.
- Success criteria. What the engagement must answer, such as "Can an external email cause the agent to send data outside the organization?"
Who must be involved
| Participant | Contribution |
|---|---|
| Red-team lead | Owns the plan, threat model, rules of engagement and final report |
| Adversarial testers | Security engineers and prompt specialists who design and run attacks |
| Domain experts | Define realistic harms for the sector (for example clinical, financial or legal advice) and judge outputs |
| System owner | Provides architecture, access and context; accepts findings and owns remediation |
| Security and privacy leads | Align the engagement with existing security testing and data protection obligations |
| Risk or compliance representative | Maps findings to policy and regulatory obligations |
Diversity of perspective is part of the method. NIST recommends interdisciplinary teams spanning a wide range of competencies, domain expertise and lived experience1, and Anthropic has described domain-specific expert testing, multilingual and multicultural testing, and automated testing as complementary methods12.
Threat modeling
Threat modeling turns the scope into a target list. For each component, ask who could influence it, what they could gain and what the system would do in response.
- Draw the data flow. Map every input source, the model calls, every tool and every output destination.
- Mark trust boundaries. Any place where untrusted text enters the context window is a potential injection point.
- List assets. Customer data, credentials, system prompts, financial actions, reputation.
- Identify adversaries. Malicious users, external content authors, compromised insiders and curious users who stumble into edge cases.
- Prioritize scenarios. Rank by impact and plausibility; spend the most effort where an agent can take irreversible actions on sensitive data.
The highest-risk combination in most LLM systems is the same three ingredients together: access to sensitive data, exposure to untrusted content and the ability to act or communicate externally. Scope every engagement to test where those three meet.
Attack categories
Direct prompt injection
The user instructs the model to ignore its rules, adopt a new role or reveal its system prompt. OWASP ranks prompt injection first in its 2025 list (LLM01) and treats system prompt leakage as a separate risk (LLM07)10. Tests include instruction overrides, role-play framing, encoding and obfuscation, and multi-turn escalation.
Indirect prompt injection
Instructions are planted in content the system retrieves: a web page, a shared document, an email or a support ticket. Greshake and colleagues showed in 2023 that LLM-integrated applications "blur the line between data and instructions," enabling remote attacks including data theft and information ecosystem contamination without direct access to the interface13. For agents and retrieval-augmented systems, this is usually the most important category to test.
Data exfiltration
The attacker aims to extract sensitive information, either from the model's context (other users' data, retrieved documents, credentials) or through a side channel such as a rendered link or image that encodes data in a URL. This maps to OWASP LLM02 Sensitive Information Disclosure and LLM05 Improper Output Handling10.
Tool misuse and excessive agency
The attacker steers the system into calling tools in unintended ways: sending messages, modifying records, running code or spending money. OWASP LLM06 Excessive Agency describes damaging actions performed in response to unexpected, ambiguous or manipulated model outputs, with root causes in excessive functionality, excessive permissions and excessive autonomy18. Tests check whether permissions are scoped, whether high-impact actions require confirmation and whether tool outputs are themselves treated as untrusted.
Jailbreaks
Attempts to bypass the model's safety behavior to produce prohibited content. Microsoft's red team notes that simple techniques are often effective, which is why manual creativity remains essential alongside automation2.
Domain harms
Failures specific to the use case: incorrect financial or medical guidance, unfair treatment of customer groups, fabricated citations, or commitments the business cannot honor. These align with OWASP LLM09 Misinformation and NIST's confabulation and harmful bias risks101.
Resource abuse
Inputs designed to drive excessive token use, long tool loops or costly calls, covered by OWASP LLM10 Unbounded Consumption10.
Tooling
Open-source tools help testers cover more ground and make results repeatable. They complement, rather than replace, human testing.
| Tool | Maintainer | What it does |
|---|---|---|
| PyRIT | Microsoft | A framework for automated and human-led red teaming of generative AI systems, with multi-turn attack strategies, scoring and memory of prior attempts14 |
| garak | NVIDIA and community | An LLM vulnerability scanner with plugins and prompt sets that probe for hallucination, data leakage, prompt injection, misinformation, toxicity and jailbreaks15 |
| promptfoo | Promptfoo | A configuration-driven tool that generates adversarial test cases through plugins (for example PII, excessive agency, hijacking) and runs them against prompts, APIs or HTTP endpoints16 |
| Inspect | UK AI Security Institute | An evaluation framework built from datasets, solvers and scorers for standardized model testing9 |
A practical pattern is to use automated tools for breadth in the first days, then direct human effort at the system's specific tools, data and workflows, where the most consequential findings usually sit.
Severity rubric
Severity combines impact and exploitability. A consistent rubric lets system owners prioritize and lets leadership compare results across engagements.
| Severity | Impact | Exploitability | Example | Expected response |
|---|---|---|---|---|
| Critical | Unauthorized action or disclosure of sensitive data at scale | Reliable, low skill, no special access | Planted text in an inbound email causes the agent to forward customer records externally | Fix or disable the capability before further release |
| High | Disclosure of confidential data or a harmful action affecting individuals | Reproducible with moderate effort | User retrieves another customer's documents through crafted queries | Fix within the current release cycle |
| Medium | Policy-violating output or limited data exposure | Requires multi-step or specific conditions | System prompt revealed through role-play framing | Schedule fix; add regression test |
| Low | Minor policy deviation with little user impact | Inconsistent or hard to reproduce | Occasional off-brand tone under adversarial prompting | Track; address with routine improvements |
| Informational | No direct impact | Not applicable | Hardening suggestion for logging or rate limits | Consider in roadmap |
Because model outputs vary, record the success rate for each finding (for example, 7 of 10 attempts) rather than a single pass or fail.
Reproduction-step format
Each finding should allow an engineer who was not present to reproduce it. A consistent template:
- Finding ID and title. Short and specific.
- Severity and category. Using the rubric above and the OWASP LLM Top 10 identifier.
- Environment. Application version, model and version, configuration, user role, date and time.
- Preconditions. Data, documents or account state required.
- Steps. Numbered inputs exactly as submitted, including any planted content.
- Observed result. Model output, tool calls made and side effects, with logs or screenshots.
- Expected result. What the system should have done.
- Success rate. Successful attempts over total attempts.
- Recommended mitigation. Specific controls, for example narrowing tool permissions or adding confirmation for external sends.
Reporting template
| Section | Contents | Audience |
|---|---|---|
| Executive summary | Scope, overall risk posture, count of findings by severity, top three actions | Leadership, risk committee |
| Scope and method | System description, versions, threat model, rules of engagement, tools, testing hours | Security, audit |
| Findings | Each finding in reproduction-step format | Engineering |
| Control observations | Defenses that worked, to preserve them through future changes | Engineering, security |
| Framework mapping | Findings mapped to OWASP LLM Top 10, NIST AI RMF functions and relevant regulatory articles | Compliance |
| Remediation plan and retest results | Owner, target date and verification status for each finding | All |
Retesting cadence
A red-team result is a snapshot. OpenAI notes that red teaming "captures risks at a specific moment, which may change as models evolve"11, and Microsoft's eighth lesson is that "the work of securing AI systems will never be complete"2. A sustainable cadence has four layers:
- Fix verification. Retest every critical and high finding as soon as a fix is deployed.
- Regression suite. Convert each confirmed finding into an automated test that runs in the deployment pipeline.
- Change-triggered testing. Run a focused engagement whenever the model version, system prompt, tools or data sources change materially.
- Periodic full engagement. Repeat a full independent test on a regular schedule, typically quarterly or semiannually for systems with agency over sensitive data.
Retesting matters more as systems gain autonomy. Gartner predicts that over 40% of agentic AI projects will be canceled by the end of 2027, citing escalating costs, unclear business value and inadequate risk controls17. Regular, independent adversarial testing is one of the most direct ways to keep risk controls in step with capability.
Treat red teaming as a continuous control rather than a launch event: scope it carefully, report it reproducibly, convert findings into regression tests and repeat it whenever the system changes.
Sources
- Artificial Intelligence Risk Management Framework: Generative Artificial Intelligence Profile (NIST AI 600-1) — NIST, 2024
- Lessons From Red Teaming 100 Generative AI Products — Microsoft (Bullwinkel et al.), 2025
- 3 takeaways from red teaming 100 generative AI products — Microsoft Security Blog, 2025
- EU AI Act, Article 55: Obligations for Providers of General-Purpose AI Models with Systemic Risk — Regulation (EU) 2024/1689, 2024
- EU AI Act, Article 15: Accuracy, Robustness and Cybersecurity — Regulation (EU) 2024/1689, 2024
- EU Digital Omnibus on AI Enters Into Force — Mondaq, 2026
- AI Risk Management Framework — NIST, 2023
- DHS CISA and UK NCSC Release Joint Guidelines for Secure AI System Development — CISA, 2023
- U.K.'s AI Safety Institute Launches Open-Source Testing Platform — TechRepublic, 2024
- OWASP Top 10 for LLM Applications 2025 — OWASP GenAI Security Project, 2024
- Advancing red teaming with people and AI — OpenAI, 2024
- Challenges in red teaming AI systems — Anthropic, 2024
- Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection — Greshake et al., 2023
- PyRIT: Python Risk Identification Tool — Microsoft, accessed 2026
- garak: LLM vulnerability scanner — NVIDIA and contributors, accessed 2026
- How to red team LLM applications — Promptfoo, accessed 2026
- Gartner Predicts Over 40% of Agentic AI Projects Will Be Canceled by End of 2027 — Gartner, 2025
- LLM06:2025 Excessive Agency — OWASP GenAI Security Project, 2024
Run this playbook with us
Book a thirty-minute working session. You will leave with a written scope, a price range and a clear first milestone.
Book a working session →