Penetration test vs vulnerability assessment for AI systems and agents: when to choose each
A vulnerability assessment shows which known weaknesses exist across hosts, components and configurations, while a penetration test shows whether an attacker can chain prompt injection, tool misuse or credential exposure into business impact. Choose a penetration test when the system can act for a user: when an AI assistant, coding agent or MCP server holds tokens for downstream systems, calls tools that write data or run commands, or reads untrusted content such as email, tickets or web pages. The OWASP Top 10 for Agentic Applications for 2026 lists ASI02 Tool Misuse and ASI03 Identity and Privilege Abuse, and both risks depend on a sequence of steps that a scanner does not follow. A scan can confirm that an MCP endpoint is reachable. Only a tester can show that a poisoned document makes the agent call that endpoint's write tool with a credential the user never granted.
A scan alone is a defensible choice in a narrow set of cases: a patch or version update to a self-hosted chat front end, model gateway or vector database, where the agent's tools, data sources and identity settings have not changed since the last test. Exposure of AI services is a class that scanning covers well, and the MITRE ATLAS v2026.09 data release added Misconfigured or Publicly Exposed AI Services (AML.T0132) to its catalog. Record the decision and its reason in the change record, and confirm that the scan reaches the admin console, the MCP endpoints and the vector store in your environment, since scan coverage depends on the target list you give it. If a change touches tools, permissions or SSO, a scan no longer answers the question on its own.
Many teams need both. NIST SP 800-115 suggests regularly scheduled scanning interspersed with periodic penetration testing, and notes that organizations often combine techniques to reach an in-depth assessment at an acceptable level of risk. The OWASP Web Security Testing Guide makes the same point in its own terms: no single technique is enough. For an agent launch, run scheduled scans on every build and a manual agent test before go-live, then repeat the manual test after major changes to tools, prompts or SSO. Ask the provider for a written rules of engagement, test accounts for each role, and a retest of every finding. Ask for a quote tied to that written scope, since manual effort rises with the number of tools, roles and data sources the agent can reach.
Penetration test vs vulnerability assessment: what each covers in agent deployments
This table compares a penetration test with a vulnerability assessment for AI systems and agents across goal, scope, method, access, risk to live systems, evidence, repeatability and typical triggers. Read each cell with its condition in mind, because the two methods answer different questions. The main takeaway: a vulnerability assessment shows where known weaknesses sit across the agent estate, while a penetration test shows whether those weaknesses chain into business impact.
| Factor | Penetration test | Vulnerability assessment |
|---|---|---|
| Goal | Prove an attacker can chain prompt, tool and identity weaknesses to a defined impact, which matters most for agents that read untrusted content. | Inventory known weaknesses across the agent estate and rank them, which matters when you need coverage at scale. |
| Scope in agent deployments | Agreed in writing: models, system prompts, tools, MCP servers, agent identities, data stores and hosting, tested as one workflow. | Listed assets checked against known-issue and configuration checks. Confirm whether agent workflow logic is in the check catalog. |
| Method at buyer level | Human-led exploitation under written rules of engagement, including indirect prompt injection through documents, web pages and tool output. | Automated checks and known-issue matching. Confirm which AI-specific checks the scanner vendor actually runs before relying on them. |
| Access needed | Test accounts for each role, scoped tool credentials and agreed admin access where the scope needs it. | Network or API reach and scan credentials. Most checks need no exploitation-grade accounts. |
| Risk to live systems | NIST SP 800-115 rates exploitation of production as high risk, so agree stop conditions and whether agent tools can act. | NIST SP 800-115 rates passive review as minimal risk. Active probes still reach live agents, so confirm scan rates and targets. |
| Evidence produced | Reproducible attack narratives with prompts, tool calls, data reached, impact and retest results. | Asset inventory, matched issues, severity ratings and remediation lists, with less proof of chained impact. |
| Repeatability | Depends on the tester. Results go stale when models, prompts or tools change, so retest after material changes. | Easy to schedule and compare across releases, though results depend on the scanner's catalog and version. |
| Typical trigger | Before a customer AI security review, before exposing agents to untrusted input, or after major tool or identity changes. | Recurring hygiene across the agent estate, and groundwork before a penetration test. |
What a vulnerability assessment and a penetration test find in agents
A vulnerability assessment inventories weaknesses in agent infrastructure and configuration, while a penetration test tries to chain them into an attack. The cards below separate what each method reliably finds from what it leaves unproven, so you can decide which evidence you need before a customer review or rollout.
What a vulnerability assessment finds
A vulnerability assessment checks what is exposed. For AI systems, it maps exposed or misconfigured AI services to MITRE ATLAS technique AML.T0132, Misconfigured or Publicly Exposed AI Services, and flags outdated components and hosting weaknesses across the agent gateway, vector store, MCP server hosts and model endpoint. Typical findings include open administration interfaces and permissive network rules. Ask for each finding with the asset name, component version and ATLAS ID, and confirm the scan reaches every agent-facing host, including the model endpoint.
ATLAS v2026.09 releaseWhat a vulnerability assessment misses
A vulnerability assessment usually cannot show whether an agent can be steered into misusing its tools or identities. Indirect prompt injection (AML.T0051.001) hides instructions in content the agent reads, such as a web page, ticket or document, and a scanner sees only a healthy service. Proving this risk takes exercise: a tester plants a payload in a data source the agent trusts, then records which tools it calls, which credentials it uses and whether data leaves the boundary. Ask the provider for that recorded transcript as evidence of the result.
What a penetration test finds
A penetration test tries to chain weaknesses into a working attack path. For MCP-connected agents, testers check for token passthrough, which the MCP authorization specification forbids because an MCP server must not accept tokens that were not explicitly issued for it. They also test server-side request forgery, confused deputy behavior on MCP proxy servers, session hijacking and excessive agency (OWASP LLM03), where an agent holds more permissions than its task needs. Ask for each chain with its steps, evidence and retest result.
MCP security best practicesWhat a penetration test misses
A penetration test covers only the systems, accounts and prompt paths named in the agreed scope and rules of engagement. It cannot show how an agent behaves across every possible prompt, so a clean report samples behavior and says little about the rest. Third-party model and dataset risk also sits outside it. A supply chain review under OWASP LLM04 (Supply Chain) and LLM05 (Data and Model Poisoning) examines upstream models, datasets and fine-tuning pipelines. Confirm in writing which of these your engagement includes.
OWASP LLM Top 10 2026Penetration test vs vulnerability assessment deliverables: what you receive
This table compares what a vulnerability assessment and a penetration test hand back for an AI system or agent deployment. Read each row as a question to ask providers before you sign, because the same label can hide very different evidence. The main takeaway is that an assessment inventories and ranks weaknesses, while a penetration test shows which of them can be exploited against your agents and how to close them.
| Deliverable | Vulnerability assessment | Penetration test |
|---|---|---|
| Scope and rules of engagement | Asset inventory of AI endpoints, model gateways, agent tools and connectors. Rules of engagement may be light; ask for them in writing. | Signed rules of engagement covering agent actions, test accounts, data handling and out-of-scope systems before testing starts. |
| Findings | Raw scanner output plus triaged findings with severity and remediation notes for each item. | Validated findings with severity, each confirmed by a tester who ran the attack path. |
| Exploitation evidence | Usually detection evidence such as version, configuration or exposure output, without proof of misuse. | Logs, transcripts and captures showing, for example, an injected instruction that caused a tool call. |
| Attack narrative | Generally absent. Lists weaknesses in isolation, so chained paths between agent components can stay hidden. | Step-by-step paths, such as goal hijack through indirect prompt injection into a tool with write access (illustrative). |
| Remediation guidance | Fix notes per finding, which may be generic, such as update or patch the component. | Fix guidance tied to root cause, such as scoping tool permissions, token handling and approval steps for agent actions. |
| Retest | Rescan of reported items, if included. Confirm whether retest is in scope and priced separately. | Retest of each fixed finding with recorded results, confirming the fix holds against the same attack path. |
| Findings report with fixes and retest | Confirm whether the provider includes fix notes and a retest pass in the written scope. | DeployOpen's AI agent rollout security review delivers a findings report with fixes and a retest. |
| Sample report and ID mapping | Request a sample. Confirm whether findings map to ASI01 to ASI10 or MITRE ATLAS technique IDs. | Request a sample with evidence and retest results. Confirm the same ASI01 to ASI10 or MITRE ATLAS mapping. |
How to decide: from agent inventory to a targeted penetration test
The diagram starts with an inventory of every agent, MCP server, tool and identity, so the scope is visible before any testing is planned. The first decision asks whether the system reads untrusted content or handles customer data. The second asks whether a framework or customer security review names penetration testing, such as NIST SP 800-53 CA-8 in the high baseline, DORA, or CIS Controls 18.2 and 18.5. A recurring vulnerability assessment covers the full inventory on every path, and a penetration test targets the highest-risk agent or MCP integration. Fixes then go through a retest loop that stays open until each finding is verified.
Decision path from agent inventory to a targeted penetration test and retest.
Which frameworks name penetration testing and which name scanning
Frameworks split on whether they name penetration testing, scanning or both, and that split decides what evidence a review accepts. NIST SP 800-53 CA-8 (Penetration Testing) names penetration testing directly. Its independent team enhancement, CA-8(1), is selected only in the high baseline under SP 800-53B Release 5.2.0, so confirm your system's baseline before you budget for an independent team. SA-11 (Developer Testing and Evaluation) is broader: its enhancements cover static code analysis, manual code review, dynamic analysis and penetration testing. For an agent platform you build or customize, SA-11 is where scanner output on connectors and tester-driven exploitation of tool calls, prompt handling and memory belong in one evidence file.
Several frameworks name both test types but give them different jobs. DORA Article 25(1) lists vulnerability assessments and scans alongside penetration testing and scenario-based tests, so an EU financial entity can show scan coverage of its model gateway and vector store next to a manual test of the agent. Article 26 requires threat-led penetration testing at least every 3 years, but only for entities their competent authority identifies, so confirm that status first. CIS Controls v8.1 Safeguards 18.2 and 18.5 ask for external and internal penetration tests at least annually, and Safeguard 18.4 asks you to validate detections after each test. PCI SSC's guidance (v1.1, September 2017) says simply running an automated tool does not satisfy the penetration testing requirement, so a scan of an agent that touches cardholder data will not close that line alone.
The EU AI Act asks for adversarial testing without naming a test type. Article 15(5) requires high-risk AI systems to resist attempts to exploit vulnerabilities, including data poisoning, adversarial examples, model evasion and confidentiality attacks. Article 55(1) requires providers of general-purpose AI models with systemic risk to perform documented adversarial testing. Neither article says whether a scan, a manual test or both will satisfy it, so record the attack classes you tested, the method used for each and the findings you fixed. Before you buy, ask your assessor and your auditor which evidence they accept against each framework. The sources list both test types, but they do not show that a scan alone satisfies any of the requirements above, so get that answer in writing.
What drives cost and effort in each approach
Penetration tests and vulnerability assessments differ most in who does the work, how far an exploit is taken and where it runs. The cards below cover the cost components and the scope choices that move each one up or down. Use them to build a like-for-like quote request before comparing bids.
Who is paid for what
A penetration test is mostly tester labor: scoping, manual exploitation of agents, MCP servers and tools, and a written report. A vulnerability assessment is mostly scanner licenses or subscriptions plus your own staff time to run, triage and validate results. Both leave remediation with your own engineers, who fix prompt handling, tool permissions and credentials. Scoping and reporting are one-time costs, while scanner subscriptions and scheduled tests recur. Ask each vendor to split its quote along these lines.
Scope: agents, servers and identities
Cost tracks how many agents, MCP servers, tools and identities are in scope, because each one adds a trust boundary to test. An agent that can call write-capable tools under a privileged service identity needs far more test cases than a read-only assistant. In a penetration test, every extra boundary adds tester hours. In a vulnerability assessment, it adds scan targets and triage work. Confirm in writing which agent versions, MCP endpoints and identities the quote covers.
Exploit chaining depth
A penetration test is shaped by how far testers chain weaknesses. In an illustrative chain, a prompt injection triggers a tool call, the tool reads a file, and the file exposes a token that reaches a second system. Each added step needs setup, proof of impact and clean-up notes, so deeper chains cost more tester time. A vulnerability assessment identifies each weakness on its own and does not show whether they combine. Ask whether the quote caps chain depth and whether testers must prove impact or only confirm the finding.
Test accounts per role
Agents and their tools often behave differently for each user role, so every role needs its own test account. Each account needs provisioning, access approval and removal afterward, and someone must record what it can reach. In a penetration test, the number of roles tested in depth drives tester hours. In a vulnerability assessment, authenticated scans multiply the scan runs and the review of their results. Confirm who creates, rotates and deletes these accounts before work starts.
Production versus staging exploitation
NIST SP 800-115 describes penetration testing as using real exploits against production systems and data, which carries high risk. That risk adds planning, rules of engagement, monitoring and rollback controls, and each of those adds effort to the quote. Testing a staging copy lowers the risk only if its agents, MCP servers, tools and data match production closely enough for the results to hold. Passive review techniques pose minimal risk, according to the same guide, so ask which scan activity will touch live services.
Read NIST SP 800-115Quote scope and retests
DeployOpen does not publish a price list. A quote follows the written scope, so compare offers only after each covers the same agents, servers, identities and environments. Request the scope, deliverables, retest count and rules of engagement in writing. Retests after remediation recur, so ask what each round includes. For continuous work, ask whether a retainer covers repeat testing and retests after fixes.
How to combine both in one repeatable testing cycle
Run the vulnerability assessment on a fixed schedule across every agent in your inventory, and reserve the penetration test for the single agent or MCP integration whose compromise would do the most damage. NIST SP 800-115 describes this pattern: it suggests regularly scheduled scanning interspersed with periodic penetration testing, and notes that organizations often combine techniques to reach an in-depth assessment at an acceptable level of risk. Keep the inventory current with each coding agent, workplace agent and MCP server, its tools, the data stores it reads, its identity provider connection and its admin settings. To pick the penetration test target, ask which agent holds the broadest tool permissions or touches the most sensitive data. Then write the scope in the rules of engagement template in Appendix B of NIST SP 800-115, stating which tools, accounts, data sets and environments testers may touch, which actions are excluded, and who approves changes to those limits before testing starts.
Make the MCP checks explicit in that scope. The MCP authorization specification forbids token passthrough, so the test should confirm that each MCP server rejects any token that was not explicitly issued for that server. For local servers installed through one-click configuration, the MCP security guidance expects the client to show the exact command to be executed and to require explicit user approval. Test whether the approval prompt displays the complete command with its arguments, and whether anything different can run after approval. Then confirm that the server runs sandboxed with minimal default privileges: limited file system access, no network reach beyond its purpose, and no inherited developer credentials. Confirm which of these controls your MCP client enforces by default and which need configuration, because the answer depends on the client you deploy and its version.
Close the loop with validation and retest. After each penetration test, confirm that your detections fire for the techniques the testers actually used, which is the outcome CIS Controls v8.1 Safeguard 18.4 asks you to verify. For agents, map each technique to the relevant entries in the OWASP Top 10 for Agentic Applications 2026, such as ASI02 Tool Misuse or ASI03 Identity and Privilege Abuse, and to MITRE ATLAS where it applies. Where a detection is missing, add a logging rule or alert, then rerun only that technique. Retest the fixed agent or MCP integration before closing the finding, and feed any changed inventory entries into the next scheduled scan. Keep scan results, test findings, fixes and retest evidence in one ticket trail so an auditor can follow the cycle. Ask your provider whether retesting is included in the fixed scope and how it is priced.
Penetration test vs vulnerability assessment: questions buyers ask first
How much does an AI penetration test cost compared with a vulnerability assessment?
Neither approach has a published price, so the cost follows from the written scope, and the main difference is how much tester time each one needs. A vulnerability assessment is mostly tooling, validation and reporting, and its cost rises with the number of targets, such as model endpoints, agent tools, MCP servers and connected data stores. A penetration test adds manual work to chain weaknesses, for example an injected instruction that reaches a tool call with broad permissions, so cost also rises with the number of agent roles and permissions to exercise, how deep exploitation may go, and how many retest rounds are agreed up front. Ask each quote to separate one-time work (scoping, setup, the report) from recurring work such as retesting or continuous testing, and to name who pays for any tool licenses. DeployOpen engagements are most often fixed-scope, and the quote follows from that written scope.
How long does each test take for an AI agent system?
Duration is set by how much of the agent system is in scope, and a vulnerability assessment usually finishes sooner because it does not chain findings into attack paths. The main drivers are the number of agents, tools, data sources and identity paths, whether MCP servers run locally or remotely, how authentication and OAuth scopes are configured, and whether test accounts exist before work starts. Coverage also widens the work. The OWASP Top 10 for Agentic Applications for 2026 lists ten risk areas, from ASI01 Agent Goal Hijack to ASI10 Rogue Agents, and each area you ask a tester to exercise adds exploitation and retest time. Change windows and retesting after fixes add calendar time even when tester hours stay the same. No duration figure is supplied for this comparison, so ask the provider to put effort and calendar time in the written scope and to state the assumptions behind them.
What does our team need to provide before testing starts?
Most delays at the start come from missing inputs, so the written scope should list what your team provides before testing begins. In practice that means:
- Test accounts for each agent role and user type, provisioned with the least privilege the test needs.
- Architecture documents that show model endpoints, tool and MCP server connections, data stores and identity flows.
- Change windows and rules of engagement, using the template in NIST SP 800-115 Appendix B as a starting point.
- Named contacts for technical questions, escalation and an emergency stop.
Also agree in advance who can approve tests that write data or trigger external actions, such as sending messages or changing records, because those need a separate decision. Your team also needs time to review findings and confirm fixes, which is easy to underestimate. Give each item an owner and a due date in the scope document.
Can our team run a vulnerability assessment, and when is an outside tester needed?
Often yes for a vulnerability assessment, if your team can operate scanners, triage results and verify fixes. A penetration test depends more on manual exploitation skill and on explaining attack paths to system owners. NIST SP 800-53 Rev. 5 control CA-8, Penetration Testing, includes enhancement CA-8(1) for an independent penetration testing team, and NIST SP 800-53B selects that enhancement only in the high baseline. If your system sits outside the high baseline, an outside tester is a choice you make for objectivity, and that control does not require one. Customers and regulators may still expect independence, so confirm their expectations before you scope the work. DeployOpen runs AI and agent security testing under fixed-scope engagements, but it does not issue audit reports or certifications, so the assessor's own acceptance rules still apply.
Does a vulnerability scan satisfy a compliance framework or customer security review?
Often not on its own, because several frameworks name penetration testing as a separate requirement, and a scan only shows known weaknesses. The PCI SSC penetration testing guidance says that running an automated tool alone does not satisfy the penetration testing requirement. CIS Controls v8.1 Safeguards 18.2 and 18.5 ask for internal and external penetration tests at least annually, and Safeguard 18.4 asks that detections be validated after each test. Scans still matter, since NIST SP 800-115 suggests regularly scheduled scanning alongside periodic penetration testing. For a customer AI security review, the customer sets the evidence list, so ask which report format, scope statement and test dates they accept. Write the scope so the report maps to each requirement, and confirm with the assessor which evidence they will accept.
Is it safe to run a penetration test against a production AI agent?
It can be, but only under written conditions, because a penetration test uses live exploits. NIST SP 800-115 classes that as high risk against production systems and data, while passive review carries minimal risk. The factors that decide the risk are whether the agent can take write actions such as sending messages, changing records or calling payment APIs, whether it can reach customer data, and whether a staging copy matches production model settings, tool permissions and indexed content. Lower-risk setups use test accounts with limited permissions, sandboxed tools or synthetic data, agreed change windows, logging that separates test activity from real traffic, and a named contact who can stop the test. Write these into the rules of engagement before the first request, and list out-of-bounds actions, such as anything that moves money. If you test staging instead, confirm in writing that it is close enough to production for the findings to carry over.
How DeployOpen scopes and runs AI agent security testing
DeployOpen tests AI systems and agents inside the client's own infrastructure, with the scope agreed in writing before work starts. Testing covers prompt injection, tool and file permissions, data exposure, credential handling, and SSO and admin settings, and agent rollout reviews end with a findings report, fixes and a retest.
How we scope
- Written scope names each agent, MCP server, tool and data source in the test.
- Scope states whether the work happens before or after a coding agent, workplace agent or MCP server rollout.
- Fixed-scope engagements agree deliverables and timelines in writing; quotes follow from that written scope.
How we build
- Testing checks prompt injection, tool and file permissions, data exposure, and credential handling.
- SSO, admin settings and MCP server setup are reviewed alongside the agent's own behavior.
- When DeployOpen deploys the self-hosted platform, SSO, access control, audit logging and data handling controls are included.
How we hand over
- Each engagement produces a findings report with fixes and a retest of the fixed items.
- Evidence for compliance reviews is prepared, but DeployOpen does not issue audit reports or attestations.
- For software vendors in a customer review, answers to AI security questionnaires and system card content are prepared.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers.
- Agents and MCP servers change, so ask how a retainer retests permission and tool changes after each rollout.
- Confirm in the written scope which reference list, such as OWASP's agentic Top 10, the report uses.

