Red Teaming for Generative AI Security: A Practitioner’s Method for LLMs, RAG and Agents

Summary

Generative AI red teaming evaluates the full deployed system, including its models, prompts, retrieved data, tools, memory, and agents. A four-stage method covers reconnaissance, planning, testing, and validation, with repeated tests that track attack success rates and coverage as the system changes.

Key Takeaways

  • Generative AI red teaming is AI red teaming applied to LLMs, multimodal models and agents. Two things set it apart: the model is both the system under test and the target of social engineering, and its outputs vary from run to run.
  • The attack surface is the whole deployed system: model, prompts, retrieved data, tools, memory and the agents that chain them. Testing the model alone misses most of what attackers use.
  • An engagement runs in four stages (recon, plan, attack, validate) and reports findings against MITRE ATLAS™ and the OWASP Top 10 for LLM Applications so they can be tracked and re-tested.
  • Point-in-time testing fails for systems whose model, prompts and tools change weekly. Attack success rate per technique, measured continuously and paired with coverage, is the number that matters.
  • Frameworks and regulation (OWASP, NIST AI 600-1, MITRE ATLAS, EU AI Act Article 55) tell you what to cover and how to report. They do not tell you how to break the system in front of you.

In This Article

Generative AI red teaming is adversarial testing of systems built on large language models, image and audio models and the agents that wrap them, run the way an attacker would run it. It is AI red teaming applied to a target that reads instructions, follows them and can now act on them. About one in five organizations reported a breach of an AI model or application in IBM’s 2026 Cost of a Data Breach report, and 92% of those lacked proper access controls on their AI models and applications.

In this article, we walk through how a generative AI red team works, including what changes when the target is generative, what you attack, how an engagement runs, how often and how to measure whether anything improved. It’s written for security teams who already understand penetration testing and want to know what carries over and what doesn’t.

Generative AI Red Team Scoper | Mindgard
Mindgard MINDGARD
Generative AI red team scoper

What should a red team of your generative AI system cover?

Describe the system in four settings. The scoper returns the layers in scope, the attack objectives to set for each one, a test cadence and an exposure score you can take into a scoping call.

Layer model and attack families mapped to MITRE ATLAS and the OWASP Top 10 for LLM Applications 2026. A scoping aid, not a substitute for testing the system itself.

‍

Is Generative AI Red Teaming Different From AI Red Teaming?

‍

Bar chart showing four generative AI security findings from separate studies. At least one vulnerability was found in 73% of scanned MCP servers. The highest average guardrail bypass rate was 92%, and 92% of organizations that experienced an AI breach lacked AI access controls. Membership inference on fine-tuned LLMs reached 0.94 AUC.
Generative AI red teaming covers the full deployed system, including tools and agents, prompts and guardrails, data and access controls, and the model itself. Each bar represents a different measure from a separate study, so bar lengths do not rank the layers by risk.

‍

Generative AI red teaming is a subset of AI red teaming, not a separate discipline. AI red teaming covers adversarial testing of any machine learning system, including fraud classifiers, vision models and recommenders, where the classic attacks are evasion, poisoning and extraction. Generative red teaming applies that practice to LLMs, multimodal models and agentic applications, and adds failure modes that only exist when a system produces open-ended output.

As discussed above, the main difference between "AI" vs "generative AI" red teaming will come down to the context in which you use each term. It's likely security practitioners will use the former, whereas ML practitioners and those involved with governing the deployment of generative models will lean towards the latter. 

That said, the fundamental work involved will be much the same either way. 

In its own history, Microsoft notes that when its AI Red Team was set up in 2018, it started on classical systems. It now uses the phrase "AI red teaming" more broadly to cover probing both security and responsible AI outcomes. The advent of generative models has simply expanded the scope, rather than creating a new discipline.  

‍

What Changes When the Target Is Generative

There are four characteristics of generative AI systems that require a different approach from red teams. None of them appear in a conventional pentest. Together, they explain why a network red team pointed at a chatbot can come back with no issues identified, creating a false sense of safety. 

Natural language is the attack surface

