Skip to content
Compliance

PCI DSS penetration testing requirements

Unlike most standards, PCI DSS writes the requirement down in detail. Requirement 11.4 in version 4.0 sets out the methodology, the internal and external tests, the correction and retest obligation, and the separate segmentation testing that catches organisations out. Here is what each part asks for.

10 min read

Key takeaways

  • Requirement 11.4 is the penetration testing requirement. 11.4.1 covers the methodology, 11.4.2 internal testing, 11.4.3 external testing, 11.4.4 correction and retesting, and 11.4.5 and 11.4.6 segmentation testing.
  • The cadence is at least once every twelve months and after any significant infrastructure or application upgrade or change.
  • Requirement 6.2.4 enumerates the software attack techniques the application-layer testing has to cover, including injection, access control, cryptography usage and business logic.
  • Correction is not optional and neither is verification: exploitable findings are corrected and testing is repeated to confirm it.
  • Segmentation testing is a separate obligation, and service providers using segmentation must test it at least every six months rather than annually.

Where penetration testing sits in PCI DSS v4.0

PCI DSS is unusual among the standards a growing company meets, in that it does not leave testing to interpretation. Requirement 11 covers testing the security of systems and networks, and within it requirement 11.4 is penetration testing specifically. It is written as a set of sub-requirements with defined approach testing procedures behind each one, which means a QSA is checking named things rather than forming a general impression.

Two boundaries are worth fixing before reading any of it. The first is that penetration testing under 11.4 is separate from vulnerability scanning under 11.3, which has its own cadence and, for external scans, has to be performed by an Approved Scanning Vendor. Passing your quarterly scans is not an answer to 11.4 and never has been. If that distinction is still fuzzy in your organisation, the comparison of testing against scanning is the shortest way to settle it.

The second is scope. The cardholder data environment is made up of the systems that store, process or transmit account data, together with systems connected to them or that could affect their security. Requirement 11.4 applies to the CDE perimeter and the critical systems within it, so the practical question at scoping time is always which systems are in the CDE and what sits next to them. Getting that wrong is the most expensive mistake available here, because everything downstream inherits it.

Requirement 11.4, sub-requirement by sub-requirement

PCI DSS v4.0 requirement 11.4 at a glance
Sub-requirementWhat it requiresFrequency
11.4.1A penetration testing methodology that is defined, documented and implemented, covering industry-accepted approaches, the CDE perimeter and critical systems, testing from inside and outside the network, application-layer and network-layer testing, review of threats and vulnerabilities from the last twelve months, and retention of results.Defined and maintained; results retained for at least twelve months.
11.4.2Internal penetration testing performed according to that methodology, by a qualified internal resource or a qualified external third party with organisational independence.At least once every twelve months, and after any significant infrastructure or application upgrade or change.
11.4.3External penetration testing performed according to the methodology, with the same qualification and independence expectations.At least once every twelve months, and after any significant infrastructure or application upgrade or change.
11.4.4Exploitable vulnerabilities and security weaknesses found during testing are corrected in line with the entity assessment of the risk they pose, and testing is repeated to verify the corrections.After each test, until verified.
11.4.5Where segmentation is used to isolate the CDE, penetration testing of the segmentation controls to confirm they are operational and effective and that they isolate out-of-scope systems from the CDE.At least once every twelve months, and after any change to segmentation controls or methods.
11.4.6The same segmentation confirmation, applied to service providers, on a shorter cycle.At least once every six months, and after any change to segmentation controls or methods. Service providers only.
11.4.7Multi-tenant service providers support their customers in performing external penetration testing.Ongoing. Multi-tenant service providers only.

Read the version that applies to you

PCI DSS v4.0 replaced v3.2.1 and the numbering moved: what many people still call 11.3 is now 11.4. Some v4 requirements were future-dated as best practice before becoming mandatory. Always work from the current published standard and confirm the applicable date with your QSA rather than from a summary, including this one.

11.4.1: the methodology you have to document

This is the sub-requirement organisations most often fail on paper while passing in practice. The testing gets done properly and nobody ever wrote the methodology down, so there is nothing for a QSA to review. The methodology is a document you own, not something your testing supplier owns on your behalf, although a good supplier will provide the technical part of it.

What the methodology has to address

  • Industry-accepted penetration testing approaches, named rather than implied.
  • Coverage of the entire CDE perimeter and the critical systems inside it.
  • Testing from both inside and outside the network.
  • Testing that validates any segmentation and scope-reduction controls in use.
  • Application-layer testing that covers, at minimum, the software attack techniques listed in requirement 6.2.4.
  • Network-layer testing covering the components supporting network functions as well as the operating systems.
  • Review and consideration of threats and vulnerabilities experienced in the last twelve months.
  • A documented approach to assessing and addressing the risk posed by exploitable vulnerabilities and security weaknesses found.
  • Retention of penetration testing results and remediation activity results for at least twelve months.

