Some Common PCI DSS Misconceptions and Client Problem Areas

Throughout the many years of providing QSA (Qualified Security Assessor) services, I have come across many misconceptions and misunderstandings from clients trying to unravel the Payment Card Industry Data Security Standard (PCI DSS) for their organisation.  During onsite assessments, I’ve also regularly come across problem area’s that organisation often struggle with.  This blog post will discuss some of the most common misconceptions and problem areas faced with during my work as a QSA.

PCI DSS doesn’t apply to me as I don’t store cardholder data (CHD)

PCI DSS applies to any entity that stores, processes or transmits cardholder data (CHD) or can ‘impact upon an entities CHD’, where service providers are concerned.  Typically, any merchant that provides customers with the opportunity to pay for goods or services using a credit or debit card will have some form of PCI DSS obligation.  A merchant will most likely have a merchant (or several), often referred to as a MID, that has been issued by their acquiring bank, where the card or debit card funds are deposited.  As part of signing up for this Merchant ID (MID), the Merchant Contract will include a requirement for the merchant to be PCI DSS compliant.  Merchants with a MID who have outsourced the entire payment channel, will still be required to meet PCI DSS, however it will only likely be a single requirement; Requirement 12.8, which is responsible for managing the service providers used to facilitate the payments.  As the PCI DSS Version 3.2.1 says on page 7 “PCI DSS applies to all entities involved in payment card processing—including merchants, processors, acquirers, issuers, and service providers.  PCI DSS also applies to all other entities that store, process, or transmit cardholder data and/or sensitive authentication data.”

How much of the PCI DSS is in scope for a specific entity will depend upon how they take card payments within their organisations.

In 2015, the PCI SSC established the small merchant taskforce whose purpose was to develop resources and guidance aimed at smaller merchants.  The driving force behind this initiative was to help smaller merchants with this often-complex subject matter and to simplify the guidance.  Smaller merchants will often have simplistic payment channels so in August 2018, the small merchant taskforce released the PCI Data Security Essentials (DSE) designed to streamline the reporting of compliance by further simplifying the applicable PCI DSS requirements needed for specific types of payment channels.  The taskforce had already identified 15 payment types within the “Common Payment Systems” guidance, with 13 of these payment types aligning to one of the simplified PCI DSE Evaluation Forms.

PCI DSE is designed for small merchants with simple payment channels.  It is up to the acquirer and/or payment brands to determine if a merchant can align to one of these simplified PCI DSE Evaluation Forms.

Everything is encrypted therefore PCI DSS doesn’t apply

This doesn’t crop up as often as it used to; however, I still do get this off clients from time to time.  Unfortunately, simply encrypting CHD doesn’t necessarily de-scope it.  Under most circumstances, if encrypted CHD is stored, processed or transmitted it will still be in scope because often the decryption keys are held within the same environment as the encrypted CHD.

There are exceptions to this rule, which is dependent on where the decryption keys are stored and how the data is captured.  The PCI Security Standards Council (PCI SSC) released a standard in June 2013 called Point-to-Point Encryption.  The PCI P2PE standard is designed for the secure encryption of CHD at the point of capture, until it reaches a secure decryption environment.  If organisations are using a PCI SSC validated P2PE Solution, the network traffic isn’t in scope for PCI DSS, therefore the network used to support transmission for the Point-of-Interaction (POI) devices (aka PEDs/PDQs) traffic isn’t in scope.  In a P2PE environment, only the POI devices are in scope for assessment activities.  The reason for this is because the encryption is designed in a way that only the decryption environment can feasibly decrypt the data.

Another example is a third-party backup provider.  Typically, the provider will store encrypted backup sets; however, the provider will not have access to the decryption keys which will only be held by the client.  Because the provider cannot feasible decrypt the data, the CHD would not be in scope for the provider.  This is further discussed within the following PCI SSC Frequently Asked Questions articles; 1068 “How does encrypted cardholder data impact PCI DSS scope?” and 1233 “How does encrypted cardholder data impact PCI DSS scope for third-party service providers?“

Completing the wrong SAQs

During PCI DSS consultancy engagements, I often come across clients that are completing the incorrect SAQs (Self-Assessment Questionnaires).  This is sometimes due to an incorrectly identified SAQ through an Acquirers (or their support partners) online portal or due to a misunderstanding of the SAQs themselves.

