Blog

PCI DSS Sampling

I sometimes get asked about sampling, how this works for Payment Card Industry Data Security Standard (PCI DSS) assessments, and what methodology I follow. This blog post covers the following topics:

  • What is sampling?
  • What can be sampled within a PCI DSS assessment?
  • How should you determine a suitable sample?
  • When should you expand the sample?
  • What cannot and should not be sampled?
  • Documenting the sampling rationale
  • Ramblings

What is sampling?

Sampling is a technique used to select a subset from a population of similar items, based upon certain criteria. This is often leveraged for larger PCI DSS assessments to manage costs by reducing the amount of effort. Although sampling is built into the PCI DSS (See Section 6 of the PCI DSS Requirements and Testing Procedures, v4.0.1), this must be carried out appropriately, and the environment MUST be suitable for employing such a technique, considering the complexity of the environment being assessed.

Although managing costs is often why sampling is often leveraged as part of a PCI DSS assessment, it is not the driving factor. The assessor must:

  • ensure the organisation and environment is suitable for sampling, and
  • ensure the sampling technique employed provides a suitable sample that will accurately reflect the entire in-scope environment and must be made up of a representative sample of all variants in use by the environment being assessed.

Sampling is one technique that can be used to streamline PCI DSS assessments. Another technique is to leverage automation processes or other mechanisms to help with assessment activities of the entire environment to give full assurance. For example, a script could be leveraged to remotely connect to all system components to extract specific configuration information, for example, on Windows machines, the NTP registry settings could be extracted remotely using the “reg” command.

Section 6 “For Assessors: Sampling for PCI DSS Assessments” from the “PCI DSS Requirements and Testing Procedures, v4.0.1” document explains this further.

What can be sampled within a PCI DSS assessment?

Typically, most people will think of system components or locations when thinking about sampling, however sampling can be applied to much more. Sampling can be used when assessing a business process, for example when carrying out an assessment against PCI DSS Requirement:

’10.4.1 The following audit logs are reviewed at least once daily:

– All security events.

– Logs of all system components that store, process, or transmit CHD and/or SAD.

– Logs of all critical system components.

– Logs of all servers and system components that perform security functions (for example, network security controls, intrusion-detection systems/intrusion-prevention systems (IDS/IPS), authentication servers)’

In this example, you may choose to select a sample of dates you want to examine the log review evidence against.

Additionally, you can also sample staff for interviews, for example, if you are assessing a large retailer with 1000’s of store locations, you will most likely end up choosing a sample of staff to interview at the stores included in the sample of stores.

What I’m trying to demonstrate here is that you don’t simply sample system components of the Cardholder Data Environment (CDE), there are other elements of the People, Process and Technology that will come into play when conducting sampling during an assessment.

Remember, all samples must have the same attributes to be part of the same sampling pool.

How should you determine a suitable sample?

First, you must ensure sampling is appropriate. This key factor is the level of assurance you have that system components are built in a consistent and repeatable manner, and that business processes and controls are mature enough, so they are consistently applied in a repeatable manner.  Determining the level of assurance will also depend upon the organisational structure and the responsibilities across the various locations of the organisation, especially for large multinational companies that may devolve responsibilities to individual regions or countries instead of being centrally managed.

For technology sampling, one thing that is becoming more commonplace is Infrastructure as Code (IaC). Since this works by programmatically deploying and configuring system components into an environment, this can provide a good level of assurance that system components are deployed in a consistent manner within the environment through Continuous Integration/Continuous Development (CI/CD) pipelines, using technologies such as Puppet.

Complications can be introduced where autoscaling technologies are in use. Where this is being leveraged, the total population will dynamically change, and samples may get removed from the environment. You may need to consider using base images as the sample if there are base images for each primary role or look at how individual configuration settings are applied to base images once resources are added.

System Components

For system component sampling, I tend to do this based on the system component type, the Operating System, the primary function and the location of the devices.  These traits are used to build the individual item listing, which can be used to apply sampling to. For example:

Attributes
TypeOS VersionPrimary RoleLocationTotal Population
Linux UbuntuOS Version 22.04Radius ServerUK South4
Linux UbuntuOS Version 22.04Radius ServerUK West2
Linux UbuntuOS Version 20.04.5Radius ServerFrance Central2
Linux UbuntuOS Version 22.04Scanning NodeUK South1
Linux UbuntuOS Version 22.04Scanning NodeUK West1
Linux UbuntuOS Version 22.04Scanning NodeFrance Central1
Linux UbuntuOS Version 24.04.1Front End WebUK South5
Linux UbuntuOS Version 24.04.3Front End WebUK West4
Linux UbuntuOS Version 24.04.1Front End WebFrance Central2
Linux UbuntuOS Version 24.04.3AppLogicControlUK South2
Linux UbuntuOS Version 24.04.3AppLogicControlUK West2
Linux UbuntuOS Version 24.04.1AppLogicControlFrance Central2
WatchgGuard FirewallFirebox Cloud LargeInternet FirewallUK South2
WatchgGuard FirewallFirebox Cloud LargeInternet FirewallUK West2
WatchgGuard FirewallFirebox Cloud MediumInternet FirewallFrance Central2
Etc..    

With the above, I will typically look at creating a population sample size on primary role. I will then choose a sample based on my defined percentage of population. Once I have this number, I will proportion it based on other attributes, for example, the Operating System version, which they would split into the locations to get coverage. So, as an example for the Radius Server role, I  select a population sample of four, which would be 4/8 or a 50% sample size. I would then look at the operating system version and proportion this based on the OS version.  With the above, it would fit nicely to having one system component running Linux Ubuntu 20.04.5 and two system components running Linux Ubuntu 22.04.  This fits nicely with the locations because I can then select one system component from each of the three locations.

Sometimes, I may choose to slightly increase the population sample to ensure coverage across the various attributes, for example if I end up with a small sample population size, for example two, I may choose to increase this to three to cover a single system component in all three locations.  As we have already discussed though, it very much depends on your level of assurance that the environment is consistently built the same.

Once I have followed this approach, I will then check the overall “Type” sample, for example, Linux Host, to ensure this sample is reasonable based on the population sample size percentage to ensure the representative sample is large enough.

Typically, where the entire population is small, for example if you were doing a Merchant Self-Assessment Questionnaire A (SAQ) aligned ROC with only three webservers that are in scope, you would typically select all three servers as the sample is so small.  Sampling is good where the environment is large.

Note: The above is for illustrative purposes only, the actual population sample size I pick may differ based upon the upcoming ‘Population Sample Size’ section.

Locations

For locations I typically select the sample based on the total population. The locations visited vary depending upon the types of payment channels in use. For example, locations may come into scope for, but not limited to:

  • Shops/Stores
  • Contact Centre Agents (Telephone Payments)
  • Other Departments (Telephone Payments), for example, Finance Teams, Debt Recover Teams, etc…
  • Unattended Card-Present locations, for example, Train/Tram Stops, Car Parks, etc…
  • Physical Data Centre locations
  • Office Locations where business processes are carried out, for example, Security Operation Centres (SOCs), Network Operation Centres (NOCs), Point of Interaction (POI) storage locations, where teams are based who carry out patching/vulnerability scanning/etc…

For locations, I may just randomly select the sites based on the population sample size that I am selecting, or I may select the sites based on the people at the sites in case I want to specifically interview certain people, i.e. if a senior contact centre agent is at a specific location, I may choose to ensure that location is within my sample.

For shop/store locations I employ a slightly different approach. I will typically work with the merchant to identify if they have geographic locations (regional) that have regional managers aligned with the stores in a particular region. We may then choose to sample shops based on a sample of regional managers. For example, if there are six regional managers for a particular merchant, we may choose three regional managers and then select our sample of stores from these three regions.

Staff

For staff members, I would want to select staff based upon their job function and role/position within the business.

For store staff (looking at interviews and observations for POI devices for example), as already discussed, I would typically do this based on the population sample size of stores visiting and a staff member from every store in our sample would be selected.  Again, who is picked from each store will depend upon each Merchant’s setup. Some Merchants may include a responsibility for all staff members operating the tills to do tamper checks; however, they may only have the store manager (and team leaders) who perform the substitution checks so you will need to understand how this works during the scoping stage to ensure you are selecting the correct people.

Population Sample Size

There is no hard and fast rule with this however, here is a rough idea of what I would try and follow:

Total PopulationSample
2 or less100%
6 or less50%
10 or less40%
25 or less25%
50 or less15%
100 or less10%
More than 1005%

This is my rule of thumb, however I may adjust this methodology based upon various factors already discussed, i.e. to ensure good coverage across all the different attributes.

Note: Work through the table in order until you no longer match a total population. For example, five would not meet ‘2 or less’ but would meet ‘6 or less’. I would always round up, so if I had a total population of seven, 40% of this would be 2.8, therefore I would have a sample of 3.

Other Sampling

I’m not going to continue going through all types of sampling but hopefully this gives you an idea of how you can start to build a methodical approach to this within your assessments.

When should you expand the sample?

Sampling is based on the level of assurance you have that the environment is built in a consistent manner. You do this by checking build processes for system components, and other process documents for process flows, if you can determine to some degree of certainty that there are mature and repeatable processes in place, then you can potentially sample.

Where a suitable sample size has been identified, for example, the build processes employed by the organisation appear to be mature, well documented and repeatable, you will select your sample and start to assess configuration settings in line with the PCI DSS Requirements that are in-scope for the assessment.  If during this assessment phase, I identify a mismatch of configuration settings across the sample, indicative of inconsistencies in the build process, then:

  • Firstly, this should prompt remediation activities since the settings are not what you are expecting to find, as per the documented build standards, and
  • Secondly, this should prompt an increase in the population sample size, which I would typically do during the remediation period which will cover the system components that were incorrectly configured, therefore additional system components would be selected. This would be determined based upon exactly what was wrong during the assessment phase. If for example a single host had a minor discrepancy, I may double the sample for that specific check, if however a large number of system components had discrepancies, I may choose to test the full population, across all PCI DSS checks for those system components.

What cannot and should not be sampled?

Cannot be sampled

Within the PCI DSS Requirements and Testing Procedures, v4.0.1 under Section 6 “For Assessors: Sampling for PCI DSS Assessments” describes two scenarios where sampling cannot be applied as follows:

Sampling of PCI DSS Requirements: All applicable PCI DSS Requirements must be assessed as part of the PCI DSS assessment activities. The QSA (or entity if self-assessing) must

Applying PCI DSS Requirements to a sample of the environment: This is referring to assessing a PCI DSS Requirement but only against a sample of what the specific PCI DSS Requirement is asking for. This is best explained where you have PCI DSS Requirements that requires something periodically, for example, Quarterly ASV Scanning. In this example, you cannot sample the quarterly ASV scans and must review all four scans to perform an ‘affirmative’ assessment finding response of ‘In Place’, ‘Not Applicable’ or ‘Not in Place’.

Note: You are unable to provide an ‘affirmative’ finding by use of the ‘Not Tested’ response, which I discuss in a previous blog post “PCI DSS “Not Tested” Response”.

Should not be sampled

If you are carrying out a PCI DSS assessment of the same entity each year, the representative sample should change year on year ensuring any variations to configurations and processes can be identified and corrected as part of the assessment / remediation process.

Documenting the sampling rationale

Within the Report of Compliance (ROC) under section “6.2 Sampling”, the QSA (or ISA if allowed by the Acquirer) must indicate if sampling has been used. If so, you must:

  • describe the rationale used for selecting sample sizes across all the items sampled. You should list all the different types of items explaining how you have decided on the sample size for each;
  • explain why the samples are appropriate and representative of the overall populations, again this needs to be done against all the different types of items in the sample;
  • indicate if standardised processes and controls are in place to provide consistency between items in the sample, and if so, you must describe how these were validated to be in place and effective.

If undertaking a self-assessment, I would recommend that you include the rationale within your workpapers.

Ultimately, the sampling rationale must provide reasonable assurance that controls are in place across the entire population of items that have been sampled, without undertaking an assessment of everything.

Ramblings

This is an approach that I follow (no longer just in my head), however as discussed in this article, the environment MUST be able to support the use of sampling by ensuring that well defined and repeatable processes are in place, and you are able to evidence that they are well defined and repeatable as you need to justify the use of sampling within the ROC.

Sampling and the sample size used is ultimately up to the QSA, providing they are not only able to justify their decision but also that their decision is defendable if it were to be scrutinised at the point of a review by the PCI Security Standards Council (PCI SSC) or on the back of a breach where it is determined that an official PCI Forensic Investigation is needed.

I would recommend that QSACs make it clear in their customer collateral that sampling will be used to streamline the assessment process where it is justified. However, should the use of sampling be brought into doubt during the assessment, the sample may need to be increased, meaning additional costs. The collateral should make it clear when this would happen if you need to justify your need to increase the sampling partway through an assessment. The key is to stay transparent and work ethically but most importantly be able to defend your decision making.

QSA Regions

