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
Type
OS Version
Primary Role
Location
Total Population
Linux Ubuntu
OS Version 22.04
Radius Server
UK South
4
Linux Ubuntu
OS Version 22.04
Radius Server
UK West
2
Linux Ubuntu
OS Version 20.04.5
Radius Server
France Central
2
Linux Ubuntu
OS Version 22.04
Scanning Node
UK South
1
Linux Ubuntu
OS Version 22.04
Scanning Node
UK West
1
Linux Ubuntu
OS Version 22.04
Scanning Node
France Central
1
Linux Ubuntu
OS Version 24.04.1
Front End Web
UK South
5
Linux Ubuntu
OS Version 24.04.3
Front End Web
UK West
4
Linux Ubuntu
OS Version 24.04.1
Front End Web
France Central
2
Linux Ubuntu
OS Version 24.04.3
AppLogicControl
UK South
2
Linux Ubuntu
OS Version 24.04.3
AppLogicControl
UK West
2
Linux Ubuntu
OS Version 24.04.1
AppLogicControl
France Central
2
WatchgGuard Firewall
Firebox Cloud Large
Internet Firewall
UK South
2
WatchgGuard Firewall
Firebox Cloud Large
Internet Firewall
UK West
2
WatchgGuard Firewall
Firebox Cloud Medium
Internet Firewall
France Central
2
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 Population
Sample
2 or less
100%
6 or less
50%
10 or less
40%
25 or less
25%
50 or less
15%
100 or less
10%
More than 100
5%
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.
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:
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.
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.
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.
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:
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.
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.
SAQ
Rendering Options
SAQ A
This 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-EP
This SAQ is used where the e-commerce payment channel utilises the Direct Post or JavaScript rendering options.
SAQ D
This 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.
If you read the above blog, you would have notice that I discuss the potential legal issues surrounding this new “In Place with Remediation” response. The issue being that by using this response, it highlights that an entity, for discussion purposes think of a Service Provider, was at some point over the past 12 months, non-compliant. Depending upon the wording of service contracts, this could cause the entity to be in breach of the contract.
The implications of this meant that if an organisations contract stipulated something like; CompanyABC will maintain a PCI DSS compliant environment throughout the contract period, then this would clearly be in breach. Entities would need to update the wording of contracts in line with saying that they would conduct a PCI DSS assessment annual and obtain an up-to-date AOC on an annual basis to ensure that by falling foul of the “In Place with Remediation” it doesn’t cause any contractual issues.
At the recent PCI SSC (Security Standards Council) Community Meetings, the PCI SSC highlighted that this new response was being ditched, which has now been confirmed within the latest Assessor Newsletter October 2022. I for one am disappointed by this as I did believe that this would allow more visibility to the PCI SSC, Acquirers, Card Brands and Merchants demonstrating which entities are struggling to maintain PCI DSS Requirements between each annual assessment. In my opinion, it also very nicely aligned to one of the PCI SSCs goals of PCI DSS Version 4.0 to promote security as a continuous process.
By removing this response, this means that an entities remediation efforts during the PCI DSS assessment will not be visible. This eliminates the potential implications for any mutual contracts, especially if non compliance clauses were contained within them, from being impacted when sharing the entities annual PCI DSS Attestation of Compliance (AOC) document. Now with this response being shelved, present and future clients and partners will not have this visibility of remediation activities.
What is the solution for Merchants?
One possible solution I thought was to create an additional form for the QSA to complete and submit to the PCI SSC to track PCI DSS Requirements that are causing Merchant’s issues. The announcement from the PCI SSC looks to be going down this route by providing a separate worksheet as part of the assessor’s work product. This could align with the goal of promoting security as a continuous process if implemented correctly.
My opinion is that for Merchants, the worksheet could be incorporated into an appendix within the Merchant’s AOC document, Merchant’s do not have the same contractual issues that Service Providers are faced with therefore this shouldn’t cause any issues as I’m sure the worksheet would be shared with Acquirers and the Card Brands anyway.
How will this work for Service Providers?
The issue with Service Providers is, who do you send this to? My initial thought is that this could still work for Service Providers by allowing QSAs, to complete a similar summary form but as an anonymous submission. Service Providers would not want to submit this to their customer base, nor would they want it being submitted to the PCI SSC. An anonymous version could be submitted by the QSA so the PCI SSC can maintain statistics on PCI DSS Requirements that Service Providers are struggling with.
It could also be mandated by the Card Brands when Service Providers want to be included in any Card Brand service provider listing programs.
What about entities completing SAQs?
I’m going to be somewhat controversial here. You often come across two types of entities that complete the Self-Assessment Questionnaires (SAQs);
Entities that want to do it right and see PCI DSS as a way of them securing their cardholder data environments (CDEs), and
Entities that see it as a simple tick box exercise and don’t really take the process that seriously.
If you are in the industry, you’ll have probably come across that phrase “tick box exercise” not only in relation to PCI DSS but in relation to other security frameworks. Unfortunately, there are entities that still won’t fully embrace these frameworks for what they are, and that is to help the business secure and protect their information systems, data, businesses, and livelihoods. Unfortunately, entities that see PCI DSS as the latter, will not properly engage in filling out the summary form and therefore it will not be of any use.
I have come across the “tick box exercise” mentality during my extensive tenure in this industry, thankfully I have come across clients who do see PCI DSS for what it is, and some clients do request that we complete and countersign the SAQs for them because they want assurances that the assessment is done correctly and independently from the organisation.
A good example I can give for the “tick box exercise” mentality, which I do discuss with clients from time to time, springs to mind. We were once contacted by an entity who had suffered a breach. During the conversation (and almost one of the first things they said) they claimed to be PCI DSS Compliant against SAQ D. The conversation went something like:
Entity: We’ve identified that our e-commerce platform has been breached and we think cardholder data has been compromised. What do we do?
Me: You said you were PCI DSS Compliance against SAQ D, aligned with Requirement 12.10, what does your incident response plan state?
Entity: What does our what state?
Me: Erm……..
Ramblings
One thing that has always frustrated me with the onsite Report on Compliance (ROC) assessment process is where remediation activities are either required due to the entity not really taking their PCI DSS obligations seriously and therefore needing to go through the remediation process, or where the same remediation activities are required for the same PCI DSS Requirements each year. For the latter, this is where I believe a reporting mechanism back to the Acquirer for all Merchant ROCs should hopefully help to reduce the remediation required for these onsite assessments.
The “tick box exercise” is an interesting one. PCI DSS is fantastic for organisations that want to embrace what it is built for, even if organisations do not store, process, or transmit cardholder data (CHD) it is a great framework to follow to protect sensitive data, think the General Data Protection Regulation (GDPR). The issue is that some organisations simply see it as a simple form that needs to be completed and submitted back, without taking the time and effort into understanding what the expectations are on testing each requirement to conduct a proper assessment for each of the in-scope PCI DSS Requirements. What I would love is for the card brands, through the PCI SSC, to commission spot checks against organisations that complete SAQs. As per for QSA Companies (QSACs) that must store their assessment materials for three years, if all entities were forced to do the same, spot checks could be carried out whereby a PCI SAQ Enforcer (yes, that sounds cool) could perform spot checks of entities to see stored evidence that was used by the entity to provide the necessary response to each requirement. This would most definitely improve the quality of assessments that are carried out by the entities themselves. Just a thought!!!
New in PCI DSS V4.0 is the introduction of the “In Place with Remediation” response. Additionally, there have been a couple of notable changes, the “In Place with CCW” response within the ROC (Report on Compliance) has moved. Within SAQ D for Service Providers and Merchants along with within the ROC, a change to how to use the “Not Tested” response option. This blog post will discuss:
Refresher of the previous response options in PCI DSS Version 3.2.1
What is this new response?
Why was it introduced?
How will it be monitored?
Wait, the “In Place with CCW” response has moved?
How has the “Not Tested” response changed?
What is a ‘Partial Assessment’?
My Ramblings
Refresher of the previous response options in PCI DSS Version 3.2.1
As many of you will probably know, within the previous versions of the standard’s ROC (Report on Compliance) and SAQ (Self-Assessment Questionnaire) documents, you were required to provide a single response to each requirement. These were:
Response
Description
In Place
You, your QSA (Qualified Security Assessor) or your ISA (Internal Security Assessor) has carried out the expected testing and determined that the implementation of the requirement has been met, this response is selected. This option should also be selected if the requirement is in place through a service provider and by validating this via the service providers AOC (Attestation of Compliance).
In Place with CCW
You or your assessor has carried out the expected testing and reviewed and validated any Compensating Controls Worksheets (CCW) that have been implemented due to a business or technical constraint against some or everything in scope for the requirement. If the compensating control has been found to meet the intent of the requirement and the expected testing has found that the requirement has been met, this response is selected.
Not Applicable
This response is selected when you or your assessor has reviewed the requirement and, within the context of your CDE and in scope people, processed and technologies, have determined that the requirement does not apply.
Not Tested*
This response is selected when you or your assessor has not performed any review of the requirement and simply ignored it from the assessment activities. This would typically be used when the assessment is being carried out as directed by an Acquirer or Card Brand against a limited set of requirements or to validate against milestones within the PCI DSS Prioritised Approach.
Not in Place
As the response suggests, this is selected if after the expected testing has been carried out, the requirement has been determined to not be met.
* As with the ‘Not in Place’ response, entities cannot be found compliant in PCI DSS Version 3.2.1 and below, if the ‘Not Tested’ response is used.
Although within the most part, these haven’t drastically changed, this blog post will highlight some subtle and not so subtle differences in the PCI DSS V4.0.
What is this new response?
As the introduction says, there is a new response option in PCI DSS V4.0 called “In Place with Remediation”. This response is to be used if, during an assessment, a PCI DSS Requirement is found to be in place, but only after remedial activities have been carried out due to it not being found to be initially met during the assessment.
Why was it introduced?
I can think of two main reasons why this has been introduced. The first being that it gives the card brands and acquirers the opportunity to monitor where entities are continually struggling to maintain PCI DSS Requirements, and second, it allows an entity the ability to handle remediation of PCI DSS Requirements that require historic evidence, which was missed. For example, Quarterly ASV scanning, it is not possible to go back in time to fix a missing quarters ASV scan results so this new option now gives the entity a way to still maintain compliance.
The PCI SSC (Security Standards Council) has made it very clear in the PCI DSS V4.0 Global Symposium and the PCI DSS V4.0 Transitional training that, the use of CCWs to remediate requirements where historic evidence was missing has never been the intention.
In previous versions of the PCI DSS, there was no mechanism for handling requirements found to not be in place due to missing historic evidence, and entities were unable to remediate these issues because there is no mechanism of going back in time (at the time of writing). Therefore, the only two options available would be to leverage the CCW mechanism to assess remediation activities, root cause analysis and what the entity has done to ensure this doesn’t happen in the future, or to issue a failing assessment until a time when enough historic evidence is available to meet the specific requirement.
How will it be monitored?
The intention is that the receiving entities, i.e. acquirers and card brands, will be monitoring this. I am sure where there are re-occurring themes with the same entity, they will flag this going forward.
Not too sure how this will work with service providers though. In the AOC for SAQ D for Service Providers and the corresponding ROC AOC for Service Providers includes section ‘Part 2g. Summary of Assessment’ which is where the entity is supposed to record the requirement responses for each principal requirement. The question really is how service providers’ customers will handle this additional information within the AOC? This could have contractual consequences if contracts are written stating that the service provider must always maintain PCI DSS. If the “In Place with Remediation” is selected, then this highlights that there was a time where PCI DSS hasn’t been maintained by the service provider and therefore could have consequences. Service providers should review the wording of these contracts.
Wait, the “In Place with CCW” response has moved?
The structure of the ROC has changed quite a lot. Where in previous versions of the PCI DSS, the “In Place with CCW” was included as part of the assessment findings options for each requirement, this is no longer the case for the PCI DSS V4.0 ROC. The assessment findings option is included against each Requirement (and sub requirements), however only the following five options are available:
In Place
In Place with Remediation
Not Applicable
Not Tested
Not in Place
This must have been done because “In Place with CCW” doesn’t work if the ‘Customized Approach’ has been used as the implementation and validation method. Also, the use of a compensating control can be identified along with one of the five options identified above. This is a subtle difference but makes sense because a requirement found to not be met during an assessment can be fixed through a compensating control if it turns out that there is a business or technical constraint, however the assessment finding would also allow for the ‘In Place with Remediation’ response.
Under the ‘Defined Approach’ option for each requirement is a Yes/No question telling you to “Indicate whether a Compensating Control was used:” and a text box is provided underneath for further details if the answer is ‘Yes’. This is now how you would record if a compensating control has been used against the requirements within the ROC.
Note: It’s worth pointing out again here that the PCI SSC has made it clear that the use of a compensating control or the prioritized approach method should already be in place BEFORE an assessment takes place. They are not designed as a mechanism to remediated issues and instead the ‘In Place with Remediation’ still needs to be selected.
How has the “Not Tested” response changed?
The usage of the “Not Tested” response has not changed. As indicated at the beginning, this is used when an assessor has simply excluded a requirement from review. The assessor has not performed any validation tasks against the requirement and is unable to form any opinion with regards the state of the requirement within the entities in scope environment.
As discussed above, this may be used if the purpose of the assessment is to assess a subset of the PCI DSS Requirements, for example:
As instructed by an acquirer or card brand,
To validate an entity against a certain milestone against the PCI DSS Prioritised Approach,
Where an entity wants to validate that compliance is being maintained after a significant change to the environment impacting some but not all requirements,
Where a service provider offers services where a subset of the PCI DSS Requirements is in scope for its customers, i.e. a colocation hosting service provider where only physical security controls are in scope.
The fundamental change here is the last bullet point. As already stated above, in previous version of the PCI DSS where “Not Tested” had been used, the entity cannot have a passing assessment. This has now changed in the PCI DSS V4.0, where entities leveraging the “Not Tested” option can have a passing assessment, which will be classed as a ‘Partial Assessment’.
Note: If a service provider is leveraging the “Not Tested” options in PCI DSS V4.0, it is up to the service provider to define what is in scope for the assessment activities.
What is a ‘Partial Assessment’?
Where an entity has used the “Not Tested” response, only a passing partial assessment can be issued. Partial assessments can only be used for entities completing either SAQ D or completing a ROC.
Within the ROC, section ‘1.7 Overall Assessment Result’ provides the option to select if the ROC has undergone a full or partial assessment. Within the corresponding ROC AOC for both Merchants and Service Providers, this is recorded within ‘Section 3 Validation and Attestation Details’.
For SAQ D, the partial assessment is recorded within ‘Part 3. PCI DSS Validation’ under the ‘Section 3: Validation and Attestation Details’ section of the AOC for both Merchants and Services Providers and within this same section at the end of SAQ D, which includes the two pages from ‘Section 3: Validation and Attestation Details’ section of the AOC.
My Ramblings
I really like these changes, especially the “In Place with Remediation”. This holds the entity undergoing the assessment accountable where requirements are not being maintained during the year in between assessments. One of the PCI DSS V4.0 goals is to “Promote security as a continuous process”, which I believe this update will help achieve.
The one issues I have with this additional response is for self-assessment entities. Although this has all been included within the SAQs, I am not convinced that entities will use the “In Place with Remediation” option, even if remediation activities were required during the completion of their SAQs.
One of the most fundamental changes to PCI DSS V4.0 is the introduction of the “Customised Approach” for implementing and validating against the PCI DSS. This has been introduced to give entities the flexibility to implement innovative security controls that may not necessarily align to the prescribed implementation and validation security objectives defined within the standard. Within this blog post we look the following topics:
What is the ‘Defined Approach’?
What is the ‘Customized Approached’?
Do Compensating Controls still have their place?
PCI DSS Requirements without the customized approach option
Mix and match
Changing the approach during an assessment
My Ramblings
Note: Since I originally wrote this blog post and it was being reviewed, the PCI SSC (PCI Security Standards Council) produced a blog post on the 18th July 2022 entitled “PCI DSS V4.0: Compensating Controls vs Customized Approach” which has some overlaps and may be also worth a read.
What is the ‘Defined Approach’?
The defined approach is your traditional method of implementing and validating PCI DSS. Entities will implement security controls as per the PCI DSS requirements and assessors will validate adherence to the requirements as per the prescribed testing procedures.
Where entities are already PCI DSS compliant, these entities should continue to use this option, which is simpler for implementing and validating the PCI DSS requirements.
What is the ‘Customized Approach’?
As already highlighted above, this is a fundamental change to the PCI DSS, which is designed to allow entities to keep current with innovative industry techniques and technologies to defend against current, new, and emerging threats to payment environments. This is achieved by focusing on the objectives of each PCI DSS requirement and allowing entities the opportunity to implement defensive strategies designed to adequately mitigate the risks.
As defined within the standard, this approach is intended for risk-mature entities. The completion of this customized approach must be carried out by way of a robust risk analysis and management approach used to demonstrate how the implemented defensive strategies satisfactorily mitigate the risks imposed by the intent of the PCI DSS requirement.
It’s fair to say by using this approach, there is considerable effort required by the entity to complete a robust targeted risk analysis process to ensure the approach taken to meet the PCI DSS requirements intent is satisfactory. It is the entities responsibility to complete the ‘Controls Matrix Template’ within Appendix E of the PCI DSS V4.0 prior to the assessment, NOT THE QSA. In addition to this, there is much more effort in validating that the approach taken is satisfactory. Each customized approach taken against a requirement will need the assessor assessing the requirement to define bespoke testing procedures to validate it is in place and that it is meeting its desired intention.
Since SAQs (Self-Assessment Questionnaires) are built based upon the inherent risks of a prescribed payment channel type as determined by the payment brands and the PCI SSC SAQs do not support the use of the customized approach. If a SAQ entity wants to leverage this new approach, they must do so using a ROC (Report on Compliance), however these entities must speak to their acquirers or payment brands to determine if they are able to complete a ROC in order to use the customized approach and if they must use a QSA (Qualified Security Assessor) or can utilise an ISA (Internal Security Auditor), if the entity has one, for its completion.
This is not designed to be an easy option where entities want to try and circumvent the prescribed PCI DSS requirements. This approach will require considerable effort from the entity, assessing the targeted risk analysis and designing a suitable testing procedure to validate it meets the mitigation needs of the requirements intent.
Note: For self-assessment entities, this approach cannot be used unless the acquirer or payment brand permits the use of a ROC led by either a QSA or ISA.
Do Compensating Controls still have their place?
This is an interesting question since there were some opinions of whether a compensating control has its place within PCI DSS V4.0 with the introduction of the customized approach. The answer to that question is yes, absolutely.
In PCI DSS V4.0, the use case for compensating controls hasn’t changed. Compensating controls are to be used for requirements where the requirement cannot be met due to a legitimate and documented technical or business constraint. This is referring to when organisations are utilising the ‘Defined Approach’, where an entity cannot meet the prescribed requirement due to a technical or business constraint. Remember, as per previous compensating controls, the implemented security controls must meet the intent and rigor of the original PCI DSS requirement.
Compensating controls can only be used when the entity is using the defined approach for implementing and validating the PCI DSS Requirement.
PCI DSS Requirements without the customized approach option
It is worth pointing out that some of the PCI DSS Version 4.0 Requirements do not support the ‘Customized Approach,’ these are listed below:
Requirement 3.3.1 – SAD is not retained after authorization, even if encrypted. All sensitive authentication data received is rendered unrecoverable upon completion of the authorization process.
Requirement 3.3.2 – SAD that is stored electronically prior to completion of authorization is encrypted using strong cryptography.
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.
Appendix A2: Additional PCI DSS Requirements for Entities Using SSL/Early TLS for Card-Present POS POI Terminal Connections
“A targeted risk analysis is performed for each PCI DSS requirement that the entity meets with the customized approach, to include:
• Documented evidence detailing each element specified in Appendix D: Customized Approach (including, at a minimum, a controls matrix and risk analysis).
• Approval of documented evidence by senior management.
• Performance of the targeted analysis of risk at least once every 12 months.”
is not included within the requirement list that DO NOT support the customized approach. Not sure if this is an oversight but it seems a little strange that the PCI DSS requirement which requires the supporting documentation to be completed for the customized approach, can be made up of a customized approach.
Mix and match
With the ‘Compensating Control,’ there are three approaches available to entities to implement and validate the requirements in PCI DSS V4.0. Entities have the options to leverage any of these options when implementing and validating the standard. Entities can also leverage different approaches against a single requirement if this is needed based upon differences in the people, process, or technologies in scope for the requirement.
Changing the approach during an assessment
During the PCI SSC “PCI DSS v4.0 Global Symposium,” the council made it clear that the ‘Customized Approach’ and the ‘Compensating Controls’ are not designed to be implemented during an assessment period because of difficulties in validating compliance against the prescribed PCI DSS requirements.
The council also highlighted that in earlier PCI DSS versions, including PCI DSS V3.2.1, some QSAs would sometimes utilise the compensating control mechanism to mark requirements that would technically fail and could not be remediated during the assessment or a remediation period. A good example of this would be PCI DSS Requirement 11.2.1 (PCI DSS V3.2.1) for quarterly vulnerability scanning. If an entity has missed the second quarters vulnerability scanning, then it would not be possible to meet this requirement. Since, currently time travel is not possible, it would therefore be impossible to mark this as “In Place” for potentially 6 months until four quarter internal vulnerability scans are available for assessing. In this type of scenario, the only options are to issue a failing assessment, or as some QSA would do, accept a compensating control which would perform a root cause analysis into why the scan was missed and look at what remedial activities have been implemented to prevent this happening in the future.
A new mechanism has been introduced in PCI DSS Version 4.0 to handle these situations which I will talk about in an upcoming blog post, so please stay tuned!
My Ramblings
The introduction of the ‘Customized Approach’ in PCI DSS V4.0 aims to keep the PCI DSS current against new and emerging technologies, without the need to provide regular updates to the standard by giving entities more flexibility. The recommendation is to only utilise the customized approach when the standard approach and compensating controls are not fit for purpose based on the technologies and/or processes being utilised by the entity. These scenarios should be very few and far between. Overuse of the customized approach will put more of an overhead on the organisation in carrying out targeted risk analysis and will increase the cost of yearly assessments, due to the added workload on the assessors in reviewing the targeted risk analysis, designing suitable testing procedures, and performing the assessment process.
When the PCI SSC first started to discuss a risk-based approach to the standard, my initial thought was how this will impact the security posture of the payment environments. As with other industries, security professionals will have different views on risk and the measurement of risks, as will the entity which will also factor in the entities risk appetite, which again will vary between organisations. One professional may evaluate a risk as being HIGH, whilst another professional may evaluate it as being MEDIUM which is one of the drawbacks of performing risk assessments, especially through a qualitative approach. The expectation would be that the impact rating would always be HIGH, since it could potentially lead to a breach of Cardholder Data (CHD), however the effectiveness of security controls in reducing the likelihood is where there may be differences of opinion. After looking through the updated standard and the customized approach supporting documentation that must be completed within the appendixes, the PCI SSC and card brands have taken measures to try to mitigate this. That said, it will be interesting to trend over time how many CHD compromises occur where a failing PCI DSS Requirement has leveraged the customized approach. I still fear there will be different levels of assessments between QSAs which may end up reducing the overall security posture of environments that leverage this customized approach. This is going to be an interesting point to watch over the years.
This question has cropped up a few times recently so I thought I would cover this off here. This blog post will cover the following topics:
What are ASV (Approved Scanning Vendor) scans?
Which Self-Assessment Questionnaires (SAQs) require ASV scans?
The ASV Card Brand’s reporting requirement and SAQ paradox
What do I need to scan?
PCI DSS Version 4.0 SAQ Change
What are ASV (Approved Scanning Vendor) scans?
ASV scans are external vulnerability scans that are carried out by vendors who have been approved by the PCI SSC (PCI Security Standards Council) to carry out such scanning. The PCI DSS (Payment Card Industry Data Security Standard) includes requirements under Requirement 11.2.2 (PCI DSS Version 3.2.1) for an organisation to undertake external vulnerability scanning using ASVs. ASV scan solutions are put through a vigorous testing process before it is listed by the PCI SSC as an approved solution that can fulfil ASV Scanning to meet the PCI DSS 11.2.2 Requirements.
Which Self-Assessment Questionnaires (SAQs) require ASV scans?
Entities that must comply with the PCI DSS have differing reporting requirements, depending upon their Merchant or Service Provider Level. The level will determine if the organisation must undergo an onsite assessment by a QSA (Qualified Security Assessor), or if they can submit one or more Self-Assessment Questionnaires (SAQs). SAQs are completed by the Merchant organisation and either submitted to their Acquirer or one of the Card Brands, along with an accompanying AOC (Attestation of Compliance). Although Service Providers can complete a single SAQ type, they wouldn’t typically provide the SAQ itself to their customers, they would simply provide a corresponding AOC indicating they have completed the SAQ.
Apart from SAQ D, SAQs contain a subset of the PCI DSS requirements which are dependent upon specific criteria that must be met by the payment channel(s) used by the organisation.
SAQ Types
There are currently (PCI DSS Version 3.2.1) 9 different types of SAQ. The tables below show the various SAQs available to Merchants and Services Providers, a description of when the SAQ is used, what Payment Channels it applies to and whether or not it contains ASV requirements:
SAQ
Entity*
Description
Payment Channels
ASV Requirements?
SAQ A
M
SAQ A is used where the Merchant is not storing, processing or transmitting CHD as this is being handled by a PCI DSS Compliant Service Provider.
E-commerce and Card-not-Present Card-not-Present
NO
SAQ A-EP
M
SAQ A-EP, again is used where a Merchant is not storing, processing, or transmitting CHD as this is being handled by a PCI DSS Compliant Service Provider. This can only be used for e-commerce payment channels.
E-commerce
YES
SAQ B
M
SAQ B is used where the Merchant is utilising a POI/PED (Point of Interaction/Pin Entry Device) to take the payment.
Card-Present and Card-not-Present
NO
SAQ B-IP
M
SAQ B is used where the Merchant is utilising a POI/PED (Point of Interaction/Pin Entry Device) to take the payment.
Card-Present and Card-not-Present
YES
SAQ P2PE
M
SAQ Point-to-Point Encryption (P2PE) is used where the Merchant is utilising a PCI SSC listed P2PE solution’s supported POI/PED (Point of Interaction/Pin Entry Device) to take the payment.
Card-Present and Card-not-Present
NO
SAQ C
M
SAQ C is used where the Merchant is using a Payment Application (e.g. ePOS) that is connected to the Internet and do not store CHD.
Card-Present and Card-not-Present
YES
SAQ C-VT
M
SAQ C-VT is used where a Virtual Terminal (VT) is being used to take the payment with. The VT will be accessed by the Merchant where a member of staff will input the card details on behalf of the cardholder into a website.
Card-not-Present
NO
SAQ D
M
SAQ D is used by Merchants when none of the other SAQs fit.
All
YES
SAQ D for Service Providers
S
Service Providers must complete the SAQ D for Service Providers self-assessment questionnaire.
All
YES
* M = Merchant / S = Service Provider
For more information about PCI DSS SAQs, please visit the following previous blog post “SAQs Demystified”
The ASV Card Brand’s reporting requirement and SAQ paradox
As we have identified above, some of the SAQs that can be used to demonstrate compliance against the PCI DSS, do not include the ASV Requirements within 11.2.2. Therefore, some entities and QSAs (me included) will therefore take the lack of Requirement 11.2.2 to mean that ASV Scanning is not required for these particular SAQs. After all, it wouldn’t make sense where all card processing has been fully outsourced; i.e. a telephone payment channel being outsourced to a third party, that ASV scanning would be required for SAQ A. What exactly would you run the ASV against, after all, all card processing is handled by a third party?
Where there is a slight disconnect, is when you look at the Card Brand’s reporting or validation requirements. The reporting or validation requirements for Mastercard, American Express (Section 5 of the Data Security Operating Policy {DSOP}), JCB and Discover all require ASV scanning to be carried out. Visa also had the same reporting requirement; however, I’ve been unable to find the corresponding web page to confirm this.
Update 20th June 2022: Mastercard doesn’t have an ASV requirement that is independent of the relevant PCI DSS requirements. The exception to this is where an Account Data Compromise (ADC) has occurred, where Mastercard will want the ASV scans. This is detailed within the “Mastercard Security Rules and Procedures” document under section ‘2.2.6 Mandatory Compliance Requirements for Compromised Entities‘ from the February 2022 version. Visa may have followed a similar approach which is why I may be unable to find the corresponding weblinks.
If you are aligning to an SAQ that doesn’t include Requirement 11.2.2, what do you do?
When I asked this of the PCI SSC, the stock answer was to contact your Acquirer, unfortunately we’ve come across situations where the Acquirer defers this question back to the QSA (Qualified Security Assessor). My approach to this has been, if Requirement 11.2.2 is missing, then ASV scanning has been deemed by the Card Brands as not required for that particular type of payment channel since the SAQ hasn’t included it. Therefore, my advice is not to undertake ASV scanning where SAQs do not include the ASV requirements under Requirement 11.2.2. Although, it wouldn’t do any harm to include ASV scanning as additional security control.
What do I need to Scan?
This can be quite a complex question as it very much depends on the environment. Entities will often utilise segmentation techniques to isolate the payment environment, known as the Cardholder Data Environment (CDE), however this needs to be effective in performing this isolation. A lot of the smaller SAQs above, depend upon isolating the payment channel away from all other systems (IP connected devices) therefore this may be in place, otherwise entities will align to SAQ D and their CDE will most likely encompass their entire IT environment.
The scope of the environment doesn’t just include the CDE, which is the environment that stores, processes or transmits cardholder data (CHD) but also includes “connected to” systems, which are environments that have controlled access into (and potential out of) the CDE. For simplicity, I always include an “connected to” environments as the CDE.
This leads to the question at hand, entities need to scan ALL publicly accessible IP Addresses and URLs of the CDE, or unused routable IPs assigned to the CDE (i.e. Public IP addresses routable to the in scope internet link since a misconfiguration could add the IP address at a further date which may not be picked up by the ASV Scope).
What is important to understand is that it is not the job of the ASV Scanning company to define an entities scope, this is up to the scan customer who should consult a QSA (Qualified Security Assessor) if struggling.
PCI DSS Version 4.0 SAQ Change
With the introduction of PCI DSS Version 4.0, there have not only been changes to the PCI DSS itself, but also to the supporting SAQs. One change that impacts upon this blog post is the introduction of a requirement to carry out ASV scanning for e-commerce payment channels that meet SAQ A under Requirement 11.3.2, which also includes a requirement to carry out ASV Scanning after significant changes, which I covered in a Blog post entitled “Significant Change [Updated]”. As the threat landscape changes, SAQs evolve to meet the current tactics, techniques, and practices (TTPs) behaviours of threat actors.
SAQs are built based upon the risks faced by specific payment channels. PCI DSS requirements are selected to mitigate threats based upon these risks, to make sure the SAQs are proportionate to the risks being faced.