Because a generative system takes instructions in the same channel it takes data, there are many different routes for injecting a prompt into the system. An email, a retrieved web page, a file name or an MCP tool description can all carry an instruction the model will follow. Prompt injection has held the top spot in the OWASP Top 10 for LLM Applications in every edition since 2023, and the 2026 release widens its scope to cover instructions that arrive through documents, tool outputs and memory, not just user input. 

The most high-profile example so far is the EchoLeak attack. Using a seemingly benign email, Aim Labs were able to trigger Microsoft 365 Copilot to return confidential company information. Crucially, the email did not require any interaction by the user and evaded Microsoft's existing prompt-injection defenses due to the innocuous appearance of the email. After informing Microsoft of their finding, the issue was escalated to Critical severity (CVE-2025-32711) and resolved in June 2025. EchoLeak was a practical illustration of Microsoft's AI Red Team's findings from a large-scale study (>100 GenAI offerings) earlier in 2025: “You don’t have to compute gradients to break an AI system.” 

The model is the target and the victim

Standard attacks involve trying to break into a codebase, with the attack directed at a person by way of phishing. In a generative system, the model is both the target and the victim. Jailbreaking, persona adoption, extended conversation, or asserting superiority over the LLM can all be viewed as forms of social engineering. They work because the model has been conditioned to comply with the user’s wishes. This is precisely why social engineers have a place on any LLM red team. 

LLM guardrails should not be relied upon to prevent these kinds of attacks. Research published at ACL LLMSEC 2025 bypassed six commercial and open-source prompt injection and jailbreak detectors at average success rates between 20% and 92% using character injection alone, and emoji smuggling reached 100%.  These systems are likely analyzing the user input in ways dissimilar to the underlying LLM, but this only becomes evident when it’s tested from the attacker’s side. 

Our guide to LLM guardrails covers the bypass families in detail.

Outputs are non-deterministic

A given prompt will sometimes work when run a third time against the same model but not on the previous two attempts. That’s why a single attempt that is deemed “blocked” actually proves nothing. 

As Microsoft explains in its lessons paper, red teams should account for the inherently stochastic nature of AI systems. They go on to describe an example where they sent each prompt 50 times to the target system to determine the failure rate. 

Accordingly, red teams carry out many passes of each technique and report results as a success or failure rate rather than a simple pass or fail. Without tooling that can handle this level of automation, completing the assessment is not possible. Buyers should understand that a vendor’s claim of “97% blocked” speaks to one benchmark captured at one point in time. 

Agents turn bad text into bad actions

If a chatbot generates a malicious sentence, that's a matter of model output. However, if an autonomous agent can read that sentence and then act on it (deleting repos, sending emails, calling a payment API, etc.), that's a serious breach. That’s exactly why excessive agency climbed from sixth to third in the OWASP Top 10 for LLM Applications 2026.

Most of the findings from 2025 to 2026 can be attributed to the tool layer. Enkrypt AI, which Anaconda acquired in August 2026, scanned more than 268,000 tools across 25,000 MCP servers in mid-2026 and found more than 143,000 vulnerabilities, affecting 73% of the servers. Coordinated disclosures over the same period hit the MCP configuration and tool-discovery paths of OpenAI Codex CLI, Google Gemini CLI, Mistral Vibe CLI and Cursor, each one a code execution or data exfiltration path that a model-only test would never have reached.

‍

What You Attack: The Generative AI Attack Surface

A generative AI red team attacks the deployed system, not the model card. Scope the engagement across five layers, because each one carries attacks the others cannot reveal.

‍

LayerWhat sits thereAttack techniques to runWhat a finding looks like
ModelThe base or fine-tuned LLM, image or audio model, its alignment training
  • Jailbreaks, role-play and multi-turn manipulation
  • Harmful content elicitation
  • Model extraction and membership inference
  • Bias and toxicity probes
A fine-tuned model that reproduces training records on request; a system that gives weapons guidance after a ten-turn setup
Prompts and guardrailsSystem prompt, input and output filters, classifiers, LLM judges
  • System prompt leakage
  • Character injection, encoding and language switching
  • Guardrail bypass and judge manipulation