The clause about the last twelve months is easy to skim past and is genuinely useful. It says the test should be informed by what actually happened to you: the incidents, the near misses, the vulnerabilities you had to patch in a hurry. A test scoped without reference to any of that is a generic test, and generic is exactly what the requirement is trying to prevent.

6.2.4: the software attack techniques the test must cover

Requirement 6.2.4 sits in the software development section and enumerates the attack techniques that software engineering practices must prevent or mitigate in bespoke and custom software. Requirement 11.4.1 then points application-layer testing at that same list, which makes 6.2.4 the closest thing PCI DSS has to a required coverage list for application testing.

  • Injection attacks, including SQL, LDAP and XPath, and other command, parameter, object, fault or injection-type flaws.
  • Attacks on data and data structures, including attempts to manipulate buffers, pointers, input data or shared data.
  • Attacks on cryptography usage, including attempts to exploit weak, insecure or inappropriate cryptographic implementations, algorithms, cipher suites or modes of operation.
  • Attacks on business logic, including attempts to abuse or bypass application features through manipulation of APIs, communication protocols and channels, client-side functionality or other application functions and resources.
  • Attacks on access control mechanisms, including attempts to bypass or abuse identification, authentication or authorisation, or to exploit weaknesses in how they are implemented.
  • Attacks via any high-risk vulnerabilities identified in the vulnerability identification process defined in requirement 6.3.1.

Two of those categories are the reason automated tooling cannot satisfy this on its own. Business logic abuse and access control bypass both require somebody who understands what the application is supposed to permit, because a scanner sees two well-formed requests and has no basis for deciding that one of them should have been refused. That is the same argument set out in more depth in the comparison between manual testing and scanning, and it is why application testing and API testing are usually both in scope where a payment flow is involved.

11.4.2 and 11.4.3: internal and external testing

These two are deliberately separate because they answer different questions. External testing asks what somebody on the internet can reach and do. Internal testing asks what somebody who is already inside the network, whether an attacker who got a foothold or an employee who should not have that access, can reach and do. Passing one says nothing about the other, and a great many organisations have a strong perimeter and a flat internal network behind it.

Who is allowed to perform them

The standard requires a qualified internal resource or a qualified external third party, with organisational independence of the tester. Independence here does not require the tester to be an employee of a different company: it requires that they are not the person who built or operates the system being tested. Notably, the tester does not have to be a QSA or an ASV. That is a common misreading, and it costs organisations money by narrowing the supplier list unnecessarily.

What counts as a significant change

The standard does not enumerate this, which means you have to define it and be able to defend the definition. A workable definition includes a new or substantially modified application in the CDE, a change to the network architecture or to the components enforcing segmentation, a new system component added to the CDE, an upgrade to an operating system or platform underneath it, and a move to a new hosting arrangement or data centre. Write it down in your methodology, because a QSA will ask how you decide when the after-a-change test is triggered.

11.4.4: correcting findings and testing again

This sub-requirement is short and has more teeth than any of the others. Exploitable vulnerabilities and security weaknesses found during penetration testing are to be corrected in accordance with the entity assessment of the risk posed, as defined in requirement 6.3.1, and penetration testing is repeated to verify the corrections.

Two things follow. First, remediation is judged against your own documented risk process rather than against a fixed severity threshold, so that process needs to exist and needs to be applied consistently. Second, and this is the part that costs money in the traditional delivery model, verification is a repeat test rather than a statement from your engineering team that the issue is fixed. Where retesting is quoted as separate work it frequently does not happen, which is precisely the gap this sub-requirement closes. Retests are included in our engagements and the outcome is recorded as a tester verdict, either verified or failed with a reason.

Keep the evidence for twelve months

Requirement 11.4.1 asks for retention of both testing results and remediation activity results for at least twelve months. That means the retest evidence, not only the original report. An audit trail showing who ruled on each finding and when is easier to produce at assessment time than a reconstruction from email.

11.4.5 and 11.4.6: segmentation testing and CDE scope

Segmentation is how most organisations keep PCI DSS scope manageable. If the systems handling account data are isolated from the rest of the estate, the rest of the estate falls outside the assessment. That is a large financial saving, and it is entirely dependent on the isolation actually working, which is why the standard requires it to be tested rather than asserted.

What segmentation testing actually involves