Wanted to discuss the Payment Card Industry Qualified Security Assessor (PCI QSA) regions and how this impacts an assessment. This blog will cover the following topics:

  • What are PCI QSA regions?
  • How does this impact an assessment?
  • Why does this matter?
  • Can a QSAC perform an assessment without full regional coverage?
  • My Ramblings

What are PCI QSA regions?

Several PCI programs have this notion of a “region”. A region is a geographical territory, where the PCI Security Standards Council (PCI SSC) allows authorised QSA Companies (QSACs) to perform PCI DSS assessments or QSA-related duties for a given program.  The company needs to participate in said PCI program and must pay the appropriate regional fees to be authorised to officially operate within a given region. The companies listing on the PCI SSC website (QSA Program) will list the regions, under the “Servicing Markets” column, that the company is permitted to operate within.

FAQ 1471 ‘What does “Servicing Markets” on the QSA listing mean?’ explains this further. The different regions (and countries that make up the regions) are detailed here, details of the regional costs across the various PCI Programs are detailed here.

How does this impact an assessment?

This impacts an assessment because a QSAC MUST be authorised by the PCI SSC to operate in the regions that are in scope for ALL assessment activities.

Scoping

The scope of an assessment is not just technology, remember that PCI DSS focuses on People, Process and Technology. This is important to understand as it will help identify when specific regions may become in scope for the assessment activities.

People

Anyone, including contractors or services providers (if they will be included in your assessment activities; i.e. no valid Attestation of Compliance (AOC)), within the organisation, that are responsible for any of the activities that are in scope of the assessment, will be in scope for the assessment. Activities in scope can include, but not be limited to:

  • HR Functions
  • Security Operations Centre (SOC) Functions
  • Telephone Payment Functions
  • Card-present Payment Functions
  • Development Functions
  • Data Centre Functions
  • Networking Functions
  • System Administration Functions
  • Security Functions
  • Legal Functions
  • Procurement Functions

The location of staff members carrying out these functions will determine the regions that are in scope for assessment activities, therefore the QSAC will need to be authorised in these regions.

We have seen a gradual shift in organisations offshoring employees, which has started to impact the regional scope of PCI DSS assessments. We have seen DevOps functions being moved out to India, Pakistan and Sri Lanka, which requires the QSAC to include these regions in their QSA servicing markets.  On the back of the pandemic, more organisations are supporting remote working, which has extended into hiring staff from other countries.

Process

Usually processes are underpinned by people, so this is generally covered by the people elements. Where any processes are in scope for the PCI DSS assessment activities, the geographical region where that process is carried out, needs to be included. For example (there are loads more):

  • Firewall Provisioning
  • Firewall Rule Reviews
  • System Hardening Processes
  • Patching Processes
  • Key Management Processes
  • Employee Background Checks
  • Vendor Management Processes

Technology

This is probably more self-explanatory, in the most part. Where is the technology located? For physical locations, this is simple. A Cardholder Data Environment (CDE) and any additional “connected-to” environments location will be included here. This may be a physical Data Centre or elements that are on-premises at the organisation’s physical sites.

Where this starts to get a little grey is where the environment is made up of Cloud services. Cloud environments can operate in one or more regions, depending on various factors such as, the consumers geographical locations and high availability requirements. I have had many conversations on how the Cloud impacts the regional constraints of the PCI QSA Program and the latest guidance I obtained was that it doesn’t. I think this is a practical approach since all the “organisations” interactions with the Cloud environment will be from the “People” locations who are carrying out the Cloud management activities so. Until this guidance changes, the regions that organisation’s Cloud environments are operating in will not impact the operating regions of the QSAC.

Another possible grey area is where Software as a Service (SaaS) solutions are in scope for assessment activities, for example an outsourced CMS that is providing e-commerce functionality. Hopefully the service provider is covering this through an AOC and therefore does not come directly into scope. If this provider has to be included within the scope of the entities assessment, the QSAC will need to be careful of the geographical location of that third party organisation and the People, Process and Technology that is impacted.

Why does this matter?

QSACs are responsible for ensuring they are only operating within the regions they are authorised by the PCI SSC to. They must make it clear to internal sales staff and QSAs which regions they are able to operate within. The scoping process should try and identify where the scope of an assessment may extend outside of permitted regions. This can get tricky where customers don’t fully understand the scope of the assessment and sometimes additional regions crop up during assessment activities. The QSAC’s documentation should make it clear to customers what regions the QSAC can service to cover situations where this may become an issue mid assessment. The QSAC that I work for includes this within the ‘Statement of Works’ so it is made clear what regions are allowed up-front and forms part of the sales contract.

Entities undergoing assessments also have a responsibility to ensure the QSAC covers the correct regions for PCI QSA assessments. This is important to ensure the QSAC has appropriate insurance coverage for all the regions they are permitted to operate within. The PCI SSC has robust insurance requirements for QSACs, which are checked annually to ensure the QSAC has adequate coverage.

Finally, I would also question the validity of an assessment carried out by a QSAC that doesn’t have the appropriate regional coverage. If I’m being honest, I have never validated the impact of this, however it wouldn’t surprise me if an assessment became invalid.

Can a QSAC perform an assessment without full regional coverage?

The short answer is NO! The longer answer is ‘potentially’. If a PCI DSS assessment requires assessment activities from a region that the QSAC does not have, the QSAC can partner with another QSAC that has the necessary regional coverage.  Work outside of the incumbent’s QSAC servicing markets can then be fulfilled by the partner QSAC on their behalf.

This arrangement must be agreed by the PCI SSC. This is done by reaching out to the PCI SSC where you will need to complete a Subcontracting Utilization Agreement and the QSAC you are subcontracting to will need to provide their insurance details to ensure they have the appropriate cover to facilitate this subcontracting arrangement.

Note: This MUST be approved by the PCI SSC before undertaking or issuing any subcontracting work.

My Ramblings

I understand the use of regions to generate revenue streams for the PCI SSC to continue the amazing work they do, however for smaller QSACs, this is a massive barrier to not only enter certain markets, but also to compete in existing markets. This is because there are more organisations that are moving operations through offshoring to regions where staffing is cheaper. Also, it presents a barrier for smaller organisations to attract larger multinational customer who operate across multiple regions. Well, this is a barrier for QSACs that choose to do this properly as highlighted above, I am sure some QSACs won’t be particularly thorough in their checks on this subject.

In the past I have suggested that the PCI SSC introduces an ‘All Region’ option similar to the Approved Scanning Vendor (ASV) Program, at a reasonable price to allow QSACs to operate in markets where some customers may have touch points, because this doesn’t just occur with larger customers as offshoring staff is becoming more commonplace. Not sure if this will ever happen, but this would make much more sense to help smaller QSACs compete within the QSA market.

On a final note, the regions get a little grey where a QSAC is providing simple PCI DSS consultancy as opposed to formal assessment (sign-off) work.  Again, I have asked this question and what was relayed to me was that if the QSAC is leveraging its QSA status to sell the consultancy, they must have the regions where the consultancy will cover. So, to be offering consultancy that covers these regions that are not included in the QSACs subscription, the QSAC needs to be extremely careful as sales collateral would need to not mention QSA within any of the materials as it cannot be sold as “QSA” work. Why this is grey is because of two specific FAQs which both includes wording as follows “perform PCI DSS assessments and QSA-related duties”. After reading these two FAQs, I believe it may be hard for QSACs to defend the “QSA-related duties” properly. See the following FAQs:

FAQ 1471 “What does “Servicing Markets” on the QSA listing mean?”

FAQ 1472 “How can I determine whether a QSA is authorized to perform PCI DSS assessments in all countries that are in scope for my company’s PCI DSS assessment?”

FAQ 1588 – SAQ A Surprise Update Clarifications

After the industry was struggling to grasp the language within the surprising Self-Assessment Questionnaire A (SAQ A) update that came out at the end of January 2025, the PCI Security Standards Council (PCI SSC) has, on 28 February 2025, released a new FAQ entitled ‘How does an e-commerce merchant meet the SAQ A eligibility criteria for scripts?‘. This blog post looks at this updated FAQ.

Introduction

Firstly, in case you missed it, in January 2025, the PCI SSC released an update to SAQ A, which seemingly removed the two Requirements designed to protect against malicious JavaScript added in PCI DSS Version 4.0; Requirement 6.4.3 and Requirement 11.6.1. I covered this in a blog post back in January 2025 entitled ‘Surprising SAQ A Jan 2025 Update‘, which will give some context.

The purpose of FAQ 1588 is to provide some clarity around the new criterion that was added to the updated SAQ A Eligibility Criteria, which reads:

The merchant has confirmed that their site is not susceptible to attacks from scripts that could affect the merchant’s e-commerce system(s).

The introduction of this within the SAQ sent the community into a frenzy, trying to decipher exactly what it meant.

Clarifications

To start with, it is worth immediately calling out that this new FAQ clarifies that the criterion does not apply to websites that are leveraging a web redirect mechanism to a Payment Gateway/TPSP (Third-Party Service Provider) to facilitate payment capture. This is evident by the following paragraph:

The above SAQ A eligibility criteria does not apply to e-commerce merchants with a webpage that redirects customers from the merchant’s webpage to a TPSP/payment processor (for example, including but not limited to, with an HTTP 30x redirect, a meta redirect tag, or a JavaScript redirect) or e-commerce merchants that fully outsource payment functions to a TPSP/payment processor (for example, by providing customers with an email with a link to a TPSP’s website to pay)

This confirms there is no difference to what was originally in place for Merchants who have leveraged a redirect mechanism to support the payment process. The now removed PCI DSS Requirements (Req 6.4.3 & Req 11.6.1) were never in scope for these Merchants.

In addition to this clarification, the FAQ has also clarified how a Merchant can demonstrate that this new Criterion is being met. The blog discusses two mechanisms;

  • Firstly, by leveraging the original JavaScript specific PCI DSS Requirements that have been taken out; Req 6.4.3 & Req 11.6.1, which is no surprise and is something that I mentioned in my original blog post.
  • Secondly, by leveraging the Merchant’s PCI DSS compliant Payment Processor/TPSP. The Merchant can obtain confirmation that, when implemented according to their supplied instructions, the solution includes techniques that protect the merchant’s payment page from script attacks.

Well, that last bullet point is going to be interesting. It’s hard enough to get anything from TPSPs to support contractual requirements for Req 12.8.2 and that has specific Service Provider Requirements in the standard, which was supposed to address that issue, we’ll have to see how easy this becomes. It would surely be easier to update the standard to include a PCI DSS Requirement that the TPSP HAS implemented such mechanisms so Merchants and QSAs can simply check the TPSP’s AOC to ensure this is being met by a Requirement being in place? Also, it allows for a QSA review of the mechanisms deployed to ensure they are sufficient.

Additional Clarification

Interestingly, this FAQ also provides confirmation of which entities that provide third-party scripts are considered to be a service provider for PCI DSS purposes. The following paragraph confirms that TPSPs that provide scripts that are not related to payment processing, or cannot impact the security of Account Data are not in scope as a TPSP:

A provider of third-party scripts is not considered a third-party service provider (TPSP) for purposes of SAQ A, if the provider’s only service is providing scripts not related to payment processing and where those scripts cannot impact the security of cardholder data and/or sensitive authentication data.

If I’m honest, I am not 100% sure about this statement, how can you ensure scripts cannot impact the payment journey before you even reach the embedded payment page/form and thus impact the security of Account Data? If a malicious script runs at any point in the customer journey, the script could feasibly alter that journey to impact the payment mechanism and thus impact the payment page, or impact the payment flow (see the ramblings below). Originally, this is where I thought the ‘site’ wording in the eligibility criterion was heading.

Ramblings

No blog is complete without a ramble. The FAQ fell a bit short for me when it comes to the term of ‘site’ and ‘e-commerce system’ within the original criterion that was added. This FAQ has started to re-introduce the terms ‘payment page’ and ‘webpage’ back into the dialog.

After hearing John Elliott talking about some of the different types of attacks against e-commerce payments:

  • Double Entry Attacks: These types of attacks occur where the payment flow logic is altered through the use of a malicious JavaScript, which changes the payment submission so Account Data is submitted to a malicious actor before presenting a fake payment failure page then passing onto the correct payment page for a legitimate payment process.
  • Silent Skimming Attacks: These attacks are where Account Data is captured whilst the Account Data is also submitted to the legitimate TPSP/Payment Processor.

I am still somewhat confused as to why the initial PCI DSS Requirements designed to try and mitigate malicious JavaScript code from attacking these types of payments, have been applied only to the payment page. Some attacks can happen early on in the payment flow and therefore before reaching the payment page.

Doing PCI ASV Properly

This blog post discusses how to carry out ASV (Approved Scanning Vendor) scans properly as we often come across customers that are not fulfilling them in a way that allows them to fulfil the ASV scan requirement(s). This blog will cover the following topics:

  • Who needs an ASV scan?
  • What is PCI ASV?
  • Who can perform these scans?
  • How do you determine the scope of PCI ASV?
  • Sampling
  • Three Months
  • The PCI DSS ASV Requirements
  • Questions to ask the ASV Solution provider
  • Scan Report
  • Doing it properly
  • Ramblings

