Why AI agent penetration testing needs its own methodology
A standard web application test does not cover the risks that matter most in an AI agent. A launch, a customer security review, a framework requirement or an insurer question may ask for a test of an agent that calls tools and acts for users, and a conventional scan of the web and API layers will not exercise goal hijack, tool misuse or identity abuse. The method for this work combines the assessment phases described in NIST SP 800-115 with AI-specific guidance from OWASP, so the test has a defined structure for planning, execution and evaluation and also tests the behaviors that make agents different.
The risks sit in the OWASP Top 10 for Agentic Applications 2026, which lists ASI01 Agent Goal Hijack, ASI02 Tool Misuse, ASI03 Identity and Privilege Abuse, ASI04 Agentic Supply Chain Vulnerabilities, ASI05 Unexpected Code Execution, ASI06 Memory and Context Poisoning, ASI07 Insecure Inter-Agent Communication, ASI08 Cascading Failures, ASI09 Human-Agent Trust Exploitation and ASI10 Rogue Agents. The OWASP AI Testing Guide v1 organizes AI testing across four layers: application, model, infrastructure and data. A useful test plan maps each agent risk to at least one layer, so the tester can show which controls were examined in the tool permissions, the model's behavior, the hosting environment and the data the agent reads and writes.
Buyers should be careful about what a test proves. A finite engagement shows that specific scenarios were tried against a defined configuration on a given date, and it cannot certify that an agent is safe under every prompt or future model update. Confirm with the provider which agent, model version, tools, identity provider and environment are in scope, whether testing ran in a controlled environment with non-production data, and how the findings will be retested after fixes. Those answers determine whether the report will satisfy an auditor or customer.
How the phases of an AI agent penetration test run
The sequence moves from agreed scope and threat-driven test selection through controlled execution to evidence-based reporting and retest, so the client can show an auditor or customer what was tested, what was found and what was fixed.
Agree scope, rules of engagement and authorization
Before any testing, the provider and client agree in writing which agent, tools, data sources, identities, environments and time windows are in scope, along with rules of engagement covering prohibited actions, escalation contacts and how to stop testing if a live system is affected. The client signs off the authorization letter and names the owners of the agent and its connected systems. The step is complete when the scope document and rules of engagement are approved and the test environment is confirmed as controlled, meaning it uses non-production data or agreed test accounts with logging enabled. Confirm the provider's approach to production testing and whether it is allowed at all.
Gather architecture and inventory the agent
The tester collects the agent's architecture: the underlying model and hosting, system prompt handling, tool definitions, connected APIs and MCP servers, memory and retrieval sources, identity and token flows, and admin settings. Reviewing configuration against the NIST SP 800-115 planning and information-gathering approach gives the team a documented baseline. The output is an asset and data-flow inventory that the client confirms is accurate. Ask the provider which items it will request and which it will only observe, and confirm that the inventory covers third-party components.
Threat model and select the tests
The OWASP GenAI Red Teaming Guide treats threat modeling as the step that decides which tests run. A public-facing agent would typically prioritize goal hijack and prompt injection through documents and web content, while an agent that handles sensitive intellectual property would weight data leakage and tool-based exfiltration. Testers map each threat to the OWASP Top 10 for Agentic Applications 2026 categories (ASI01 to ASI10) and to the layers of the OWASP AI Testing Guide, which covers the application, model, infrastructure and data layers. The output is a test plan that lists each planned test, its risk category and the reason it was chosen, approved by the client before execution.
Execute tests in a controlled environment
Testers run the planned scenarios against the agreed environment, following NIST SP 800-115 guidance on conducting assessments and recording each action. Tests cover goal hijack through crafted inputs, tool and permission boundaries, identity and token handling, memory and context behavior, and cross-agent communication where applicable. Testers stop and report immediately if a test affects production data or an unexpected system. Each test produces a timestamped record of inputs, outputs, tool calls and observed permissions. The step closes when every planned test has a recorded result, including tests that showed no weakness.
Analyze and validate findings
Testers confirm each suspected weakness by reproducing it and checking that it is not an artifact of the test setup. They assess impact in the context of the agent's permissions and data, and assign severity using the client's agreed scale. NIST SP 800-115 treats evaluation as a distinct phase, where results are compared against the assessment objectives and business risk. The output is a validated findings list in which each item states the category, affected component, evidence and the conditions needed to trigger it. Ask whether the provider will document tests that held, since that evidence supports a customer security review.
Deliver the findings report and remediation plan
The report ties each finding to its OWASP agentic risk category, the relevant OWASP AI Testing Guide layer and, where useful, the MITRE ATLAS technique it resembles. Each finding includes practical remediation: permission reduction, tool approval gates, input and output controls, identity redesign or logging changes. The report also lists tests performed, scope limits and any items not tested. The client receives a readout meeting to walk through findings and agree owners and fix order. The step is complete when the client accepts the report as an accurate record of the engagement. Confirm whether the report is written to support an auditor or customer questionnaire, and what it does not claim.
Retest fixes and close the engagement
After the client applies fixes, testers repeat the relevant scenarios to confirm each remediated finding is closed or to record that it remains open. Retest scope is agreed in advance and should cover any fix that changed permissions, tool definitions or prompts, since those changes can introduce new paths. The output is a retest addendum that records each finding's status with evidence. The engagement closes when the client has the updated report and the retest record. Ask the provider how retest is priced and scheduled, and whether a continuous testing arrangement would suit the agent's release cycle.
Which parts of an agent are in scope and how to set boundaries
Scope decides what an AI agent test can reach, what it can change and how much evidence it produces. The cards below follow the four layers of the OWASP AI Testing Guide, then the agent-specific boundaries and the written rules that keep a test safe on live systems.
Application layer boundaries
This layer covers the agent's user interface, its system prompt, the API that accepts user requests and the orchestration logic that decides which tool to call next. Buyers should confirm which front ends, chat channels and admin consoles are included. A boundary that stops at the model API misses the places where user input and tool output are combined into instructions. Ask the provider to list each entry point in the test plan.
- Guide version
- v1
Model layer boundaries
The model layer covers the hosted or self-hosted model, its configuration, safety settings and any fine-tuned or adapted weights. Decide whether testing targets the model behind the agent or only the agent's behavior through its public interface. Third-party provider models usually limit what a customer may test, so confirm the provider's usage terms before scoping. Model supply chain questions belong in a separate review, not in this test.
Infrastructure layer boundaries
Infrastructure covers the hosts, containers, vector stores, secret managers, gateways and networks the agent runs on. Name each environment and host group in scope, and state whether internal services may be reached from the test runner. Cloud-hosted components also fall under the provider's own testing rules, which can restrict certain attacks. Confirm which of these components the client owns and can authorize the test to touch.
Data layer boundaries
The data layer includes training or fine-tuning sets, knowledge bases, memory stores, conversation logs and any records an agent can read through a connector. Scope should name which data sources the tester may query and which are excluded because they hold regulated or third-party personal data. Ask how test data will be created, labeled and deleted. Memory stores need particular attention because a test can leave content behind that later sessions read.
Tools, connectors and privileges
List every tool, connector and plugin the agent can call, with the account and permission set each one uses. Record which actions are read-only, which write or delete data, and which send messages or move money. Identity settings such as service accounts, OAuth grants and admin roles define how far an agent can act, so the scope should name them. Changes to these permissions during testing should be recorded and reverted.
Inter-agent channels and test accounts
Multi-agent setups pass messages, tasks and results between agents through queues, APIs or shared memory. Scope should name each channel and state whether the tester may inject messages into it. Test accounts and environments should mirror production permissions without holding real customer data. Confirm who issues the accounts, how long they live and whether a staging copy exists. Live production testing should be an explicit, separately approved decision.
Written rules of engagement
Rules of engagement are a signed document that sets permitted actions against live systems, data handling terms and stop conditions. Data handling should cover where evidence is stored, who can read it and when it is destroyed. Stop conditions should define what ends testing at once, such as unexpected data exposure, service degradation or an action affecting a real customer. Both parties should agree on an emergency contact and a notification window before work starts.
How the phases and the agent's trust boundaries connect
The diagram starts at scoping and threat model, where the agent's trust boundaries are drawn before any test case is written. Test design turns those boundaries into approved cases, and controlled execution sends test traffic into the agent system under test, not into production users or live data. Evidence from execution moves to analysis, then to the report, and the retest closes the loop once fixes are applied. Check that every trust boundary the agent crosses, including identity provider calls, tool access, memory and data stores, appears in the agreed scope and has a matching test case.
Engagement phases mapped onto the agent components and their trust boundary.
Which weakness categories each phase examines
Goal and instruction integrity covers how an agent's objectives and behavior can be redirected. ASI01 Agent Goal Hijack describes an agent whose objective is altered by content it reads, such as a web page, email, document or tool output. ASI06 Memory and Context Poisoning covers the case where data written to memory or context persists and changes later decisions. These weaknesses matter because an agent acts on what it reads, so untrusted content can become an instruction. Testers check this conceptually by tracing every channel that feeds the agent context and asking whether the agent separates data from instructions. MITRE ATLAS maps the indirect case to LLM Prompt Injection: Indirect (AML.T0051.001), which v2026.09 updated, and the jailbreak case to LLM Jailbreak (AML.T0054), also updated in that release. The test should confirm:
- Input channels: which documents, web pages, tickets and tool results reach the agent context.
- Persistence: whether memory stores, summaries or vector entries retain injected content across sessions.
- Goal boundaries: whether the agent's objective can change mid-task without a user or policy decision.
- Guardrail evidence: which controls held, and how the report records each result.
- Retest scope: whether memory cleanup and context reset are verified after fixes.
Ask the provider to name the ATLAS techniques each test maps to.
Tool and permission use covers what an agent can do once it has acted on a request. ASI02 Tool Misuse describes an agent using a legitimate tool in an unintended or harmful way. ASI03 Identity and Privilege Abuse covers agents inheriting, caching or escalating credentials beyond what the task requires. ASI05 Unexpected Code Execution covers agents that run generated code or commands in environments that lack isolation. These weaknesses matter because the damage from a manipulated agent depends on its permissions, not only on its reasoning. Testers check this by mapping each tool to its permissions, identity and execution environment, then asking what the agent could do if its instructions were wrong. The test should confirm:
- Tool inventory: every callable tool, its parameters and the data it can reach.
- Least privilege: whether scopes, roles and service accounts match the task.
- Identity flow: whether the agent acts as the user, as a service, or as a shared account, and whether tokens are reused.
- Sandboxing: whether generated code runs in an isolated environment with no access to production secrets.
- Approval gates: which high-impact actions require explicit human confirmation.
Ask the provider to show the permission map that the test used as its baseline.
Supply chain and inter-agent communication cover the components an agent depends on and the messages that pass between agents. ASI04 Agentic Supply Chain Vulnerabilities covers third-party tools, plug-ins, MCP servers, prompts and agent templates that are loaded at runtime. ASI07 Insecure Inter-Agent Communication covers messages between agents that are not authenticated, integrity-checked or scoped. These weaknesses matter because an agent can trust a component that was never reviewed, and one compromised link can spread to others. Testers check this conceptually by listing every external component, how it is pinned or verified, and how agents authenticate each other. The MCP security guidance is a useful reference for tool servers, including its rule that servers must not accept tokens not issued for them. Depending on scope, the test should confirm:
- Component inventory: each external tool, server, plug-in and template, with its source.
- Version control: whether components are pinned, signed or reviewed before update.
- Message trust: whether inter-agent messages carry identity and are checked for integrity.
- Scope limits: whether one agent can instruct another beyond its authority.
- Dependency review: how the work links to a separate supply chain review.
Ask the provider which components were out of scope and why.
Oversight and failure behavior covers what happens when an agent behaves badly, fails or is trusted too readily. ASI08 Cascading Failures describes an error or manipulation that spreads across steps, tools or agents. ASI09 Human-Agent Trust Exploitation covers people accepting agent output or requests without checking, including approvals that an agent has shaped. ASI10 Rogue Agents covers agents that act outside their intended purpose, whether through drift, misalignment or compromise. These weaknesses matter because they are often invisible until harm is done, and controls that depend on human review fail if the review is shallow. Testers examine this through failure scenarios, logging review and the workflow for human approval. The test should confirm:
- Failure containment: whether a fault stops at a boundary, with rate limits or circuit breakers.
- Approval quality: whether reviewers see the actual action, parameters and source of the request.
- Behavior monitoring: whether actions are logged with enough detail to reconstruct a sequence.
- Kill switch: whether operators can halt an agent and revoke its credentials quickly.
- Drift checks: whether the agent's observed behavior is compared with its approved purpose.
Ask the provider how the test distinguishes a control that exists from one that works in practice.
What changes the cost and duration of an agent test
This table compares the scoping factors that change the effort of an AI agent penetration test, why each one adds work, and how to keep it efficient. No public price list is published, so a quote follows from the written scope, and the main takeaway is that each added agent, role, environment or test layer should be an explicit scope decision.
| Cost driver | Why it changes effort | How to scope efficiently |
|---|---|---|
| Number of agents and tools | Each agent has its own goal, memory and tool set, and each tool adds permissions and inputs that testers must exercise against the ASI01 and ASI02 categories. | Group agents that share a tool layer and test the shared layer once. Name each tool in the scope document. |
| Identity and privilege configuration | Service accounts, delegated user tokens and role mappings must be checked against ASI03 Identity and Privilege Abuse, and each mapping can multiply test cases. | List the identity providers, token types and privilege tiers in scope. Confirm which combinations are worth testing. |
| Environments tested | Production, staging and sandbox copies differ in data and connectors, and each environment tested needs setup, access and reconciliation of results. | Test one representative environment in depth and confirm which findings must be rechecked elsewhere. |
| Number of user roles | Each role changes what the agent may read, write and execute, so role-based goal hijack and data exposure tests repeat per role. | Limit roles to those with different permissions or data access, not every job title in the organization. |
| Depth of model-layer testing | Model-layer checks under the OWASP AI Testing Guide, including behavior under adversarial input and data handling, need more time than application-layer checks alone. | Agree whether the model is a vendor API or self-hosted, and whether the test covers the model or only the agent around it. |
| Memory and inter-agent flows | Persistent memory and agent-to-agent messaging add ASI06 and ASI07 test paths that depend on how data is written and read back. | Name each memory store and message channel in scope, and state whether poisoning tests run against them. |
| Retest scope | A retest repeats the tests behind each finding, so cost grows with the number and complexity of fixed issues. | Ask for retest rules in the quote, including whether retests are included and how long a fix window is allowed. |
| Reporting and evidence needs | Mapping findings to ASI categories, OWASP AI Testing Guide layers or an assessor's requirements adds documentation work. | Confirm the report format and any framework mapping before testing starts, not after. |
What the findings report contains and how retest works
An AI agent penetration test is only as useful as the report that follows it. The cards below set out what each section should contain, how findings tie back to the agent's components and standards, and how a retest closes each finding.
Scope and threat model
The report opens by restating what was tested: the agent, its tools, connected data sources, identity model, memory, and the environment used for testing. It also records the threat model that drove test selection, such as whether the agent is exposed to untrusted content or handles sensitive data. Ask the provider to show the agreed scope in writing, including anything excluded. A scope section that names the agent's components lets your reviewers see what was and was not examined.
Methodology mapped to standards
This section explains the phases the test followed and maps them to NIST SP 800-115, which covers planning, conducting and evaluating security assessments. It also shows which tests came from the OWASP GenAI Red Teaming Guide and the OWASP AI Testing Guide, and which OWASP Top 10 for Agentic Applications categories were covered. Require a mapping table so that a reviewer can trace each test to a standard without reading the full method.
OWASP AI Testing GuideFindings with severity and component
Each finding names the affected agent component, such as the planner, a specific tool, the memory store, an OAuth flow or the admin console. Severity should state the basis for the rating and the conditions under which the issue can be exploited. Map findings to ASI categories and, where relevant, to MITRE ATLAS techniques so that security teams can compare them with their own threat catalogs.
Evidence without operational exploit detail
Evidence shows that a weakness exists and what it affected, using request and response records, logged tool calls, screenshots of permission grants, or traces of the agent acting outside its intended scope. A well-written report keeps this detail at the level needed to reproduce the risk for remediation, and avoids publishing reusable attack payloads. Confirm with the provider how sensitive evidence is stored, who can access it, and how long it is kept.
Fixes and retest results
Each finding carries a recommended fix tied to the component that failed, such as narrowing a tool's permissions, requiring user approval for an action, validating token audience, or isolating memory by user. After the client applies a fix, a retest confirms whether the original weakness is closed and records the result against the finding. Ask whether retest is included in the quote or priced separately, and how long the retest window stays open.
Use in customer reviews and audits
Customers running their own AI security reviews and auditors assessing your controls often ask for test evidence. A report with scope, standard mapping, findings and retest status can support those requests, but the test does not replace an audit or certification, and DeployOpen does not issue either. Before testing begins, confirm with the customer or auditor which sections and formats they will accept, so the report is built to fit their review.
Questions buyers ask before commissioning an AI agent penetration test
How long does an AI agent penetration test take?
No duration is published for this work, so the answer depends on scope, and a provider should state its estimate in the written scope before work starts. The main drivers are the number of agents and tools in scope, how many of the ten OWASP agentic risk categories (ASI01 to ASI10) the test covers, whether the test includes the model, infrastructure and data layers described in the OWASP AI Testing Guide, and how many identity and permission configurations need checking. Test environment readiness also matters: a controlled test environment that mirrors production permissions usually takes less time to exercise safely than testing against a live system. Ask the provider to break the estimate into planning, testing, reporting and the retest window, and to name the assumptions behind each phase.
What does the client need to provide before an agent test starts?
The client provides the inputs that let testers reach the agent's real decision points without guessing. Confirm these items in writing before the test begins:
- Test accounts with the same roles and tool permissions that real users and the agent's service identity hold, plus at least one account with lower privileges
- A complete tool list, including each tool's purpose, the systems it touches, and whether it writes or deletes data
- Named technical and business contacts, plus an escalation path if the agent takes an unexpected action
- Change windows, rate limits, and any production systems that must stay untouched
- Architecture notes covering the model provider, memory stores, retrieval sources and the agent's hosting environment
Agree in advance how test data is created and removed, and who approves any action that would change a live record.
Can our internal security team run an AI agent test without an outside provider?
Your team can run parts of the work, but an independent test is usually stronger when the people testing the agent are not the people who built it. Internal teams are well placed for asset inventory, threat modeling, access reviews and retesting after fixes. An external tester adds value through an adversarial mindset, tested familiarity with prompt injection and tool misuse patterns, and a report that a customer or auditor can read without internal context. Teams that want to build this capability can start with the OWASP GenAI Red Teaming Guide and the OWASP AI Testing Guide, which describe structured, risk-based methods. Whichever route you choose, record who tested what, under which rules, so the evidence stands up to review.
How does an AI agent penetration test differ from a web or API test?
A web or API test checks whether an endpoint enforces authentication and input validation, with a defined request and response. An agent test also checks whether the model's decisions can be steered by content it reads, such as documents, web pages or tool outputs, into actions the user never requested. That means testers examine goal hijack (ASI01), tool misuse (ASI02), identity and privilege abuse (ASI03) and memory or context poisoning (ASI06), along with the chain of tool calls that results. Results are often probabilistic, so testers repeat scenarios and record how often guardrails held. The standard web layer, including APIs, authentication and session handling, still applies around the agent, and the AI-specific layers sit on top of it.
Can tools that use AI to run penetration tests replace a human-led agent test?
Automated tools can help with coverage and repeatable checks, but they do not replace a human-led test of an AI agent. The risk categories in the OWASP Top 10 for Agentic Applications depend on business context: which actions are harmful, which data must not leave the organization, and which approvals are required. A tester must judge whether an agent's action crossed a line the business cares about, and that judgment is hard to script. Ask any provider which steps are automated, which are performed by a named human, and how the tester validates each finding before it reaches the report. A human-led test should also verify the agent's permissions and identity setup, which automated tools rarely review in depth.
How is retesting priced and scheduled after findings are fixed?
Retesting is usually a separate, scoped piece of work, so the quote should price it on its own line. The cost depends on how many findings need verification, whether fixes changed the agent's prompts, tools or permissions, and whether the retest must repeat multi-step scenarios or only confirm a single fix. Ask the provider to state whether retesting is included in the original fixed-scope agreement, how many retest rounds are covered, and how long after the report a retest window stays open. Fixed-scope engagements are agreed in writing before work starts, so put the retest terms in that document, along with the deliverables and timelines. Ongoing testing can also be arranged as a retainer for agents that change often.
What should the report contain so an auditor or customer can use it?
A useful report ties each finding to a specific agent behavior, the test scenario that produced it, the affected tool or permission, and a recommended fix with a verification step. It should map findings to the OWASP agentic categories and, where relevant, to MITRE ATLAS techniques, so reviewers can trace coverage. It should also state what was in scope, what was excluded, the test environment, and which findings were retested. DeployOpen delivers a findings report with fixes and a retest for AI agent rollout reviews. DeployOpen does not issue audit reports or certifications, so ask your auditor or certification body how they want the evidence presented before the engagement starts.
How DeployOpen scopes, tests, reports and retests AI agents
DeployOpen runs AI agent penetration tests as fixed-scope engagements, with scope, deliverables and timelines agreed in writing before work starts. We map the agreed work to the phases of NIST SP 800-115 and to the OWASP AI testing references, then hand over findings, fixes and a retest.
How we scope
- Scope is agreed in writing before testing starts, naming the agent, its tools and its environments.
- We confirm which OWASP agentic risk categories ASI01 to ASI10 apply to the agent's permissions and data.
- Test accounts, identity provider settings and admin access are listed so the boundaries of the work are clear.
How we build
- We work through a threat model of the agent's goals, tools, memory and data sources before choosing tests.
- Tests run in a controlled environment agreed with your team, so tool actions do not touch production data.
- Each test is tied to an agreed risk category, with the layers of the OWASP AI Testing Guide covered in the plan.
How we hand over
- The findings report describes each weakness, its evidence, its affected permissions and a prioritized fix.
- Reports map findings to the OWASP agentic categories and to the NIST references your auditors or customers ask about.
- Fixes are documented so your engineering and compliance teams can review and verify changes independently.
How we support
- After fixes are applied, we retest the affected findings and record which issues are closed and which remain open.
- Ongoing support, upgrades and continuous testing are available as a retainer after the initial engagement.
- Where a rollout changes tools, permissions or models, we confirm with you whether the agreed scope needs updating.

