AI agent penetration testing: what is tested and what you get

An AI agent penetration test attacks the agent itself: its goals, tools, permissions and identities. Learn what is covered, what drives cost, and what the report should contain before you commission one.

On this page

Why AI agent penetration testing is now a procurement requirement

If you are preparing an AI agent launch, a customer security review, an insurance renewal or a framework assessment, you are likely being asked for evidence that an agent acting on users' behalf has been tested. An AI agent penetration test treats the agent itself as the system under test. It checks whether the agent can be steered away from its assigned goal, whether it misuses the tools it has been given, whether it abuses the identities and privileges it runs under, and whether it fails in the other ways described in the OWASP Top 10 for Agentic Applications 2026, from ASI01 Agent Goal Hijack through ASI10 Rogue Agents. The question for a buyer is not whether a model is safe in isolation, but whether the agent, with its tools, memory, permissions and connections, holds up under adversarial input.

That test is different from using AI agents to run a conventional penetration test. Tools such as Strix, an open-source project released under the Apache-2.0 license, use AI agents to find vulnerabilities in other applications. The agent is the tester, not the target. A provider can use AI-driven tooling and still leave your agent untested, and a provider can test your agent thoroughly with conventional methods. Before you sign, ask the provider to state in writing whether your agent is the target, which agentic risk categories and layers are in scope, and what the deliverable will be. Ask for the test plan to name the tools, roles, permissions and data sources the agent can reach, because those define the attack surface an auditor or customer will expect to see covered.

Procurement teams should also check how the work maps to the public references their reviewers already use. The OWASP AI Testing Guide describes repeatable test cases across application, model, infrastructure and data layers, and the OWASP GenAI Red Teaming Guide covers agentic challenges from model behavior to system-level API misuse and data exposure. Where your agent connects to Model Context Protocol servers, the MCP security guidance on token passthrough and scope minimization also applies. Confirm with each provider how findings will be tied back to these categories, and whether a retest is included, since a report without a retest rarely answers the follow-up question from a customer or insurer.

What can be in scope for an AI agent test

An AI agent is more than its model. The test scope follows the components that let the agent act: what it can reach, what it remembers, who it acts as and where it runs. Agree these decisions in writing before testing starts, along with rules of engagement and dedicated test accounts.

The agent and its model

Scope starts with the agent's system instructions, its model and the guardrails placed around both. Testers check whether goal hijack through injected content can redirect the agent away from its task (OWASP ASI01), and whether instructions or sensitive context leak to users. Confirm which model version, hosting location and safety layers are in the test boundary, because a change to any of them can change the results.

Tools and connectors

Every tool, plugin and API connector the agent can call is an action it can take on a user's behalf. Testing covers whether the agent uses tools outside their intended purpose (OWASP ASI02 Tool Misuse and Exploitation), whether tool inputs are validated and whether destructive actions need confirmation. Ask for a full inventory of tools with their read and write permissions, and state which external systems may be touched in a test.

Memory and retrieval sources

Long-term memory, session state and the documents or knowledge bases the agent retrieves from all shape what it does next. Testers check whether attacker-controlled content can be stored and later influence behavior (OWASP ASI06 Memory and Context Poisoning), and whether one user's memory is visible to another. Confirm which stores are in scope, who can write to them and how retention is configured.

Identity, tokens and privileges

An agent often acts with a service account, an OAuth grant or a delegated user token, and that identity defines the damage a successful attack can cause. Testing covers identity and privilege abuse (OWASP ASI03), token scope and audience, and whether the agent can exceed the permissions of the user it serves. Ask which identities and grants the agent holds, and which test accounts with defined privileges the tester will receive.

OWASP agentic Top 10

Human approval and multi-agent paths

Confirmation prompts, approval queues and escalation paths are controls only if they are shown accurately and cannot be bypassed. Testing checks whether users can be misled into approving harmful actions (OWASP ASI09 Human-Agent Trust Exploitation) and whether messages between cooperating agents are authenticated and validated (OWASP ASI07). Confirm which approval flows and which agent-to-agent channels exist, and whether they are in scope.

Runtime and admin settings

