smaple.tr
Security

Buying a Penetration Test: Scope, Cost Drivers and Preparation

Mehmet Kurtipek
June 22, 2026
13 min read
Security
Penetration testing
Application security
Compliance

A penetration testing service is a time-boxed engagement in which qualified testers attack your application, API or network with your written permission, then give you a report of what they managed to break, how they did it and how to fix it. You pay mostly for tester-days, so the price follows the scope: how many applications, user roles and environments are included, and how much the testers are told before they start. A good engagement ends with a retest once you have fixed the findings.

We're a software development company, and we don't sell penetration tests. We build web apps, APIs and mobile apps, and we're working toward ISO 27001 and preparing for SOC 2 ourselves, so we look at pentests from the side of the buyer and the developers who have to act on the report.

Pentest, scan, red team or bug bounty?

People use "pentest" for several different things, and quotes are hard to compare until you know which one you're being offered.

Vulnerability scan

Penetration test

Red team exercise

Bug bounty

Who does it

An automated tool

People, with tools, inside an agreed scope

A small team with a broad goal, often unannounced

Outside researchers, paid per valid finding

Question it answers

Which known weaknesses are visible?

What can an attacker actually do to these systems?

Would we notice and stop a real attack?

What do many testers find over time?

Duration

Minutes to hours, repeatable

Days of tester time

Weeks

Ongoing

What you get

A long list, with false positives

Verified findings with reproduction steps and fixes

The attack path and where detection failed

Individual reports, uneven coverage

The UK's National Cyber Security Centre makes a useful point in its penetration testing guidance: a pentest is how you gain assurance that your own vulnerability management works. Day-to-day discovery belongs to your scanners, dependency checks and patching. If you have never run a scanner, a paid tester will spend expensive days finding what a free tool would have found.

When you need one, and when it can wait

The usual triggers for a first pentest are a compliance framework, an enterprise customer's security questionnaire, a launch involving money, health or personal data, or a large change such as a new login system, a new multi-tenant model or a cloud migration.

Here is what the common frameworks actually ask for:

  • PCI DSS (version 4.0.1) is the strictest. Requirement 11.4 asks for internal and external penetration tests at least once every 12 months and after any significant change, by a qualified internal or external tester who is organizationally independent of the systems being tested. Exploitable findings must be corrected and the test repeated to verify the fixes. Service providers that use segmentation must test it every six months.
  • ISO 27001 doesn't name penetration testing as a requirement. Annex A control 8.8 covers management of technical vulnerabilities, and an external pentest is a common way to show an auditor that the control works.
  • SOC 2 doesn't require one either. The AICPA's criteria mention penetration testing as one kind of evaluation a company can use, and in practice many auditors and enterprise customers ask for a recent report.
  • GDPR Article 32 asks for "a process for regularly testing, assessing and evaluating" security measures, and a pentest report is one common way to show that process exists.

When can it wait? If the product is a prototype whose login and data model will change next month, a test now will be out of date before the report is read. Run automated scanning in your pipeline, fix the basics in the OWASP Top 10, and book the pentest when the architecture settles.

Black box, grey box or white box

The "box" describes how much the testers know when they start.

What testers get

Good for

Trade-off

Black box

A URL or IP range, nothing else

Seeing your external attack surface the way a stranger does

Days go on discovery; logged-in features get little attention

Grey box

Test accounts for each role, API docs, an architecture overview

Most web apps and APIs

Less realistic for the first step of an attack

White box

All of the above plus source code and configuration

Finding the most issues per tester-day

You share code under NDA; still needs live testing to prove impact

For most SaaS products we'd buy a grey-box test of the web app and its API first, with one account per role and two separate customer organizations. If you're comfortable sharing code, white box is better value, because testers stop guessing how authorization works and read it instead.

What usually gets tested

