Playbook

The Red-Team Engagement Playbook: Independent Adversarial Testing for LLM Apps and Agents

How to scope, run and report an independent red-team test of an LLM application or agent: threat models, attack categories, severity and retesting.

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.

  1. System description. What does the application do, for whom, and in which workflow? Which model or models does it use, and which versions?
  2. Architecture. System prompt, retrieval sources, memory, tools and APIs, output destinations (screens, emails, databases, code execution).
  3. Trust boundaries. Which inputs come from users, which from third parties (web pages, emails, uploaded files), and which from internal systems?
  4. Agency. What can the system do without a human approving it? Which actions are reversible?
  5. Data sensitivity. What personal, confidential or regulated data can the system see, and what should it never reveal?
  6. Harm policy. What content and behaviors are out of bounds for this product and domain?
  7. Environment and access. Production, staging or a dedicated test environment; test accounts with realistic roles; rate limits and cost caps.
  8. Rules of engagement. Testing windows, prohibited actions, data handling, stop conditions and the contact for urgent findings.
  9. 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

ParticipantContribution
Red-team leadOwns the plan, threat model, rules of engagement and final report
Adversarial testersSecurity engineers and prompt specialists who design and run attacks
Domain expertsDefine realistic harms for the sector (for example clinical, financial or legal advice) and judge outputs
System ownerProvides architecture, access and context; accepts findings and owns remediation
Security and privacy leadsAlign the engagement with existing security testing and data protection obligations
Risk or compliance representativeMaps 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.

  1. Draw the data flow. Map every input source, the model calls, every tool and every output destination.
  2. Mark trust boundaries. Any place where untrusted text enters the context window is a potential injection point.
  3. List assets. Customer data, credentials, system prompts, financial actions, reputation.
  4. Identify adversaries. Malicious users, external content authors, compromised insiders and curious users who stumble into edge cases.
  5. Prioritize scenarios. Rank by impact and plausibility; spend the most effort where an agent can take irreversible actions on sensitive data.
Key takeaway

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.

ToolMaintainerWhat it does
PyRITMicrosoftA framework for automated and human-led red teaming of generative AI systems, with multi-turn attack strategies, scoring and memory of prior attempts14
garakNVIDIA and communityAn LLM vulnerability scanner with plugins and prompt sets that probe for hallucination, data leakage, prompt injection, misinformation, toxicity and jailbreaks15
promptfooPromptfooA 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
InspectUK AI Security InstituteAn 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.

SeverityImpactExploitabilityExampleExpected response
CriticalUnauthorized action or disclosure of sensitive data at scaleReliable, low skill, no special accessPlanted text in an inbound email causes the agent to forward customer records externallyFix or disable the capability before further release
HighDisclosure of confidential data or a harmful action affecting individualsReproducible with moderate effortUser retrieves another customer's documents through crafted queriesFix within the current release cycle
MediumPolicy-violating output or limited data exposureRequires multi-step or specific conditionsSystem prompt revealed through role-play framingSchedule fix; add regression test
LowMinor policy deviation with little user impactInconsistent or hard to reproduceOccasional off-brand tone under adversarial promptingTrack; address with routine improvements
InformationalNo direct impactNot applicableHardening suggestion for logging or rate limitsConsider 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:

  1. Finding ID and title. Short and specific.
  2. Severity and category. Using the rubric above and the OWASP LLM Top 10 identifier.
  3. Environment. Application version, model and version, configuration, user role, date and time.
  4. Preconditions. Data, documents or account state required.
  5. Steps. Numbered inputs exactly as submitted, including any planted content.
  6. Observed result. Model output, tool calls made and side effects, with logs or screenshots.
  7. Expected result. What the system should have done.
  8. Success rate. Successful attempts over total attempts.
  9. Recommended mitigation. Specific controls, for example narrowing tool permissions or adding confirmation for external sends.

Reporting template

SectionContentsAudience
Executive summaryScope, overall risk posture, count of findings by severity, top three actionsLeadership, risk committee
Scope and methodSystem description, versions, threat model, rules of engagement, tools, testing hoursSecurity, audit
FindingsEach finding in reproduction-step formatEngineering
Control observationsDefenses that worked, to preserve them through future changesEngineering, security
Framework mappingFindings mapped to OWASP LLM Top 10, NIST AI RMF functions and relevant regulatory articlesCompliance
Remediation plan and retest resultsOwner, target date and verification status for each findingAll

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:

  1. Fix verification. Retest every critical and high finding as soon as a fix is deployed.
  2. Regression suite. Convert each confirmed finding into an automated test that runs in the deployment pipeline.
  3. Change-triggered testing. Run a focused engagement whenever the model version, system prompt, tools or data sources change materially.
  4. 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.

Key takeaway

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

  1. Artificial Intelligence Risk Management Framework: Generative Artificial Intelligence Profile (NIST AI 600-1) — NIST, 2024
  2. Lessons From Red Teaming 100 Generative AI Products — Microsoft (Bullwinkel et al.), 2025
  3. 3 takeaways from red teaming 100 generative AI products — Microsoft Security Blog, 2025
  4. EU AI Act, Article 55: Obligations for Providers of General-Purpose AI Models with Systemic Risk — Regulation (EU) 2024/1689, 2024
  5. EU AI Act, Article 15: Accuracy, Robustness and Cybersecurity — Regulation (EU) 2024/1689, 2024
  6. EU Digital Omnibus on AI Enters Into Force — Mondaq, 2026
  7. AI Risk Management Framework — NIST, 2023
  8. DHS CISA and UK NCSC Release Joint Guidelines for Secure AI System Development — CISA, 2023
  9. U.K.'s AI Safety Institute Launches Open-Source Testing Platform — TechRepublic, 2024
  10. OWASP Top 10 for LLM Applications 2025 — OWASP GenAI Security Project, 2024
  11. Advancing red teaming with people and AI — OpenAI, 2024
  12. Challenges in red teaming AI systems — Anthropic, 2024
  13. Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection — Greshake et al., 2023
  14. PyRIT: Python Risk Identification Tool — Microsoft, accessed 2026
  15. garak: LLM vulnerability scanner — NVIDIA and contributors, accessed 2026
  16. How to red team LLM applications — Promptfoo, accessed 2026
  17. Gartner Predicts Over 40% of Agentic AI Projects Will Be Canceled by End of 2027 — Gartner, 2025
  18. 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 →