The sandbox, code execution environment, hosting configuration, logging and administrator console determine how far a compromised agent can reach. Testing covers unexpected code execution (OWASP ASI05), exposed admin interfaces and whether audit logs capture agent actions. Agree which environments are in scope, whether production is excluded, and how the tester will reach each component without affecting live users.

How an AI agent penetration test runs phase by phase

The sequence moves from agreed scope and threat model to controlled testing, evidence capture, reporting and retest, so the buyer ends with findings tied to specific agent risks and proof that fixes held.

  1. Agree scope, agent inventory and rules of engagement

    The provider and client define the agent under test, its tools, data sources, identity model, connected MCP servers and hosting environment, and which layers are in scope, such as the model interface, orchestration, tools and memory. Both sides agree the test environment, permitted actions, accounts provided for testing, stop conditions and contacts, usually in writing before work starts. The step closes when the scope document lists each asset, the environment type and the rules of engagement, and the client has signed off on them. Buyers should confirm whether the test targets the agent itself or only uses AI tools to run a conventional pentest.

  2. Model threats against the OWASP agentic categories

    The tester builds a threat model that maps the agent's capabilities and trust boundaries to the OWASP Top 10 for Agentic Applications 2026, covering ASI01 Agent Goal Hijack through ASI10 Rogue Agents. For each agent, the team records what instructions it trusts, which tools it can call, what identities those calls run under, and what data flows in from documents, web content or other agents. The output is a prioritized list of test cases with the reason each one matters for this deployment. Buyers can check that every category is either tested or explicitly excluded with a reason.

  3. Map test cases to AI-specific test guidance

    The provider selects test cases from the OWASP GenAI Red Teaming Guide, which covers model-level and system-level weaknesses including agentic challenges, and from the OWASP AI Testing Guide v1, which offers repeatable test cases across application, model, infrastructure and data layers. Where the engagement uses MITRE ATLAS techniques, the cases are tied to specific technique IDs. The team also applies the general assessment phases from NIST SP 800-115 for planning, testing and reporting discipline. The step closes with a test plan that names each case, its layer, its expected control and the evidence it will produce.

  4. Run controlled tests in the agreed environment

    Testers exercise the agent in a non-production or otherwise agreed environment using test accounts with the privileges the scope defines. They check whether instructions from untrusted content can override the agent's goal, whether tool calls stay within the permissions granted, whether one identity can act with another's privileges, and whether memory, inter-agent messages or cascading tool chains can carry bad state forward. Testers record every attempt and stop when a defined boundary is reached. The step closes when each planned test case has a recorded result of held, failed or not testable, with the reason noted.

  5. Capture evidence and confirm each finding

    For every failed control, the tester records the conditions needed to reproduce the behavior, the agent version and configuration, the logs or traces that show the effect, and the business impact in the client's terms. Findings are reproduced at least once by a second tester or through a repeatable check before they are rated. Sensitive outputs such as personal data are minimized in evidence and handled under the agreed data terms. The step closes when each finding has an evidence bundle that a client engineer could follow without asking the tester for more detail.

  6. Deliver the findings report with remediation mapping

    The report sets out the scope, the threat model, the test cases run and not run, and each finding with severity, affected agent component, evidence and a remediation recommendation. Each finding is tied to its OWASP agentic category and, where relevant, to an ATLAS technique. Recommendations are specific to the agent's design, such as narrowing tool scopes, separating identities, requiring approval for high-impact actions or filtering untrusted content. The report is delivered in writing and walked through with the engineering and security owners. The step closes when the client has accepted the report and assigned owners to each finding.

  7. Retest fixes and close the engagement

    After the client applies fixes, the tester reruns the failed test cases against the changed configuration and records whether each control now holds. Findings that remain open are carried forward with updated status and reasons. The final report or retest addendum records what was verified, against which agent version, and what residual risk the client has accepted. Buyers should confirm in advance whether retest is included in the quote or billed separately, since that affects evidence for auditors and customer reviews. The step closes with a signed retest result that matches each original finding.

Which agent weaknesses the test looks for and why they matter

This table maps the OWASP agentic risk categories a penetration test of an AI agent typically examines to what each looks like in the target and why it matters to the buyer. Read it as a scope checklist: any category your agent can reach without a documented control should appear in the test plan.

