When are ASV scans required?

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:

SAQEntity*DescriptionPayment ChannelsASV Requirements?
SAQ AMSAQ 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-PresentNO
SAQ A-EPMSAQ 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-commerceYES
SAQ BMSAQ 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-PresentNO
SAQ B-IPMSAQ 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-PresentYES
SAQ P2PEMSAQ 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-PresentNO
SAQ CMSAQ 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-PresentYES
SAQ C-VTMSAQ 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-PresentNO
SAQ DMSAQ D is used by Merchants when none of the other SAQs fit.AllYES
SAQ D for Service ProvidersSService Providers must complete the SAQ D for Service Providers self-assessment questionnaire.AllYES

* 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.

I discuss scoping in anther blog post entitled “My PCI DSS Scoping and Segmentation Methodology” which also discusses these “connected to” environments.

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.

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.

Hacking E-Commerce Payment Channels

If you didn’t know, I’m going to start writing a PCI DSS book so any thoughts on what content would be good to include are very much welcome.  Anyway, back to the blog content…

Card fraud is big business; which, according to the “UK Finance: Fraud the Facts 2018” totalled £566m in the UK in 2017.  Although this was an 8% decrease on the previous year, this is still a significant amount of money lost to fraud which equates to roughly 7p for every £100 spent.

Statistics within the “UK Finance: Fraud Facts 2018” publication show that the annual fraud costs against card-not-present channels is actually shrinking with fraud against remote purchases (card-not-present) decreasing by 5% in 2017 (£409.4m) compared to the fraud costs in 2016 (£432.3m).  Still, e-commerce fraud accounts for 76% of this total figure which is still a significant amount.  For every £100 spent on e-commerce sales in the UK, 9.3p can be attributed to fraud.  Although these statistics show the cost of fraudulent activities against card fraud, this is only showing how compromised cardholder data (CHD) is being monetised and not how the CHD is itself getting compromised.

Organisations of all sizes can suffer a data breach, for example: BlankMediaGames, British Airways, Facebook, Adidas, Cathay Pacific Airways, Ticketmaster and Marriot International (not an exhaustive list).  Although data breaches can occur via various attack vectors, this blog will focus discussions on e-commerce platforms and specific attacks around these types of platform.

Since the release of PCI DSS Version 3.0 there are three types of Self-Assessment Questionnaires (SAQs) which are designed to work with e-commerce payment channels.  These are;

    • SAQ A – This SAQ is designed for use where all payment functions are handled by a third-party, therefore this SAQ isn’t solely used for e-commerce.  Where it is used for e-commerce, it is used where the e-commerce site is utilising either a web redirect or iframe for the payment functionality.  All payment information is sent directly from the customers browser, directly to the payment gateway.
    • SAQ A-EP – This was a new SAQ introduced within PCI DSS Version 3.0.  This SAQ is used only for e-commerce payment channels.  Even though this payment channel sends all payment information directly from the customers browser, to the payment gateway, the difference is that the merchant website is responsible for creating the payment form.  Payment functionality aligned to this SAQ is often known as either Direct Post or JavaScript.
    • SAQ D – Yes, the largest SAQ is also applicable to some e-commerce payment channels.  E-commerce sites aligning to this SAQ will be accepting the payment information before routing it to the payment process for authorisation, typically through an API.

For more information on these different types of e-commerce channels see Visa Europe’s guidance document “Processing e-commerce payments”.

This blog post will look further into e-commerce platforms supporting one of the five payment functionalities identified above.  A lot of merchants are now going down the route of de-scoping the e-commerce channel by implementing a web redirect or iframe for payment functionality, since SAQ A has the smallest number of applicable requirements, of the seven Merchant SAQs available.  This is the recommended approach for e-commerce payment channels since it de-scopes an organisation from much of the burden of PCI DSS by reducing the size of the environment that needs assessing and the number of applicable requirements. However, where e-commerce is concerned, I believe this can also give organisations a false sense of security.  The ‘Compliance != Security” debate has been discussed on the Internet and amongst security professionals across the globe for many years. I believe this is very true.  Although an environment may be compliant against PCI DSS (or any other security framework), one needs to understand that PCI DSS is a baseline data security standard and organisations need to understand their organisations individual risks and enhance their security practices accordingly, to bolster the organisations overall security posture.  Although attackers and attacks are getting much more sophisticated, a lot of organisations are still getting compromised due to basic lapses in security that a lot of the compliance frameworks already address.

Attack Vectors

