Agent red teamingAI redteamingAI testingLLM evalsLLM redteaming

LLM Red Teaming vs Agent Red Teaming: Key Differences

LLM red teaming tests what a model says. Agent red teaming tests what it does: tools, permissions, workflows, and actions. Learn the differences and how to test AI agents.
Sep 25, 20268 min read
Book a Demo
blog_image

TABLE OF CONTENT

SHARE THIS ARTICLE

LLM red teaming vs agent red teaming comes down to one question: are you trying to break the model’s behavior, or the agent’s behavior across an entire workflow? LLM red teaming typically tests whether a model can be manipulated into producing unsafe, unintended, or policy-violating responses. Agent red teaming goes further. It tests what happens when that model is connected to tools, data, APIs, memory, permissions, and business workflows, and can take actions on a user’s behalf.

A model may resist a jailbreak in isolation but behave differently when the same attack is combined with retrieved content, a tool call, or a multi-step workflow. That is why testing an AI agent requires looking beyond the final response, and even beyond the steps the agent takes. You also have to verify what the surrounding system allowed and what actually changed as a result.

Key take away

LLM red teaming asks: can I manipulate the model?

Agent red teaming asks: can I manipulate the agent into doing something it should not do?

In practice, agent red teaming evaluates three things together: the trajectory (what the agent attempted), the authority (whether the system allowed it), and the resulting state (what actually changed in your systems of record).

The difference matters most when an AI system can call tools, access sensitive information, make decisions, or perform actions in external systems.

LLM Red Teaming vs Agent Red Teaming at a Glance

LLM red teamingAgent red teaming
Primary targetModel and application behaviorAgent behavior and actions
Main questionCan the model be manipulated?Can the agent be manipulated into an unsafe or unauthorized action?
Typical attacksJailbreaks, prompt injection, adversarial promptsPrompt injection, goal hijacking, tool misuse, permission abuse, multi-turn attacks
What gets evaluatedModel responseTrajectory, authorization decisions, and resulting system state
Tool accessMay be absent or limitedUsually central to the attack surface
PermissionsHeld by the application; the model itself holds noneAuthority delegated to the agent’s tools: API keys, OAuth scopes, service identities, user sessions
RAGResponse manipulation and retrieval risksRetrieval manipulation and what the agent does with retrieved content
Multi-turn attacksUsefulOften critical
Business logicOften outside the main scopeOften a core testing area
External systemsMay not be tested directlyPart of the attack surface
Main resultUnsafe model behaviorUnauthorized actions that executed and changed state

The two approaches are related, not mutually exclusive. Agent red teaming does not make LLM red teaming irrelevant. It expands the testing scope once the model becomes part of an agentic system.

What Is LLM Red Teaming?

LLM red teaming is adversarial testing of a large language model or an AI application built around one. The goal is to deliberately find situations where the model behaves in ways it should not.

In practice, red teamers try to get the model to bypass its safety instructions, produce prohibited content, reveal sensitive information, or override its system prompt. They exploit weaknesses in conversational context, push for unreliable answers, and retest old fixes to confirm they cannot be bypassed again. Common techniques include jailbreaks, direct prompt injection, system prompt extraction, adversarial prompting, and multi-turn manipulation.

This kind of adversarial testing is now a governance expectation, not just a security nicety. NIST’s Generative AI Profile (NIST AI 600-1) recommends red teaming as part of managing generative AI risk.

What Is Agent Red Teaming?

Agent red teaming is adversarial testing of an AI agent’s behavior across an entire task or workflow. An agent may do much more than generate a response. It might interpret a user’s goal, retrieve information, plan a sequence of actions, select a tool, construct tool arguments, call an API, update a database, send a message, ask another agent to perform a task, and then return the result.

That creates a much larger attack surface, and a red team working on an agent asks a different set of questions:

  • Can an attacker manipulate the agent’s goal?
  • Can the attacker influence which tool the agent calls, or the arguments passed to it?
  • Can the agent access something beyond the user’s authorization?
  • Can an indirect prompt injection influence a later action?
  • Can individually harmless interactions be chained into an unsafe outcome?
  • Can the agent perform a high-impact action without appropriate approval?
agent-attack-surface