CategoryWhat it looks like in the targetWhy it matters to the buyer
ASI01 Agent Goal HijackUntrusted content such as documents, web pages or tool outputs steers the agent away from the task its owner set, and the test checks which guardrails hold.A hijacked agent can take actions the owner never approved, so the buyer needs evidence of how the agent handles untrusted input.
ASI02 Tool Misuse and ExploitationThe agent calls connected tools in ways the design did not intend, such as passing unvalidated arguments or chaining tools beyond their purpose.Tools carry real effects on data and systems, so the test shows whether tool scopes and argument checks limit damage.
ASI03 Identity and Privilege AbuseThe agent acts with credentials broader than the user's own, or reuses tokens issued for another service or session.Excess privilege turns one weakness into wide access, and auditors will ask how agent identities are issued, scoped and revoked.
ASI05 Unexpected Code ExecutionCode the agent generates or runs reaches the host, a sandbox boundary or a network it should not reach.Execution paths can give an attacker a foothold on infrastructure, so the test confirms where sandboxing and egress limits sit.
ASI06 Memory and Context PoisoningPersistent memory, notes or retrieved context carry attacker-supplied content into later sessions or other users' sessions.Poisoned memory can affect decisions long after the original input, so the buyer should know how memory is written, scoped and cleared.
ASI07 Insecure Inter-Agent CommunicationMessages between agents, or between an agent and an orchestrator, lack authentication, integrity checks or sender validation.A spoofed or altered message can redirect a chain of agents, so the test covers trust between components, not only the front end.
ASI09 Human-Agent Trust ExploitationThe agent presents outputs or approval requests in ways that lead a user to accept unsafe actions without real review.Human approval only protects the business if the prompt and the displayed action are clear enough to judge, so this is tested with users in view.
ASI10 Rogue AgentsAn agent pursues goals beyond its mandate, keeps running after its task ends, or acts outside monitored behavior.Without monitoring and kill controls, a misbehaving agent can act unseen, so the buyer should confirm logging and shutdown paths are tested.

Which frameworks expect AI agent testing and what they ask for

The EU AI Act, Regulation (EU) 2024/1689, sets two testing-related expectations that matter for AI agents. Article 15(5) requires high-risk AI systems to be resilient against attempts to exploit vulnerabilities, including data poisoning, model poisoning, adversarial examples or model evasion, and confidentiality attacks. Article 55(1) requires providers of general-purpose AI models with systemic risk to perform documented adversarial testing. The second obligation applies to model providers, not to most organizations deploying an agent, so buyers should first confirm which role they hold.

  • Article 15(5) resilience: A test of an agent used in a high-risk context can produce evidence on goal hijack, tool misuse and confidentiality attacks, which map to this expectation.
  • Article 55(1) documented adversarial testing: Applies to providers of systemic-risk general-purpose models. Organizations that only build agents on such models should confirm whether this duty reaches them.
  • Documentation: The test plan, scenarios, results and retests need to be recorded in a form a market surveillance authority or notified body can review.
  • Role determination: Whether a system is high-risk depends on its intended purpose and the regulation's annexes, which a legal adviser should confirm.
  • Scope boundary: A penetration test does not establish conformity on its own, so it should sit inside a wider risk management and quality process.

Ask your legal or compliance lead to confirm the system's classification and which Article 15 evidence the assessor will accept before you define scope.

What the client receives and whether it satisfies an auditor or customer

An AI agent penetration test should leave you with a report you can hand to engineering, your auditor and your customers' security teams. The cards below cover what that package contains and where its limits lie, so you can confirm acceptance before the work starts.

Scope and test accounts

The report opens by recording what was tested: the agent version, tools, connected data sources, identity provider, and the test accounts and roles used. It should also state what was excluded, such as production systems or third-party tools the agent calls. Ask the provider to confirm the test accounts map to the privilege levels your real users hold, because findings from a low-privilege account do not show what a high-privilege user or the agent itself can reach.

Method mapped to ASI01 to ASI10

Each test case should trace to one of the ten OWASP Top 10 for Agentic Applications 2026 categories, from Agent Goal Hijack (ASI01) to Rogue Agents (ASI10), and to the layers of the OWASP AI Testing Guide. This mapping lets your auditor or customer see which risk categories were covered and which were not tested. Ask for a coverage table that lists each category as tested, partly tested or out of scope, with the reason.