A content filter that passes homoglyph-encoded payloads; a system prompt recovered in two queries
Data and retrievalRAG indexes, vector stores, memory, documents, web content
  • Indirect prompt injection
  • Retrieval and memory poisoning
  • Data extraction through the model
  • Membership inference against the store
A poisoned document that redirects every answer on a topic; customer records surfaced by a crafted query
Tools and agentsFunction calls, APIs, MCP servers, code execution, multi-agent handoffs
  • Tool misuse and argument injection
  • Excessive agency chains
  • MCP configuration abuse
  • Workflow manipulation and cross-agent injection
An agent that chains three permitted actions into an unauthorized transfer; a tool description that executes code on install
Infrastructure and supply chainModel serving, inference runtimes, model files, CI/CD
  • Insecure deserialization
  • Model file attacks
  • Runtime exploitation and dependency abuse
Code execution through a model loader; a serving cluster that accepts forged headers

Risk classes: OWASP Top 10 for LLM Applications 2026; technique taxonomy: MITRE ATLAS. Tool-layer examples: EchoLeak (CVE-2025-32711) and 2025 to 2026 coding-agent disclosures.

‍

There are two further observations about scope to draw from this table. The classic vectors continue to be effective: as described in our LLM red teaming guide, model extraction and membership inference both still work against deployed LLMs. Fine-tuned models are especially exposed to membership inference because they’re often trained on small, sensitive datasets, and black-box attacks presented at NDSS 2026 can infer which records a fine-tuned LLM was trained on. Second, the last row, infrastructure and supply chain, is the one red teaming providers most often leave out. Many model files use Python's pickle format, which can run arbitrary code when the file is loaded. A tampered model file is therefore a well-documented way to take over the machine that serves it.

‍

How a Generative AI Red Team Engagement Runs

A generative AI red team will run in four key phases: recon, plan, attack and validate. These follow the natural progression of an adversary's workflow, but are driven by objectives. For example, a red team may wish to exfiltrate a database entry, trick the agent into transferring funds or retrieve a hidden system prompt. They will not simply iterate through a series of pre-defined prompt sequences. 

Recon: Profile the system

The first phase establishes a high-level picture of the system under test. This covers the base model and variant, known features of the system prompt, integrated plugins and databases, how guardrails respond to adversarial inputs and any state retained across interactions. If testing an agent, all associated MCPs and their attached capabilities will be identified. 

In many cases, significant amounts of information can be gleaned during this phase. An exposed plugin inventory or stated knowledge base via a failure or response are useful starting points. As noted above, Microsoft's initial findings across its 100-product review reinforced that the attacker must similarly understand what the system can do and where it’s applied prior to formulating an attack strategy. 

Plan: Build attack paths

Once a plan is established, recon results can be strung together into an attack sequence towards an objective and success condition. For example, a chain might link three steps: inject special characters to fool the classifier, generate a malicious document using the LLM, then return a prompt instructing the agent to call an export tool with specified parameters. There will be an associated probability of success per element, and the plan will specify the order in which these should be attempted. 

Threat modeling at this stage borrows from MITRE ATLAS™, which catalogs adversary tactics against AI systems the way ATT&CK does for enterprise networks. Mapping planned chains to ATLAS techniques upfront makes it possible to compare findings across engagements and across vendors.

Attack: Execute adaptive attacks

Chains (one step or otherwise) are executed and modified as needed if any individual chain breaks down. At scale, this will largely be automated, running tens of thousands of chains across each method until a consistent pass rate is achieved. Humans, however, will be key to noticing a near-miss or a novel capability and deploying a chain that wasn’t in the initial plan. 

Microsoft’s lessons paper is clear that both are required. Automation covers more of the risk landscape, and the human element stays crucial. Teams choosing their own tooling can start with a comparison of AI red teaming tools that covers 41 enterprise and open-source options, from PyRIT and garak to commercial platforms.

Validate: Fix and retest