Acquirer online portals will ask merchants a series of questions, designed to understand how the merchant takes card payments.  Unfortunately, if the merchant doesn’t quite understand one of the questions, or responds within an incorrect answer, the logic behind the questions will ultimately come to the wrong SAQ assignment.

Additionally, I also come across clients who have simply misunderstood what the SAQ is designed for.  Each SAQ, apart from SAQ D (for merchants and service providers), has eligibility criteria at the beginning within the “Before You Begin” section.  The eligibility criteria are a bullet point of statements that the merchant must confirm as being true before that SAQ can be used.  If the merchant cannot confirm one of the bullet points as being true, the SAQ cannot be used.

The following table lists the 9 different SAQs and what they are designed for:

SAQ TypeSAQ Description
SAQ ACard-not-present merchants (e-commerce or mail/telephone-order) that have fully outsourced all cardholder data functions to PCI DSS compliant third-party service providers, with no electronic storage, processing, or transmission of any cardholder data on the merchant’s systems or premises.
(Not applicable to face-to-face channels)
SAQ A-EPE-commerce merchants who outsource all payment processing to PCI DSS validated third parties, and who have a website(s) that doesn’t directly receive cardholder data but that can impact the security of the payment transaction. No electronic storage, processing, or transmission of any cardholder data on the merchant’s systems or premises.
(Applicable only to e-commerce channels)
SAQ BMerchants using only: Imprint machines with no electronic cardholder data storage; and/or Standalone, dial-out terminals with no electronic cardholder data storage.
(Not applicable to e-commerce channels)
SAQ B-IPMerchants using only standalone, PTS-approved payment terminals with an IP connection to the payment processor, with no electronic cardholder data storage.
(Not applicable to e-commerce channels)
SAQ C-VT Merchants who manually enter a single transaction at a time via a keyboard into an Internet-based virtual terminal solution that is provided and hosted by a PCI DSS validated third-party service provider.
(No electronic cardholder data storage)
SAQ CMerchants with payment application systems connected to the Internet, no electronic cardholder data storage.
(Not applicable to e-commerce channels)
SAQ P2PEMerchants using only hardware payment terminals that are included in and managed via a validated, PCI SSC-listed P2PE solution, with no electronic cardholder data storage. (Not applicable to e-commerce channels)
SAQ D (for Merchants)All other merchants not included in the descriptions for the above SAQ types.
SAQ D (for Service Providers)All service providers defined by a payment brand as eligible to complete a SAQ.

Although this list may make it clear what SAQ would be used for a specific payment channel, the eligibility criteria MUST still be checked.  As an example, SAQ B-IP lists one of the eligibility criteria’s as;

“The standalone IP-connected POI devices are not connected to any other systems within your environment (this can be achieved via network segmentation to isolate POI devices from other systems)1;”

Due to this eligibility criteria, SAQ B-IP must not be used where the POI devices are not on an isolated network and/or are integrated to a POS (point-of-sales) system, i.e. connected to the POS via a USB or Serial cable.

Note: There is a slight exception which is to do with SAQ B and it’s use with Point-of-Interaction (POI) devices that connect via a mobile network (i.e. GPRS/3G/4G).  If the POI devices are provided by the acquirer, it is common to find that the acquirer will permit this payment channel to align to SAQ B instead of SAQ B-IP which is what it should really align to since the transmission of CHD is still over IP based communications.

Incorrectly Completing the SAQs

Incorrect completion of SAQs is something that is highlighted either on the back of a compromise; when a merchant reaches a tier that requires an onsite QSA led assessment, or when a merchant decides to engage a QSA company for validation that they are doing things correctly.

There are several reasons why SAQs can be completed incorrectly.  These are;

  • As identified above, the wrong SAQ is being completed.
  • The scope of the assessment hasn’t accurately been identified, meaning system components are incorrectly excluded from the applicable PCI DSS requirements.
  • The requirements have not been properly assessed.  Often, clients will either see the SAQs as a simple formality that needs to be submitted, or the employee tasked to complete it doesn’t have the time available to give it the attention it needs.  When this happens, the requirements within the SAQ are just ticked as being in place without being assessed.  SAQs have an “Expected Testing” column which details what types of assessment activities need to be performed before being able to tick the “Yes” box; i.e. that it is found to be in place.  Examples of the types of assessment activities that is expected includes;
    • Review of policies and procedure documentation,
    • Examine vendor documentation,
    • Examine system configurations/settings,
    • Observer specific actions; e.g. an Administrator logging on,
    • Interview personnel.
  • The client incorrectly deems a requirement as “Not Applicable” for a specific payment channel, thereby not implementing required controls.