OWASP agentic Top 10

Findings with severity and evidence

Each finding should state the affected component, the agent behavior observed, the conditions under which it occurred and the severity rating with its basis. Evidence should be reproducible in a controlled environment and show what the agent did, such as which tool it called, which data it returned and what the user saw. Be wary of findings that report a model response without showing the tool calls, permissions or data path behind it, since those are the parts that decide whether the issue matters.

Fixes and remediation guidance

Remediation should be specific to the agent's design: tool permission scoping, confirmation steps before sensitive actions, token audience checks, input and output handling, and logging. Fixes that only add a prompt instruction telling the model to refuse something are weaker evidence of remediation than changes to permissions or enforcement outside the model. Ask the provider to rank fixes by effort and to note which ones need changes in your platform rather than in the agent configuration.

Retest results

A retest confirms which findings were fixed and which remain open, with the evidence rerun against the changed system. Retest should be scoped in the original agreement, and the report should record the version of the agent tested in each round. Without a retest, a report shows what was found but not what changed, and most customer reviews ask about the latter.

Summary letter for customers or auditors

A summary letter describes the test, its scope, dates, methods and high-level outcomes so you can share it outside the company. It is evidence that testing took place. It is not an attestation, audit opinion or certification, and no independent body issues one on the basis of a DeployOpen engagement. Confirm with your auditor or customer, before the test starts, whether they accept a testing letter and which sections they need, and agree who may receive the full report.

How the test changes by agent architecture

Workplace agents sit inside the identity provider and act on behalf of employees across mail, documents, chat and ticketing through SaaS connectors. The primary trust boundary is the delegation chain: the user's SSO session, the connector's OAuth grant and the agent's own service identity, each of which can hold more access than the task needs. A test therefore focuses on whether the agent can reach data the requesting user could not open directly, and whether a prompt-injected document can trigger actions in another connected system.

  • Delegated permissions: Check whether connector scopes are broader than the features the agent uses, and whether users can grant consent to new connectors without an administrator.
  • Cross-connector pivoting: Test whether content read from one source, such as an inbound email, can steer actions in another, such as sending a file to an external address.
  • SSO and admin settings: Review session lifetime, role mapping, tenant boundaries and who can change agent instructions or enabled tools.
  • Shared agents: Confirm whether one agent instance serves several users and whether conversation memory or retrieved content leaks between them.
  • Audit trail: Verify that tool calls are logged with the acting user, the connector and the parameters, so a finding can be traced.

Before commissioning this test, confirm which connectors and tenants are in scope and whether the vendor permits testing against live SaaS accounts or only sandbox tenants.

What your team prepares before testing starts

The agent configuration and tool inventory are the first things your team provides, because the tester cannot assess what it has not been shown. Ask for the agent's system instructions, model and version, memory and retrieval settings, and a complete list of every tool, connector and MCP server it can call, with the permissions each one carries. Include which actions require human approval and which run without it. Your team should also document the data sources the agent reads and writes. This inventory becomes the baseline for the goal hijack, tool misuse and identity and privilege abuse tests, and gaps in it usually turn into untested paths in the final report.

Testing should run in a non-production or agreed test environment that mirrors the live agent's tools and permissions without touching real customer records, payment systems or outbound messaging. Agree in writing which systems are real, which are sandboxed, and whose accounts the agent will act through. Provide test accounts at each role the agent serves, such as a standard user, a privileged administrator and a user from a different tenant if one exists. Role-based accounts let the tester check whether the agent enforces the same limits the application does, which is the core of the identity and privilege abuse work. Confirm with the vendor and your own identity team how those accounts are provisioned and when they expire.

Set data handling rules before any prompt is sent: which data sets may be used, whether test conversations are logged and where, and how any sensitive output is redacted in evidence. Name the technical and business contacts who can stop the test, and agree on change freezes so nobody redeploys the agent or edits its tools mid-test. Write down stop conditions in advance, such as unexpected writes to production, data appearing outside its intended tenant, or a third-party service showing sustained errors. Ask your provider to confirm how it will escalate a stop condition and how quickly it will pause. These decisions are one-time setup work, but they should be reviewed whenever the agent's tools change.