I wanted to write this post by first describing some of the possible attack vectors faced by web applications and then discuss some of the ways to mitigate them.  For this post, I’ve enlisted the help of the amazing @HollyGraceful (https://www.gracefulsecurity.com/) (A really big thank you Holly for agreeing to provide your expertise on this topic).  During my research on this blog post I came across the following Snyk article “Which of the OWASP Top 10 Caused the World’s Biggest Data Breaches?”, which has some interesting statistics of 2016 data breaches.  The article analysed the top 50, linking them to the Open Web Application Security Project (OWASP) Top 10 index of web application security vulnerabilities, where possible.  What’s interesting in this article is that of the 50 top security breaches reviewed, 30% of them were caused by problems not listed within the OWASP Top 10.

N.B. The OWASP Top 10 is updated roughly every three years as the top 10 moves around over time.  The Synk article was a review of data breaches in 2016, therefore the OWASP Top 10 analysis has been carried out from that period and thus used the Top 10 list from 2013 so the latest Top 10 list from 2017 differs, which I will highlight further down within the analysis for the current (2017) list.

The OWASP Foundation appeared in December 2001 with the intention of promoting application security by providing a platform to provide education and various resources to help developers improve coding practices.  Being a not-for-profit organisation, this international foundation aims to provide unbiased, practical and cost-effective advice for the development of secure applications.

Within the Akamai “State of the Internet / Security Q3 2017 Report” report, web application attacks showed an increase of 69% in Q3 2017 compared with Q3 2016.  The report also shows an increase of 30% between Q2 2017 and Q3 2017.

For this post, I’ve decided to focus on the web applications and supporting web servers.  I appreciate that in most security programs, additional security controls would be in place that could increase the security of an e-commerce site; such as, firewalls, anti-malware, web application firewalls, IDS/IPS, etc…; however, since I’m focusing mainly on the web application itself, I’m covering only the following categories that can lead to the successful compromise of e-commerce channels:

    • Build Issues,
    • Insecure Coding, and
    • Third-parties.

Build Issues

E-commerce platforms are susceptible to build issues if not correctly configured and maintained.  Typically, web servers will be running various software components which will need to be securely configured and hardened to protect against multiple types of threats.  Software components can include;

    • The operating system (OS); for example, Windows or Linux (with the explosion of Cloud services, some web services are utilising containerisation such as Docker.  Although this will run on an operating system, this will be maintained/managed by the cloud service provider),
    • A web server application; for example, Microsoft IIS, Apache, etc…,
    • A scripting language; for example, ASP, PHP, Python, Perl, etc…,
    • A database; for example, Microsoft SQL, MySQL, PostgreSQL, etc… (N.B. The database is usually installed on a separate server).

These are the core components of a web server; however, other software components can still exist to support other functionality or system administrative tasks.  A good example of other software components which are often found on websites and e-commerce sites are Content Management Systems (CMS); for example, Joomla, WordPress and Drupal (not an exhaustive list).  Also, other software components can include e-commerce shopping carts; for example, Magento.

It is good practice to ensure that systems only have one primary function (i.e. in this case, supporting the web/e-commerce site) which is a requirement of PCI DSS.  The reason for this is that these additional services/software components can introduce additional risks and vulnerabilities therefore increasing the attack surface.  The web server will only be as secure as the weakest link; i.e. the weakest software component running.

Web server build issues can be identified as:

    • unintentional misconfigurations of the operating system or applications/services running on them,
    • insecure configuration of the operating system or applications/services running on them, and
    • unpatched operating systems or applications/services running on them.

Build issues can lead to a full compromise of the web server allowing a threat actor to take control of the web server.  This would give the threat actor the ability to change the logic of the website therefore manipulating the payment functionality, amongst other possibilities.

In the Synk article, of the top 50 data breaches in 2016, the author identified that the top two root causes of the analysed breaches were related to insecure builds.

    • Ranked 1: 24% of Root Causes

The root cause ranked first was linked to the 2013 OWASP Top 10 classification “2013:A9-Using Components with Known Vulnerabilities”.  Arguably, some of the attack vectors of these known vulnerabilities could be linked to other OWASP Top 10 classifications (for example; SQL Injection) but since these issues were known and at the time of the breach a patch was available, these breaches have been classified under A9 for the Synk research.

Examples of root causes under A9 included; unpatched Drupal, outdated version of vBulletin forum software and unpatched Forumrunner plugin (SQL Injection Flaw).

    • Ranked 2: 20% of Root Causes

The root cause ranked second was linked to the 2013 OWASP Top 10 classification “2013:A5-Security Misconfiguration”.  Examples of root causes under A5 included; misconfiguration of AWS security features, database access to the Internet with no authentication and insecure MongoDB databases caused by insecure default configuration from older versions.

Insecure Coding

Insecure coding can introduce a myriad of vulnerabilities to the web application running on the web server.  Some of the more serious coding issues can provide the threat actor with full administrative control of the web server, therefore giving them the ability to change the logic of the website and manipulating the payment functionality, amongst other possibilities.  Some examples of coding issues can include;

    • Injection Flaws – Injection flaws are caused by the insecure handling of user input. Generally, where user input is insecurely concatenated into a context, such as a database query or operating system command. These can be addressed either through user input sanitisation or alternatively by altering the way the query is constructed, such as through parameterized queries for SQL.  There are many types of injection flaws; for example, SQL Injection (SQLi), Command Injection and XPath Injection (there are other types of injection attacks). However, SQLi is the most commonly exploited injection flaw.  This may be in part due to the availability of effective, reliable, automated attack tools.

By incorrectly handling user input, a system may not only unintentionally expose confidential data, but may also allow an attacker access to the underlying operating system itself.  N.B. There are several ways this can be achieved, such as through a lack of principle of least privilege, allowing for access to functions such as xp_cmdshell – which allows for the execution of operating system commands on the database server – or through allowing an attacker to modify web application code stored in the database allowing code execution on the web application server instead

    • Broken Authentication – This vulnerability class covers many issues, such as an application allowing for credentials stuffing, bruteforce attacks, or being configured with default credentials. It also includes issues such as using weak credential recovery features. Credential stuffing, the act of exploiting password reuse, can be a difficult vulnerability to address however in most cases simply enforcing multi-factor authentication will mitigate the business risk of a stolen credential. As for preventing weak credential recovery features a critical step in mitigating risks in this area is to validate the user through a side-channel, that is to say validate the user through a confirmation email containing a limited validity proof (e.g. a short-lived token)
    • Sensitive Data Exposure – covers any time confidential data is insufficiently protected when stored or transmitted, such as being sent in cleartext (HTTP or FTP) or stored using a weak encryption/hashing algorithm. To mitigate these issues multiple protections are recommended, such as using Transport Layer Security (TLS) when transmitting data over HTTP, but also implementing the HTTP Strict-Transport-Security header, to ensure that the web browser never falls back to HTTP.

Although there are many more examples of coding issues which could be included above (review PCI DSS Requirement 6.5 for more, which is still not an exhaustive list), I’ve chosen these three because they are responsible for the third, and joint fourth ranked root causes within the Synk article.  Root causes ranked third, and joint fourth were;

    • Ranked 3: 8% of Root Causes

The root cause ranked third was linked to the 2013 OWASP Top 10 classification “2013:A1- Injection” (Currently 2017:A1-Injection).  Out of the top 50 data breaches analysed within the Synk article, all the injection flaws were identified as SQL Injection, which were used to exfiltrate data from the affected system.  Data included user account information (some with unencrypted passwords) and patient data.

    • Ranked Joint 4: 6% (each) of Root Causes

The root causes ranked joint fourth were linked to the 2013 OWASP Top 10 classifications “2013:A2-Weak Authentication and Session Management” (Currently 2017:A2-Broken Authentication) and “2013:A6-Sensitive Data Exposure” (Currently 2017:A3-Sensitive Data Exposure).

The Synk article identified weak passwords, accidental access to decrypted data and easy access to sensitive data via known data, credentials or URLs as attacks for these identified root causes.

Third-parties

I wanted to include third-parties not only because it poses a real threat to organisations, but also because one of the attacks we’ll be looking at can be leveraged through a third-party.  It is not uncommon for a successful security incident to occur via a third-party; for example:

    • The Target breach in 2013 started through the compromise of a third-party; Fazio Mechanical a refrigeration contractor.  Further details of the Target breach can be found here  (More Details),
    • The NotPetya malware attack was actually carried via a malicious update in the compromised accounting software package, called M.E.Doc. Which is used by a significant number of companies in Ukraine.  This attack utilised the compromised third-party software, M.E.Doc, as one of the initial propagation methods. Another propagation method by the same malware was a watering hole attack, which saw Ukrainian government websites defaced to host the malware.
    • The compromise of the ICO website (and others) was carried out in 2018 via a website plug-in called Browsealoud by a company called Brit Biz Texthelp.  Attackers tampered with the plug-in, introducing the Coinhive’s Monero miner program which is used to mine cryptocurrencies on infected machines,
    • RiskIQ reported a theory  in the British Airways (BA) breach which they linked to a group called Magecart.  They suspect that the attack was carried out by somehow altering JavaScript code from BA’s baggage claim information page to include malicious code to steal information, and
    • The Ticketmaster data breach is reported to be by the same group who compromised BA, Magecart as reported by RiskIQ.  Although malicious code was used to steal credit card information, within this attack, the malicious code was contained within compromised third-party scripts; Inbenta and SociaPlus, which the Ticketmaster website was configured to load.

These are just a few examples of attacks where a compromise of a third-party has led to a security incident of one of their customers.  An organisations IT Security is only as strong as its weakest link, which can sometimes be an external entity that the organisation engages with.

The PCI DSS has Requirement 12.8 which includes 5 sub-requirements designed to ensure third-party service providers are adequately managed to maintain the security of the cardholder data environment (CDE) and the cardholder data (CHD).

Examples of Attacks Against the Various e-Commerce SAQ Types

The previous section discusses some of the attacks that web servers and web applications can be faced with in today’s threat landscape.  In this post I wanted to focus on just some of the types of attacks which e-commerce sites with payment functionality can be faced with.

@HollyGraceful has very kindly written most of this section to help organisations understand how attacks can work against the various SAQ types.  The next sub-sections will discuss these.

SAQ A – MEDIUM RISK

SAQ A is used for e-commerce sites utilising web redirects or iframe payment functionality with the risk being lower than the other two SAQ types. This is lower since client-side attacks are very limited since it is not possible (at the time of writing) to successfully attack the payment flow in a way to compromise the cardholder data AND successfully carry out the payment transaction.  Merchants should quickly identify an issue since payments will stop. Whilst it’s not impossible, it would require a server-side weakness such as cross-site request forgery to also be present to allow for this.

A more successful attack against this payment type is to compromise the web server controlling the web redirect/iframe mechanism and altering the payment pages in a way to successfully capture the cardholder before sending payment data to the payment gateway.  Foregenix wrote a blog post in 2016 discuss an actual attack that successfully managed to compromise an iframe payment deployment whilst still being able to successfully submit the payment.  This is often extremely difficult because the payment gateways will have robust security mechanisms and monitoring in place to make it difficult for a threat actor to successfully generate their own data submission to the payment gateway, after capturing the CHD.  In this Foregenix post, additional checks by the payment gateway could have protected against this specific attack. Therefore, for this reason, to harvest the CHD, the threat actor would usually just redirect the cardholder to their own website to capture the CHD and not actually complete the payment.  This would quickly be picked up by the Merchant as no payments would get through.

An example of an attack in this context, would be “keyjacking” this is an effective attack where the attacker can control the content of the framing page (the e-commerce page) but not the framed page (the payment page). This attack involves the attacker “redressing” the page, such that an overlay is placed in front of the payment page, allowing the attacker to capture mouse clicks and key presses such that card details, or typed credentials, could be stolen. However as stated earlier as the framing page captures the key presses, whilst it would functionality allow the attacker to capture details they would not then be sent to the payment system – increasing the likelihood of this attack being detected.

SAQ A-EP – HIGH RISK

As already described, with this payment mechanism, the merchant website is responsible for creating the payment form used to submit cardholder data to the payment gateway.  This is a much greater risk than for SAQ A because it is much easier for a threat actor to manipulate the payment flow to capture cardholder data and still successfully complete the payment.  Additionally, there is a greater risk from third-party scripts since these scripts can interact directly with the payment form to also capture cardholder data and still allow the payment to complete.

In this context an attacker would be able to perform a cross-site scripting style attack, which in execution would be similar to the previously mentioned keyjacking but in this instance the attacker would not only be able to capture key presses (and thus credentials or payment details) but would also be able to send these details on to the payment system to allow the payment to be completed – reducing the likelihood of fast detection, in comparison to the keyjacking method described above.

SAQ D – HIGH RISK

The threats for SAQ A-EP and SAQ D are pretty much the same, the most significant difference is that this will mainly be applicable where the web server is receiving the cardholder data directly before routing this to the payment gateway.  For this reason, there are potentially more PCI DSS requirements in scope; such as Requirement 3 if cardholder data is being stored.

Where payment information is stored, instead of simply submitting the details to a payment provider, this opens up additional vulnerabilities such as those covered earlier; mainly A1-Injection and A3-Sensitive Data Exposure. Where cardholder data is stored, and an attacker is able to extract data form the database where that data is insecurely protected in storage (such as through weak encryption or weak hashing) the attacker could simply extract and steal the data – mitigating the attacker’s requirement to ensure the payment is completed.

Mitigations

There are various ways in which PCI DSS mitigates the types of attacks identified above.  These have been categorised under the three attack vector categories identified earlier;

Build Issues

PCI DSS Requirement 2 includes sub-requirements to ensure systems are hardened before being deployed within the PCI DSS environment.  The types of requirements included within PCI DSS Requirement 2 includes;

    • Changing vendor-supplied defaults and removing or disabling unnecessary default accounts,
    • Changing ALL vendor defaults for wireless environments connected to the cardholder data environment,
    • Develop configuration standards ensuring they address all known security vulnerabilities, in-line with industry-accepted system hardening standards (from organisations such as; but not limited to, Center for Internet Security (CIS), International Organization for Standardization (ISO), SysAdmin Audit Network Security (SANS) Institute and National Institute of Standards Technology (NIST),
    • Implement on one primary function per server,
    • Restricting services, protocols, daemons to that which is necessary for the operation of the system component,
    • Implement additional security features for services, protocols, daemons that are considered to be insecure,
    • Configure system security parameters to prevent misuse,
    • Remove all unnecessary functionality; such as, scripts, drivers, features, subsystems, file systems, and unnecessary web servers,
    • Encrypt all non-console administrative access using strong cryptography.

Requirement 6 has two requirements focusing on;

    • Establishing a process to identify vulnerabilities, using reputable outside sources for security vulnerability information and assigning a risk ranking methodology to newly discovered security vulnerabilities,
    • Ensuring that all systems and software are protected from known vulnerabilities by installed applicable vendor supplied security patches.  Critical security patches must be installed within one month of release.

Requirements 7 and 8 cover authentication and can arguably be included within this section.  These requirements ensure things like;

    • Limit access to systems and cardholder data to individuals who require access,
    • Implement the principle of least privileges for privileged accounts,
    • Unique user accounts are assigned,
    • Revoke access for any terminated users,
    • Monitor inactive accounts and remove/disable them within 90days,
    • Only enable third-party accounts when in use and monitor them when being used,
    • Strong password policies; i.e. lock out failed logins after more than 6 attempts, configure a lockout duration for a minimum of 30mins, minimum of 7 characters, must contain numeric and alphabetic characters, passwords must be changed at least every 90days, remember the past 4 previously used passwords,
    • Ensure sessions idle for more than 15 minutes require the user to re-authenticate/re-activate their terminal/session,
    • Use strong cryptography on credentials that are transmitted or stored,
    • MFA used for all non-console access and all remote access to the CDE,
    • Do not use group, shared or generic IDs, passwords, or other authentication methods,
    • Restrict access to databases containing CHD.

Secure Coding

Requirement 6 covers secure coding practices designed to limit organisation developing applications which are insecure.  Controls covered by Requirement 6 include;

    • Develop secure coding guidelines based in industry standards for example, the OWASP Software Assurance Maturity Model (OWASP SAMM),
    • Internal and external software applications need to be developed;
      • in accordance with PCI DSS; for example, secure authentication requirements (i.e. passwords are a minimum of 7 characters, lockout after 6 invalid logon attempts, etc…) and logging requirements in Requirement 10,
      • Based on industry standards and/or best practices, and
      • Incorporate security throughout the software-development lifecycle.
    • Remove development, test and/or customer application accounts, user IDs and password before release,
    • Review custom code changes prior to release to identify potential coding vulnerabilities to include at least the following;
      • Code changes are reviewed by individuals other than the originating code author who are knowledgeable about code-review techniques and secure coding practices,
      • Code reviews ensure code is developed according to secure coding guidelines,
      • Implement appropriate connections prior to release,
      • Code-review results are reviewed and approved by management prior to release,
    • Address common coding vulnerabilities in software development processes by;
      • Training developers in up-to-date secure coding techniques at least annually (for example; Injection flaws, buffer overflows, insecure cryptographic storage, XSS, etc…),
      • Develop applications based on secure coding guidelines,

In addition to these specific PCI DSS requirements for secure software development practices, the PCI Security Standards Council (PCI SSC) have recently released the Software Security Standard (PCI SSC Press Release) which is aimed at software vendors to drive the development of secure solutions.  This will replace the Payment Application Data Security Standard (PA-DSS) in 2022.

Third-Parties

Third-parties can present a significant threat.  Security is only as strong as the weakest link, which can be third-parties which can impact upon the security of the organisations IT environment/systems.  PCI DSS includes requirements covering the handling of third-party service providers within Requirement 12.8’s 5 sub requirements.  These sub requirements include requirements to;

    • Document all service providers, including a description of the service provider,
    • Maintain a written agreement with the service provider that includes an acknowledgement that the service provider will maintain a PCI DSS compliant environment,
    • Establish a process for engaging service providers including proper due diligence prior to the engagement,
    • Maintain a program to monitor service providers’ PCI DSS compliance status at least annually,
    • Maintain information (Roles and Responsibilities Matrix) detail which requirements are the responsibility of the Merchant, Service Provider or Joint responsibilities.

To fulfil PCI DSS Requirement 12.8, most organisations will develop a procurement process which is focused around PCI DSS, however, my recommendation is to build in additional due diligence; for example, financial, IT Security, etc…  This will ensure a robust third-party assurance program is implemented and should include not only proper due diligence, but also include risk analysis as part of this process.

The PCI SSC released a “Third Party Security Assurance” guidance document intends to provide organisation with guidance on how a third parties should be vetted through a robust due diligence process.

Although not directly a PCI DSS requirement as such, I would also go as far to say it would be best to stay clear of including third-party scripts within the payment functionality of the website.

Additional Protections

The sub sections above focused on the three categories being discussed throughout this post.  Within this section I wanted to just draw the reader’s attention to some additional protections which can also help bolster what has been discussed.

Anti-Malware: Although traditional signature-based approaches no longer deem to be sufficient protection against the evolution of malware over the past decade, anti-malware protection can help to identify some of the malware that is used whilst exploiting specific vulnerabilities.  Some anti-malware products also include host-based intrusion prevention which can further bolster protections against malware infections.

Web Application Firewalls: Deploying a well-tuned WAF can help to protect e-commerce sites against vulnerabilities that may existing within the e-commerce site.  By detecting common techniques used by threat actors to exploit coding vulnerabilities such as; Injection, Cross-site Scripting, XML External Entity Injection, and deserialisation attacks, even if the e-commerce site is vulnerable, the WAF would stop the attack before reaching the e-commerce site.

File Integrity Monitoring: Often, when attacks against e-commerce websites are successful, the web servers file system is altered by either modification of system or application files, the deletion of files or the addition of files.  By running FIM on the web server, the system administrators to be alerted to alterations and determine if these changes are the result of a malicious threat actor or internally.

More Regular Vulnerability Scanning: By running both infrastructure and web application vulnerability scans of the e-commerce external footprint, vulnerabilities can be identified and remediated.  By running these tools more regular, the window of opportunity of a threat actor is reduced.  By reducing the length of time, the vulnerability exists, the risk of the vulnerability being exploited is reduced.

Continuous Penetration Testing: This is something that is relatively new to the market.  The idea behind continuous penetration testing, is to reduce the mean-time-to-detection by having a security tester conducted continuous vulnerability scanning and penetration testing activities against the system. The mean-time-to-detection is the amount of time it takes for an organisation to detect a newly implemented security vulnerability.

Keyjacking and XSS Mitigations

For the specific issues mentioned in the SAQ section we discussed keyjacking and cross-site scripting, from the context of the framing page, can be prevented in two ways – the first is rigorous user input filtering utilising a whitelisting approach.

Whitelisting is a user input filtering method where only known-good input is allowed, as opposed to relying on being able to create a maintain a list of all known-bad input as would be required to have effective blacklisting. This can be achieved by restricting the type of data, length of input, and expected character-set.

There is an issue here however, with trusting third-party code, such as including JavaScript within a web application which is sourced directly from a third-party. A possible alternative would be to review included code and then store/reference it from within the web application server itself.

My Final Ramblings

In this post I wanted to highlight the dangers with hosting e-commerce platforms.  The PCI SSC and Card Brands do a fantastic job of taking a risk-based approach to the various techniques used by organisations to capture and process card payments.  This is reflected within the various SAQs and eligibility criteria within them which considers the risks associated with the payment channels, translating this into which requirements are needed.

That said, although the SAQ A payment integration for e-commerce platforms is less risky than the other methods, I still believe SAQ A doesn’t go far enough by means of the number of requirements that are included. This is something I’ve spoken about in another article here.  Although for PCI DSS Compliance purposes you are required to meet what’s detailed within the appropriate SAQ, there is nothing wrong with going above and beyond what PCI DSS requires for your chosen payment integration.

One of the key messages that I wanted this article to deliver is that e-commerce platforms are at risk from a myriad of threats.  The impact of these threats may depend upon the payment integration used, however, with creativity on the threat actors’ part, each payment integration option can be fruitful.

My initial driver for this post was the BA, ICO and Ticketmaster compromises highlighted above.  Third-party scripts running within e-commerce sites, can pose a real danger.  The impact is very much dependent upon the payment integration used, however organisations need to be careful when these scripts are being used.  The recommendation is to limit the usage of these third-party scripts within the payment functionality of the websites.  Content Security Policy (CSP) can be used to help achieve this goal.  CSP works in this scenario because you can utilise the CSP directive to control the loading behaviour for a target resource type.  You can instruct the client browser from which location and/or which type of resources can be loaded.  The recommendation would be to limit loading any third-party scripts from any pages which are involved within the payment functionality, unless it is directly supporting this function (i.e. from the payment service provider).

Both Troy Hunt and John Elliott have produced an excellent video on Pluralsight on ‘Defending against JavaScript keylogger attacks on payment card information’ {Note: At the time of writing you could get a 10-day trial, however you do need to submit payment options and cancel}.

Troy Hunt is an out spoken Australian security expert and advocate for web security.  A well-respected researcher and public speaker, Troy works tirelessly promoting the importance of secure web application development and attaining a better web application security posture through public speaking, blogs and training materials.  A Pluralsight author, Troy has developed more than 30 courses (at time of writing) covering various topics and technologies.  A key project Troy has been involved in is the ‘Have I Been Pwned’ (HIBP) website which is a free service aggregating publicly released data breach data allowing people to identify if they’ve been impacted by such breaches. 

John Elliot is a well-respected InfoSec professional within cybersecurity, payments and privacy.  A regular public speaker, John demonstrates his passion for cyber security, PCI DSS and GDPR by delivering engaging topics at various conferences and authoring training courses for Pluralsight.  Within his previous role of Head of Payment System Security at Visa Europe, John has a vast amount of knowledge and experience of PCI DSS and payment security and was Visa Europe’s representative on the PCI Security Standards Council.

Part 2f of the AOC and SAQ and Acquirer Applicability

I wanted to the take this opportunity to discuss PCI DSS service providers in relation to section Part 2f of the Attestation of Compliance (AOC) and the Self-Assessment Questionnaire (SAQ).  This post will discuss exactly what types of services providers should be included within this section (my interpretation) and how to determine if the acquirer should be included here or not.  This also links to PCI DSS Requirement 12.8 and all its sub requirements.  I’ll discuss;

    • Very briefly what constitutes a service provider,
    • Wording within Part 2f of the AOC and SAQ and why, in my opinion, this is badly worded, and
    • The inclusion of an acquirer within Part 2f or Requirement 12.8 and it’s sub requirements.

What Constitutes a Service Provider?

I’ve already wrote about this very topic here which goes into a lot of detail.  I don’t want to re-cover this, however to summaries that post, any third-party company that stores, processes or transmits cardholder data (CHD) on behalf of another entity is classed as a service provider for PCI DSS.  In addition to this, third-party companies that can impact upon the security of the cardholder data or the cardholder data environment (CDE) of another entity is also classed as a service provider.  This last bit can often get missed from PCI DSS assessment activities.  The official definition of a Service Provider by the PCI Security Standards Council (PCI SSC) is;

“Business entity that is not a payment brand, directly involved in the processing, storage, or transmission of cardholder data on behalf of another entity. This also includes companies that provide services that control or could impact the security of cardholder data. Examples include managed service providers that provide managed firewalls, IDS and other services as well as hosting providers and other entities. If an entity provides a service that involves only the provision of public network access—such as a telecommunications company providing just the communication link—the entity would not be considered a service provider for that service (although they may be considered a service provider for other services).”

taken from the PCI DSS Glossary of Terms, Abbreviations, and Acronyms.

The reason I have mentioned this here is that often third-parties can be treated as a service provider even though they are not directly handling or coming into contact with CHD.  A typical example here can be a hosting company of an e-commerce site which aligns to SAQ A (i.e. iFrame or redirect payment mechanism).  If the hosting company is responsible for the install/management and maintenance of the webserver, then they will be in scope for various requirements under SAQ A, therefore bringing them in scope as a service provider.  This can extend to other types of companies as discussed in my article above.

Wording of Part 2f

I have pondered the applicability of listing third-party service providers (TPSP) that can only impact upon the security of the CHD/CDE within this section of the AOC and SAQ in the past.  The reason for this is the wording within this section which includes the following question “Does your company share cardholder data with any third-party service providers (for example, Qualified Integrator & Resellers (QIR), gateways, payment processors, payment service providers (PSP), web-hosting companies, airline booking agents, loyalty program agents, etc.)?”.

This question is only asking about TPSP with which you share cardholder data with.  It doesn’t mention anything about TPSPs that can impact upon the security of the CHD/CDE and for this reason, these TPSPs often don’t get listed here.  This often causes confusion and can then be argued as to the “interpretation” of this section.  I include all TPSPs that can impact upon the security of the CHD/CDE within this section for several reasons;

    • The AOCs however, do include a note at the bottom of the Service Provider table saying “Note: Requirement 12.8 applies to all entities in this list.”  This is also consistent with the SAQs, which also include this note.  As we have discussed above, all TPSPs that store, process, transmit or can impact upon the security of the CHD/CDE need to be included within scope and therefore within Requirement 12.8.
    • The wording within the relevant section of the ROC is different, which does acknowledge TPSPs that can impact upon the security of the CHD/CDE.  Section “4.7 Service providers and other third parties with which the entity shares cardholder data or that could affect the security of cardholder data”.  This section within the ROC also includes the additional note saying “Note: Requirement 12.8 applies to all entities in this list.”.  Therefore, it is clear from this that the intent is to include all TPSPs that are assessed as part of Requirement 12.8, which doesn’t just include those third-parties which store, process or transmit cardholder data but also those that can affect the security of the CHD/CDE.
    • Finally, when producing a ROC, the QSA will provide a detailed commentary when completing Requirement 12.8.  When writing this commentary, the QSA will likely detail the service providers being used within section 4.7 detailed above.  Service providers will not usually provide ROCs to clients due to the sensitive nature of its contents, therefore the AOC is used to provide assurance that the assessment has been completed and provides some general details of what was assessed and the outcome.  It is therefore important to include a list of all TPSPs that were included as part of the assessment activities within Part 2f of the AOC.  As already detailed, and by the inclusion of the note within this section “Note: Requirement 12.8 applies to all entities in this list.”, all TPSPs that store, process, transmit or can impact upon the security of CHD/CDE need to be included within this section since all TPSPs will be included within Requirement 12.8 as they will have to be assessed as part of the PCI DSS assessment activities.
N.B. Some service providers will also want to redact elements of the AOC, where they deem it to contain sensitive information.  The PCI SSC has provided an FAQ article; FAQ 1354 entitled “Can the AOC be redacted to protect sensitive information?” which discusses this very topic.   Although this is deemed ok by the PCI SSC, I would recommend that the level of redaction doesn’t make it too difficult for a QSA, merchant, service provider, acquirer or payment brand to confirm that the assessment activities were carried out against the services being provided.  If this assurance cannot be gained from reviewing the redacted AOC, this will cause additional questions to be raised by these parties trying to ascertain if the services provided are actually covered by the assessment.

Is an Acquirer classed as a Service Provider?

I can understand how this can get a little grey and open to interpretation.  The PCI SSC released an FAQ article; FAQ 1284 “Are Acquirers Considered Service Providers for the Purpose of PCI DSS Requirements 12.8 and 12.9” in July 2014 discussing this very topic.  The FAQ starts by re-iterating what a service provider is; although failing to include the very point we have discussed above, but we can forgive that since this FAQ was written in 2014.

“Service providers include business entities that are not a payment brand, directly involved in the processing, storage, or transmission of cardholder data on behalf of another entity. This includes organizations providing acquiring services – for example, payment gateways, PSPs, ISOs etc.”

For me, the key paragraph from this FAQ is as follows;

“However, an entity that acquires a merchant’s payment transactions and is defined by a payment brand to be an acquirer is not considered a service provider for that particular merchant’s PCI DSS compliance for the purpose of Requirements 12.8.”

This is pointing out that acquirers that only “acquire” a merchant’s payment transaction is not considered a service provider.  To explain this further, if the Acquirer is providing the Merchant account only then the Acquirer does not fall under a service provider bracket.  Remember, although the acquirer is providing the MID (Merchant ID), this doesn’t mean that the merchant has to utilise them for other services to facilitate card payments; e.g. payment gateways, etc…  I regularly come across clients who will utilise a third-party payment gateway linking to multiple Acquirers. 

The next part of the FAQ states;

“If the acquirer provides other services to the merchant, for example management of the merchant’s payment terminals, then the merchant and acquirer should work together to understand which party is responsible for managing the applicable PCI DSS requirements for the services provided.”

Where a merchant is utilising additional service offerings from the acquirer then the Acquirer is classed as a service provider.  A good example would be, Barclaycard’s ePDQ or SmartPay payment gateway services.  These services are above and beyond providing a merchant account to the entity and would therefore need to be covered under Requirements 12.8 and 12.9 and also within Part 2f and Section 4.7 of the ROC.

The FAQ finishes with the following paragraph;

“Whether acquirers are required to validate PCI DSS compliance, including Requirement 12.9, is determined by the individual payment brands.”

Ultimately, it is up to the individual payment brands, however I would go one step further and say that it is also up to the acquirer.  The acquirer will determine a merchants PCI DSS reporting requirements since they are managing the risk.  When in doubt, speak with your acquirer, however get everything in writing if what you are being asked doesn’t quite follow the standard PCI DSS/PCI SSC guidelines.

My Final Ramblings

I’ve written a few blog posts now on service providers and I still run into problems.  Most of the problems are related to service providers that “can impact upon the security of the CHD/CDE” because these entities strongly believe they are not in scope for PCI DSS assessment activities; especially where SAQ A is concerned.  For SAQ A TPSPs I can understand how this may still cause friction.  When the SAQ e-commerce changes came out in PCI DSS Version 3.0, web servers and therefore TPSPs managing/maintaining web servers were not in scope; however, through the evolution of the SAQs, the shift in attacks to e-commerce channels and the results of forensic investigations on compromises of iFrame and redirect payment mechanisms, the PCI SSC has added more requirements, which now relate to the web server (as of PCI DSS Version 3.2) therefore bringing these TPSPs in scope for their clients’ (merchants) PCI DSS assessment activities. I sometimes struggle to understand the push back by these TPSPs.  The security controls within PCI DSS can be seen as baseline security which should be best practice for most organisations.  If TPSPs are following good security practices, then attaining PCI DSS shouldn’t be too problematic, especially for organisations aligning to SAQ A.  Although TPSPs can only complete SAQ D for Service Providers or a ROC (if handling or can impact over 300,000 transactions per year), if aligning to SAQ A, the applicable requirements in scope would mainly be those contained within SAQ A (and possible a few additional ones depending on risks and service provider implications).  At a bare minimum, these requirements should be followed regardless of PCI DSS.  Most of the environments in scope will contain Personally Identifiable Information (PII) and therefore will need to comply with the General Data Protection Regulation (GDPR), therefore information security should be at the top of most organisations mind to protect any personal data contained within these environments.

Using a Risk-based Approach to the Implementation of PCI DSS Requirements

This often crops up from clients wanting to take a risk-based approach to the implementation of PCI DSS requirements.  Unfortunately, applying a risk-based approach to whether or not an organisation implements applicable PCI DSS requirements isn’t permitted under the PCI DSS (Version 3.2.1 at time of writing) and is covered in the following PCI SSC (Security Standards Council) FAQ  1252.

The assessment of PCI DSS requirements permits either of the following assessment responses to be applied;

  • In Place – This response is selected when the testing procedures and assessment has been found to support what is required of PCI DSS,
  • In Place (with Compensating Control Worksheet) – This response is selected when a supporting CCW (Compensating Control Worksheet) has been found to be implemented in support of the intent of the initial requirement,
  • Not in Place – This response is selected when the evidence collected to review the implementation of the requirement was found to not exist or was found to be lacking in supporting the intent of the said requirement,
  • Not Tested – This response would be selected if assessment activities didn’t include a review of evidence to support the assessment of the said requirement,
  • Not Applicable – This response is given when the requirement has been reviewed and determined not be applicable for the cardholder data environment being assessed.

The ‘Not Tested’ response is usually only used when specific requirements are being omitted from the assessment.  A typical example of when this would be used is if an Acquirer wants a Merchant to assess their environment against the PCI DSS Priorities Approach (discussed later on).

So how does Risk work with PCI DSS?

Although a risk assessment cannot be used by the Merchant or a Service Provider to determine if applicable PCI DSS Requirements should be implemented or not, this doesn’t mean that risk isn’t used within the standard.  The PCI SSC and participating card brands have produced the self-assessment questionnaire (SAQ) based on risk decisions to determine which requirements are not applicable for various types of payment channels.  The selection of the requirements within these SAQs are determined based on the current threat landscape against the different payment channels.

The PCI DSS itself does refer to risk directly and indirectly in various requirements;

  • Requirement 6.1 – This requirement focuses on the need for the organisation to develop policies and procedures for identifying new vulnerabilities that affect in scope system components and for assigning a risk ranking. This requirement suggests that these risk rankings should be based on industry best practise as well as considering the potential impact of the vulnerability.  This requirement is referenced in further requirements which the PCI DSS allows risks to be taken into account.
  • Requirement 6.2 – Covers patch management of the defined cardholder data environment (CDE) and is the first requirement that references Requirement 6.1 above. Critical vendor-supplied security patches MUST be installed within one month or release, with all other applicable vendor-supplied security patches installed within an appropriate timeframe.  This requirement relies on the risk ranking methodology identified in Requirement 6.1 above to identify critical security patches.  Most organisations will rely upon vendor risk rankings; however, I always advise clients to include within their risk ranking procedure the ability to perform their own risk assessment to reclassify risk rankings.  Some vulnerabilities that are released won’t necessarily have the same impact on every environment.
  • Requirement 6.5.6 – Requirement 6.5 includes the requirement for the organisation to develop software development processes to address common coding vulnerabilities; such as but not limited to; injection flaws (e.g. SQL Injection, OS Command Injections, LDAP and XPath injection flaws), buffer overflow flaws, insecure cryptographic storage and communication. Requirement 6.5.6 includes a requirement for the organisation to include coding techniques to address “high risk” vulnerabilities as identified within Requirement 6.1.
  • Requirement 10.2.b – PCI DSS has a requirement (Requirement 10.6.1) to carry out daily log reviews of specific types of events; namely;
    • All security events,
    • Logs of all system components that store, process, or transmit CHD and/or SAD,
    • Logs of all critical system components, and
    • Logs of all servers and system components that perform security functions.

Requirement 10.6.2.b allows for the organisation to utilise a risk assessment (defined in Requirement 12.2) to determine how often logs that don’t meet the requirement of 10.6.1 need to be reviewed.

  • Requirement 9.9.2 – Although this requirement doesn’t mention risk assessments or risk rankings, I always advise clients to perform a risk assessment to support this requirement. Requirement 9.9.2 covers the periodic inspection of point of interaction (POI) devices.  The key with this requirement is the word ‘periodically’ as follows ‘Periodically inspect device surfaces to detect tampering…or substitution…’.  Periodically will be different for different organisations and different scenarios.  To determine how often these devices, need to be inspected, the organisation should perform a risk assessment and determine a ‘suitable’ time-frame from the inspection.
  • Requirement 10.8.1.a – Requirement 10.8.1 is a Service Provider only requirement that is designed to ensure the Service Provider has provisioned for responding to situation where security controls fail. Requirement 10.8.1.a requires the service provider to perform a risk assessment against the failure to determine if the Service Provider needs to carry out any further actions on the back of the control failure.  Requirement 10.8.1 adds the necessity for the Service Provider to carry out root cause analysis to identify why the failure occurred and to them implement further controls to prevent the failure from re-occurring.
  • Requirement 11.2.1.b – Requirement 11.2.1 covers a requirement that organisations carry out quarterly internal vulnerability scans (where applicable). Again, Requirement 6.1 is referenced here because 11.2.1.b includes the requirement that all “high risk” vulnerabilities are resolved, and re-scans are carried out to verify that they are gone.
  • Requirement 11.2.3.b – This requirement is the same as Requirement 11.2.1.b but covers were internal vulnerability scans are completed as part of a significant change trigger.
  • Requirement 12.1.1 – Includes a requirement for organisations to review the information security policy at least annual and as needed to reflect changes to business objects or the risk environment.
  • Requirement 12.2 – Requires organisations to develop and implement a risk assessment process.

PCI DSS Prioritised Approach

This tool has been developed by the PCI SSC and is available for download here (Version 3.2.1 which is the latest version as of writing this blog).  The tool splits all the PCI DSS requirements into 6 milestones which are designed to reduce the risk to the CDE as the organisation works through each of the milestones.  It can also help to organise the PCI DSS project and team members by splitting the PCI DSS project into smaller tasks, so the overall project isn’t as daunting to the stakeholders involved.  This tool has been specifically developed to reduce the risks to cardholder data the further through the milestones the organisation travels.

Will PCI DSS Align More to a Risk Based Approach?

Only the PCI SSC could possibly answer this question.  There is already talk amongst the PCI community about the potential of PCI DSS Version 4.0 becoming a more ‘objective driven’ standard.  So, what do we mean by objective driven requirements?  With objective driven requirements, the requirements will not be prescriptive in what configuration options need setting to meet the intent of the requirement.  Instead, the requirement will provide an objective, or goal to achieve, leaving it up to the entity to decide how it will achieve the said objective/goal.  How this is achieved, may potentially feed into a risk-based decision.

This isn’t new, if you take a look at the PCI SSC released 3DS Core Security Standard (Version 1.0 at the time of writing), this approach is already used.  Within the Part 1 requirements, “Requirement 5.2.3 Controls are implemented to protect the confidentiality and integrity of accounts and credentials.”, doesn’t provide specifics of how to protect the confidentiality and integrity of accounts and credentials, however the implementation guidance column does provide some hints.

“Implemented controls should protect the confidentiality and integrity of accounts for both local and remote users. The controls should include ensuring that account and credential information is securely transmitted and stored—for example, using strong cryptography—at all times.”

My issues around utilising a more risk-based approach to PCI DSS is how it would realistically work.  Utilising a risk-based approach to information security is a tool that is used quite often by organisations to help focus time, effort and money to reducing the risks to areas of the business that are under the greatest threats.  Different organisations will have varying levels of risk appetites, with one organisation being very different from another.  This is usually an organisations decision to decide what level of risk they are happy to accept and what other risks they are not.  Ultimately, this comes down to the organisation to decide.  How effective this is will very much depend upon the maturity level of the organisations risk assessment methodology and processes as well as how competent they are at evaluating these metrices. Other industry standards involve this risk assessment process quite heavily, such as ISO 27001.

My concern is that the main stakeholders in the PCI ecosystem; i.e. the payment brands, will be shifting the risk decisions to the individual organisations introducing a situation where the security posture of CDEs across different organisations will be at varying levels.

On the other hand, it could make sense because ultimately, the organisation will be held accountable if a cardholder data breach was to occur.

My PCI Ramblings

Applicable PCI DSS requirements will either have a response of “In Place”, “In Place with CCW” or “Not in Place”.  The standard does not give the Merchants or Service Providers the ability to determine if PCI DSS requirements can be omitted based on a risk assessment.

I must admit that I’m quite concerned if the PCI DSS does evolve into a more “Objective” driven approach.  My primary concern about this approach is that you will ultimately have organisations being PCI DSS compliant with varying levels of security depending upon their competence and the knowledge of their assessors.

Where entities are self-assessing, I believe these entities may well struggle to understand what the requirements are asking and will therefore potentially implement the requirement poorly as it will not be prescriptive.  Where ROCs are being carried out, the degree of security for that entity will come down to the QSAs capabilities, which can vary.

Let’s watch this space and see what PCI DSS Version 4.0 brings!

Web Dev/Hosting Responsibilities for SAQ A

NOTE: Due to the following article (and a few others discussing this issue) highlighting new guidance from the PCI SSC stating that Service Providers cannot align to Merchant SAQs, some of the information in this article is no longer correct.

The PCI Security Standards Council (PCI SSC) released PCI DSS Version 3.0 in November 2013.  With the introduction PCI DSS Version 3.0, the accompanying Self-Assessment Questionnaires (SAQ) received updates in February 2014.  A new SAQ was introduced specifically for e-commerce payment channels which was called SAQ A-EP (I think of this as SAQ A for E-commerce Payments).  Along with this new SAQ, SAQ A was also updated to include its use where payment processing for e-commerce platforms were handling payment functions off to a PCI DSS compliant third-party service provider.

E-Commerce payment channels could align to one of three SAQs depending upon how the payment functionality is implemented.  The three variations are detailed below;

SAQE-Commerce Use
AThis SAQ was updated to specifically include e-commerce payment deployments where the payment form is either deployed as an iFrame or a redirect to the PCI DSS Compliant third-party service provider.

The contents of the iFrame payment form, must be retrieved from the third-party service provider (TPSP) in its entirety.

A-EPThis SAQ was created to handle e-commerce payment functionality which is partially outsourced to a PCI DSS Compliant third-party service provider.  The difference between this SAQ and SAQ A is that the merchant’s e-commerce website is responsible for building the payment form either by creating a form which POSTs directly to the TPSP or the payment form is created using JavaScript from the TPSP which then POSTs the CHD directly to the TPSP.
DWhere the e-commerce payment functionality doesn’t align with one of the other two SAQs, SAQ D has to be used.  This would typically be used for API type deployments where cardholder data is received by the e-commerce web server and then forwarded (routed) onto the payment provider.

(See the Visa ‘Processing e-commerce payments’ guide for a more detailed explanation)

SAQ A for PCI DSS Versions 3.0 and 3.1 only included a handful of PCI DSS requirements which included some requirements from Requirement 9 and Requirement 12.  There were no requirements specifically focusing on the web server responsible for handling the redirect/iFrame mechanism.

Through an analysis of PCI DSS forensic investigations and a change in the attacks against e-commerce sites utilising iFrames and redirect payment functionality, PCI DSS Version 3.2 saw the web server coming into scope for a handful of requirement in Requirement 2 and Requirement 8.  The latest version of PCI DSS Version 3.2.1 (at the time of writing) saw a new requirement being added to SAQ A, Requirement 6.2, which introduces the need to ensure web servers are patched with Critical vendor patches within 30 days of release.

Prior to PCI DSS Version 3.2, web servers were not in scope for SAQ A, however since April 2016, web servers became in scope for some PCI DSS requirements.  Due to this change, hosting providers and developers who have a responsibility for the web servers operating system and web server software, along with any e-commerce/CMS software, are classed as a Service Provider and will need to be operating in a PCI DSS compliant manner and therefore are in scope for PCI DSS assessment activities.

The term Service Provider in relation to PCI DSS is a third-party entity that stores, processes and/or transmits cardholder data on behalf of a merchant and/or service provider, or can impact upon the cardholder or the cardholder data environment.

Where hosting providers and/or developers are in scope for PCI DSS, they can either choose to become PCI DSS compliant by undergoing a PCI DSS assessment and completing either an SAQ or Report on Compliant (ROC) and an associated Attestation of Compliance (AOC).  Alternatively, they can be included within their customers PCI DSS assessment activities and demonstrate that they are fulfilling all applicable PCI DSS requirements.

So, what exactly does this mean for me?

Due to SAQ A Version 3.2.1 only having 9 specific requirements that apply to the web server, the PCI DSS obligations are not too onerous.  These 9 requirements, along with a handful of potential other requirements need to be compliant to the PCI DSS.  Below I discuss the requirements that are likely in scope for the web server/software, along with what a QSA may require in determining if the requirement is deemed ‘In Place’ or not:

  • Requirement 2.1.a – Are vendor-supplied defaults always changed before installing a system on the network?

A QSA may want to review such evidence as; vendor manuals to identify vendor-supplied credentials and evidence that default username/password combinations are unsuccessful.

  • Requirement 2.1.b – Are unnecessary default accounts removed or disabled before installing a system on the network?

A QSA may want to review such evidence as; a list of and account information on system user accounts and/or account in CMS.  The QSA will be looking to see if default accounts exist and if they do, are they disabled. The QSA may also want to review build standards, policies and/or procedures to confirm that the introduction of new web servers will be built the same.

N.B. If part of a ROC Assessment, the QSA may want to also interview staff for further assurance that default accounts are being removed or disabled before web servers and software are deployed.

  • Requirement 6.2.a – Are all system components and software protected from known vulnerabilities by installing applicable vendor-supplied security patches?

A QSA may want to review such evidence as; the organisations supporting patching policies and procedures.  This will not only have to include the web server operating system but also supporting applications.

  • Requirement 6.2.b – Are critical security patches installed within one month of release?

A QSA may want to review such evidence as; details of when security patches were installed.  The QSA will look to ensure critical vendor-supplied security patches were installed within the 30-day timeframe and other security related vendor-supplied patches are installed as per define policies/procedures. This will not only have to include the web server operating system but also supporting applications.

  • Requirement 8.1.1 – Are all users assigned a unique ID before allowing them to access system components or cardholder data?

A QSA may want to review such evidence as; a list of all user accounts that exist on the web server operating system and any supporting applications (e.g. CMS).  Additionally, the QSA would want to interview staff to confirm unique user IDs are always used on these system components.

  • Requirement 8.3 – Is access for any terminated users immediately deactivated or removed?

A QSA may want to review such evidence as; leavers records and interviews with HR.  Where users have left the organisation and/or left teams with access to in scope system components, the QSA will cross reference the evidence from Requirement 8.1.1. above to ensure the user accounts have been removed.  Where remote access solutions are in use, the QSA will also look to obtain a list of user accounts from the remote access solution to ensure that these accounts have also been removed along with any physical tokens for such remote access.

  • Requirement 8.2 – In addition to assigning a unique ID, is one or more of the following methods employed to authenticate all users?
    • Something you know, such as a password or passphrase
    • Something you have, such as a token device or smart card
    • Something you are, such as a biometric

A QSA may want to review such evidence as; supporting policies and procedure documents detailing the authentication methods employed by the organisation for in scope system components.  Additionally, the QSA will want to look at configuration settings to confirm that the authentication methods are in use as per the documentation supplied.

  • Requirement 8.2.3.a – Are user password parameters configured to require passwords/passphrases meet the following?
    • A minimum password length of at least seven characters
    • Contain both numeric and alphabetic characters

A QSA may want to review such evidence as; the QSA will want to review configuration settings on all in scope system components to confirm that the required password/passphrase settings are set.

  • Requirement 8.5 – Are group, shared, or generic accounts, passwords, or other authentication methods prohibited as follows:
    • Generic user IDs and accounts are disabled or removed;
    • Shared user IDs for system administration activities and other critical functions do not exist; and
    • Shared and generic user IDs are not used to administer any system components?

A QSA may want to review such evidence as; a list of users on all in scope system components.

[UPDATE: If undergoing a ROC, the QSA will likely want to check that the web server is not storing any cardholder data.  This may be done manually, or the QSA may utilise cardholder data discover tools to ensure that no cardholder data is present.]

In addition to these web server/software specific requirements, some additional requirements may also be applicable; for example, Requirement 12.8.x which covers requirements regarding the management and monitoring of any third-party service providers.  This may be applicable for example, where the web developers are responsible for the web server and have outsourced this to a hosting provider.  Additionally, requirement 12.10.1 which covers incident response handling, would also likely be in scope.

Hosting providers and/or third-party developers are classed as service providers and as such will be required to fulfill Requirement 12.9 which will be to acknowledge in writing to customers that they a responsible for maintaining all applicable PCI DSS requirements.

The Importance of the P2PE Instruction Manual (PIM)

Many organisations are starting to adopt P2PE technologies as a de-scoping strategy for card-present (CP) channels.  Providing that the P2PE solution is a PCI Security Standards Council (PCI SSC) validated solution, which is listed here, these merchants will usually be able to align to (self-assessment questionnaire) SAQ P2PE for the CP channel. This is providing that the organisation meets all the eligibility criteria at the beginning of the SAQ.

One condition for the use of SAQ P2PE is as follows:

  • All payment processing is via a validated PCI P2PE solution approved and listed by the PCI SSC;

This eligibility criteria ensures that organisations are only using one of the PCI SSC listed and approved PCI P2PE solutions.

Another condition is listed is as follows:

  • Your company has implemented all controls in the P2PE Instruction Manual (PIM) provided by the P2PE Solution Provider.

This is interesting because organisations will often not realise how important the PIM is.  Each PCI SSC validated PCI P2PE solution will have an accompanying PIM.  The PIM is there to provide relevant information and instructions ensuring the P2PE deployment is installed and maintained securely.  The PIM will provide details of the;

  • supported hardware,
  • instructions on installing the Point-of-Interaction (POI) devices,
  • secure transportation of the POI devices,
  • tamper monitoring and skimming prevention techniques,
  • handling/identification of device encryptions issues,
  • POI device troubleshooting, and
  • vendors additional guidance.

The PIM will detail specific tasks that have to be followed in order to maintain the P2PE environment.  These tasks are there to ensure the solution stays secure throughout its lifecycle.  If any of these tasks are not fulfilled, the solution is deemed invalid, and SAQ P2PE cannot be completed.

Under this situation, the organisation will need to re-birth the P2PE devices in order to then bring the environment back into a P2PE compliant state.  Re-birthing will usually involve sending the devices back to the manufacture (although some solution can support this mechanism over the Internet), for them to have new encryption keys injected into them before being shipped back.   This can be quite a costly and time-consuming exercise.

My PCI Ramblings

On numerous occasions I have come across service providers who are providing a managed installation and/or maintenance service of POIs where there isn’t adequate evidence that the PIM is being followed.

Two different scenarios can exist:

  1. Where an Attestation of Compliance (AOC) has been provided by the service provider, which covers the installation and maintenance service. Often, the AOC will not provide enough narrative to show that the service providers handling of the PIM has been included within the assessment.
  2. Where the service provider doesn’t have an AOC and are unable to provide the necessary evidence that the PIM has been followed during the installation and on-going maintenance of the P2PE POI devices.

This can cause an issue, either the assessment activities will still need to encompass the third parties handling of the PIM, or it is not possible to meet the eligibility criteria of SAQ P2PE.

Where a service provider is carrying out a QSA led or self-assessment PCI DSS assessment of the services which include the handling of PCI SSC validated P2PE POI devices, ensure that the handling of the PIM is included within the scope of the assessment AND that the AOC accurately reflects the fact this this has been assessed.

Where a service provider doesn’t intend to complete a PCI DSS assessment, ensure there are relevant contract clauses for them to provide a PCI DSS compliant service which includes the correct and ongoing handling of the PIM.  The service provider will need to provide all the necessary evidence that the service is PCI DSS compliant AND that they are following the tasks highlighted within the PIM.

N.B. Even where a service provider is used to provide the installation and maintenance of the POI devices, there will still be some PCI DSS obligations for the service providers customers (Entities).  A good example is with POI device substitution and tamper checks.  The entities will most likely need to fulfil PCI DSS Requirements 9.9 along with any specific PIM tasks relating to tamper and substation checks.

SAQ B and SAQ B-IP Common Misconceptions

Just a short post to discuss two common misconceptions around SAQ B and SAQ B-IP (Self-Assessment Questionnaire) that many members of the PCI community make.  This blog post will highlight some of the common misunderstandings that I come across whilst speaking with clients.

Eligibility Criteria Part 1

The following eligibility criteria often means that entities are unable to complete either of these SAQs:

  • SAQ B: The standalone, dial-out terminals are not connected to any other systems within your environment;
  • SAQ B-IP: 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);

We come across clients completing these SAQs when they are using POI (Point of Interaction) devices which are either connected to the telephone line, mobile provider or internal network.  Often, these same clients will have these devices plugged into an ePOS (electronic Point of Sales) system over a USB or Serial connection.

Connectivity to an ePOS allows the payment amount to be sent to the POI device to save the operator from having to manually enter the payment amount.  Subsequently, it also allows for the payment confirmation to be sent to the ePOS software to record payment.

In this situation entities are falling foul of the eligibility criteria identified above, because the POI devices are in fact ‘connected to’ other systems (ePOS) within the environment.  Without the proper isolation of the ePOS, this can cause additional scope creep and quite often brings entire networks into scope for PCI DSS assessment activities.

The SAQ to complete for this type of scenario would be SAQ D.

Eligibility Criteria Part 2

SAQ B-IP has the following eligibility criteria;

  • The only transmission of cardholder data is from the PTS-approved POI devices to the payment processor

PTS (PIN Transaction Security) is a PCI Security Standards Council (PCI SSC) standard for POI devices that capture payment card data.  As with all PCI standards, PTS has multiple versions (the latest being version 5.x) with validation being carried out by one of the PCI Recognised PTS Laboratories. The PCI SSC’s website details which devices are accredited, to which version of the PTS standard along with its expiration date.

  • The current list of PTS devices can be found here
  • The expired list of PTS devices can be found here

The wording of the eligibility criteria doesn’t make it clear if merchants can still use expired PTS-approved POI device or not.  The PCI SSC FAQ 1302 does state that PCI DSS does not require that current PTS-approved devices be used which is also re-iterated within PCI SSC FAQ 1301.

It is recommended that entities contact their acquirer or payment brand if expired devices are in use within the environment.

Which SAQ should be used for GPRS/3G/4G connected POI devices?

Technically, POI devices with SIM cards which connect to a mobile telephone provider network are still utilising IP (Internet Protocol) based communications and therefore align to that of SAQ B-IP.  A lot of the PCI DSS requirements will end up being deemed ‘Not Applicable’ because an entity would not have control over them.  For example; firewalling requirements are controlled by the mobile provider as an Internet Service Provider (ISP) and as per FAQ 1044,  ISPs only providing an internet connection are not subject to PCI DSS compliance.

Some acquirers however will allow their customers to complete SAQ B.  I’ve only come across this where the POI is supplied by said acquirer as they will have completed their own risk assessment of their own supplied POI devices.

My recommendation is to speak to your acquirer and if you are permitted to complete SAQ B, ensure you get this in writing.

PCI DSS Version 3.2.1 SAQ Changes

Today (22nd June 2018) the PCI Security Standards Council (PCI SSC) released updated SAQs (Self-Assessment Questionnaires) following May’s PCI DSS Version 3.2.1 update.  So, what changes have been made? All but one of the SAQs simply make some grammatical / punctuation changes along with the removal of the effective dates in some of the requirements which have now passed.  These changes are in line with the PCI DSS Version 3.2.1 update.

SAQ A on the other hand saw an alteration to the applicable requirements within the SAQ.  This has been updated to include Requirement 6.2 for use with e-commerce payment channels utilising an iFrame or Redirect payment mechanism.  This requirement is now applicable to the in-scope webserver and supporting software ensuring critical security patches are installed within one month of release.

My final ramblings

I don’t believe this goes far enough to mitigate the ongoing threats faced with these types of card not present (CNP) payment channels,  see the following post.