Who needs an ASV Scan?

Not all entities required to be PCI DSS Compliant are in scope for PCI DSS Requirement 11.3.2, which requires External ASV Scans. It very much depends on how the entity is taking card payments, which in turn determines which Self-Assessment Questionnaire (SAQ) the entity aligns with. Some SAQs require ASV scans, some do not.

What is PCI ASV?

PCI ASV refers to the external vulnerability scanning required to fulfil PCI DSS Requirement 11.3.2 and sub-requirements. ASV stands for “Approved Scanning Vendor” since only PCI SSC (PCI Security Standards Council) approved scanning vendors are permitted to carry out these scans on behalf of entities that require them as part of their PCI DSS (PCI Data Security Standard) compliance activities.

Approved scanning vendors must adhere to the “PCI Approved Scanning Vendor Program Guide” (ASV Program Guide), which at the time of writing, was Version 4.0 Revision 2. Within this guide, the PCI SSC sets out the expectations of the Scan Customer and the Approved Scanning Vendor through topics such as:

  • Roles and Responsibilities,
  • Scan Process
  • ASV Scan Solution – Required Components
  • Scan Reporting
  • Quality Assurance

Approved scanning vendors must renew their ASV Solution annually, this involves paying the necessary ASV Program fees to the PCI SSC along with passing an ASV test rig which is designed to ensure the ASV Scanning Solution is able to detect a myriad of vulnerabilities against different types of system components and that the reporting is up to the necessary standards. The PCI ASV Program Guide specifies three reports (can be included in a single document) as follows:

  • ASV Scan Report Attestation of Scan Compliance
  • ASV Scan Report Summary
  • ASV Scan Report Details

The supplied templates within the PCI ASV Program Guide MUST be followed for the first two reports. The ASV Scanning company can customise the ASV Scan Report Details report format providing all the content detailed in the PCI ASV Program Guide is included.

Who can perform these scans?

As discussed above, only PCI SSC Approved Scanning Vendors (ASV) can fulfil the external scanning requirements for PCI DSS compliance. Scanning customers should check the PCI SSC website to validate an ASV Company is approved by the PCI SSC to carry out external scanning. The ASV Company and the scan solution that was approved is listed here.

Other companies offer ASV scanning through a reseller model with one of the listed ASVs and may or may not provide wrap around services to assist with the scanning; for example, managing scans, providing additional remediation support, etc.

How do you determine the scope of PCI ASV?

PCI ASV Scanning must be carried out against all Internet ingress/egress points to any system components that are in scope for the PCI DSS Assessment activities. This includes the defined Cardholder Data Environment (CDE) and any additional environments that are supporting the CDE or can access the CDE.  Scoping the CDE very much depends on any segmentation (for the purpose of PCI DSS, this means ISOLATION) that is in place to potentially de-scope systems or entire network environments from scope. If in doubt, it is best to engage a QSA (Qualified Security Assessor) to confirm the scope to ensure the ASV scans are fulfilling what is required.

ALL public IP (Internet Protocol) addresses that are routed to the in-scope environment and ALL URLs (Uniform Resource Locator) that point to any of the public IP addresses MUST be included within the scans. If any are not included, then this may result in the ASV Scan not being adequate and could result in a non-compliant report.

Sampling

I’m afraid that as per the PCI ASV Program Guide, ASV scanning MUST include the complete external footprint of the CDE, as well as any externally facing environments/system component that may provide access to the CDE or could impact the security of the CDE. For this reason, sampling of the in-scope external facing system components is NOT PERMITTED.

Three Months

This is worth calling out because this could land you in trouble, depending on if your QSA has twigged.  PCI DSS Version 4.0 introduced a section called “Description of Timeframes Used in PCI DSS Requirements”. This section now describes what is meant by the various timeframes that are within the PCI DSS Requirements. The descriptions also provide examples of what the expectation is, which now defines ‘Every three months’ aka “quarterly” as being ‘At least one ever 90 to 92 days, or on the nth day of each third month’, referred to as the “Scan Window”.

Why is this important? It is important because the wording within the Requirement (we will do a deep dive of the requirements in a moment) utilises the language of ‘every three months’, therefore the expectation and what needs to be assessed, is that each ASV scan follows that defined scan window, and unfortunately if the scans do not, the PCI DSS Requirements will not be met and will result in a failing assessment, which (see below), cannot be remediated until the quarters ASV scans follow the defined scan window. Depending on which scan has fallen outside of this defined period, will determine how long it would take to get back into compliance.

Compensating Controls

What is a ‘Compensating Control’? This is a mechanism built into the PCI DSS to allow organizations who have a legitimate technical or business constraint whereby a PCI DSS Requirement cannot be met explicitly as stated within the standard. For PCI DSS 4.x, this is referring to the “Defined Approach Requirement”. An entity can leverage the compensating control mechanism to implement other security measures to meet the original intent of the PCI DSS Requirement that cannot be met, thus mitigating the risk associated with not meeting the original PCI DSS Requirement. The implemented measures MUST meet the intent and rigor of the original PCI DSS Requirement.

So what! A lot of QSAs used to resolve issues of missing ASV scans and missing ‘historical’ activities like this (for example, missed daily log reviews) through the use of a compensating control. Unfortunately, these compensating controls cannot now be used for this, therefore there is no current mechanism within the PCI DSS to allow for remediation of past events that have been missed, not until a time machine is invented and entities can go back in time to fix the issues.

This is explicitly called out within Appendix B ‘Compensating Controls’ of the PCI DSS where criteria 6 states:

‘Address the requirement currently and in the future. A compensating control cannot address a requirement that was missed in the past (for example, where performance of a task was required two quarters ago, but that task was not performed).’

The PCI DSS External Scanning Requirements

This section will look at the ASV Requirements within the standard.

Requirement 11.3.2

‘External vulnerability scans are performed as follows:

• At least once every three months.

• By a PCI SSC Approved Scanning Vendor (ASV).

• Vulnerabilities are resolved and ASV Program Guide requirements for a passing scan are met.

• Rescans are performed as needed to confirm that vulnerabilities are resolved per the ASV Program Guide requirements for a passing scan.’

External vulnerability scans must be carried out as per the four bullet points above. The first one we have covered already. Scans must be carried out at least once every three months. Remember, there is a defined timeline now for ‘three months’. What this means, which I find interesting, is that potentially failed scan results may need to be submitted to demonstrate scans have been carried out within the defined timelines.  Often, I find that during an assessment, you only ever receive passing scan results so you may never receive evidence of the final bullet point being met because you are not necessarily aware that rescans have been carried out.

The third bullet point ensures that remediation is carried out and you receive a passing ASV scan. This element is the one that is requiring a passing scan result, which is validated by the issuance of the ASV scan reports, indicating a passing scan.

Requirement 11.3.2.1

‘External vulnerability scans are performed after any significant change as follows:

• Vulnerabilities that are scored 4.0 or higher by the CVSS are resolved.

• Rescans are conducted as needed.

• Scans are performed by qualified personnel and organizational independence of the tester exists (not required to be a QSA or ASV).’

I wonder how many of you have missed that after a significant change, the external vulnerability scanning requirement doesn’t need an ASV Scan to be conducted, just any vulnerability scan. Looking at Requirement 11.3.2.1, the very last bullet point actually calls out that the scan needs to be performed by qualified personnel and have organizational independence of the tester, but does not need to be an ASV. So, based on this, any standard vulnerability scanner can be used as part of the significant change external scanning, as long as all vulnerabilities with a CVSS (Common Vulnerability Scoring System) score of 4.0 or higher are remediated and rescans performed to show a clean scan.

Although this requirement doesn’t appear to require ASV scanning, I would recommend following the ASV Program Guide for CVSS scoring, so it would be important to ensure the tooling being used aligns to the CVSS scoring requirements. The ASV Program Guide requires that the CVSS Base Score be used in this order:

  • If the NVD (National Vulnerability Database) entry for a specific CVE identifier includes a CVSSv3.1 score, the ASV must include the published CVSSv3.1 score in the report.
  • If the NVD entry for the CVE identifier does not include a CVSSv3.1 score, the ASV must include the published CVSSv3.0 score in the report.
  • If the NVD entry for the CVE identifier does not include either a CVSSv3.1 or CVSSv3.0 score, then the ASV must include the published CVSSv2.0 score in the report.
  • Finally, if the NVD entry for the CVE identifier does not include any CVSS score (or there is no NVD entry for the CVE identifier), then the ASV must calculate a base score using CVSSv3.1.’

Questions to ask the ASV Solution provider

In theory the ASV Solution provider has met the requirements of the ASV Program Guide and satisfactorily passed the test rig. That said, we do come across situations where the ASV scan has failed to fulfil the PCI DSS Requirement, which is typically due to the solutions handling of URLs (Uniform Resource Locator). Read the section on FQDNs below.

Scan Report

Ensure the scan reports obtained as part of the supplied ASV scanning service aligns to the report templates contained within within the PCI ASV Program Guide appendices. The ASV scanning solution MUST be providing reports in line with the ASV Program Guide. A QSA will typically require the first two reports: the Attestation report & the Summary report. This is because the attestation report alone does not provide details of the scan components that were included within scope, i.e. the IP addresses and URLs. The QSA will need this information to ensure the ASV Scans cover the complete external footprint of the CDE as well as any externally facing system component that may provide access to the CDE and are therefore also in scope for the PCI DSS assessment.

Occasionally the detailed report is needed, where there are noted exceptions, compensating controls or other information that has been submitted as part of the scan.  Sometimes a single report is supplied, which includes all three reports in one.

Doing it properly

FQDNs

Unfortunately, even using a listed ASV Company, does not necessarily mean that the scans will be done correctly. I have come across ASV Solutions that do not handle URLs correctly, simply using it to do a DNS lookup and then scan against the IP address only. This is a huge issue because often web traffic to the IP address will direct to a landing page, whereby using the proper FQDN will direct traffic to the correct website by its host header. Host headers will be used by the web service if multiple websites are hosted on the same service or will be used by WAFs/Proxy Servers/Load Balancers (Web Application Firewalls) to direct incoming web requests to the correct internal website resources. If the ASV Solution cannot handle FQDNs correctly, then the traffic will just hit a landing page and not properly scan the website.

Section 5.5 ‘ASV Scan Scope Definition’ of the ASV Program Guide makes reference to ensuring the scans include any unique entryways into system components for the entire in-scope infrastructure.

Scan Window

Additionally, based on the defined Scan Window within the PCI DSS Version 4.x, entities must ensure scans are carried out within this defined timeframe, highlighted earlier in this blog. Failure to do so will result in a failing assessment (or should result in a failing assessment, depending on if your QSAs are aware of this). Unfortunately, as discussed, there will be no way to remediate this and entities will need to wait until the scans are properly in place, which could be nine (9) months depending on which scan wasn’t correct.

Reports

The final point I would like to raise is around the report. The QSA will need to see the correct reports, which must include the full external footprint (IPs AND URLs) in scope for the assessment.

Section 5.5 ‘ASV Scan Scope Definition’ of the ASV Program Guide

As discussed above, section 5.5 of the ASV Program Guide discusses the scope of the ASV scan. The idea of the scan is to ensure the full public footprint of in-scope environments are included in the scan. This includes, but is not limited to:

  • Domains for web servers
  • Domains for mail servers
  • Domains used in name-based virtual hosting
  • Web server URLs to “hidden” directories that cannot be reached by crawling the website from the home page
  • Any other public-facing hosts, virtual hosts, domains or domain aliases

It is the scan customers (the entity) responsibility for ensuring the scope is accurate, not the ASV Company. If the scan scope is not clear, a QSA should be consulted to ensure the scope can be validated and confirmed.

Ramblings

FQDN

This IP vs FQDN issue has annoyed me for almost as long as I have been a QSA. I remember many conversations with the PCI SSC on this subject, which prompted a change to the ASV Program Guide and to the ASV Test Rig which should be picking this up.  I’m surprised that I come across issues where this still isn’t done properly.  I’ve also had conversations with QSAs, whereby they don’t ensure FQDNs are being properly scanned either.

Some ASV Solutions don’t scan using the FQDN properly out of the box and sometimes require the use of additional addons to achieve this scanning. You should ensure that you are scanning with the correct solution to ensure the scans are being carried out correctly.

Scan Window

I find this quite perplexing which is why I have an outstanding question to the PCI SSC regarding the enforcement of this. If the expectation where scans fall outside the defined period of 90-92 days, or on the nth day, then this will and should be a failed assessment (I absolutely have no issues with this), then how are QSACs (QSA Companies) who are following this going to be protected? It is no secret that entities who fail an assessment, will simply shop around until they find a QSAC that will issue a pass. There needs to be something to protect QSACs who are doing their jobs correctly from being penalized. There are other PCI DSS Requirements that have very defined time frames now, therefore without a route to remediated, this could crop up against other requirements, for example Daily log reviews. If a daily log review was missed and a failing assessment issued on the back of it, unless the next QSAC selects the same sampled days, then this issue may not get flagged, at no fault of the QSAC that potentially will then issue a passing assessment.  This needs further thought into how protections can be put in place, if the PCI SSC and the Card Brands do want to be this stringent with these types of PCI DSS Requirements.