It is a different exercise from an application test. The tester places themselves in each out-of-scope network segment in turn and attempts to reach systems in the cardholder data environment, enumerating what is permitted through the controls and confirming that nothing beyond the documented exceptions gets through. The output is a statement about isolation: which paths exist, which are intended, and whether any unintended path was found.

  • All segmentation controls and methods in use are covered, not a sample of them.
  • Testing confirms the controls are operational and effective and isolate all out-of-scope systems from systems in the CDE.
  • Performed by a qualified resource with organisational independence.
  • Repeated after any change to segmentation controls or methods, in addition to the periodic cycle.
  • At least once every twelve months for merchants, and at least once every six months for service providers under 11.4.6.

The six-month cycle for service providers is the single most commonly missed obligation in this part of the standard, usually because an organisation classified as a service provider is still working to a merchant calendar. If you process, store or transmit account data on behalf of another entity, or you could affect the security of another entity cardholder data, check your classification before you build the testing schedule. Our network testing service covers segmentation work, and the payments sector page has more on the surrounding surface.

What a QSA asks to see

  • The documented methodology, and evidence that the testing performed followed it.
  • The internal and external test reports, dated, covering the CDE perimeter and critical systems.
  • Evidence of the tester qualifications and of their organisational independence.
  • The segmentation test report, on the correct cycle for your classification.
  • Remediation records for exploitable findings, assessed against your documented risk process.
  • Retest evidence showing corrections were verified rather than asserted.
  • Twelve months of retained results, covering both testing and remediation activity.
  • Your definition of significant change, and evidence that a test followed one where a significant change occurred.

Reports produced from our engagements can be exported against PCI DSS requirement areas, with findings grouped under them and the software weakness classes from 6.2.4 reflected in the mapping. As with every framework export, a penetration test is evidence that may support an assessment. It is not a certification or an attestation, and your QSA decides what satisfies the standard. There is more detail on how the framework exports work.

Where organisations get caught out

  1. Treating quarterly ASV scanning as though it covers 11.4. It covers 11.3. They are separate requirements with separate evidence.
  2. Skipping segmentation testing because the annual penetration test touched the network. Segmentation testing is its own sub-requirement with its own scope and its own report.
  3. A service provider working to the twelve-month segmentation cycle instead of six months.
  4. No documented methodology, so the testing cannot be shown to have followed one.
  5. No definition of significant change, so the after-a-change trigger is never demonstrably met.
  6. Correcting findings and never repeating the test, which leaves 11.4.4 half satisfied.
  7. Scoping the test to the payment application and omitting the connected systems that could affect the security of the CDE.
  8. Discarding evidence before the twelve months are up, particularly the remediation records rather than the report itself.

FAQ

Questions this raises

How often does PCI DSS require a penetration test?

Internal and external penetration testing are required at least once every twelve months and after any significant infrastructure or application upgrade or change. Segmentation testing where segmentation is used is at least once every twelve months for merchants, and at least once every six months for service providers. The after-a-change trigger applies to all of them, so the calendar cycle is a floor rather than the whole obligation.

Does the tester have to be a QSA or an ASV?

No. The standard asks for a qualified internal resource or a qualified external third party with organisational independence from the systems being tested, and it explicitly does not require the tester to be a QSA or an ASV. Approved Scanning Vendor status is relevant to external vulnerability scanning under requirement 11.3, which is a different requirement.

What counts as a significant change?

PCI DSS does not enumerate it, so you define it and defend the definition. A defensible one covers new or substantially modified applications in the CDE, changes to network architecture or to segmentation controls, new system components added to the CDE, underlying platform or operating system upgrades, and a move to new hosting. Put it in your methodology document, because your QSA will ask how the trigger is applied.

Can one test cover both the internal and external requirements?

One engagement can deliver both, but they are distinct requirements and the evidence has to show each was performed. Testing from outside the network and testing from inside it produce different findings and generally involve different work. Expect the scope statement and the report to address them separately even where a single supplier does both in the same window.

What is segmentation testing, in plain terms?

A tester sits in each network segment that is meant to be out of scope and tries to reach the cardholder data environment from there. They enumerate what actually gets through and compare it with what is supposed to. The purpose is to confirm that the isolation you are relying on to keep systems out of scope genuinely works, because if it does not, those systems were in scope all along.

Does a penetration test make us PCI DSS compliant?

No. It satisfies part of one requirement among hundreds. Compliance is established through a Report on Compliance or a Self-Assessment Questionnaire covering the whole standard, and a penetration test is one piece of evidence within that. No report we produce claims to be a certification or an attestation, and your QSA decides what satisfies the requirement.