Penetration Testing for SaaS Companies: Scope, Cost and Timing
SaaS penetration testing is a time-boxed, authorized attack on your production-like application, its APIs and the cloud surface it runs on, with one question at its center: can one customer reach another customer's data? For most SaaS companies the right scope is the web app and API tested with real accounts across every role and at least two tenants, plus the internet-facing infrastructure. The right timing is before your first big enterprise deal and inside your SOC 2 observation window. Cost depends on scope. Published 2026 market ranges for a single web application run from about $5,000 to $30,000 for a traditional engagement, though cheaper options exist.
What makes SaaS penetration testing different
A pentest of a brochure site and a pentest of a B2B SaaS product are different jobs. A SaaS product adds three things that change the work:
- Multi-tenancy. Every customer's data sits behind the same code paths. One missing
tenant_idcheck in a single query turns into a cross-customer data breach. This is the finding your enterprise buyers care about most, and an unauthenticated scan can't find it. - Role hierarchies. Owner, admin, member, billing, read-only, support/impersonation. Each role boundary is a place where privilege escalation can happen.
- An API-first backend. The browser UI is one client of an API that usually exposes more than the UI shows: mobile endpoints, legacy
/v1routes, internal admin routes. The OWASP API Security Top 10 (2023) puts Broken Object Level Authorization at #1 for this reason.
OWASP's 2025 Top 10 says it plainly: broken access control is still #1, and 100% of the applications tested were found to have some form of it. For a SaaS company, that's where a pentest earns its money.
Scoping a SaaS pentest
What should be in scope
| Asset | Why it matters for SaaS | Testing mode |
|---|---|---|
| Main web application | Where customers work and where tenant data is rendered | Authenticated, every role |
| Public and private APIs (REST/GraphQL) | Usually exposes more than the UI; IDOR/BOLA lives here | Authenticated, every role |
| Auth flows: signup, SSO/SAML, password reset, invites | Account takeover and tenant-joining bugs | Both |
| Subdomains, staging and preview environments | Forgotten environments with weaker controls or real data | Unauthenticated |
| Cloud exposure: storage buckets, public endpoints, exposed admin panels | Misconfigurations that skip the app entirely | Unauthenticated |
| Frontend JS bundles | Leaked API keys and hidden endpoints | Unauthenticated |
| Integrations and webhooks | SSRF and trust between your app and third parties | Authenticated |
Tell your tester which environment to use. Staging is safer, but only if it runs the same code and config as production. If it doesn't, findings from staging may not hold. Many startups test production with dedicated test tenants and seeded data.
What usually stays out
- Your cloud provider's own infrastructure. You can test what you run on AWS, not AWS itself. AWS's penetration testing policy lets customers test listed services (EC2, RDS, Lambda, API Gateway and others) without prior approval, and it prohibits DoS, request flooding and subdomain takeover against AWS-hosted resources.
- Third-party SaaS you depend on (Stripe, Auth0, Intercom). Test how you integrate with them, not the vendors themselves.
- Denial of service and social engineering, unless you explicitly want them and have agreed rules of engagement.
Scope by company stage
| Stage | Typical driver | Sensible scope |
|---|---|---|
| Pre-seed / seed, first enterprise prospect | Security questionnaire asks "do you have a recent pentest?" | External test of the app, API and subdomains, plus a report and attestation letter |
| Seed / Series A, SOC 2 Type 1 or 2 underway | Auditor wants evidence of a separate evaluation | Authenticated test across all roles and tenants, mapped to SOC 2, with a retest |
| Series B+, multiple products | Several enterprise contracts with annual pentest clauses | Per-application authenticated tests, cloud configuration review, and continuous scanning between tests |
If you're not sure whether you need the authenticated version, read authenticated vs unauthenticated penetration testing. For a multi-tenant product, the short answer is almost always yes.
What SaaS penetration testing costs
Market pricing is set mostly by tester-days, and tester-days are set by scope: the number of roles, endpoints and environments. Published 2026 figures:
- HackenProof puts web application tests at $5,000–$30,000+. A simple app with few roles sits at the bottom, and a multi-tenant SaaS platform with many roles, integrations and payment flows sits at the top. It puts a SOC 2-driven pentest at $5,000–$20,000.
- Lorikeet Security publishes $7,500–$12,000 for a small web app (10–25 pages, 1–2 roles) at 5–7 days, and suggests pre-Series A startups budget $7,500–$15,000 a year for an annual web app pentest.
- Stingrai's SOC 2 guide quotes US$5,000 to US$30,000+ for a web application and US$6,000 to US$30,000 for an API.
What pushes a SaaS quote up is predictable: each extra role, a second tenant, GraphQL, SSO/SAML and billing flows all add days. An API spec, seeded test accounts and a clear out-of-scope list bring it down, because paid hours go into testing instead of mapping.
For comparison, SecurityInfinity's Startup Pentest is a one-time engagement with no subscription. External starts at $499 per application: web app, APIs, subdomains and cloud exposure, with engineer-verified high and critical findings, a PDF report mapped to OWASP Top 10, and a signed attestation letter. Authenticated starts at $999 per application and adds testing across every user role, access-control, IDOR and business-logic review, API and privilege-escalation testing, SOC 2 and ISO 27001 mapping, and a free retest within 30 days. Both deliver the report and attestation letter in 3 business days, after scope and authorization are confirmed by email or a 15-minute call. For a wider look at the market, see how much a penetration test costs in 2026.
When to schedule it
Timing matters as much as scope. Get it wrong and the report is either stale or too late to act on.
Before the enterprise deal, not during it
Security reviews tend to show up in late-stage deals, and procurement teams often ask for a report dated within the last 12 months. If you commission the test after the questionnaire arrives, the deal waits on the test. Book it once enterprise prospects start appearing in your pipeline. Then you'll have a current report and an attestation letter ready to send. Here's what to send when a customer asks.
Inside the SOC 2 observation window
SOC 2 doesn't strictly mandate a pentest. Penetration testing appears once in the Trust Services Criteria, as a non-binding point of focus under CC4.1. Auditors still look for a separate evaluation, and a pentest is the usual one. Stingrai's analysis recommends testing around months four to five of a twelve-month observation period. That leaves time to fix the findings, retest and assemble evidence before fieldwork. It also warns that a test finished before the period opens is evidence for the previous period, not the current one. More detail: SOC 2 penetration test: what auditors expect.
After changes that move the attack surface
Retest, or at least rescan, after:
- a new authentication method (SSO, SCIM, magic links)
- a new permission model or role
- a public API launch or a new API version
- a cloud migration or new region
- an acquisition or a merged codebase
Annual testing is the floor most contracts ask for. SaaS teams that ship daily drift away from their last report quickly, so many pair an annual test with continuous scanning.
A hypothetical SaaS pentest timeline
Illustrative only, not a customer story: a 12-person B2B SaaS company starts its SOC 2 Type 2 observation period in January.
| Week | Activity |
|---|---|
| Jan (before window) | Run free continuous scans to clean up low-hanging issues: exposed buckets, stale subdomains, outdated TLS |
| April | Scope call; create test tenants A and B with owner, admin and member accounts in each; share API spec |
| April + 3 business days | Receive report and attestation letter; triage findings into Jira |
| May | Fix highs and criticals; free retest within 30 days confirms closure |
| June onward | Send the attestation letter with questionnaires; keep continuous monitoring running until the next annual test |
Preparing your SaaS app for a pentest
A short checklist that saves billable hours and avoids false starts:
- Confirm authorization in writing. Only test domains and systems you own or are authorized to test. If you host on a PaaS, check the provider's testing policy.
- Create at least two tenants with one account per role in each. Cross-tenant testing is impossible with a single tenant.
- Seed realistic data, including files, invoices and API keys, so IDOR attempts have objects to target.
- Share an OpenAPI/GraphQL schema if you have one. If you don't, testers have to rebuild it from traffic.
- Whitelist or notify your WAF and on-call team so test traffic doesn't page anyone at 3am.
- List what's off limits: payment capture in live mode, outbound emails to real customers, destructive admin actions.
- Check cloud exposure first. A cloud misconfiguration audit of AWS, Azure or GCP often turns up public resources you can close before the tester bills time finding them.
Getting started
If an enterprise prospect or auditor is waiting on you, book a Startup Pentest. External starts at $499 and Authenticated at $999 per application, with the report and attestation letter delivered in 3 business days. If you want to see your exposure first, start a free scan on a verified domain. The Starter plan includes 100 credits and doesn't need a card.
Frequently asked questions
Do SaaS companies need a penetration test?
No law requires every SaaS company to pentest. In practice, enterprise security questionnaires, SOC 2 auditors and ISO 27001 programs all expect evidence of independent security testing, and a recent pentest report is the standard evidence. If you sell to mid-market or enterprise customers, you will be asked for one.
What should a SaaS penetration test include?
At minimum: the web application, its APIs, authentication flows, subdomains and internet-facing cloud resources. For a multi-tenant product, it should also include authenticated testing across every user role and at least two tenants. That's how you find cross-tenant data access, IDOR and privilege escalation.
How much does SaaS penetration testing cost?
Published 2026 market ranges put a single web application test at roughly $5,000–$30,000+, depending on roles, endpoints and business-logic complexity. SecurityInfinity's one-time Startup Pentest starts at $499 per application for external testing and $999 for authenticated testing.
How long does a SaaS pentest take?
Traditional firms commonly quote several tester-days for a small application and multiple weeks for complex platforms, plus scheduling lead time. SecurityInfinity delivers its Startup Pentest report and attestation letter in 3 business days, once scope and authorization are confirmed.
Should we test staging or production?
Test whichever environment matches production code and configuration. Often that's production, using dedicated test tenants and seeded data. If staging differs in auth setup, infrastructure or feature flags, findings from it may not hold in production. Agree on exclusions for destructive actions either way.