Sampling

Currently sampling cannot be done for ASV Scanning, rightly or wrongly, this is something that I know happens for some large companies. If this is to be accepted, then it needs to be acceptable to all entities, not just larger companies that have the size and influence to get away with it. I’m all for being pragmatic, but lets put some guard rails in place on how this is going to work within the whole industry, even if it has pre-requisites and one of them is if you are hosting more than x number of websites.

Surprising SAQ A Jan 2025 Update

Note: Some clarifications are now available within the following new post ‘FAQ 1588 – SAQ A Surprise Update Clarifications‘.

And out of the blue comes an update to the PCI DSS Version 4.0.1 Self-Assessment Questionnaire A (SAQ A), which is discussed in this announcement by the PCI Security Standards Council (PCI SSC) ‘Important Updates Announced for Merchants Validating to Self-Assessment Questionnaire A‘. The first thing to note about this update is that it does not become live until the 31 March 2025, when the current SAQ A expires. The second thing to note is, well, what on earth is going on….. carry on reading!!

The Update

The update reflects two types of changes as discussed in the following sections:

Eligibility Criteria Update

The eligibility criteria has been updated to include a new bullet point as follows:

'The merchant has confirmed that their site is not susceptible to attacks from scripts that could affect the merchant’s e-commerce system(s).'

PCI DSS Requirement Changes

This SAQ A update has dropped the PCI DSS Requirements related to the protection of JavaScript (JS) running within the ‘Payment Page’:

Requirement 6.4.3
All payment page scripts that are loaded and executed in the consumer’s browser are managed as follows:
- An inventory of all scripts is maintained with written business or technical justification as to why each is necessary.
- A method is implemented to confirm that each script is authorized.
- A method is implemented to assure the integrity of each script.

Requirement 11.6.1

A change- and tamper-detection mechanism is deployed as follows:
- To alert personnel to unauthorized modification (including indicators of compromise, changes, additions, and deletions) to the security-impacting HTTP headers and the script contents of payment pages as received by the consumer browser.
- The mechanism is configured to evaluate the received HTTP headers and payment pages.
- The mechanism functions are performed as follows:
* At least once weekly, OR
* Periodically (at the frequency defined in the entity’s targeted risk analysis, which is performed according to all elements specified in Requirement 12.3.1).
Requirement 12.3.1

For each PCI DSS requirement that specifies completion of a targeted risk analysis, the analysis is documented and includes:
- Identification of the assets being protected.
- Identification of the threat(s) that the requirement is protecting against.
- Identification of factors that contribute to the likelihood and/or impact of a threat being realized.
- Resulting analysis that determines, and includes justification for, how the frequency or processes defined by the entity to meet the requirement minimize the likelihood and/or impact of the threat being realized.
- Review of each targeted risk analysis at least once every 12 months to determine whether the results are still valid or if an updated risk analysis is needed.
- Performance of updated risk analyses when needed, as determined by the annual review.

What does all this mean?

If I’m being honest, I’m still trying to work that one out. Exactly what is meant by ‘not susceptible to attacks from scripts‘ is open to much debate at the moment. My take on what is meant by susceptible is that we cannot simply say that the site is ‘not vulnerable to attacks’. This is because the focus of the eligibility criteria appears to have shifted to scripts that are already running within the context of the site (JavaScript Dependencies), therefore the attack vector we are talking about wouldn’t be due to a vulnerability in the site itself through misconfiguration, lack of patching or coding errors, we are looking 3rd/4th party JavaScript that is loaded into the website to perform a function. If the 3rd/4th party is compromised and the threat actor modifies the JavaScript with malware, then the site will simply be loading the updated malicious JavaScript code, none the wiser. For more info see the following ‘What is a supply chain attack‘.

Surely, the whole intent of the PCI DSS Requirements that have been removed was to meet this newly added eligibility criteria? What is also interesting, is that the statement also now refers to the ‘site’ and not simply the ‘payment page’. Where entities have already implemented solutions to just the ‘payment page’ as required to meet Requirements 6.4.3 and 11.6.1, does this mean the solution needs to now be rolled out to the whole site to ensure this eligibility criteria can be satisfied? Potentially, as a consequence of this change, this now brings into scope payment flows that are leveraging a redirect mechanism, which will also need to meet the updated eligibility criteria and potentially require a technical solution that aligns to these e-commerce skimming protection Requirements to demonstrate they can meet the criteria.

This eligibility criteria change may also bring into question if entities can still align their e-commerce environments/e-commerce payment flows to SAQ A at all, even if an iframe is supporting the payment functionality. The implication of this new eligibility criteria could result in some environments being recategorized into SAQ A-EP, which has considerably more PCI DSS Requirements than that of SAQ A, at around 140 as opposed to less than 30 for SAQ A.

What is confusing with the eligibility criteria and removal of the JS requirements is , if an entity cannot demonstrate adherence to the eligibility criteria and therefore ends up aligning to SAQ A-EP, the JS requirements then come into scope so the very solutions that can potentially be used to meet the SAQ A eligibility criteria need to be implemented anyway. The only significant difference here would be that the solution used to meet the JS requirements for SAQ A-EP only need to be implemented against only the ‘payment page’, yet environments aligning to SAQ A-EP are supposedly at greater risks of compromise.

Site vs Payment Page

Iframes (Inline Frames) provide protection mechanisms to help protect the contents of the iframe against attacks from JS code running within the parent page rendering the iframe. By utilising an iframe, the data cannot be accessed between the iframe and parent page unless explicitly allowed. This provides a level of protection for the payment information being entered and submitted through a payment form that is contained within the iframe, retrieved from the payment provider.

The PCI DSS Requirements designed to protect against JS threats apply to the payment page only, or in the case of an iframe deployment, the parent page since the iframe and all its JS is loaded from the payment provider. So, with the introduction of term ‘site’ now in the eligibility criteria, does this highlight that application of these defences to just the payment page still poses a risk? I have always wondered why the scope of these requirements were limited to just the payment page, since the consumer journey will start before the payment pages, therefore an attacker can compromise the site at any point within that journey to change the payment flow. As can be seen by this blog post by JScrambler, ‘Stealing Seconds: Web Skimmer Compromises Casio UK and Growing Number of Websites‘, it is a very real threat to compromise the journey before the payment page to provide a successful compromise of Account Data.

Clarifications

It would have been extremely useful if guidance had been released at the same time to ensure it is clear to all PCI Stakeholders, exactly what the meaning of this new eligibility criteria is. Some reports are saying that guidance will be coming out in a couple of months, which could be brought into the guidance discussed in a PCI SSC blog post from back in Nov 2024 ‘New Guidance Coming for E-commerce Security Requirements in PCI DSS v4.x‘, where it states the first quarter of 2025. This may not be the forum for discussing the intent of this eligibility criteria update and the PCI SSC may need to release something much sooner to address the confusion that has been caused by this release.

Ramblings

Blimey, where to start! This update has created so much discussion and frustration within the community. QSA/ISA’s trying to work out what this means for their customers, potentially Acquirers unravelling the implications of this change to their many Merchants, potentially Companies who have built their business models around these requirements being in scope for all e-commerce deployments and finally the reporting entities (Merchants/Service Providers) who will potential not know what all this now means until there is much more guidance from the PCI SSC.

A final point is with the timeline. The updated SAQ A is live from 31 March 2025, when the current version expires. This doesn’t give entities a lot of time to understand the ramification of these changes, especially with the lack of clarity and guidance from the Council, and to do something about what these changes mean.

PCI DSS Version 4.0.1 and Requirement 12.8.2 Update

Just a short blog post to not only highlight that in a recent PCI SSC (Payment Card Industry Security Standards Council) blog post “Just Published: PCI DSS v4.0.1”, an updated version to the Payment Card Industry Data Security Standard (PCI DSS) Version 4 has just been released with the PCI DSS Version 4.0.1.

This is a limited revision to the standard which simply includes formatting corrections, typo fixes and further clarifications and intent updates to some of the PCI DSS requirements and guidance information contained within the standard.

Detailed information of the changes are available through a summary change document “Summary of Changes from PCI DSS Version 4.0 to v4.0.1” available through the Councils Document Library.

When does PCI DSS Version 4.0 Retire

Entities have until the end of the year, 31 December 2024, before PCI DSS Version 4.0.1 is mandatory. I would suspect that we may expect another updated after the 31 March 2025 effective date of the new Requirements added in PCI DSS Version 4.0 where the PCI SSC may look to release a minor edit to remove all reference to these new PCI DSS requirements having an effective date of 31 March 2025 and another opportunity to release more clarification updates as time passes.

Requirement 12.8.2 Update

This brings me onto something that has perplexed me now for many years (over 8 years thinking back). I would often moan about this requirement to anyone at the PCI SSC or the Card Brands who would listen to me. Due to the “woolly” wording and guidance on this requirement, I would often struggle to get anything substantial from the entity I’m assessing to help demonstrate this requirement is being met. Often, this is due to the lack of anything substantial coming from the Third-Party Service Providers (TPSPs), often hiding behind the way the requirement has been worded to shy away from any formal commitment.

The clarification update introduced into Requirement 12.8.2 is designed to ensure entity using TPSPs can now obtain the correct written assurances demonstrating its commitment to the security of account data it is directly interacting with or has the capability to impact upon the security of the customers’ account data.

Requirement 12.8.2:“Written agreements with TPSPs are maintained as follows: • Written agreements are maintained with all TPSPs with which account data is shared or that could affect the security of the CDE. • Written agreements include acknowledgments from TPSPs that TPSPs are responsible for the security of account data the TPSPs possess or otherwise store, process, or transmit on behalf of the entity, or to the extent that the TPSP could impact the security of the entity’s cardholder data and/or sensitive authentication data.”

Although there has been a very slight wording tweak to the last bullet point in Requirement 12.8.2 above, the main clarification comes in from the Applicability Notes, which now reads:

“The exact wording of an agreement will depend on the details of the service being provided, and the responsibilities assigned to each party. The agreement does not have to include the exact wording provided in this requirement.

The TPSP’s written acknowledgment is a confirmation that states the TPSP is responsible for the security of the account data it may store, process, or transmit on behalf of the customer or to the extent the TPSP may impact the security of a customer’s cardholder data and/or sensitive authentication data.