I am coming across more client engagements where the client wants a QSA to formally assess the client against specific SAQs to provide an external validation that PCI DSS is implemented appropriately.  The accompanying Attestation of Compliance (AOC) form provides space for a QSA to add narrative of what was completed by the assessor and if the assessor assisted in the completion of the SAQ assessment.  This provides more assurance to the acquirer that the SAQ(s) is(are) completed correctly.

Fulfilling POI Obligations

When performing PCI DSS assessments, I often find that clients fail within Requirement 9.9 which is concerned with the entities handling and security of the POI devices.  The types of issues that are often come across within this requirement includes;

  • Tamper and substitution training hasn’t been carried out for all staff operating or handling these devices.  This can occur if there is a high turnover of store/area managers so training records are not being kept current and processes are not robust enough to account for this,
  • POI device inventories are out of date.  This is often due to a lack of a robust process for updating the inventory when devices are replaced or moved,
  • The “periodic” tamper and substitution checks are not being performed.  Requirement ‘9.9.2 Periodically inspect device surfaces to detect tampering (for example, addition of card skimmers to devices), or substitution (for example, by checking the serial number or other device characteristics to verify it has not been swapped with a fraudulent device).’, requires that organisations perform these periodic checks.  The definition of periodic is open to interpretation and my advice is to perform a risk assessment to determine what a suitable frequency should be.  As an example, a POI device that is always with a member of staff and suitable secured when not in use may only need to be checked weekly, however a device that may be left unattended on a shop floor (physically secured) may be checked twice per day.  This type of activity causes issues for remediation activities because it isn’t possible to go back in time to completed missed tamper and substitution checks.  Failings here will often lead to a compensating control being put in place to pass an assessment. N.B. Some QSAs may fail the assessment until there are 12 months worth of records to support the requirement.

Maintaining Compliance

This is quite a large topic in itself and the PCI SSC released a guidance document called “Best Practices for Maintaining PCI DSS Compliance” in January 2019.  The key issues with maintaining compliance is that organisations miss some of the PCI DSS Compliance Program activities.  PCI DSS requires activities to be carried out daily, weekly, monthly, quarterly, biannual and annually, which can sometimes be forgotten about during the year following a completed assessment.  This causes issues during the annual assessment, because as discussed above, you are unable to go back in time to resolve these issues during remediation activities.  There are many reasons why this can happen; however, the most common reason is a lack of resourcing.  Often, it will not be the employees’ primary job to carry out these activities.  Ideally, maintaining compliance activities should be the core responsibility of an employee or team of employees.  These activities should be written into their job description to ensure that these tasks are still fulfilled if the employee leaves the organisation.

Another recommendation is that the organisation implements a PCI Board that meets on a monthly basis.  During this meeting, the PCI DSS Compliance Program activities should be tracked to ensure they are being carried out.  This meeting can also be used to discuss any new projects that may impact upon the cardholder data environment or the way payments are carried out.

Clients will often schedule regular engagements inline with these meetings so I am able to attend and assist with any specific PCI DSS concerns that are raised by these key stakeholders.

PCI SSC Online Skimming Blog Post

On the 1st August 2019, the PCI Security Standards Council (PCI SSC) released a new blog post called “The Threat of Online Skimming to Payment Security” and a PCI SSC bulletin “THE THREAT OF ONLINE SKIMMING TO PAYMENT SECURITY” discussing the emerging threat of online skimming.

There have been many high-profile e-commerce compromises, especially ones linked to the Magecart “Skimming” attacks discussed within the PCI SSC released blog/bulletin.  Some companies hit by this attack include; British Airways, Ticketmaster, OXO, Feedify and Newegg.

So, what is Magecart?