The Core Difference: Response vs Trajectory, Authority, and State

For an LLM, the path under test is short: an attacker sends a prompt, the model produces a response, and the question is what the model said.

For an agent, watching the steps is not enough. An agent might attempt a $20,000 refund, but the security question is whether the system actually let it happen. Agent red teaming therefore answers three questions for every high-impact action.

Trajectory: what did the agent attempt? This covers planning, tool selection, and the arguments the agent constructed.

Authority: did the system allow it? This covers whether the downstream service enforced its own scopes, limits, and approval steps, or simply trusted the agent’s request.

Resulting state: what actually changed? This covers the database, ledger, CRM, or outbound messages, verified in the system of record rather than inferred from the agent’s reply.

response-vs-trajectory

Separating the three also makes findings easier to prioritize. An agent that attempts an unauthorized refund which the payment service blocks is a real finding, because the agent can be manipulated. An agent whose unauthorized refund executes and changes the ledger is a far more severe one. And a polite “Done, your request has been processed” tells you nothing about which of the two happened.

Why an Agent Can Pass an LLM Red-Team Test and Still Fail an Agent Red-Team Test

Consider an e-commerce refund agent with access to check_order(), check_refund_policy(), issue_refund(), and update_customer().

A simple LLM red-team test asks the agent to ignore its instructions and refund an order without verification. The agent refuses, and the test looks like a pass.

A different attack path never sends an obviously malicious message. It establishes a believable identity, introduces conflicting order details, claims the verification system is unavailable, requests a one-time exception, and then relies on a retrieved ticket note that says the refund was pre-approved. Each step is plausible on its own. Together they steer the agent into calling issue_refund() for an order it should never have touched.

Refund-agent-attack-paths

The question is no longer whether the model produced a bad sentence. It is whether the agent attempted issue_refund(), whether the refund service’s own authorization checks let the call through, and whether the order ledger actually changed.

How BotGauge tests for this

Single-prompt tests stop at the first refusal. BotGauge runs adaptive, multi-turn red-team campaigns that start from a baseline and go deeper when the agent’s behavior gets interesting: shifting identity claims, conflicting context, poisoned retrieval content, and pressure on tool selection. Every result comes with a full trace of the prompts, responses, tool calls, and arguments behind it, so you can see exactly which step crossed the line.

Run a red-team campaign on your agent

7 Key Differences Between LLM Red Teaming and Agent Red Teaming

1. Outputs vs Actions

LLM red teaming usually evaluates the output the model produces. Agent red teaming evaluates the output and what happens because of it. An unsafe response is one type of failure. An agent sending an email, issuing a refund, modifying a CRM record, transferring money, or deleting information without authorization is a different class of failure.

2. Prompts vs Tool Calls

A standalone LLM may only produce text. An agent may reach APIs, databases, search systems, email, payment systems, CRMs, internal applications, code execution, file systems, other agents, and MCP servers. Every tool expands what the agent can do, and what an attacker can make it do.

3. Single-Turn vs Multi-Step Attacks

A traditional jailbreak can be tested in one interaction. Agents often operate over many steps, so an attacker can establish context, build trust, introduce conflicting instructions, shift the goal, influence tool choice, and only then trigger an action.

4. Application Permissions vs Delegated Agent Authority

A model holds no permissions. The application it runs inside holds the credentials, and an agent acts with whatever authority the application delegates to its tools: API keys, OAuth scopes, service accounts, or a user’s session. Testing has to examine which identity each tool call runs under, what that identity is allowed to do, and whether the downstream system enforces that limit or simply trusts the request.

5. Model Vulnerabilities vs Business-Logic Vulnerabilities

An LLM can behave incorrectly without any transaction taking place. An agent can turn the same weakness into a business-logic failure, such as an unauthorized refund, an approved transaction, a changed account, or a skipped approval step.

6. Model Context vs Connected Context

An agent takes in context from user input, conversation history, memory, RAG sources, tool results, API responses, and other agents. Each source can influence later decisions, which opens the door to indirect prompt injection: instructions planted in content the agent reads rather than typed by the attacker. Researchers formalized this attack class in Greshake et al. (2023), and the OWASP Top 10 for Agentic Applications now ranks agent goal hijack through malicious content as the number one agentic risk, citing the EchoLeak exploit against Microsoft 365 Copilot as a real-world example.