What to check before you choose an AI agent testing provider

Providers often describe AI agent testing in similar terms, but the work behind the label can differ sharply. The six checks below help you confirm what is being tested, how it is measured, how findings are handled and how fixes are verified before you sign.

Confirm the agent is the target

Ask whether the agent itself is the system under test, or whether AI tools are used to run a conventional pentest against the surrounding application. These have different scope and deliverables. A target-focused test examines the agent's goals, tool calls, permissions, memory and identity, and the provider should name the agent, its tools and its data sources in the proposal. Ask the provider to state which of the two they are selling.

Map method to OWASP agentic risks

The method should trace each test to a named category in the OWASP Top 10 for Agentic Applications 2026, from ASI01 Agent Goal Hijack to ASI10 Rogue Agents, and to the layers of the OWASP AI Testing Guide. Ask for a test plan that lists which categories are covered, which are excluded and why. A vendor that cannot produce that mapping is likely running a generic checklist.

Risk categories
ASI01 to ASI10
OWASP agentic Top 10

Agree written scope and rules of engagement

Scope should be written before testing starts and should name the agent versions, tools, connectors, identity providers, data stores and environments in play. The rules of engagement should state which actions are allowed, whether tests run against production or a controlled copy, who can stop the test, and how out-of-scope systems are protected. Confirm that any action that could change customer data or send messages on a user's behalf is either excluded or run in a sandbox.

Name the report format and retest

Ask for a sample report before buying. A useful findings report ties each issue to an agent risk category, describes the conditions that produced it, rates impact in terms your team can act on, and gives a concrete remediation path. Confirm whether a retest of fixed findings is included in the fixed price or billed separately, and how the provider verifies that a fix holds after a model, prompt or tool change.

Handle sensitive evidence carefully

Agent tests often expose customer records, credentials, internal documents and model outputs that contain personal data. Ask where evidence is stored, who can access it, how long it is retained, how it is encrypted and when it is deleted. Ask whether transcripts are redacted in the report and whether the provider can run the test inside your own environment or a tenant you control. Your data processing terms should cover the testing engagement.

Disclose AI tools used during testing

Many testers use AI models and agents during their own work, which means your agent's data may pass through a third-party model. Ask which AI tools the provider uses, whether any client data is sent to them, whether those tools retain or train on inputs, and whether they can be disabled for your engagement. Confirm that the provider's own AI use is covered by the same confidentiality and data handling terms as the rest of the test.

Questions buyers ask about AI agent penetration testing

How much does an AI agent penetration test cost and what drives the price?

No public price list applies, and DeployOpen does not publish one. The quote follows from a written scope, so the price is driven by the scope rather than by a fixed rate. The main drivers are how many layers are in scope (the model integration, the tool layer, identity and token handling, memory and retrieval, and the hosting environment), how many agent risk categories from the OWASP Top 10 for Agentic Applications 2026 the test must cover, how many tools, data sources and agents the system connects, and whether the work includes a controlled test environment and a retest. Ask the provider to itemize these components in the quote, to state what is one-time and what recurs (for example, a retest or continuous testing retainer), and to say which activities are performed by their staff and which depend on your team.

How long does an AI agent penetration test take?

Duration depends on the same scope factors that drive cost, plus how quickly your team can provide access and answer questions. The number of tools, permission models, identity integrations and test environments largely sets the effort. A single agent with a small tool set is a very different job from a multi-agent system with shared memory and inter-agent messaging. No duration figure is supplied for this service, so ask the provider to commit to a timeline in the written scope, including the time for test setup, testing, reporting and the retest, and to identify which steps depend on your side, such as environment access, test accounts and sign-off on test windows.

What does the work need from our team?

Expect to supply a named technical contact, a description of the agent's purpose and the actions it can take, the list of tools and connected systems, the identity model (how users and the agent authenticate and what permissions each role holds), and a non-production environment or agreed test accounts. Your team should also confirm which data the agent may read or write during testing, and who approves test activity that could affect downstream systems. Ask the provider to list these inputs in the scope document so that delays are visible before work starts, and to state how findings will be triaged with your engineers during the engagement.