A scope is built from targets like these, and each is usually priced separately:

  • The web application, including login, sessions, password reset, access control, input handling, file uploads and business logic. Broken access control is still first in the 2025 edition of the OWASP Top 10. The common test method is the OWASP Web Security Testing Guide; version 4.2 is the current stable release and 5.0 is in development.
  • The API, usually checked against the OWASP API Security Top 10 (2023 edition), which puts broken object level authorization first.
  • The mobile app on the device plus the API behind it, usually measured against OWASP's MASVS and MASTG.
  • Internet-facing hosts and exposed services, along with storage permissions and the rest of your cloud configuration.
  • The internal network, to see what an attacker can reach after getting a foothold, including Active Directory.
  • Office Wi-Fi, including whether the guest network is really separated.
  • Phishing and social engineering, which only belong in scope if you want to test staff as well as systems.

For multi-tenant software, the test we'd ask for first is whether a user in one organization can read or change another organization's data by changing an ID in a request. When we rebuilt Oplist, a hospital rostering platform we work on as the client's engineering team, we added organizations and roles to it. A pentest of a product like that should spend most of its time on exactly those boundaries. Scanners are poor at this class of bug because they don't know which records belong to whom.

How an engagement runs

NIST's SP 800-115, published in 2008 and still the institute's current guide to security testing, splits a penetration test into four phases: planning, discovery, attack and reporting. From the buyer's side, it looks like this:

  1. Scoping happens on a call with the people who know the system and the people who own the risk. The output is a written scope: targets, environments, test types, timing and effort in tester-days, and anything unusual such as out-of-hours testing.
  2. Someone with authority over the systems signs off on the rules of engagement: what may be tested, from which IP addresses and when. You can only authorize systems you control, so third-party services (payment providers, identity providers, email services) stay out unless their own rules allow testing. Check your cloud provider's policy too: AWS allows testing of a listed set of services without prior approval but prohibits denial-of-service and request flooding. Microsoft's rules of engagement for its cloud limit testing to your own tenant or assets you're explicitly authorized to test, and also ban denial-of-service testing.
  3. During testing, ask for critical findings to be reported on the day they are found.
  4. The testers deliver the report and walk your engineers through the findings on a debrief call.
  5. After you fix the findings, the tester checks that each fix works, and you get an updated report.

If the testers may see personal data, they are processing it on your behalf, so under GDPR you need a processor agreement (Article 28) signed before the test starts. If they store screenshots and extracted data outside the EEA, the transfer rules in Chapter V apply as well.

Preparing your application

Tester-days are easy to waste on things that have nothing to do with security: accounts that don't work, a staging server that is down, a WAF that blocks the testers on day one. Before the start date:

  • Pick the environment. Staging is safer, but it has to match production in versions, configuration and data shape, or the results won't hold. If you test production, agree on a quiet time window.
  • Create test accounts for every role, in at least two separate tenants, with realistic fake data. Don't put real customer data in a test environment.
  • Hand over API documentation (an OpenAPI file if you have one) and, for mobile, builds the testers can install. If the app uses certificate pinning, provide a build without it or instructions to bypass it.
  • Decide what to do about the WAF and rate limits: allowlist the testers' IP addresses to test the application, or leave protection on to test the whole stack. Write the decision down.
  • Tell whoever watches your alerts, and decide whether you want alerts to fire so you can check detection.
  • Take backups, name an emergency contact who answers the phone, and agree on how testing gets stopped if something breaks.
  • Avoid large deployments during the window, or tell the testers when one happens.

Reading the report

A useful report has a short executive summary, the scope and method, and then one entry per finding: severity, affected endpoint or host, steps to reproduce, evidence such as requests and responses, and a specific fix. Severity is usually given as a CVSS score. CVSS 4.0 has been out since November 2023, but many reports and vulnerability databases still use 3.1, so check which version you're reading before comparing scores.

The testers' severity is a starting point. The NCSC guidance says plainly that risk assessment and decisions on fixes are yours: an issue rated High on an internal admin tool behind a VPN may matter less to you than a Medium on your public signup flow.

Be wary of reports that are mostly scanner output with a cover page, findings with no reproduction steps, or dozens of "informational" items that pad the page count.

Fixing findings so they stay fixed

Treat findings like bugs with deadlines. Put each one in your issue tracker, give it an owner, and agree on a fix time by severity in your own policy.

Fix the whole class of bug. One IDOR (insecure direct object reference) usually means authorization checks live in each handler and some handlers forgot. Move the check to one place, for example a data-access layer that always filters by tenant, and the rest of that class goes with it.