Magecart is a term being used to describe an attack involving the use of malware within a website that is used to skim cardholder information being submitted by the end-user.  The aim is to use the malware to skim end-users card details and any other personal information that can be used to facilitate online payments.  The malicious code could be added directly to the e-commerce site through a site compromise or can be included as part of a compromised third-party script that is loaded by the e-commerce site.  Often, third-party scripts are added to e-commerce sites to perform functionality such as; advertising, live chat functionality, web tracking functionality, etc.

Although Magecart is being used to describe this specific type of attack, Magecart is also a term given to the cybercriminal group responsible for these types of attacks.  According to the ‘Inside Magecart: Profiling the Groups Behind the Front Page Credit Card Breaches and the Criminal Underworld that Harbors Them’ joint research paper by RiskIQ and Flashpoint, this term is used to encompass at least seven cybercriminal groups using this technique of utilising card skimmers on compromised e-commerce sites.

The RiskIQ / Flashpoint paper identifies the first Magecart group emerging in 2015, however acknowledges that it may have been active since 2014 based on when domain names used by the group were created.

There are some key points for this type of attack;

  1. iframe and redirect payment techniques are less susceptible to this type of attack, if cardholders are using compliant web browsers.  This attack relies on the malicious JavaScript (JS) being able to interact with the payment information to skim this information during the payment journey.  Within an iframe, the ‘Same Origin Policy (SOP)’ ensure the JS cannot interact with the iframe, providing a compliant web browser is used by the cardholder.  For the JS to be able to manipulate iframe/redirect payment functionality, the payment journey would need to be manipulated to allow for the payment to still succeed. There is still a risk of compromise of CHD (Cardholder Data) from iframe and redirect payment functionality and therefore organisations may look to go above and beyond SAQ A as discussed in one of my previous posts “Why the PCI DSS Version 3.2.1 SAQ A update isn’t enough!”.
  2. Where a Direct Post, JavaScript or API payment technique is used to process the payment, entities should not remotely load any scripts into the payment page.  CSP (Content Security Policies) should be used to restrict this to protect from compromised third-party scripts or scripts hosted in less secure environments.  CSP can be used to also white-list trusted sources, however the recommendation would be to keep all scripts on the e-commerce site which can be validated by the entities staff before being uploaded to the site.
  3. FIM should be used to detect changes within the e-commerce source code to help identify the inclusion of malicious code.
  4. The PCI SSC released article suggests that where externally hosted third-party scripts are included within the e-commerce payment flow, these third-parties should be classed as PCI DSS Service Providers.  This does meet the “or can impact upon the cardholder data or CDE” caveat of a Service Provider (See Third-Party Service Providers) therefore this needs to be seriously considered by all organisations running e-commerce websites.  The only possible exception to this could be for iframe/redirect functionality as the use of third-party scripts shouldn’t have access to the contents of the iframe. It is however worth confirming this with the Acquirer or card brand since scripts loaded into the parent page could be feasibly used to alter the payment flow.

My Final Ramblings

A lot of the advice within the PCI SSC blog post should be implement as part of PCI DSS as these attacks would realistically only work (and be sustainable) against Direct Post, JavaScript and API e-commerce payment channels.  These types of channels will align against either SAQ A-EP (Self-Assessment Questionnaire) or SAQ D whose PCI DSS requirements cover the points within the PCI SSC Magecart Bulletin’s Detection and Prevention best practices sections.

Additionally, my previous post; “Hacking E-Commerce Payment Channels” discusses a lot of these points.

It is worth noting that iframe and redirect payment channels are deemed by the PCI SSC and Card Brands as lower risk thank the other e-commerce payment techniques, they still need to be adequately secured.  These e-commerce sites can still be compromised and modified to expose cardholder data.  For me, the main difference is that it is much harder to compromise the site and maintain the payment functionality. In 2016, Foregenix released an alert entitled “Major UK Payment Service Provider iFrame Man-In-The-Middle Breach” that demonstrated an attack which compromised an iframe deployment, whilst still being able to facilitate a payment proving that a determined attacker could feasibly maintain the payment functionality.

It is therefore important to consider security of iframe/redirect deployments as you would any other website within the organisation.  This is something I touch upon within the following blog article; “Why the PCI DSS Version 3.2.1 SAQ A update isn’t enough!”