On this page
The request lands three weeks before the deal is due to close: “Please share your most recent penetration test report.” Sometimes it comes from your PCI assessor. More often it comes from a prospect’s security team, attached to a long vendor questionnaire. Either way, someone now wants proof, and a scanner export will not pass.
Here is what most teams miss. Of the major frameworks, PCI DSS spells out penetration testing compliance requirements in the most detail: how often, who may test, what the methodology must cover and what happens after. ISO 27001, SOC 2 and GDPR do not mandate a pentest by name. They ask you to prove your controls work and leave scope and frequency to you. That freedom is exactly where weak tests slip through.
You get a one-table summary of what six frameworks actually ask for, the evidence auditors look for, five ways compliance pentests go wrong, and a checklist for scoping one engagement across several standards.
Key takeaways
- PCI DSS has the most detailed pentest rule among common frameworks: internal and external tests every 12 months and after significant changes, with fixes retested.
- ISO 27001, SOC 2 and GDPR are risk-based. No fixed interval, but you must show controls are tested, and a pentest report is the usual evidence.
- HIPAA may get explicit rules. A January 2025 proposal would require an annual pentest. It is not final.
- Auditors read the scope first. A clean report on the wrong systems proves very little.
1. Mandated or expected: two kinds of requirement
Prescriptive frameworks name penetration testing and set the rules. PCI DSS is the clearest case, and DORA does the same for EU financial firms. The checklist is already written; your job is to meet every line.
Risk-based frameworks ask you to show that your controls work without naming the method. ISO/IEC 27001, SOC 2, GDPR and the current HIPAA Security Rule work this way. You choose the scope and frequency, record why in your risk assessment, and defend that choice to an auditor.
In practice, “risk-based” rarely means “no pentest”. It means you need a better reason for the test you ran.
2. Penetration testing compliance requirements by framework
| Framework | Pentest named? | Minimum frequency | Who may test | Key reference |
|---|---|---|---|---|
| PCI DSS v4.x | Yes | Every 12 months and after significant change. Segmentation every 12 months, or 6 months for service providers | Qualified internal or external tester with organizational independence | Req. 11.4 |
| DORA (EU financial entities) | Yes, among listed tests, plus threat-led testing (TLPT) for identified entities | Yearly on systems supporting critical or important functions. TLPT every 3 years | Independent parties, internal or external | Art. 24 to 26 |
| HIPAA Security Rule | Not in the current rule. Proposed January 2025 | Proposed: pentest every 12 months, scans every 6 months | Proposed: a qualified person | Current: 45 CFR 164.308(a)(8) |
| ISO/IEC 27001:2022 | No | Set by your risk assessment | Not specified | Annex A 8.8 and 8.29 |
| SOC 2 | No | Not specified | Not specified | Trust Services Criteria, e.g. CC4.1, CC7.1 |
| GDPR | No | “Regularly” | Not specified | Art. 32(1)(d) |
Sources: the PCI SSC PCI DSS v4.0 SAQ D for Service Providers, DORA, Regulation (EU) 2022/2554, the proposed HIPAA Security Rule update in the Federal Register, and the GDPR on EUR-Lex. Standards change, so confirm the current version with your assessor.
PCI DSS: the detailed rulebook
Requirement 11.4 is the closest thing the industry has to a pentest specification. It asks for:
- A documented methodology (11.4.1) using industry-accepted approaches, covering the whole cardholder data environment (CDE) perimeter and critical systems, from inside and outside the network, at both the application and network layers, with test and remediation results kept for at least 12 months.
- Internal and external tests at least every 12 months and after any significant infrastructure or application change (11.4.2, 11.4.3), by a qualified, organizationally independent tester. Internal staff can qualify, and the tester does not need to be a QSA or ASV.
- Segmentation tests proving out-of-scope networks are isolated from the CDE (11.4.5, 11.4.6).
- Fixes, then a retest to verify them (11.4.4), with corrections prioritized by your own risk ranking.
Requirement 11.3, vulnerability scans every three months, is separate: one never stands in for the other. Our comparison of penetration testing vs vulnerability scanning explains why.
ISO/IEC 27001:2022: prove it your way
ISO 27001 does not mandate a pentest. Annex A control 8.8 covers management of technical vulnerabilities, and 8.29 covers security testing in development and acceptance. How you show they work, and how often, comes from your risk assessment.
Expect an auditor to ask how you know your internet-facing systems are not exploitable. A recent pentest with retest results is the most direct answer.
SOC 2: rarely required, often requested
The AICPA Trust Services Criteria do not require a pentest. As the Cloud Security Alliance explains, a SOC 2 report has no explicit control requirements: you design the controls and the auditor tests them. A pentest can support criteria such as risk assessment (CC3), monitoring (CC4.1) and system operations (CC7).
A Type II report covers a period of time, so many teams schedule the pentest inside it. And even when the auditor does not ask, enterprise customers often do.
HIPAA: explicit rules proposed, not final
The current Security Rule does not name penetration testing. It requires a risk analysis (45 CFR 164.308(a)(1)) and a periodic technical and nontechnical evaluation (164.308(a)(8)), and a pentest is a common way to meet the technical part.
A proposed update published on 6 January 2025 would require penetration testing by a qualified person at least every 12 months, and vulnerability scans at least every six months, or more often if your risk analysis calls for it. As of July 2026, the final rule was projected for July 2027, according to Holland & Knight’s reading of Reginfo.gov.
GDPR and DORA
GDPR Article 32(1)(d) asks for a process for regularly testing and evaluating how well your security measures work. It never says “pentest”, but for an application that processes personal data, a pentest report is the most concrete evidence that the process exists.
DORA has applied since 17 January 2025. EU financial entities other than microenterprises must test the ICT systems supporting critical or important functions at least yearly, using independent testers, and penetration testing is one of the listed test types. Entities identified by their regulators must also run threat-led penetration testing on live production systems at least every three years.
Sector regulators and tenders often add their own rules, sometimes asking for a “VAPT report” by name. See VAPT vs penetration testing.
3. What auditors look for in a pentest report
The test is half the job. The other half is the report you hand over. Check that yours shows:
- Scope that matches the audit. Applications, APIs, IP ranges and environments listed explicitly. For PCI DSS, the CDE and connected systems.
- Dates for testing and for each retest.
- Methodology, such as the OWASP Web Security Testing Guide, PTES or NIST SP 800-115, and whether testing was black, grey or white box.
- Tester independence from the systems under test.
- Findings with evidence: severity, a CVSS vector, a reproducible proof of concept and specific remediation. Our explainer on CVSS 3.1 scoring shows what a defensible score looks like.
- Remediation status: retest results, and a documented risk acceptance for anything left open.
- Segmentation results, wherever segmentation reduces scope.
- An executive summary a non-technical reader can follow.
Our guide to writing a penetration test report covers each section, or download our sample pentest report (PDF) to see the format. In WhyXpose, every finding carries its CVSS 3.1 vector, proof of concept, remediation and retest history, so the evidence is in one place when the auditor asks.
4. Five ways compliance pentests go wrong
These patterns come up again and again in real engagements, and none fails a checkbox until someone reads closely.
The scope was shrunk to pass
The marketing site and login page are in scope; the API that stores card data or patient records is not. The report comes back clean and irrelevant. Scope should follow the data, not the budget.
A scanner export was sold as a pentest
Scanners rarely find broken access control, business logic flaws or chained issues, the findings that matter most in multi-user applications. Ask for proofs of concept. If there are none, nobody tried to exploit anything.
Segmentation was assumed, not tested
A common finding: the CDE sits behind a firewall, but a forgotten management interface or shared admin host still links it to the corporate network. If segmentation shrinks your PCI scope, it needs its own test.
Nobody retested
Tickets were raised and the report was never updated. To an assessor, an unverified fix is still an open finding.
The test went stale before the audit
A test run before a major release, cloud migration or acquisition no longer describes the system being audited. Our guide on how often you should do a penetration test lists the triggers to watch.
5. One engagement, several frameworks: a scoping checklist
Most growing companies answer to more than one standard: PCI DSS for payments, SOC 2 or ISO 27001 for enterprise customers, GDPR for EU users. You do not need a pentest for each. You need one engagement scoped to the strictest rule.
- List every framework and contract that asks for testing, and note the strictest frequency and independence rule.
- Map the data. Put the systems that store or move card, health and personal data in scope first.
- Cover every target type in play: web applications, APIs, mobile apps and internal and external networks.
- Pick the approach. Grey box, with test accounts for each user role, usually suits SaaS and APIs best. See black-box vs white-box vs grey-box testing.
- Add segmentation tests if segmentation reduces scope.
- Agree the evidence up front: report format, methodology statement and retest window.
- Book the retest with the test.
- Write the cadence into your risk assessment, including the changes that trigger an off-cycle test.
6. Passing the audit is the floor
The UK National Cyber Security Centre makes the point in its penetration testing guidance: a pentest should confirm that your vulnerability management works, not be your main way of finding vulnerabilities. A test describes your systems on the days it ran.
Your attack surface changes every time a team ships a new subdomain, endpoint or cloud service. That is why a yearly pentest alone won’t save your company. Pair the compliance test with ongoing attack surface discovery and focused tests after significant changes.
7. Where AI-powered pentesting fits
Compliance pentests are full of repeated work: the same asset mapping, scans and triage every cycle. AI absorbs that repetition, so testers spend their hours on the access control and logic flaws attackers actually use.
WhyXpose is an AI-powered pentesting platform and AI-based vulnerability scanner, with human experts verifying every result:
- AI-guided recon and scanning. AI agents plan and run recon and scan pipelines and choose next steps, so your scope reflects what is actually exposed.
- AI triage of findings. False positives are dropped and the rest ranked by risk.
- AI-drafted reports and fixes, reviewed by experts before they reach you.
- Expert verification. Certified penetration testers and CVE holders confirm every finding with a reproducible proof of concept and a CVSS 3.1 score, then retest after you fix it.
- Evidence tracked to the fix in WhyXpose Vulnerability Management, with one-click PDF reports.
WhyXpose is verified under the Cyber Verification Programs for Anthropic Claude and OpenAI Codex, and also runs self-hosted open-source AI models. Our testing aligns with OWASP WSTG, the OWASP API Security Top 10, PTES and NIST SP 800-115. We do not issue compliance certificates: your auditor decides what satisfies a control, and our job is to hand them clear, verifiable evidence.
We have secured 1,000+ companies to date, and our research team monitors the internet for new vulnerabilities and exposures every single day, reporting them privately through responsible disclosure. Engagements run as a one-time pentest, a combined multi-target engagement or an ongoing monthly programme. Scheduled scans and monitoring in the platform are coming soon.
Frequently asked questions
Which compliance frameworks require penetration testing?
PCI DSS requires internal and external penetration testing at least every 12 months and after significant changes. DORA requires yearly testing of systems supporting critical or important functions, which can include pentesting, plus threat-led tests for selected EU financial firms. ISO 27001, SOC 2, GDPR and the current HIPAA rule expect tested controls without naming a pentest.
Does SOC 2 require a penetration test?
No. The Trust Services Criteria do not mandate one; the auditor tests the controls you define. A recent pentest still supports several criteria, and enterprise customers often ask for the report alongside your SOC 2 report.
Does ISO 27001 require penetration testing?
Not by name. ISO/IEC 27001:2022 covers technical vulnerability management (Annex A 8.8) and security testing in development and acceptance (8.29). A pentest is common evidence for both, and your risk assessment sets the frequency.
Can our internal team run the compliance pentest?
Sometimes. PCI DSS allows a qualified internal resource with organizational independence, and DORA allows internal testers if the firm dedicates sufficient resources and avoids conflicts of interest. Many companies still use an external provider because customers tend to prefer third-party evidence.
Is a vulnerability scan enough for compliance?
Not where a pentest is required. PCI DSS treats scans (11.3) and pentests (11.4) as separate requirements. A scan finds known weaknesses; a pentest shows what an attacker can actually do with them.
A pentest done for compliance should still find what an attacker would. To scope one engagement that covers all your frameworks, get a demo or talk to a pentester.
Put this guide into practice
Web, API, mobile and network pentests by certified testers, with a verified proof of concept for every finding.
Explore pentest services