indirect-prompt-injection-flow

7. Output Evaluation vs Trajectory, Authority, and State Evaluation

For an LLM, the simplified path is input to output, so evaluating the output is enough. For an agent, evaluating the trajectory is necessary but not sufficient. A complete test also records the authorization decision on each high-impact call and verifies the resulting state in the system that was supposed to be protected.

LLM Red Teaming vs RAG Red Teaming vs Agent Red Teaming

RAG applications sit between the two. They add retrieval risk without necessarily adding actions, which is why they need their own column.

CapabilityLLM red teamingRAG red teamingAgent red teaming
Jailbreak testingYesYesYes
Direct prompt injectionYesYesYes
Indirect prompt injectionSometimesYesYes
Retrieval manipulationNoYesYes
Poisoned documentsNoYesYes
Tool callsNoSometimesYes
Tool argumentsNoNoYes
PermissionsLimitedApplication-dependentYes
Multi-step workflowsLimitedSometimesYes
Business logicLimitedSometimesYes
External actionsNoSometimesYes
Multi-agent behaviorNoNoYes

What Should You Test When Red Teaming an AI Agent?

The ten areas below are practical test categories, not a restatement of any single framework. Several map to the OWASP Top 10 for Agentic Applications, published by the OWASP GenAI Security Project in December 2025. One, Excessive Agency, comes from the separate OWASP Top 10 for LLM Applications. The table after the list shows the full OWASP agentic list, including five categories these tests do not cover on their own.

1. Prompt Injection

Can attacker-controlled instructions override or conflict with trusted instructions? Test both direct and indirect forms.

2. Goal Hijacking

Can an attacker cause the agent to pursue an objective different from the user’s legitimate goal? This maps to ASI01 Agent Goal Hijack, the top-ranked agentic risk.

3. Tool Misuse

Can an attacker push the agent into using a tool incorrectly, selecting an unexpected tool, or building an unsafe tool sequence? This maps to ASI02 Tool Misuse and Exploitation.

4. Tool Argument Manipulation

Can the agent be manipulated into supplying the wrong customer, amount, destination, record, or other sensitive argument?

5. Permission Boundary Violations

Can the agent act beyond the authority delegated to it, crossing boundaries between users, accounts, departments, data classifications, or privilege levels? This maps to ASI03 Identity and Privilege Abuse.

6. Excessive Agency

Do the agent’s tools carry more functionality, authority, or autonomy than the task needs? This category comes from the OWASP Top 10 for LLM Applications as LLM06:2025 Excessive Agency, not from the agentic list, which addresses the same concern through its principle of least agency.

7. Data Exfiltration

Can an attacker get the agent to expose private documents, customer information, credentials, internal instructions, or sensitive tool output?

8. Business-Logic Abuse

Can the agent be convinced to perform actions that are technically valid but invalid for the business?

9. Multi-Turn Manipulation

Do the agent’s boundaries hold over a long interaction, not just against a single malicious prompt?

10. Multi-Agent Attacks

Can one agent improperly influence another through delegation, inter-agent messages, privilege inheritance, or unexpected action chains? This maps to ASI07 Insecure Inter-Agent Communication and ASI08 Cascading Failures.

How These Tests Map to the OWASP Agentic Top 10

Data exfiltration and business-logic abuse are not separate OWASP categories. They are outcomes that can result from several of them. Use this table to spot the gaps in your own scope.

OWASP IDCategoryCoverage in this article’s tests
ASI01Agent Goal HijackPrompt injection, goal hijacking
ASI02Tool Misuse and ExploitationTool misuse, tool argument manipulation
ASI03Identity and Privilege AbusePermission boundary violations
ASI04Agentic Supply Chain VulnerabilitiesNot covered above. Test poisoned or swapped MCP servers, plugins, and tool descriptions
ASI05Unexpected Code Execution (RCE)Not covered above. Test whether injected content can make the agent generate and run code or shell commands
ASI06Memory and Context PoisoningNot covered above. Poison memory or retrieval content, then check behavior in later sessions
ASI07Insecure Inter-Agent CommunicationMulti-agent attacks
ASI08Cascading FailuresMulti-agent attacks, plus resulting-state checks on downstream systems
ASI09Human-Agent Trust ExploitationNot covered above. Test whether agent output can win a human approval for a harmful action
ASI10Rogue AgentsNot covered above. Monitor for behavior outside the assigned scope across sessions
owasp-agentic-top-10-map