Evidence that a TPSP is meeting PCI DSS requirements (is not the same as a written acknowledgment specified in this requirement. For example, a PCI DSS Attestation of Compliance (AOC), a declaration on a company’s website, a policy statement, a responsibility matrix, or other evidence not included in a written agreement is not a written acknowledgment.”

My only minor issue with this is that there isn’t a closing bracket in that last paragraph, but we cannot have everything!

What does this mean for TPSPs

Although PCI DSS Version 4.0.1 does not become mandatory until the end of 2024, I would suspect that some entities will adopt it sooner, especially if they are still waiting for their annual certification against PCI DSS Version 3.2.1 to expire. For this reason, I would recommend that all TPSPs review, update and re-issue their contracts to ensure that they align to the updates of the PCI DSS Version 4.0.1 to help ensure their customers are able to meet Requirement 12.8.2 of this new PCI DSS Version.

My Ramblings

I am so pleased that this update not only updates the guidance on Requirement 12.8.2 to make it much easier for QSAs to assess against it, but also that the PCI SSC has updated Requirement 12.9.1 to reflect the changes made in Requirement 12.8.2, making it clear what TPSPs need to provide to their customers to help them demonstrate compliance when using their services.

As I have already said, this has been a bug bear of mine for many years, and finally we have an update that I truly hope will help when it comes to holding TPSPs accountable for providing the correct information to help entities meet Requirement 12.8.2.

Well done to everyone involved in this update!

Implications of the FAQ 1331 Update

During the PCI SSC Community Meetings and December 2023’s PCI SSC QSA Assessor Call, FAQ 1331 “Can SAQ eligibility criteria be used for determining applicability of PCI DSS requirements for assessments documented in a Report on Compliance?” was discussed within the context of Service Providers.

So, what has changed? Looking at the updated version (updated Sep 2023) and an older version from web.archive.org which shows a version from April 2023, the narrative of the article has changed from referencing merchants and service providers together, to the new article highlighting that service providers cannot use SAQ eligibility and the rest of the FAQ being written from a merchant perspective.

New FAQ opening:

“Service providers cannot use SAQ eligibility criteria to determine applicability of PCI DSS requirements for assessments documented in a Report on Compliance. The only acceptable SAQ for service providers is SAQ D for Service Providers. All other SAQs are intended for merchant use only.

Merchants with environments that fully meet all the eligibility criteria defined in a particular SAQ may use that SAQ as a reference to identify the applicable PCI DSS requirements for that environment. This approach must be clearly documented in “Description of Scope of Work and Approach Taken” section of the ROC.”

Original FAQ opening

“Merchants and service providers should always consult with their acquirer (merchant bank) or payment brand directly, as applicable, to confirm their PCI DSS validation and reporting method (for example, whether to complete a detailed PCI DSS assessment and document it in a Report on Compliance (ROC), or to complete a self-assessment and document it in a Self-Assessment Questionnaire (SAQ)). If a detailed assessment and ROC is the appropriate method, the merchant should also confirm that the approach outlined below is acceptable. Contact information for the payment brands can be found in FAQ #1142 How do I contact the payment card brands?

Entities with environments that fully meet all the eligibility criteria defined in a particular SAQ may use that SAQ as a reference to identify the applicable PCI DSS requirements for that environment. This approach must be clearly documented in “Description of Scope of Work and Approach Taken” section of the ROC.”

Self-Assessment Questionnaire (SAQ) Overview

It is worth providing some additional context on SAQs. The PCI Security Standards Council (PCI SSC) maintain multiple SAQs. I have written various articles on these in the past, this is probably worth a read, SAQs Demystified, although it only covers the PCI DSS Version 3.2.1 and worth noting that a new SAQ; SAQ SPoC, was recently added within the PCI DSS Version 4 set.

SAQs are built for merchant and service providers that can self-assess. This is dependant upon the number of transactions (number, not value) an entity is storing, processing, or transmitting annually.  There are in total nine (9) SAQs that a Merchant can leverage; SAQ A, SAQ A-EP, SAQ B, SAQ B-IP, SAQ C, SAQ C-VT, SAQ P2PE, SAQ SPoC or SAQ D for Merchants. Service providers can leverage a single SAQ, which is SAQ D for Service Providers.

All merchant SAQs, apart from SAQ D since it covers all PCI DSS Requirements, are a subset of the PCI DSS Requirements. The selection of Requirements contained within each SAQ are based upon the risks associated with a particular payment channel(s) and the specific people, process, and technology in place for the payment channel(s). The SAQs include specific eligibility criteria to ensure the payment channel(s) is operating in a specific way, which then aligns any assumptions made in determining the preserved risks associated with that payment channel(s).

For example, SAQ A is designed for merchants that have outsourced payment operations to a PCI DSS accredited service provider or has implemented an iframe or web redirect mechanism to support e-commerce payments. This SAQ is the smallest SAQ with only 29 PCI DSS Requirements which is around 12% of the requirements within PCI DSS Version 4.0.  SAQ A is only designed for card-not-present and e-commerce payment channels.

So what!

The new FAQ wording has a huge implication for service provider assessments. The updated narrative now makes it clear that service provider assessments cannot leverage any of the merchant SAQs in determining what PCI DSS Requirements should be included within the assessment.

Under PCI DSS, service providers have two reporting options depending on how many transactions per year the service provider is storing, processing or transmitting; or if they can impact upon the security of cardholder data (CHD);

  • For under 300,000 transactions per year, the service provider can self-assess by completing SAQ D for Service Providers, or
  • For over 300,000 transactions per year, a QSA Lead assessment resulting in a Report on Compliance (ROC) and associated Attestation of Compliance (AOC).

Many QSAs and QSACs (QSA Companies) leverage merchant SAQs to help determine which PCI DSS Requirements should be applied for a service provider’s PCI DSS assessment based on the people, processes, and technologies in use.  Often, some additional PCI DSS Requirements may get added, especially service provider specific requirements, but in general the merchant SAQs provided a good indication of what PCI DSS Requirements should be included.

The updated FAQ is highlighting that service providers can only use SAQ D for Service Providers and all other SAQs are designed solely for merchants, who have payment channels operating in a prescribed way.

What does this mean?

Let us look at this from a SAQ perspective, picking on the SAQ we have discussed earlier, which is SAQ A.  A merchant named WhizzBangInc outsources an e-commerce platform to a service provider, WayneCo Hosting.  WayneCo Hosting provides a web server that hosts WhizzBangInc’s e-commerce platform that utilises a redirect mechanism to a PCI DSS compliant payment processor to facilitate payments for goods.

If the web server was owned and managed by WhizzBangInc, this would align to SAQ A since it would meet the eligibility criteria of that SAQ.  Nice and simple, a redirect is in place to a PCI DSS compliant payment process. Therefore, based on this profile of payment channel and the perceived risks, this requires 29 PCI DSS Requirements.

Now, switch this up so the web server, providing the same functionality of a redirect to a PCI DSS compliant payment processor, is now under the management of a third-party, the risk profile changes?

So, the question now is, how can you determine requirement applicability for service provider assessments in a consistent and repeatable manner if an SAQ matching the core technical make up of that SAQs eligibility criteria, can no longer be used?

I do not really have an answer to this question yet. I have raised this with the PCI SSC for further guidance and I know a lot of other stakeholders have also raised this question. I’ll update this blog as and when further information comes out.

My Ramblings

My initial thought on this was to perform a risk assessment against a payment channel configuration that service providers are likely to use. For example, we often come across the scenario discussed in this blog, whereby you would usually align the service provider’s applicable PCI DSS Requirements against SAQ A. For this, we are planning to perform a risk assessment and map these against relevant PCI DSS Requirements so we can document our approach, justifying the requirements.

This seems like a logical approach however it still perplexes me on multiple levels. Firstly, how do you get consistency across the worlds QSAs and QSACs? It would be unfair for service providers and QSACs to have such varied opinions on requirement applicability. It could provide a competitive advantage for a QSAC that chooses less requirements than another QSAC that has deemed more requirements in scope. Secondly, what is the whole purpose of service provider validations? Is it not so merchants can validate that a service provider is fulfilling the merchants’ requirements that the service provider is responsible for? If that is the case, in our SAQ A example, the merchant will be checking to ensure applicable SAQ A requirements are being fulfilled by the service provider, the merchant will not really be interested in anything above and beyond that. So comes my question, what is the point of going above and beyond where a service provider is delivering a service that aligns to one of the merchants SAQs?

I am in no way against service providers being on the hook for some additional requirements, however I think a much clearer and transparent mechanism should de introduced. Maybe have a standard set of service provider requirements that must be met, regardless of SAQ alignment, that way there is consistency amongst all QSAs. These standard set of requirements along with SAQ aligned requirements can be used to determine the requirements as required. (And yes, I am aware that there are service provider specific requirements, I am talking more around any additional requirements that the PCI key stakeholders; Card Brands, PCI SSC, etc… deem as massively important in service provider solutions)

I am looking forward to the feedback from the PCI SSC on this matter….

When do the PCI DSS Version 4 Requirements need to be implemented?

This may seem like a strange post, especially since everyone should know by now that the PCI DSS Version 3.2.1 retires at the end of March 2024. This question is aimed at whether an entity must have all the 50+ new PCI DSS Version 4 Requirements (not including the best practice requirements) in place as of 1 April 2024. Well, do they? Bearing in mind that PCI DSS compliance reporting and validation is annual and come 31 March 2024, an entities assessment will not prematurely expire before the previous assessments one year anniversary, as discussed within FAQ 1565 “Will my PCI DSS v3.2.1 assessment expire on 31 March 2024?”.

Where has this question come from?

Let us set the scene with a little scenario, WayneCo has undergone a PCI DSS Version 3.2.1 assessment, which was signed off by a QSA on the 1 March 2024.  This is the date WayneCo has reported compliance with the acquirer by supplying the necessary reports; Report on Compliance (ROC), Attestation of Compliance (AOC) and any necessary ASV Scan reports.  The anniversary of this assessment will be 1 March 2025. Question, does WayneCo then have a month between 1 March 2024 and 1 April 2024 to implement all applicable PCI DSS Version 4 requirements?

My initial take on this was that, regardless of when an entities AOC expires (i.e. WayneCo’s would be 1 March 2025), come 1 April 2024, the cardholder data environment (CDE) needs to be aligned with the applicable requirements from the PCI DSS Version 4. My reasoning for this was because within the AOC under the section ‘Part 3a. Acknowledgement of Status’, the entity agrees with the following affirmation, “I have read the PCI DSS and I recognize that I must maintain PCI DSS Compliance, as applicable to my environment, at all times.”. Does this statement therefore mean that from 1 April 2024, since only the PCI DSS Version 4 is valid, the entities responsibility of maintaining a PCI DSS Compliant environment would need to ensure that they are aligned to the only a valid PCI DSS version, which is the PCI DSS Version 4?

My initial concern around this question was focused on if the entity suffered a breach after the end of March 2024 which required a PCI Forensic Investigation (PFI). If for example WayneCo suffered an Account Data Compromise (ADC) on the 1 August 2024, would the PCI Forensic Investigator review the environment against the PCI DSS Version 3.2.1 or PCI DSS Version 4? If against PCI DSS Version 4, since this is the only valid version of the PCI DSS, then WayneCo may not have finished implementing the newer PCI DSS Version 4 requirements since these do not need to be in place until WayneCo needs to report compliance again to the Acquirer on 1 March 2025.

Seeking Answers

Since a couple of customers asked if they need to have PCI DSS Version 4 in place come 1 April 2024, I sought to try and get some clarification on this subject. Based on the conversations I have had on this topic, the short answer to this quandary is that WayneCo has until the AOC expiration to ensure any applicable PCI DSS Version 4 requirements are in place. Therefore, in theory, WayneCo has until 1 March 2025, to implement PCI DSS Version 4.

As always, with any PCI DSS compliance queries, either seek clarification from the Acquirer or the Card Brands directly. Since you are reporting into your Acquirer, I would always seek clarification from them as my first point of call.

PCI DSS Version 3.2.1 Extension Myth

While writing this blog post, I came across a LinkedIn post by Simon Turner that he called “Breaking Myth: PCI 3.2.1 to V4 Extension Unveiled!”. This is not something that I have personally come across but this sort of links to the topic of this post. Interestingly Simon references a MasterCard Newsletter “Q2 2023 PCI Quarterly Newsletter” which includes the following statement, which could be where this myth originated:

“Mastercard will continue to accept v3.2.1 validations until 30 June 2024 provided an entity’s PCI DSS assessment for compliance validation with version 3.2.1 is completed by the retirement date. The additional 3-month grace period will allow extra time for QA and other wrap-up processes to be completed.”

Just to be clear, entities wanting to report compliance against PCI DSS Version 3.2.1, must ensure all assessment activities are completed before the retirement date.

My Ramblings

Does this now mean that the PCI DSS Version 4 Requirements that are only best practice until 31 March 2025, do not need to be in place until an entity has to report compliance after this date? So, for WayneCo in the above example, that would mean the newer JavaScript requirements would not need to be in place until 1 March 2026.

On a similar theme, does this mean that an entity can choose to not start carrying out ASV scanning against SAQ A until the AOC is coming up for expiration? For the example with WayneCo, they would not need to have a scan for 1 April 2024, 1 July 2024, 1 October 2024, 1 January 2025, instead they could have a single scan from the February 2025, just before undergoing the annual PCI DSS assessment.

Interestingly, in the PCI DSS Version 4 AOCs, the wording under ‘Part 3a. Merchant Acknowledgement’ includes the following affirmation instead “PCI DSS controls will be maintained at all times, as applicable to the merchant’s environment.”.

The new PCI DSS Version 4.0 Skimming Requirements Demystified

With the help of my work colleagues, Rob Jepson and Tom Kinnaird (thank you both), this blog post will cover the following topics to help the reader understand why additional online skimming requirements have been introduced within PCI DSS Version 4.0 and what entities need to do to meet them.

  • What is Online Skimming?
  • Why should I be worried about this particular threat?
  • Online skimming compromises
  • How exactly does online skimming work?
  • But I have implemented an iframe, does this still leave me vulnerable?
  • What are the new PCI DSS Version 4.0 requirements?
  • What is meant by “Payment Page”?
  • SAQ Alignment
  • Do these two new PCI DSS Version 4.0 Requirements apply to SAQ A?
  • What options do I have to meet these new requirements?
  • Wait! If these scripts are in scope, does this make the supplier a service provider?
  • My Ramblings

What is Online Skimming?

Online skimming is a technique that makes use of malicious code within legitimate e-commerce sites designed to capture card information that consumers enter to make payments for goods and/or services through the compromised e-commerce website. The threat actor responsible for inserting the malicious code will either store the card information until they retrieve it or will exfiltrate the information to a remote location for easy retrieval.

Online skimming isn’t a new concept with early backdoor skimming software first being reported in April 2000 within a piece of software named “cart32”,which was an off the shelf commercial shopping cart.  This backdoor skimming code had been reportedly exposing credit card information for more than a year [1].

Magecart has become synonymous to this style of attack, which is traced back to 2014 [1], with Magento becoming a big target of these attacks in 2015 [2] after a serious RCE (Remote Code Execution) vulnerability was identified called Shoplift/SUPEE 5344.  Magecart attacks can be linked to 12 cybercrime groups involved in compromising e-commerce sites with the purposes of leveraging online skimming attacks from them.

Magecart attacks can be orchestrated via frontend and backend attacks through browser scripts (e.g. JavaScript) or server-side code (e.g. PHP) respectively.  Although Magecart attacks are typically associated with frontend browser-based attacks. In a publication by Sansec [2] there appears to be a shift to server-side attacks quoting around 64% seen by Sansec.

Why should I be worried about this particular threat?

In September 2019, Visa released a blog post entitled “Visa EMV chip cards help reduce counterfeit fraud by 87 percent” [3].  EMV (Europay, Mastercard and Visa), named after the three companies who were responsible for developing the standard, is a technical standard developed in 1994 to create smart payment cards and supporting technologies that can be used by card reader vendors to interact with them.  EMV leverages an embedded microchip (EMV Contact Chip) on the debit/credit card used to promote secure payment functionality for card-present payments, transforming the security of card-present payments to combat fraud.  EMV technologies have evolved to enhance payment security in other areas of the payment card ecosystem to include technologies for card-not-present (CNP) payment channels, through technologies such as EMV 3-D Secure, EMV QR Codes, EMV Secure Remote Commerce, EMV Mobile and EMV Payment Tokenisation technologies [4].

In addition to this, in 2012 the PCI Security Standards Council (PCI SSC) announced the release of a new standard called the P2PE (Point-to-Point Encryption) standard.  This standard is designed to provide assurances that at the point of interaction with a payment card, the data is immediately encrypted in a way that makes it near impossible (in today’s computing) to decrypt the information without the decryption keys, which are secured in a third-parties secured decryption environment.  In essence, the idea was to make the data useless if it was captured by threat actors, so it couldn’t be monetised in anyway.  A noteworthy point is that EMV does not look at the protection of the transmission of card data, but the expectation is that this will be handled by the devices themselves, especially if they meet other PCI SSC standards, such as PTS (PIN Transaction Security).

The Visa EMV blog [3] states that U.S fraud was slashed by 87% in March 2019 compared to that of September 2015 due to EMV technology. 

Why is all this relevant?  Since these newer technologies have been released to improve the security of card-present channels, trends have traditionally shifted to online e-commerce compromises.  This makes sense since threat actors and criminal organisations will look for the easiest targets, which currently are e-commerce payment channels.  As shown from the UK Finance’s “Fraud – The Facts 2022” [5] report, there has been an increased trend in e-commerce fraud losses on UK-issued cards between 2012 (£139.6m) to 2020 (£377.2m), before seeing a 10% drop in 2021 (£339.2), which isn’t too surprising since the overall fraud losses on UK-issued cards dropped by 7% that year.  E-commerce still accounts for just under 65% of all fraud losses on UK-issued cards in 2021.

Online skimming compromises

According to a news story by Bleeping Computer in Nov 2021 titled “UK govt warns thousands of SMBs their online stores were hacked” [6], more than 4,000 online retailers were informed of a Magecart compromise by the UKs National Cyber Security Centre (NCSC). The report goes on to say that the NCSC monitored these e-commerce sites since April 2020, issuing warnings to the owners.  Interestingly, NCSC identified that most sites were compromised via a known vulnerability in Magento which is an e-commerce platform commonly used by online retailers.

Many large and high-profile organisations have suffered at the hand of Magecart, these companies include:

British Airways

British Airways (BA) made an apology after 380,000 customers’ credit card details were stolen over only a two week period [7] in 2018.  As reported in ‘The Register’ [8] bookings between the 21st August 2018 and the 5th September 2018 were affected by a server-side Magecart hack.  More alarmingly, this same article, claims that BA was also saving domain administrative credentials and card details in plaintext, which both breach PCI DSS Requirements.

In addition to the Account Data Compromise (ADC) complications that would have resulted in negative PR and fines from the card brands, BA was also reportedly looking at a £183m GDPR (General Data Protection Regulation) fine from the UK’s ICO (Information Commissioners Office). [9] It was later announced that due to the economic impact of Covid-19 to the airline industry, the ICO reduced the fine to £20m, [10] which is still a considerable fine.

The attack is reported [11] to have started through the compromise of a BA network account issued to a third-party cargo-handling firm, Swissport, employee.  Once entering BA’s Citrix environment, the attacker was able to breach the wider network and stumble across a cleartext Domain Administrator credential.  The attacker not only gained access to service logs containing plaintext payment card details, but also the website source code, which was used to plant a card skimmer into the payment page used within the public facing e-commerce platform.

Ticketmaster

Ticketmaster succumbed to a client-side Magecart attack, which was reported by The Register, potentially impacted 9 million customers details, and cost the company a £1.25m fine by the UKs ICO, not including other potential fines and reputational damages. [12]  This attack was carried out by compromising a 3rd party chatbot service called Inbenta. A compromise of this chatbot’s JavaScript code allowed for the Magecart’s digital card-skimming code to appear on Ticketmaster’s payment pages, thereby impacting every payment being made through the e-commerce site.  Ticketmaster’s announcement [13] provided a timeline of between September 2017 and the 23rd of June 2018, interestingly a DARKReading article “Ticketmaster Breach Part of Massive Payment Card Hacking Campaign” [14] highlights that the command-and-control server used by Magecart had been operational since late 2016.  This same article also highlights that SociaPlus, another third-party supplier to Ticketmaster, was also breached by Magecart.

Newegg

Newegg reportedly became another Magecart stat after a digital card skimmer was identified and removed on the 18th of September 2018, which had been reportedly active since the 13th of August 2018, according to a TechTarget report. [15]  With this attack, the threat actors registered a new domain; neweggstats.com and a valid SSL Certification, exfiltrating data via the URL; https://neweggstats.com/GlobalData/.  This attack was a server-side attack since the payment page on the webserver was compromised to host the malicious JavaScript code.

Others

There are many other examples of organisations becoming victim to these digital card skimmer attacks such as, PulseTV between November 2019 and August 2021, Tupperware in 2020, Segway in 2022, Emma Sleep Co between the 27th of January 2022 and 22nd of March 2022 and many more.

How exactly does online skimming work?

In essence, online credit card skimming occurs when malicious code is injected into a website to steal credit card information from visitors.

A high-level overview of the skimming process follows similar steps to other (hacking attempts | exploits), with the key exception of the exploitation targeting end users (cardholders) rather than the organisation:

  • Identification: An attacker identifies one or more target web applications; this could be a site with a vulnerability identified by the threat actor or identifying a target that handles a lot of payments.

The webapp will, of course, need to take card payments.

  • Exploitation: The attacker then identifies and exploits a vulnerability to inject malicious code into the application (the ‘skimmer’) which is designed to collect and exfiltrate payment card information through hidden mechanisms.
  • Exfiltration: When a user visits the compromised website and enters their payment card information, the skimmer then collects this data and sends it back to the attacker’s server.

Identification

Skimmers will be looking to perform attacks on web applications that are either low-hanging fruit with easy-to-exploit vulnerabilities, or high-traffic payment domains. Often, targeted applications are both.

Because of the nature of supply chain attacks, compromising a commonly used JavaScript included within a CDN (Content Delivery Network), would allow an attacker to spread their malware across many domains simultaneously.

Exploitation

Exploitation can be client-side or server-side. The distinction between these is important: client-side attacks do not involve touching anything on the server, so it is not possible to detect any changes on the filesystem. These attacks are generally supply-chain in nature, targeting third party sites that host JavaScript files included on a page – e.g. CDN or third-party advertisement.

The HTML on the page would look something like this:

<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>

Advertisements are another very common technique for getting skimmers on a site, as reported by The Register [17], around 17-per cent of malware-laden ads examined by the firm also contained Magecart skimmers.

As discussed earlier, server-side attacks involve gaining access to the websites’ code based and making changes to the website itself.

Exfiltration

Depending on the skill of the attacker and the opportunistic nature of the attack, skimmer attacks will generally follow the same process of encoding / encrypting data and sending it to an attacker domain, styled to look like a request to the organisation.

In the British Airways attack, stolen data was exfiltrated through the domain ‘www.baways.com’ [17].  As already discussed, in the Newegg compromise, the ‘neweggstats.com’ domain was used.

But I have implemented an iframe, does this still leave me vulnerable?

A crucial security mechanism in securing web applications is the same-origin policy (SOP) [18], which is designed to restrict JavaScript interactions with data of different origins.  Within the context of the same-origin policy, an origin is identified through the protocol, hostname, and port number the resource is using.  Therefore, the following URLs are said to be the same origin:

https://pciramblings.com/home.php

https://pciramblings.com/index.php

However, the following URL would not match the same-origin policy due to the protocol (http) not matching:

http://pciramblings.com/contactme.php

Where iframes are concerned, the same-origin policy helps to protect the iframe that is loaded from the payment provider, since the same-origin policy will not allow JavaScript code within the parent page to interact with the resources of the iframe, thereby protecting the data being inputted.

Note: It is worth pointing out that same-origin policy only restricts access to data and doesn’t restrict access to embedded resources between different origins; for example, CSS (Content Style Sheets), images and scripts.

Whilst iframes do increase the complexity of the attack of the payment process, making it harder for an attacker to simply read the input card details due to the discussed same-origin policy, once a skimmer is installed an attacker already has arbitrary code execution on the user’s machine. This vulnerability is commonly referred to as ‘Cross Site Scripting’ and could be exploited to compromise the user in a multitude of ways, including through browser exploits and creating fake payment pages.

This means that iframe-based solutions are not a direct mitigation to skimming attacks, as the injection of a skimmer on a vulnerable web application is the by-product of a deeper vulnerability present in the system. Further to this – if the iframe is served from a compromised domain, or if the attacker can find a way to inject malicious code into the iframe such as through a PostMessage-based exploit, then the payment card information can still be stolen. If an attacker is able to add custom code to a web application, it could even be possible for them to use browser exploits on out-of-date & vulnerable browsers which could be used by a visitor of the application – leading to their machine being infected with malware.

Sometimes the strictness of the SOP implementation can hamper application functionality of modern web apps, therefore there are various mechanisms to ‘relax’ this implementation allowing “defined” domains to share data.  These mechanisms include Cross-Origin Resource Sharing (CORS), Cross-Domain Messaging (postMessage), JSON with Padding (JSONP) and through a mechanism of setting document.domain.  Incorrectly configuring these options can leave the website open to SOP attacks.

What are the new PCI DSS Version 4.0 requirements?

PCI DSS Version 4.0 introduced two new requirements specifically designed to mitigate the risk of online skimming attacks.  Although these new requirements are future dated to the 31st of March 2025, meaning from the 1st April 2025 entities must have these requirements in place, it is recommended to implement these new requirements as soon as possible.

Under “Requirement 6: Develop and Maintain Secure Systems and Software” is the following future dated requirement:

‘6.4.3 All payment page scripts that are loaded and executed in the consumer’s browser are managed as follows:

• A method is implemented to confirm that each script is authorized.

• A method is implemented to assure the integrity of each script.

• An inventory of all scripts is maintained with written justification as to why each is necessary.’

Under “Requirement 11: Test Security of Systems and Networks Regularly” is the following future dated requirement:

‘11.6.1 A change- and tamper-detection mechanism is deployed as follows:

• To alert personnel to unauthorized modification (including indicators of compromise, changes, additions, and deletions) to the HTTP headers and the contents of payment pages as received by the consumer browser.

• The mechanism is configured to evaluate the received HTTP header and payment page.

• The mechanism functions are performed as follows:

– At least once every seven days

OR

– Periodically (at the frequency defined in the entity’s targeted risk analysis, which is performed according to all elements specified in Requirement 12.3.1).’

Let’s look at these two new requirements in more detail:

Requirement 6.4.3

This requirement is looking for entities to provide adequate management of all scripts within the payment page loaded into the cardholder’s browser.  This requirement goes hand in hand with Requirement 11.6.1 since an authorisation process for scripts needs to be in place to enable alerting mechanisms to be built to identify where new, unknown, or modified scripts appear within the payment page.

As can be seen from the requirement itself, the expectation is that the entity must:

  • Have a mechanism of ensuring that each script that the entity is expecting within the payment page, has been authorised.
  • Have a mechanism of ensuring the integrity of each script that loads within the payment page can be validated to ensure no unauthorised modifications have been made.
  • Have a mechanism in place to maintain an inventory of all the scripts that are authorised for use within payment pages along with a way of recording the business justification for each script.  My view on this requirement is that it will force entities to think if scripts are actually necessary for the payment functionality or not. By reducing the number of scripts being used on payment pages, entities are reducing their attack surface and therefore reducing the risk of a compromises through these scripts.

Requirement 11.6.1

This new requirement has been added to ensure entities are able to monitor payment pages and HTTP headers to detect any signs of changes or tampering.  This must be able to be done at least weekly or using a “frequency” determined by a risk assessment.  The mechanism to achieve this must be able to alert personnel if unauthorised modifications are detected.

What is meant by “Payment Page”?

You’ll notice within these two new PCI DSS Version 4.0 requirements that both refer to the term “Payment Page”.  I thought it would be worthwhile going through what is meant by a payment page.

The PCI DSS Version 4.0 ‘Appendix G – PCI DSS Glossary of Terms, Abbreviations, and Acronyms’ defines a “Payment Page” as:

“A web-based user interface containing one or more form elements intended to capture account data from a consumer or submit captured account data. The payment page can be rendered as any one of:

  • A single document or instance,
  • A document or component displayed in an inline frame within a non-payment page,
  • Multiple documents or components each containing one or more form elements contained in multiple inline frames within a non-payment page.”

Let’s look at each of these rendered options in a little more detail:

A single document or instance

This rendering option displays a web page served from the Merchant website containing a form element allowing the cardholder to input their card information for direct submission to a payment provider (payment gateway) via either a;

  • ‘Direct Post’ (also referred to as ‘browser API’ or ‘silent order post’),
  • ‘JavaScript created form’,

as shown in the diagram below;

or a direct submission to the merchant website itself known as ‘The API’ or ‘merchant gateway’ rendering option, as shown in the diagram below.

A document or component displayed in an inline frame within a non-payment page

This rendering option displays a web page served from the Merchant website that contains an inline frame (iframe) that is loaded with contents entirely from the payment provider. Transaction information is shared with the payment provider to allow the iframe to be built.  The cardholder inputs their card information into the form within the iframe, which is then submitted directly to the payment provider, as depicted below;

Multiple documents or components each containing one or more form elements contained in multiple inline frames within a non-payment page

This iframe is the equivalent of a new browser window being opened by the payment provider and ‘embedded’ into the page. To the end user it’s invisible, but to the browser it looks like a completely different web application – this means that the browser’s security system, the Same Origin Policy, kicks in and prevents any information from the iframe window (/context) from being accessed by the merchant’s window (/context)

This provider iframe is populated with details of the requested transaction communicated with by the Merchant. Once the payment transaction has been completed by the cardholder in the provider’s iframe context, the provider then confirms the transaction details server-side to the merchant’s server, confirming that the transaction has been successful.

Because payment details are only placed in the context of an iframe, the browser’s same origin policy prevents the merchant’s code from being able to access any of the user’s payment details. Instead, the impetus of security is on the payment provider’s application as the card details are only sent to the provider, not the merchant.

The main advantage to this rendering option is that it provides much more flexibility into the design of the payment page since each field is an iframe and can therefore be placed anywhere on the page.

This is depicted below:

Additional information can be found within the PCI SSC’s FAQ 1438 entitled “Now is the Payment Page Determined for SAQ A Merchants Using iframe”

SAQ alignment

A Self-Assessment Questionnaire (SAQ) is a defined subset of PCI DSS Requirements that have been set by the PCI SSC (Payment Card Industry Standards Security Council) and the participating card schemes, based upon the risks posed by that type of payment functionality. Entities that meet the eligibility criteria of how the payment channel is setup and operates, can complete the relevant SAQ as part of the entities reporting requirements of demonstrating compliance to the PCI DSS. The exception is SAQ D, since this is the SAQ that is used when none of the other smaller SAQs can be used. SAQ D contains all the PCI DSS Requirements.

Depending upon which rendering option is used for the e-commerce payment channel, will determine which SAQ it will align to. Three SAQs are linked to e-commerce payment channels; these are SAQ A, SAQ A-EP and SAQ D. The following table shows which rendering option aligns to which SAQ.

SAQRendering Options
SAQ AThis SAQ is used for e-commerce payment channels that leverage iframe technologies as the rending option. It is worth pointing out that SAQ A is also used for redirect technologies, whereby the cardholder is transferred directly to the payment gateways own payment page as part of the payment journey.
SAQ A-EPThis SAQ is used where the e-commerce payment channel utilises the Direct Post or JavaScript rendering options.
SAQ DThis SAQ contains all the PCI DSS Requirements and is used by entities leveraging The API rendering option.

Do these two new PCI DSS Version 4.0 Requirements apply to SAQ A?

The more observant amongst you may notice that the payment page definition on the use of iframes above, don’t quite align to these new PCI DSS Version 4.0 requirements.  A payment page is classed as the iframe containing the payment form, which to align to SAQ A, must be built entirely from the payment gateway, as highlighted under the following eligibility criteria statement from SAQ A:

‘All elements of the payment page(s)/form(s) delivered to the customer’s browser originate only and directly from a PCI DSS compliant TPSP/payment processor.’

What does this mean? These two new PCI DSS Requirements only apply to the payment page, which as already highlighted above, applies to the iframe itself.  As stated within the eligibility criteria of SAQ A, all elements of the payment page must be built only using code from the payment gateway, therefore the entity itself cannot have any code or scripts running within this iframe.

So, how do these two new requirements apply in SAQ A? SAQ A contains the following statements against both these two new requirements:

‘Note: For SAQ A, Requirement 6.4.3 applies to a merchant’s website(s) that includes a TPSP’s/payment processor’s embedded payment page/form (for example, an inline frame or iFrame).’

‘Note: For SAQ A, Requirement 6.4.3 applies to a merchant’s website(s) that includes a TPSP’s/payment processor’s embedded payment page/form (for example, an inline frame or iFrame).’

My interpretation of this is that these two new requirements apply only to the parent web page containing the iframe payment form.

Note: Interestingly, these two new requirements don’t apply to redirect payment mechanisms that also align to SAQ A.

What options do I have to meet these new PCI DSS requirements?

The following sub sections cover mechanisms that can be leveraged to meet these newly introduced PCI DSS Version 4.0 requirements.

For Requirement 6.4.3

A mechanism is implemented into the HTTP protocol designed to confirm that each script is authorized by preventing undefined scripts from running. These techniques are discussed as follows:

  • Content Security Policy (CSP): Implement a CSP to specify which sources of content are allowed to load on your web pages, thereby preventing unauthorized scripts from being executed.  Additionally, it can be used to define where data is allowed to be sent to through a POST request.

A mechanism is implemented into the HTTP protocol designed to assure the integrity of each script.

  • Implement Subresource Integrity (SRI): SRI is a security feature that enables browsers to verify the integrity of resources fetched from third-party sources. By including an integrity attribute with a cryptographic hash in your script tags, you can ensure that the script’s contents have not been altered.

Unfortunately, the final bullet point in Requirement 6.4.3 is more of a manual process, an entity will need to create a detailed inventory of all scripts loaded within payment pages, including their sources and purposes. Regularly review this inventory and update it as necessary to ensure that only authorized and necessary scripts are running on your payment pages.  A robust process should be implemented to ensure this inventory gets updated when scripts are updated, added, or removed.

For Requirement 11.6.1

As we have discussed above, one of the security techniques built into the HTTP Protocol is CSP, designed to identify what scripts are allowed to run.  Although CSP is typically implemented through HTTP Headers, it can also be implemented using a HTML meta element, although you do lose some CSP functionality.  One of the reasons PCI DSS Requirement 11.6.1 has been included into the standard is to ensure that any anti-skimming security measures implemented, such as CSP, are being delivered correctly and have not been interfered with.  If the HTTP headers, or the page contents are not as expected, this could be an indicator of compromise and therefore needs to be flagged and investigated as part of an incident response process.

Looking at the PCI DSS guidance for Requirement 11.6.1, the intention of this requirement is to detect changes and indicators of malicious activity at the consumer browser (client-side), and not server-side. It is acknowledged in the guidance that active content can be pulled into the page from multiple internet locations, making it much harder to identify malicious activity through third-party JavaScripts.  There have been many attacks whereby third-party scripts have been compromised, which quite often is outside of the control of the entity that is consuming them, since the scripts are hosted at third-party locations. One might think it is easy to control by hosting the scripts on the local web server, however some providers require scripts to be consumed from the third parties’ locations.

The guidance highlights several techniques that can be used to help meet the individual points of Requirement 11.6.1.  These include:

  • Utilising the report-to / report-uri CSP directives to report CSP violations;
  • Identifying changes to CSP itself to detect tampering;
  • Performing external monitoring of received web pages to detect changes in JavaScript in payment pages and alert personnel;
  • Embedding tamper-resistant, tamper-detection scripts into payments pages that can alert and block malicious script behaviour; and/or
  • Reverse proxies and Content Delivery Networks (CDNs) can detect changes in scripts and alert staff.

Looping back on the discussion of intent, i.e being able to detect this activity at the browser, once the page is fully constructed, I’ve been struggling with some of the techniques identified in the guidance.  My biggest confusion has been around the reverse proxies and CDNs ability to detect changes in scripts.  This seems straight forward in that scripts are retrieved through these technologies; however, would this not fall over where scripts are being hosted on third-party services? I’ve had many a conversation with various colleagues on this point and Cloudflare has a solution whereby CSP is pushed out through the CDN to enable alerting mechanisms to help meet these requirements.  Through Cloudflare’s Page Shield service, the ‘Content-Security-Policy-Report-Only’ CSP header is included within the HTTP responses to help provide notification mechanisms.  Additionally, the service includes additional security mechanisms to identify known malicious script locations, script changes, etc…

Another technique I’ve been struggling with a little is performing external monitoring. My initial thoughts on this were to run regular scans of the payment pages to monitor for changes in the scripts and headers. My initial concerns were around where payment pages are behind multi-form pages that are part of the customer journey before being presented with the payment page(s).  Some vulnerability scanning tools can find this problematic and may struggle to hit the correct pages. The exact wording of the following bullet point within the guidance helps to clarify this a little:

  • External monitoring by systems that request and analyze the received web pages (also known as synthetic user monitoring) can detect changes to JavaScript in payment pages and alert personnel.

Synthetic user monitoring (aka synthetic monitoring or synthetic transaction monitoring) is something I had never come across before so needed to delve into what this was. In essence, it is a technique used to simulate user interactions with an application to collect various data, for example, response times, errors, availability, etc….  In this case of PCI DSS Requirement 11.6.1, between a user and the e-commerce website. This monitoring is achieved using scripted user interactions with the website.  In theory, the scripted requests should be able to walk through multi-form pages to land at the payment page(s) so the fully retrieved page can be analysed.

I’ve had a quick look to see if I can find any synthetic user monitoring products that may be able to help with this requirement and, most of the products I’ve found seem to focus more on performance metrics.  The exception being (although there are probably others out there) a product by RapidSpike, which seems to include Magecart style detection.

Note: ASV Scanning is not designed to fulfil PCI DSS Requirement 11.6.1 as it is unable to perform the payment page analysis required to detect script/header changes.

Let’s now discuss the individual elements of PCI DSS Requirement 11.6.1 and how one could meet these individual requirement objectives:

  • The mechanism is configured to evaluate the received HTTP header and payment page.

The listed techniques included in the guidance highlights several commercial options which will all fully or partially meet this requirement.  This includes commercial tooling like the RapidSpike solution discussed earlier along with Cloudflare, and both JScrambler and Report-Uri (doesn’t appear to report on HTTP header modifications) which I’ll discuss later on.

The issues I’m having is around the use of CSP and SRI alone, which configured correctly can be used to evaluate JavaScript discrepancies, I’ve been unable to identify an inbuilt HTTP security feature that can detect CSP tampering and HTTP header evaluation. The only potential way to achieve this is to build a JavaScript component, protected by both CSP and SRI, that is able to evaluate the received header and compare this against what should be received and alert to any discrepancies.

  • To alert personnel to unauthorized modification to the HTTP headers and the contents of payment pages as received by the consumer browser.

The CSP directives; report-to and report-uri are used to report CSP violations which will flag JavaScript code that isn’t permitted to run, providing CSP is configured correctly.  I don’t believe this will help report HTTP header modifications or CSP changes, which as discussed above will require a programmatic technique through some JavaScript. These two directives will trigger reporting each time CSP issues are picked up within the customer browser.

For SRI, reporting of failures need to be programmatically written by capturing the error event.

External monitoring through synthetic user monitoring, embedded tamper resistant/detection scripts and CDNs will provide the ability to notify personnel of unauthorised modifications.

  • The mechanism functions are performed at least once every seven days or periodically

Although the requirement calls out for “at least once every seven days”, this is another example of where the PCI DSS Version 4.0 includes an option of a target risk analysis by including the “periodically” option. The recommendation would be to carry out this targeted risk analysis to identify what a suitable timeframe is for “periodically”.  Based on your targeted risk analysis, adjust the frequency of your change- and tamper-detection mechanisms accordingly, which may be less than every seven days, depending upon various factors, such as the transaction volume of the e-commerce site.

By implementing these measures, you can better ensure that your environment remains secure and compliant with the new PCI DSS Version 4.0 requirements. These hardening techniques greatly improve the client-side security of the application, so I would personally recommend implementing all measures.

Commercial Solutions

Although the above highlights some techniques organisations can leverage to meet these new PCI DSS v4.0 requirements, it will very much depend upon the complexities of the JavaScript dependencies used by the organisation. If an organisation leverages a lot of JavaScript code, and more importantly, many teams can be involved in commissioning new JavaScript functionality, it can be very difficult to manage.  These HTTP techniques can also be very easy to misconfigure, thus giving a false sense of security.  Third-party commercial (and free) tooling can be a huge help with the management of this.  In theory, these new requirements only apply to the “Payment Page”, so organisations can reduce their use of JavaScript functionality within these payment pages to make the management more simplistic, however often you will get push back from other teams, for example Marketing, who will insist that JavaScript is necessary in all pages, including the payment page.  In addition to this, why limit this to the payment page when often other potentially sensitive information is available within the website that is also at risk of these threats, therefore tooling will make it much simpler to implement these additional security features against the entire website, providing an additional layer of protection and mitigations.

JScrambler

One such third-party tooling is JScrambler that can quickly assist with JavaScript integrity monitoring, though there are open-source tools available which are potentially more technical to implement, as John Elliot describes in his video “Understanding the New PCI DSS Requirements to Prevent E-commerce Skimming Attacks” (a highly recommended watch).  Let us look at John’s explanation of JScrambler in greater detail:

  • Requirement 6.4.3 (Webpage Integrity) consists of four (4) main elements; Inventory, Authorised, Necessary and Integrity, which JScrambler covers.  Since JScrambler is loaded into the webpage, it can build an inventory of all JavaScript code within the page in real time.  Since an inventory is being built in real time, an organisation can record authorisation of scripts.  If a new script appears, JScrambler can be configured to allow the script to run for a configurable period before authorisation is required, or it can be configured to block the script until authorisation is recorded. Within the inventory, JScrambler includes the ability to record a business justification for each script.  Finally, integrity is covered by JScramblers ability to delve into the functionality of the script by analysing the functionality and behaviour of the script to determine if the script is doing anything that is questionable and can block the script if it determines that it is acting in a malicious way.
  • Requirement 11.6.1 (Detect Changes) again John discusses four (4) main elements; Page Content, HTTP Headers, 7 days or periodically and Alert.  The first two elements are covered in JScrambler through the JScramblers ‘Webpage Integrity’, page content changes and HTTP Header changes are detected in real time.  JScrambler is working on an update which will collate changes across the customer base to provide recommendations if script changes can be deemed as safe or not.  As an example, if JQuery provides an update to the script, which is seen across the customer base and an analysis of the functionality and behaviour doesn’t flag anything, JScrambler will be able to provide feedback on the change to suggest that it is probably safe to authorise. Since JScrambler is running within each webpage, this is ‘Realtime’ and therefore goes above and beyond the 7 days or periodically requirement of Requirement 11.6.1.  Finally, Alerting is built into JScrambler that can provide email alerts, shown within the JScrambler dashboard, and can be pushed into a SIEM solution. 

JScrambler can also identify and block malicious activity along with malicious access into form fields.

Report-Uri

Report-URI is another tool that provides protections against Magecart style attacks, allowing you to meet these new PCI DSS Version 4.0 requirements.  Report-URI’s ScriptWatch, is designed to monitor JavaScript dependencies in real time detecting new dependencies and changes in existing ones, providing alerts and auditing capabilities. What I like about Report-URI is an additional tool called, Data Watch, which tracks client-side communications and can provide alerts if data is sent to new destinations.

Wait! If these scripts are in scope, does this make the supplier a service provider?

This was an interesting question that someone posted on a LinkedIn post. The reason this was posted is because a service provider is not just a 3rd party entity that processes, transmits, or stores cardholder data on behalf of its customer, but is also an entity that can impact upon the security of cardholder data of its customer.  As we have discussed within this blog, JavaScripts can pose a security risk to the e-commerce payments, hence why this question was raised.

Although many organisations will utilise commercial JavaScripts within their e-commerce platforms, there are a lot of opensource JavaScripts that are used; for example, JQuery, Bootstrap, Angular, etc… where you would struggle to fulfil the PCI DSS service provider requirements.  I don’t believe the intention of the PCI SSC and Card Brands was to include the JavaScript developers into scope, these two PCI DSS Requirements were simply included to provide protection mechanisms to this specific threat vector.

My Ramblings

Overall, I think these additional requirements are a great addition to the PCI DSS, this attack vector has been an ongoing issue for many years, so it is great to see it being addressed.  Although there are techniques already built into the HTTP Protocol itself to deal with the technical elements of PCI DSS Requirement 6.4.3, PCI DSS Requirement 11.6.1 seems to still be a challenge. I have struggled to identify a way to leverage security features built into the HTTP Protocol itself to check for issues with both the headers and JavaScripts.  My only conclusion is that third-party commercial tooling must be used to allow you to meet the full intent of Requirement 11.6.1.

There are definite benefits in looking at commercial tooling to help manage the volumes of JavaScript code that can exist in large and complex e-commerce deployments.  The additional benefit of this is that it can be much easier to manage across the entire website, instead of limiting it to just the payment pages. At the end of the day, this attack vector can also be used to access other data, or to deploy other attacks and therefore organisations should be looking at this across the entire website.

Finally, I would love to see JavaScript functionality stripped back from the payment pages. Reducing your attack surface, greatly reduces the risk of a successful attack against this attack vector.

PCI DSS Version 4.0 SAQs – The Devil is within the Detail!

I must admit, I sometimes wonder what the point of the self-assessment questionnaire (SAQ) is, as I often question how thorough entities are with its completion. A lot of people within the industry will come across the term ‘tick-box exercise’, which isn’t limited to PCI DSS, and I bet a lot of PCI professionals have plenty of stories where they have come across entities either not understanding the SAQs or fully appreciating what the requirements intent is, and proceeded to simply ticking the boxes to satisfy their Acquirers requests. A simple Google search for ‘“tick box” PCI DSS’ pulls back many articles mentioning this mentality and culture.  I also often wonder what would be uncovered if Acquirers did spot checks of Merchants submitting SAQs, asking to review the evidence that was obtained or reviewed during the completion of the SAQ.

At this point, I think it is worth noting that there are entities out there that do want to do PCI DSS correctly and it’s refreshing to work with these entities, helping them to understand their environments and how the requirements align to their specific payment channels.  The company I work for also has some customers who insist on engaging with us to countersign their SAQ submissions, which requires us to physically review evidence in the completion of the SAQ.  One would hope that this ‘tick box’ culture is slowly shifting, especially as a day doesn’t seem to pass without some cyber-attack related news.

So, what has this to do with the SAQ Changes?

Let us start with looking at some of the detail within SAQ D for PCI DSS Version 3.2.1.  Each SAQ has an ‘Expected Testing’ column, as depicted below. 

At the beginning of each SAQ is guidance on how the self-assessment should be completed and what the various options are used for.  Within this guidance is also an ‘Expected Testing’ section which says:

“The instructions provided in the “Expected Testing” column are based on the testing procedures in the PCI DSS, and provide a high-level description of the types of testing activities that should be performed in order to verify that a requirement has been met. Full details of testing procedures for each requirement can be found in the PCI DSS.”

The PCI DSS Version 3.2.1 document itself, provides a ‘Testing Procedures’ column, providing much greater details on the expectations on what testing activities should be carried out, as depicted below.

Looking at Requirement 3.1 as an example, the expectation is that BEFORE a ‘Response’ is selected, the entity performs the testing procedures to a satisfactory level in order to provide enough assurance that the response option being selected is justified. 

Individual Responses

As you can see from the first screenshot from SAQ D for PCI DSS Version 3.2.1.  Requirement 3.1 has multiple individual checks, which require individual responses, i.e., Requirement 3.1.a, Requirement 3.1.b, etc…  Additionally, each check has specific ‘Expected Testing’ aligned to them.  Fast forward to PCI DSS Version 4.0 and a look at the corresponding requirement and the SAQ D looks quite different, as depicted below.

Yes, the format of the SAQ is similar in Version 4.0, and includes the ‘Expected Testing’ column, however with the introduction of the PCI DSS Version 4.0, the standard has gone through a streamline and simplification exercise, which is a good thing.  The flip side to these efforts is that some of these sub-requirement levels have been consolidated into a single requirement, covered off by bullet points instead of individual response actions.

Within the PCI DSS Version 4.0 document, the ‘Testing Procedures’ column has been changed to ‘Defined Approach Testing Procedures’ due to the introduction of the newly added customized approach testing option.  This column still has the same function, to define what tests should be carried out to determine the correct response selection.  This can be seen by this same requirement that we’ve been looking within the PCI DSS Version 4.0 document, as shown below.

Although it includes the wording “to include all elements specified in this requirement.”, and within the SAQ itself the PCI DSS Requirement text also includes “that include at least the following:”, I wonder if the testing will be as robust as with the individual response items that were included within the SAQs per PCI DSS Version 3.2.1? 

PCI DSS Version 4.0 SAQ D for Service Providers

This Service Provider SAQ has seen a couple of minor tweaks to ‘Section 1: Assessment Information’, however a brand-new section has been added; ‘Section 2a: Details about Reviewed Environment’, which goes into significantly more details about the payment environment asking for things like:

  • Network Diagrams
  • Storage details of Account Data
  • Storage details of Sensitive Account Data (SAD)
  • Details of in-scope system component types
  • Quarterly scan results

Furthermore, a colleague pointed something else out within SAQ D for Service Providers, which is a requirement for the entity to ‘Describe results as instructed in “Requirement Responses”’, as shown in the following screenshot.

This is moving service providers away from being able to simply tick boxes to meet the compliance requirements of the PCI DSS, which is likely to cause them headaches as they will now need to describe how they have validated each requirement can be marked as “In Place”.

Why Should I be Bothered if it is Done Correctly?

Contractually, by signing the Merchant Agreement, which is the contract entities sign when they sign up to an Acquirer to facilitate card payments, entities are agreeing to maintain a PCI DSS compliant payment environment but ultimately it boils down to business risk. Yes, entities can simply tick the boxes and submit the forms to the Acquirer to make it look like they are compliant, however, the financial risk and brand damage can be quite significant. PCI DSS is designed to mitigate the risk of a payment card data compromise and evolves based on the further evolving threat landscape and hacking techniques used by threat actors targeting these environments. By implementing PCI DSS correctly, entities WILL massively reduce (not remove) the chances of a successful attack and compromise. 

I wrote an article entitled “Update on PCI DSS Account Data Compromise Fines” back in 2019 discussing recent changes to Visa’s Account Data Compromise (ADC) fining structure.  Basically, it shifted so that significant data breaches, over € 100,000 in fines using a fixed fining structure, would trigger a 5% fine of the entities annual Visa turnover for the previous year.

Looking at the Marriott data breach disclosed in 2018 as many as 383 million guests were impacted, with costs reported in a CNN article “Marriott hasn’t paid the price for its massive data breach” from May 2019 as being as high as $72 million.  As the article shows, thankfully for the Marriott, adequate insurance policies were in place which were able to absorb the majority of this fine, however underwriters are looking more at an organisations cyber security maturity and compliance frameworks to determine the level of coverage and cost of insurance premiums. 

PCI DSS is becoming a must, where an entity is trying to underwrite a cardholder data environment.

Merchant Level 2 Trend

Something that myself and my work colleagues has noticed of late, is that Acquirers are asking for QSA (Qualified Security Assessor) involvement in Level 2 Merchants completion of the SAQs, often requiring a QSA’s countersigned signature. I do welcome this and not because it gives QSAs more work, but because there is additional assurance that SAQs are completed correctly. The approach that the company I work for (Claranet) follows is like performing a full onsite assessment. For our QSAs to countersign an assessment, they will need to review enough evidence for each applicable PCI DSS requirement to ensure it can be marked in place.  The significant difference between this and carrying out a full onsite Report on Compliance (ROC), is that the completion of a ROC Report itself takes much more effort and a considerable number of days above what is required in completing a SAQ.  For this reason, it is often cheaper to fulfil a QSA led SAQ due to the simpler end report that is required.

I do wonder what has prompted this trend that we are seeing?

My Ramblings

I must admit, I am a huge fan of the updates in PCI DSS Version 4.0.  Streamlining it does simplify the standard, especially for QSAs providing an onsite QSA led assessment.  As already mentioned though, I do wonder if it will have an impact on the quality of self-assessments that are carried out by entities.

As for the service provider SAQ changes, if I’m being honest, I’m not too sure of the point of the additional level of detail required within SAQ D for Service Providers.  It is highly unlikely that the full SAQ will be shared with customers with the Attestation of Compliance (AOC) being shared instead which doesn’t include any of this additional detail. I’m thinking there are two potential reasons this has been added:

  1. With the intention that services providers will complete the SAQ correctly and complete it as it is intended to be completed providing the additional information and thereby requiring a greater level of understanding of the standard, and;
  2. For after a compromise occurs so the PFI (PCI Forensic Investigation) can review the additional level of details.

As I said at the beginning of this post, I think Merchant agreements should be updated allowing Acquirers to perform spot checks of self-assessment Merchants whereby auditors can review the output of the self-assessment activities to ensure it was done correctly and to the correct level of detail.  I think trending this activity would make for a very interesting read……