Validation confirms each finding is reproducible, assesses impact in business terms and retests after remediation. Every successful chain becomes a regression test. When the model version changes, the system prompt is edited or a new tool is added, the suite runs again, because any of those changes can reopen a closed finding.

The deliverable is a findings report mapped to ATLAS and the OWASP Top 10 for LLM Applications, with success rates per technique, reproduction steps and a prioritized fix list. The attack patterns that passed validation should also feed runtime monitoring, so what the red team found in testing becomes a detection in production.

‍

Why Point-in-Time Testing Fails for Generative Systems

A quarterly red team of a generative system tests a configuration that no longer exists by the time the report is read. Model providers ship new versions without notice and application teams edit system prompts weekly. Every new tool or data source adds attack paths. Microsoft’s eighth lesson states the consequence: the work of securing AI systems will never be complete.

NIST senior scientist Apostol Vassilev put a formal floor under that in 2026, publishing a proof that no finite set of guardrails can hold against every adversarial prompt. His recommendation was a transition to continuous monitoring and updating. For red teaming that means the engagement becomes a pipeline: the regression suite runs on every change, the automated library runs on a schedule and human-led objective testing runs when the system or the threat changes materially.

Mindgard’s guide to continuous AI pentesting covers the cadence in detail.

‍

Traditional red teamingLLM pentestingGenerative AI red teaming
TargetNetworks, hosts, identities, peopleThe LLM application's known vulnerability classesThe whole generative system: model, prompts, data, tools, agents, infrastructure
AdversaryHuman attacker against infrastructureTester against an applicationHuman and automated attacker against a system that is itself persuadable
MethodObjective-led, stealthy, long-runningChecklist-led, scoped, point-in-timeObjective-led, adaptive, continuous
DeterminismExploit works or it does notFinding reproduces or it does notTechniques measured as success rates over repeated runs
Harms in scopeConfidentiality, integrity, availabilitySecurity vulnerabilitiesSecurity plus responsible AI harms: harmful content, bias, privacy leakage, misuse
OutputAttack narrative, compromised assetsVulnerability list with severitiesFindings mapped to ATLAS and OWASP, success rates per technique, regression suite

‍

The middle column exists because many buyers ask for “an LLM pentest” and receive a scan of known prompt patterns. That has value as a baseline. It is not red teaming, for the reasons set out in the comparison of red teaming and pentesting.

‍

How to Measure Generative AI Red Teaming

The primary metric in generative AI red teaming is attack success rate: the percentage of attempts for a given technique, against a given layer, that achieved the objective. Reported per technique and per layer, it tells a security team where the system is weak. Reported over time, it tells them whether remediation worked.

Three practices make the number trustworthy.

  • Repeat every test enough to stabilize the rate. Non-determinism means a technique that succeeds 3 times in 100 looks like 0% on a single run. Report rates over fixed batches of attempts so engagements are comparable.
  • Pair success rate with coverage. A 2% success rate across five techniques is a different finding from 2% across fifty. Coverage by layer and by ATLAS technique is the second number in every report.
  • Separate safety benchmarking from red teaming. Microsoft’s third lesson is that AI red teaming is not safety benchmarking. A benchmark score measures a model against a fixed set. A red team measures a system against an adversary who adapts.

Beyond success rate, generative AI engagements can track metrics such as privacy leakage rate, output consistency and model recovery time. If the engagement had a single objective, report only the metrics that measure it. 

‍

Where the Frameworks Fit

Frameworks define coverage and reporting for generative AI red teaming. They do not replace an adversary. The table lists the documents a security or compliance team will be asked about and maps the four stages above onto each.

‍