Write a test that reproduces the finding before you fix it. It fails now, passes after the fix, and catches the regression if someone removes the check later. Rotate any secret the testers saw (API keys, tokens, database passwords in config files). Then book the retest and keep the report: PCI DSS asks for results and remediation records to be kept for at least 12 months, and auditors for other frameworks usually ask for the same evidence.

A regression test for a cross-tenant finding can be this small (a pytest sketch; the fixtures stand for your own test setup):

def test_user_cannot_read_another_tenants_invoice(client, make_user, make_invoice):
    alice = make_user(tenant="acme")
    bob = make_user(tenant="globex")
    invoice = make_invoice(owner=bob)

    resp = client.get(f"/api/invoices/{invoice.id}", headers=alice.auth_headers)

    # 404 rather than 403, so the API doesn't confirm the record exists
    assert resp.status_code == 404

After the retest, look at why the bug got in. If testers found a class of problem your pipeline could catch, add the check there: dependency and static analysis in CI (our DevSecOps post covers this), and threat modeling for the next feature that touches authorization (see secure SDLC).

What drives the cost

Most quotes are tester-days multiplied by a day rate, plus reporting and the retest. The days grow with:

  • the number of applications, APIs and mobile platforms (iOS and Android are often priced separately)
  • the number of user roles and tenants, because each role multiplies the access-control checks
  • how much the testers are told (black box needs more days for the same coverage)
  • the environments in scope, and whether testing must happen out of hours
  • compliance reporting formats, a retest, and any re-scoping when the system turns out bigger than described

We won't quote a market price range here: the figures published online come mostly from testing firms' own pages and vary too widely to be useful. Compare quotes by scope and tester-days. If one quote is a fraction of the others, check whether it is a scan sold as a pentest.

Choosing a provider

Ask every candidate for:

  • a redacted sample report, which tells you more than any sales call
  • who will do the testing, their experience and their certifications (OSCP or CREST, for example), and whether that person will actually be on your engagement
  • the methodology (WSTG, the API Top 10, MASTG for mobile) and roughly how much of the work is manual
  • how critical findings are communicated during the test
  • whether a retest is included, and within what window
  • professional liability insurance, an NDA, and how they store your evidence and any data they extract
  • confirmation that the testers are independent of the people who built and run the system

Frequently asked questions

How long does a penetration test take?

A focused test of one web app and its API is usually measured in days of tester time. Calendar time is longer because of scheduling, report writing and the retest, so allow several weeks from first call to final report.

Is an automated vulnerability scan enough?

No, though you should run one continuously to catch known issues between tests. A scanner won't find business logic flaws or access-control bugs that depend on who owns which record, and for PCI DSS it doesn't count as a penetration test.

Can our own developers do the pentest?

PCI DSS accepts a qualified internal tester if they are organizationally independent of the systems being tested. The developers who built the feature are the wrong people either way: they test the paths they designed.

Should we test production or staging?

Staging, if it really matches production. Some things, like the live network edge, CDN and WAF configuration, can only be tested in production, so you may want both: the application in staging and the production edge in an agreed time window.

How often should we test?

At least once a year and after significant changes, which is also what PCI DSS requires. For a product that ships large changes every month, we'd rather see a smaller scope tested after each big release than one large test a year.

We don't run the tests, but if a report has landed and the findings need fixing in a web app or API, our maintenance team can work through them with you.

Related Articles

July 15, 2026

DevSecOps Pipeline: What to Scan, Where, and What Should Block

Secret, code, dependency, image and DAST scans for a small team's CI/CD pipeline: where each runs, what should block a merge, and a working GitHub Actions file.

Read More: DevSecOps Pipeline: What to Scan, Where, and What Should Block
July 2, 2026

Secure SDLC: What Each Phase Should Produce

What a secure SDLC adds to each phase of development: requirements you can test, a worked threat model for a CSV import, and where a small team should start.

Read More: Secure SDLC: What Each Phase Should Produce
June 23, 2026

OWASP Top 10 2025: What Changed and How to Fix Each Risk

OWASP's 2025 list adds two categories and folds SSRF into access control. What each risk looks like in a real web app or API, and what to fix first.

Read More: OWASP Top 10 2025: What Changed and How to Fix Each Risk