How to Red Team an AI Agent

Step 1: Map the Agent’s Attack Surface

Document the model, system instructions, user inputs, memory, RAG sources, tools, APIs, databases, permissions, human approval points, external systems, and other agents. Rank tools by the damage an unauthorized call could cause, because a read-only search tool and a payments API do not deserve the same test depth.

Step 2: Define What the Agent Must Never Do

Write explicit unacceptable behaviors in plain terms: issuing a refund without authorization, refunding the wrong customer, exceeding permitted limits, bypassing verification, or exposing another customer’s data. These become your pass and fail criteria.

Step 3: Build Adversarial Scenarios

Create scenarios that reflect realistic attacks, including jailbreaks, direct and indirect prompt injection, multi-turn manipulation, conflicting instructions, malicious retrieved content, tool manipulation, permission-boundary attacks, and business-logic attacks.

Step 4: Trace the Trajectory, Then Verify Authority and State

Capture more than the final response. Record the input, the agent’s decisions, tool selection, and tool arguments. Then check whether the downstream service allowed or blocked each high-impact call, and inspect the system of record, such as the database, ledger, or CRM, to confirm what actually changed.

Step 5: Measure the Results

Track pass and failure rates by attack category, affected scenario, tool involved, reproducibility, and business impact. Grade severity by how far the attack got: an unsafe attempt that was blocked, an action that executed, or an action that executed and changed state. Because agents are non-deterministic, run important scenarios more than once before you call them fixed.

Step 6: Turn Findings Into Regression Tests

When a campaign finds a failure, convert it into a repeatable test so future agent versions are checked against the same weakness.

Where BotGauge Fits in This Process

BotGauge, the AI agent red-teaming and evaluation platform, was built around this workflow. It connects to agents built on the models and frameworks teams already use, including OpenAI, Anthropic, and Hugging Face models and frameworks like LangChain, LlamaIndex, LangGraph, CrewAI, and AutoGen, without changes to how the application works.

StepBotGauge capability
Define what the agent must never doPolicies and Guardrails: encode your boundaries once and carry them into evaluation, monitoring, and runtime safeguards
Build adversarial scenariosRed Teaming: adaptive and custom attack strategies across inputs, context, tools, policies, and multi-turn interactions
Trace the trajectoryTracing: inspect prompts, responses, tool calls, context, and execution paths behind every finding
Measure and regressEvaluations: score goal completion, accuracy, and policy adherence with LLM evaluators, code-based checks, and custom criteria that run on every release

Why Continuous Agent Red Teaming Matters

Agent behavior can change after a model update, a system prompt change, a new tool, a permission change, a new RAG source, a memory change, an orchestration change, or the introduction of another agent. An attack that failed last month can succeed after a significant system change, which is why a one-time pre-launch test goes stale quickly. It is the same principle behind agentic AI testing in software QA: checks that adapt as the system changes and run against every release.

continuous-agent-red-teaming-loop
“Before, we found agent failures after they shipped and scrambled to patch them. Now BotGauge finds them in a red-team campaign before release, and every one it finds becomes a check that runs on every release after.”Michael Hoy, CEO, ATLAS

Does Agent Red Teaming Replace LLM Red Teaming?

No. Agent red teaming extends the testing scope. It does not make model-level testing unnecessary, and the clearest way to see this is as three stacked layers.

three-layers-of-ai-red-teaming

Layer 1: Model

Can the model be manipulated? Testing covers jailbreaks, prompt injection, unsafe outputs, and information disclosure.

Layer 2: Application

What can a successful manipulation reach? Testing covers RAG, APIs, data access, the credentials the application holds, and downstream systems.

Layer 3: Agent

Can the system turn manipulation into an unintended action that the rest of the stack allows? Testing covers tool selection, tool arguments, delegated authority, goal hijacking, multi-step workflows, business logic, and the resulting state.

