Cybersecurity

Penetration testing for compliance: PCI DSS, SOC 2, ISO 27001, GDPR and DORA

Penetration testing for compliance: PCI DSS, SOC 2, ISO 27001, GDPR and DORA

Penetration testing for compliance: PCI DSS, SOC 2, ISO 27001, GDPR and DORA

Which compliance frameworks require or expect penetration testing, including PCI DSS, SOC 2, ISO 27001, GDPR, HIPAA and DORA, and how to scope one test auditors accept.

G

GFi Technolabs Team

· 8 min read

Digital shield and lock representing cybersecurity compliance

Penetration testing for compliance is one of the most common reasons companies commission a security test. Auditors, enterprise customers and payment partners increasingly want evidence that your controls have been tested by someone thinking like an attacker, not just reviewed on paper.

Frameworks differ, though. Some name penetration testing explicitly; others ask you to test the effectiveness of your controls and leave the method to you. This guide summarizes what the main frameworks expect so you can scope one test that serves several purposes. It is a practical overview, not legal advice, so always confirm requirements with your auditor or QSA.

Key takeaways

  • PCI DSS explicitly requires internal and external penetration testing, plus segmentation testing where segmentation reduces scope.

  • SOC 2 and ISO 27001 do not mandate a pen test by name, but auditors commonly expect one as evidence.

  • GDPR requires regular testing of security measures, and a pen test is one of the clearest ways to show it.

  • One well-scoped test with the right report can support several frameworks at once.

PCI DSS v4.0.1

If you store, process or transmit cardholder data, PCI DSS is the most prescriptive framework. Requirement 11.4 calls for:

  • Internal and external penetration testing at least once every 12 months and after significant infrastructure or application changes.

  • A documented penetration testing methodology covering network and application layers.

  • Correction of exploitable vulnerabilities, with retesting to confirm the fixes.

  • Segmentation testing if segmentation is used to reduce scope: at least every 12 months for merchants and every six months for service providers.

Testers must be qualified and organizationally independent of the systems they test. Vulnerability scans, covered separately under Requirement 11.3, do not replace a penetration test.

SOC 2

SOC 2 reports are based on the AICPA Trust Services Criteria, which are outcome-based. Penetration testing is not explicitly required, but the criteria expect you to evaluate and monitor your controls. In practice many auditors, and most enterprise customers, expect to see a recent third-party penetration test report, usually annual, as part of your evidence.

ISO/IEC 27001:2022

ISO 27001 requires a risk-based information security management system. Annex A controls such as 8.8 (management of technical vulnerabilities) and 8.29 (security testing in development and acceptance) are commonly supported by penetration testing. The standard does not prescribe a frequency, so align testing with your risk assessment and with major changes.

GDPR and UK GDPR

Article 32 asks controllers and processors to implement appropriate security, including a process for regularly testing, assessing and evaluating the effectiveness of technical and organizational measures. Penetration testing is one of the clearest ways to demonstrate this for systems that handle personal data.

HIPAA

The HIPAA Security Rule requires risk analysis and periodic evaluation of safeguards. It does not name penetration testing, but healthcare organizations and their vendors widely use it to support these evaluations.

DORA for EU financial entities

The EU Digital Operational Resilience Act, which has applied since January 2025, requires financial entities to run a digital operational resilience testing programme. Entities identified as significant must also carry out threat-led penetration testing (TLPT) at least every three years, and their ICT providers are increasingly asked for test evidence too.

Quick comparison

Framework

Pen test named?

Typical expectation

PCI DSS v4.0.1

Yes (Req. 11.4)

Internal and external testing at least yearly and after significant change, plus segmentation testing

SOC 2

No

Annual third-party test commonly expected as evidence

ISO 27001:2022

No

Risk-based testing that supports Annex A controls

GDPR / UK GDPR

No

Regular testing of security measures (Article 32)

HIPAA

No

Periodic evaluation of safeguards

DORA

Yes, TLPT for significant entities

Resilience testing programme; TLPT at least every three years

How to scope one test for several frameworks

  1. List every framework and customer requirement you need to satisfy this year.

  2. Map in-scope systems: cardholder data environment, production apps, APIs and cloud accounts.

  3. Choose the test types that cover them: external, internal, application, API, cloud and segmentation.

  4. Ask for an audit-ready report stating methodology, scope, dates, tester independence, findings and retest results.

  5. Schedule the retest so the final report shows issues closed.

Mistakes that cause audit headaches

  • Submitting an automated scan as a penetration test.

  • Testing a scope that does not match the audit boundary.

  • No retest, so critical findings remain open in the report.

  • Letting testing lapse beyond 12 months.

  • No record of significant changes that should have triggered a new test.

How GFi Technolabs helps

Our new penetration testing and offensive security services are designed for growing SaaS, fintech and e-commerce companies that need audit-ready evidence and practical fixes. We can scope a single engagement around PCI DSS, SOC 2, ISO 27001 and customer security questionnaires, and our engineers can help remediate what we find. We are also introducing governance, risk and compliance support on Archer GRC. Discuss your compliance testing needs.

Frequently asked questions

Does SOC 2 require penetration testing?

Not explicitly. However, auditors often expect it as evidence that controls are monitored and effective, and enterprise customers frequently ask to see the report.

How often does PCI DSS require penetration testing?

At least every 12 months and after any significant change, with segmentation testing every 12 months for merchants and every six months for service providers.

Can one penetration test cover multiple frameworks?

Yes, if the scope covers all relevant systems and the report includes the details each auditor needs. Plan this up front rather than testing separately for each framework.

Preparing for an audit?

We’ll scope one penetration test that supports your PCI DSS, SOC 2 and ISO 27001 evidence.

Let’s talk

Ready to turn this into a plan for your business?