Why Can an AI Pentesting Proof of Concept Look So Inexpensive?
A proof of concept usually answers a narrow technical question: can we make this work? A team might connect a model to a scanner, browser or security-testing tool and demonstrate that the system can interpret a target, select an action or investigate a potential vulnerability. The direct model cost of that experiment may be small.
But the proof of concept has not yet answered several other questions:
- Can it do the same thing reliably next week?
- Can it work across different applications and technologies?
- Can it operate against hundreds or thousands of assets?
- Can it remain within authorized scope?
- Can it safely use credentials and testing tools?
- Can it distinguish a hypothesis from a validated vulnerability?
- Can another person reproduce the finding?
- How much human review does each result require?
- What happens when the model, API or workflow changes?
- How will the system be monitored, secured and maintained?
NIST’s Technical Guide to Information Security Testing and Assessment (SP 800-115) treats security testing as a planned, controlled process involving assessment methods, analysis and repeatable procedures rather than a single technical action. That distinction becomes even more important when AI can choose and execute actions rather than simply generate text.
A proof of concept can demonstrate possibility. It does not demonstrate production economics.
Are Tokens and API Calls the Main Cost of AI Pentesting?
They are part of the cost, but they should not be confused with the total cost.
AI providers use different pricing models. Depending on the service, organizations may pay for input tokens, output tokens, cached context, reasoning, tool calls, hosted compute or other resources, and current pricing varies significantly between model families and performance tiers (see current OpenAI, Anthropic and Google Cloud pricing).
That matters because an agentic security-testing workflow can consume AI very differently from a simple question-and-answer interaction. A security agent may need to:
- interpret the testing objective
- review scope and available context
- gather reconnaissance
- decide which test to perform
- invoke a security tool
- analyze the result
- form a new hypothesis
- select another action
- retry a failed approach
- investigate an alternative path
- collect supporting evidence
- assess whether the evidence is sufficient
- produce a structured result
One security objective can therefore involve many model interactions, tool calls and decision loops. More sophisticated systems may also use different models for different tasks or several specialized agents working together.
So a better question than “What does one million tokens cost?” is: how much AI consumption does it take to complete the security-testing workflow we actually care about?
What If AI Models Keep Getting Cheaper?
They might. Model providers continue to change pricing, capabilities and performance characteristics. There is no sound reason to build a multi-year AI pentesting business case around the assumption that today’s unit economics will remain unchanged.
But lower model prices would not automatically make the total capability cheaper, because price and consumption are different variables. If model usage becomes less expensive, an organization may decide to:
- test more applications
- test applications more frequently
- run tests after every material change
- give agents more time to explore
- perform more reasoning steps
- run several agents in parallel
- attempt deeper attack-path exploration
- use more capable models for harder problems
- retest findings more frequently
- expand testing to assets that were previously excluded for economic reasons
The unit cost can fall while total consumption rises. This is common in technology economics: once the marginal cost of an activity falls, organizations often do more of it.
For security leaders, that means today’s API price is useful for workload modelling, but it is not a long-term TCO strategy. The better question is: what will it cost to maintain the level of testing depth, coverage and frequency we expect to need?
What Costs Exist Beyond the AI Model?
A production AI pentesting capability has several cost layers.
Model and API consumption
Model consumption is the most visible cost because it is easy to measure. But even here, the calculation can become complex. Different tasks can require different model capabilities. A lightweight model may be sufficient for classification or summarization, while more complex reasoning could justify a more capable model.
Input context can grow as the agent collects information. Output length can change. Repeated tool interactions can add new context. Agents may retry actions or explore several hypotheses before producing a result. Model choice therefore becomes an engineering and economic optimization problem, not simply a procurement decision.
Testing infrastructure
AI does not penetration-test an application simply by producing language. It needs access to tools and environments in which authorized actions can be performed. Depending on the use case, that may include:
- browsers, scanners and command-line security tools
- API clients, isolated execution environments and sandboxes
- network connectivity and credential management
- storage, evidence collection, logging and screenshots
- compute resources
The architecture becomes more important as the system gains autonomy. An AI assistant that helps summarize scanner output requires a very different infrastructure and control model from an agent permitted to actively interact with production systems.
Orchestration and tool use
An autonomous or semi-autonomous system also needs to determine what happens between model calls: which tool should be used, what permissions it has, what happens when a tool fails, whether the agent should retry, change its hypothesis, ask another agent or escalate to a person, when enough evidence has been collected and when the test should stop.
This surrounding logic is part of the capability. OWASP’s guidance for AI agents highlights controls around tool access, permissions, human approvals, output validation, monitoring and adversarial validation. Those requirements illustrate why an operational agent is more than the model sitting underneath it.
Engineering and integration
The initial engineering work can include agent workflows, prompts and system instructions, APIs, testing-tool and target integrations, authentication, evidence management, observability, reporting, safety controls, and vulnerability-management, ticketing and asset-management integration.
But the initial build is only the first part. Production systems also need debugging, optimization, testing and change management. That creates another cost that is easy to overlook: opportunity cost. AI engineers, security engineers and offensive security experts are scarce resources. If they spend time building and operating an internal pentesting platform, what other security, engineering or product work are they not doing? That belongs in the business case too.
Summary of cost areas
| Cost area | What can be included | Why it matters |
| Model/API consumption | Input, output, reasoning, caching, multiple models | Grows with workflow complexity and testing volume |
| Testing infrastructure | Sandboxes, browsers, scanners, execution environments, compute, storage | AI needs somewhere safe to perform testing |
| Tool orchestration | Agent frameworks, integrations, workflow logic, retries, state management | Coordinates how AI moves from reasoning to action |
| Engineering | Development, integrations, APIs, prompts, workflow design | Required to create and evolve the capability |
| Evaluation | Benchmarking, regression testing, quality measurement | Determines whether performance remains dependable |
| Monitoring | Logs, observability, safety events, cost monitoring | Required to understand what the system is doing |
| Validation | Reproduction, exploit confirmation, human review | Converts candidate findings into trusted evidence |
| Security and governance | Identity, permissions, data controls, auditability, stop controls | Limits the risk created by autonomous actions |
| Maintenance | Model migrations, API changes, tool updates, workflow tuning | Continues after initial development |
| Specialist expertise | AI engineering, AppSec, offensive security, platform engineering | Often one of the highest-opportunity-cost inputs |
Why Do Evaluation and Monitoring Matter?
AI systems do not behave exactly like deterministic software. A conventional script is generally expected to behave the same way when given the same conditions. An AI-driven workflow can be more variable. That means organizations need to measure whether the system remains useful after changes to models, prompts, tools, context, policies, integrations or environments.
NIST’s AI Risk Management Framework emphasizes managing trustworthiness throughout the design, development, deployment, use and evaluation of AI systems, while the Generative AI Profile (NIST AI 600-1) extends that risk-management approach to generative AI.
For an AI pentesting system, evaluation could include:
- successful task completion and supported testing coverage
- invalid finding rates and reproducibility
- evidence completeness
- safety events and scope exceptions
- model consumption and testing duration
- human review requirements
- consistency between versions
The system should not only be able to run. The organization needs to know when its performance has changed.
What Does Fidelity Have to Do With Cost?
A lot. The cheapest way to produce a finding is not necessarily the cheapest way to produce a useful security outcome.
A useful way to think about fidelity in AI pentesting is the degree to which testing results accurately and reproducibly represent what is actually exploitable in the target environment.
Consider two hypothetical systems. System A produces 100 findings at very low cost, but analysts need to investigate most of them before determining whether they represent real risk. System B produces 20 findings at a higher direct testing cost, but most arrive with reproducible evidence and clear exploitability. Which system is cheaper? You cannot answer that from model cost alone. The economics depend on what happens after the finding is generated.
Low-fidelity output can create downstream costs through:
- manual validation and false-positive investigation
- duplicate review and unnecessary remediation
- engineering interruptions and risk triage
- retesting
- lost confidence in the testing process
This is why cost per finding can be a misleading metric. A better measure is often cost per validated, actionable finding, and at a program level, cost per trusted security outcome. This is where economics and security quality meet. For more on the distinction between automated output and defensible validation, see What Are the Limitations of AI-Only Penetration Testing?.
What Happens When the Underlying Model Changes?
Most organizations building AI pentesting internally will not train a frontier foundation model themselves. They will depend on external models or cloud platforms. That introduces another lifecycle cost. Providers may release new models, retire older models, change APIs, modify supported parameters, introduce new tooling, change rate limits, change pricing or change model behavior.
Anthropic, for example, maintains formal active, legacy, deprecated and retired model lifecycle states and explicitly notes that applications may need to be updated as models are retired.
A model migration may therefore require more than changing a model name. The team may need to re-evaluate prompts, tool behavior, token consumption, workflow logic, reliability, safety, supported tests and regression results.
This is normal software lifecycle work. But if the AI pentesting capability is built internally, that work belongs to the internal team.
What Security and Governance Costs Should Be Included?
AI pentesting has an unusual characteristic: the system may intentionally be given tools and permissions designed to identify and exploit weaknesses. That makes governance part of the architecture. Depending on the operating model, organizations may need controls for:
- authorized scope and target allowlists
- least-privilege credentials and secrets management
- data retention and sensitive data handling
- audit logs and action approval
- rate limits and prohibited commands
- tool permissions and model-provider access
- emergency stop procedures and human escalation
OWASP’s agentic security guidance identifies risks associated with autonomous systems and tool use, while its AI Agent Security Cheat Sheet recommends controls including least privilege, human-in-the-loop approvals, output validation, monitoring and secure agent testing.
Those controls are not optional overhead. They are part of the cost of running the capability responsibly.
How Should Organizations Calculate AI Pentesting TCO?
A useful total-cost model should examine four stages. The important step is to model all four. A proof of concept generally provides useful information about Build. It tells you much less about Run, Maintain and Scale.
| TCO category | What to include | Core question |
| Build | Architecture, engineering, integrations, initial infrastructure, initial evaluation | What will it take to become production-ready? |
| Run | Models, compute, infrastructure, monitoring, tool use, validation | What does each testing cycle actually cost? |
| Maintain | Model changes, regression testing, integrations, tooling, security updates | What will we keep paying after launch? |
| Scale | More assets, higher cadence, deeper tests, parallel agents, more data | What happens at 10x or 100x usage? |
Which Metrics Matter More Than Cost per Token?
Token consumption is an operational metric. Security leaders should also measure outcome economics. No single metric is sufficient, but together they produce a much better picture than API spend alone.
| Metric | What it helps answer |
| Cost per completed assessment | What does a meaningful test actually cost? |
| Cost per asset tested | How does the system scale as coverage increases? |
| Cost per validated finding | What are we paying for actionable signal? |
| Human review hours per finding | Is automation actually reducing work? |
| Invalid finding rate | How much downstream investigation is being created? |
| Time to validated evidence | Is the system improving useful testing speed? |
| Cost per retest | Can the organization afford to verify fixes frequently? |
| Engineering hours per testing cycle | How much internal effort remains hidden behind the automation? |
| Cost per continuously tested asset | What does ongoing rather than point-in-time testing cost? |
When Can Building AI Pentesting Make Economic Sense?
Building can make sense. The important point is to be clear about why. An internal build may be justified when an organization has:
- highly specialized security-testing requirements
- significant existing AI engineering capabilities
- strong offensive security expertise
- reusable internal AI infrastructure
- very high testing volumes
- proprietary workflows that create strategic advantage
- a strong requirement to control the full technology stack
- sufficient resources to maintain the capability over time
The real question is whether owning the capability is strategically valuable. If it is, higher fixed investment can be entirely rational.
When Can Buying Make Economic Sense?
Buying can make sense when the security outcome matters more than owning the underlying technology. Organizations may prefer an existing capability when they want to:
- shorten time to operational value
- avoid building specialist infrastructure
- reduce internal engineering requirements
- transfer model and tool maintenance
- access established security expertise
- gain more predictable operating costs
- expand testing without building a new platform
- focus internal resources on security priorities unique to the business
The comparison is therefore not vendor price versus API price. It is vendor price versus the full lifecycle cost of producing an equivalent trusted outcome internally. That is a more meaningful comparison.
Is Build Versus Buy Always an Either-Or Decision?
No. Many organizations will use a hybrid approach. They may build automation around internal data, unique workflows or proprietary systems while using external platforms for testing capabilities that are not strategically differentiating. They may also use internal AI for prioritization or remediation while consuming security testing from elsewhere.
The better framework is therefore: what should we own, what should we consume, and where does each approach create the greatest value? That question tends to survive technology cycles better than a simple build-versus-buy debate.
AI Pentesting Cost Evaluation Checklist
Use this checklist before approving an internal AI pentesting build.
Model economics
- We understand how model usage is charged.
- We have estimated consumption for a complete security-testing workflow, not just a single prompt.
- We have modelled higher testing frequency and increased usage.
- We have considered more than one model or provider scenario.
Infrastructure
- We understand the execution environments required.
- We have included compute, storage, tools and logging.
- We have planned for credential and secret management.
- We have accounted for sandboxing or isolation where required.
Engineering
- We have included initial integration and workflow development.
- We have identified who will maintain the system.
- We have included the opportunity cost of specialist engineering and security talent.
- We understand which components require ongoing tuning.
Quality and fidelity
- We have defined what constitutes a validated finding.
- We can measure reproducibility and evidence quality.
- We know how much human review each finding requires.
- We measure invalid or unsupported findings.
- We understand the cost of investigation downstream.
Governance
- Scope is technically enforced.
- Tool permissions follow least privilege.
- High-impact actions have appropriate approval gates.
- Logging and auditability are built into the system.
- We have an emergency stop process.
- Data retention and model-provider requirements are understood.
Lifecycle
- Model changes trigger regression testing.
- API and tool changes have owners.
- Maintenance costs are included beyond year one.
- We have modelled costs at materially higher scale.
Business case
- We know which business or security outcome we are trying to improve.
- We have compared build, run, maintain and scale costs.
- We have compared internal TCO with external alternatives.
- We understand whether owning this technology creates strategic value.
The Real Cost Question
AI is making sophisticated security capabilities more accessible. That is a meaningful change. But accessibility can blur the difference between accessing a technology and operating a dependable capability around it.
The model may become cheaper. Token prices may fall. Compute may become more efficient. Those developments can improve the economics of AI pentesting. But they do not remove infrastructure, engineering, evaluation, governance, maintenance or the need to know whether the result can be trusted.
The real question is not how cheaply you can call the model. It is what it will cost to produce security outcomes you can trust, at the frequency and scale your organization needs. That is the number worth understanding before deciding what to build.