When Should You Use LLM Red Teaming?

LLM red teaming is the right primary focus when you are testing a standalone model or a system that mainly generates content. It is also the tool for broad jailbreak coverage, prompt injection resistance, validating model or prompt changes, and keeping repeatable model-level regression tests.

When Should You Use Agent Red Teaming?

Move to agent red teaming as soon as your system can do any of the following: call tools, access sensitive data, modify records, send messages, perform transactions, execute code, interact with external systems, delegate work to other agents, or make decisions across multiple steps. One of these is enough to change the scope.

A Simple Framework for Choosing What to Test

AI systemPrimary testing focus
Standalone LLMLLM red teaming
LLM chatbotLLM + application testing
RAG applicationLLM + retrieval and injection testing
Tool-using assistantLLM + tool and security testing
Transactional agentAgent red teaming + business-logic testing
Autonomous agentAgent red teaming + permission testing
Multi-agent systemAgent + inter-agent testing
Production agentContinuous red teaming + regression testing

What Makes Agent Red Teaming Harder?

The attack surface is larger

An agent can inherit the attack surface of every tool, data source, API, and downstream system it reaches.

Behavior is contextual

The same instruction can produce different behavior depending on conversation history, retrieved context, tool responses, memory, agent state, and model version.

Failures can be non-deterministic

An attack may work sometimes and fail other times, so reproducibility and repeated runs matter.

The impact may happen outside the model

The model’s reply can look harmless while a tool call has already produced the real security impact.

Fixes can introduce regressions

Changing a prompt or guardrail to stop one attack can change other behaviors, which is another reason repeatable testing matters.

Today’s defenses are not a safe baseline

Two peer-reviewed benchmarks show how far agents still are from robust. InjecAgent (Zhan et al., Findings of ACL 2024) tested 30 agents against 1,054 indirect prompt injection cases and found that ReAct-prompted GPT-4 followed injected instructions 24% of the time. When the injected instruction was reinforced with a hacking prompt, the attack success rate nearly doubled.

AgentDojo (Debenedetti et al., NeurIPS 2024) built 97 realistic tasks and 629 security test cases across email, banking, travel, and workspace agents. Two of its findings matter here. First, it judges attack success by inspecting the resulting state of the environment rather than the model’s reply, which is exactly the standard this article argues for. Second, more capable models tended to be easier to hijack, while weaker models often resisted only because they failed to complete any task at all. As agents get more capable, that accidental protection disappears.

agent-security-metrics

These figures come from specific model versions and attack sets in controlled environments. They show the risk is real and measurable. They do not predict how your production agent will fare. Only testing your own system does that.

What Does a Good Agent Red-Team Report Contain?

A useful report lets an engineer reproduce the failure and a manager judge its impact. Each finding should answer these questions.

FieldQuestion it answers
AttackWhat was attempted?
Entry pointWhere did the attack enter the system?
Agent behaviorHow did the agent respond?
Tool behaviorWhich tools were called, with which arguments?
IdentityUnder which credentials or delegated authority did each call run?
Authorization decisionDid the downstream system allow or block the action?
Resulting stateWhat changed in the system of record?
ReproducibilityHow often does the attack succeed across repeated runs?
SeverityWhat is the potential business or security impact?
RemediationWhich control should change?
Regression testHow will the team verify the problem stays fixed?

LLM Red Teaming vs Agent Red Teaming: The Bottom Line

The distinction is not that agent red teaming uses more prompts or cleverer jailbreaks. It is about where you draw the testing boundary.

LLM red teaming asks whether the model can be manipulated into producing an unsafe or unintended response. Agent red teaming asks whether the agent can be manipulated into attempting an unsafe action, whether the system lets that action through, and what state it leaves behind.

That difference matters because an AI agent sits between an attacker and real systems: customer data, internal documents, business applications, APIs, financial workflows, communication tools, databases, and other agents.

The practical answer is not to pick one approach. Use LLM red teaming to test model and application behavior. Use agent red teaming when the system can reason across steps, use tools, access data, or take actions. And when an agent fails a scenario, turn that failure into a regression test so the same weakness does not quietly return in a future release.

See what your agent does under pressure

Request Demo

FAQ's