FrameworkTypeWhat it gives a red teamHow the four stages map to it
OWASP Top 10 for LLM Applications 2026FrameworkThe vulnerability classes to cover: prompt injection, sensitive information disclosure, excessive agency, supply chain and the restAttack chains tagged to LLM01 through LLM10; coverage reported per class
OWASP GenAI Red Teaming Guide (January 2025) and Red Teaming Manual v1.0 (October 2026)FrameworkFour evaluation areas (model, implementation, infrastructure, runtime) and an eight-phase engagement sequence from planning to remediationRecon and plan cover the guide's threat modeling; attack and validate cover its evaluation phases
NIST AI RMF and the Generative AI Profile (NIST AI 600-1, July 2024)StandardTwelve risks unique to or amplified by generative AI, with red teaming named as a suggested actionFindings mapped to the profile's risk list for governance reporting
MITRE ATLASFrameworkAdversary tactics and techniques against AI systemsEvery finding carries an ATLAS technique ID
EU AI Act Article 55RegulationProviders of general-purpose models with systemic risk must conduct and document adversarial testing, in force since 2 August 2025Validation reports supply the documentation

Sources: OWASP Top 10 for LLM Applications, OWASP GenAI Red Teaming Guide, NIST AI 600-1, MITRE ATLAS, EU AI Act Article 55.

‍

Providers of general-purpose models with systemic risk must conduct and document adversarial testing. Obligations apply from August 2, 2025, Commission enforcement powers from August 2, 2026, and models on the market before August 2025 have until August 2, 2027

Validation reports supply the documentation

The NIST AI Risk Management Framework and the EU AI Act are why red teaming budgets exist in many organizations. OWASP and ATLAS are how the results get communicated. The work in between is the method described above, and no framework document will do it for you.

‍

Red Team the System You Shipped, Not the Model You Licensed

A common mistake in generative AI security is to test the base model, find it well-aligned and conclude that the product is safe. But the product is the model plus your prompts, data, tools and agents. The attacks that worked in 2025 and 2026, from EchoLeak to the coding-agent disclosures, all went after those added parts, not the model itself.

If you want this done rather than described, Mindgard runs the recon, plan, attack, validate loop as automated AI red teaming against models, applications and agents, with AI red teaming services for objective-led engagements. Book a demo to see what your generative systems look like from the attacker’s side.

‍

Frequently Asked Questions

What is generative AI red teaming?

Generative AI red teaming is adversarial testing of systems built on large language models, multimodal models and AI agents, carried out the way a real attacker would operate. It covers security failures such as prompt injection, data extraction and tool misuse alongside responsible AI harms such as harmful content and bias, and it measures results as success rates because generative outputs vary between runs.

Is generative AI red teaming the same as AI red teaming?

Generative AI red teaming is a subset of AI red teaming. AI red teaming covers any machine learning system, including classifiers and recommenders. Generative AI red teaming applies the same practice to LLMs and agents, with extra attention to natural-language attacks, non-deterministic outputs and actions taken through tools.

How is generative AI red teaming different from LLM pentesting?

LLM pentesting is a scoped, checklist-led test of known vulnerability classes in an LLM application at a point in time. Generative AI red teaming is objective-led, adaptive and continuous. It covers the whole system, data, tools and agents included, and reports attack success rates rather than a pass or fail list.

How often should generative AI systems be red teamed?

Continuously, with intensity matched to change. Run the regression suite of known attacks on every model, prompt or tool change. Run the automated attack library on a schedule, and bring in human-led objective testing before launch and whenever the system or the threat landscape shifts materially.

What frameworks apply to generative AI red teaming?

The OWASP Top 10 for LLM Applications defines the vulnerability classes, the OWASP GenAI Red Teaming Guide and Manual describe engagement structure, NIST AI 600-1 lists generative AI risks and names red teaming as a measure, MITRE ATLAS™ provides the technique taxonomy for reporting and EU AI Act Article 55 requires documented adversarial testing for general-purpose models with systemic risk.

Can generative AI red teaming be automated?

Partly. Automation runs thousands of attack variants, repeats them enough to produce stable success rates and re-runs them on every change. Human red teamers set objectives, read partial successes and build chains the library did not anticipate. Microsoft’s AI Red Team reached the same conclusion after testing more than 100 products.

‍

ATTACKER-ALIGNED AI SECURITY

Talk to Our AI Security Experts

We found vulnerabilities in AI from OpenAI, Meta and AWS. See how Mindgard finds and proves the weakness attackers could exploit in yours.

✖