Can our own staff run an AI agent penetration test internally?

Your staff can test an agent internally, and many teams should, because continuous checks catch regressions after each change. An independent test adds value where a second party must show that the testing was objective and documented. Internal teams usually need a published reference point, such as the OWASP AI Testing Guide or the OWASP GenAI Red Teaming Guide, a defined scope, a record of what was tested and what was found, and a way to verify fixes. If your team runs the test, check that it covers the agent's tool permissions, identity and privilege handling, memory and context controls, and that results are written up in a form an auditor or customer can review.

Does a tool like Strix replace an AI agent penetration test?

No. Strix is an open-source AI penetration testing tool released under the Apache-2.0 license. It uses AI agents to test other applications for vulnerabilities, so it is a tool for testing a target application with agents. An AI agent penetration test treats the agent as the target and examines its goals, tool use, identities and memory. Before you buy, confirm whether the provider is testing your AI agent as the target or only using AI agents to run a conventional pentest, because the scope and deliverables differ. Ask which of the ten agentic risk categories (ASI01 to ASI10) the provider will test and how the findings map to them.

Will the test report satisfy an auditor or a customer?

A report helps an auditor or customer when it shows the scope, method, dates, tested components, findings with severity and reproduction context, and the status of each fix and retest. DeployOpen does not issue audit reports, attestations or certifications. Independent auditors and certification bodies make those decisions. The reader should confirm early which framework or customer questionnaire applies, such as HITRUST's Agentic AI factor, the EU AI Act adversarial testing duties for high-risk or general-purpose AI systems, or your customer's AI security questionnaire. Ask the provider to map findings to the OWASP Top 10 for Agentic Applications 2026 and to the layers the test covers, and to confirm with your auditor in advance that the format is acceptable.

How does retesting work after the findings are fixed?

A retest checks whether each agreed finding has been fixed and whether the fix introduced new issues. It is usually defined as a separate item in the written scope, with the number of retest rounds, the findings included and the time window stated. Ask the provider to explain how fixes are verified (for example, by repeating the same test scenario in the same environment), how a risk accepted by you is recorded, and whether the retest is included in the quote or priced separately. For agents that change often, a retainer for continuous testing may be a better fit than a single retest.

Does the test touch production systems?

It should not, unless you explicitly agree to it in writing. Most agent testing runs in a staging or controlled environment that mirrors production configuration, with test accounts, sandboxed tools and synthetic data. Testing against live tools can send real emails, change records or trigger payments, so the scope should name every system the agent can reach, state which ones are in the test, and set rules for test windows, rate limits and emergency stop contacts. Ask the provider how it prevents test traffic from reaching live customer data and how it will handle a finding that suggests an issue in production.

How DeployOpen scopes, tests, reports and retests AI agents

DeployOpen tests AI agents as targets in their own right, covering goal hijack, tool use, identity and privilege, and the infrastructure around the agent. Each engagement is fixed-scope, with the layers, risk categories and deliverables agreed in writing before testing starts, and the findings handed over with fixes and a retest.

How we scope

  • We confirm in writing whether the agent is the test target or only a tool used to run a conventional pentest.
  • We map agreed layers and OWASP Top 10 for Agentic Applications 2026 categories, ASI01 to ASI10, into a written test plan.
  • We agree which tools, data sources, identity providers and admin settings are in scope, and which are excluded.

How we build

  • We run tests against a controlled copy or agreed test environment of the agent, with its real tool connections handled as agreed.
  • We test goal hijack through documents, web content and tool outputs, and check which guardrails held and which failed.
  • We review tool permissions, token handling, MCP server exposure and memory stores against the agent's least-privilege design.

How we hand over

  • You receive a findings report that maps each issue to an agentic risk category, with severity, evidence and reproduction context.
  • Each finding includes a recommended fix that your engineering and platform teams can assign and track.
  • The report separates confirmed weaknesses from items that need your confirmation, so it can be shared with your security review or auditor.

How we support

  • We retest agreed findings after fixes are applied and document which issues are closed and which remain open.
  • Ongoing support, upgrades and continuous testing are available as retainers for agents that change often.
  • We can prepare the evidence your customers or assessors ask for, such as access and logging controls, for the agent's current configuration.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.