The long-awaited release of the PCI DSS (Data Security Standard) Version 4.0 is finally here. Released by the PCI SSC (PCI Security Standards Council) on the 31st March 2022, this new version is a fundamental shake up of the standard that comes almost nine years after the release of PCI DSS Version 3.0.
This release has taken a lot of time and effort from both the PCI SSC and the industry with THREE Request for Comment (RFCs) phases producing over 6,000 feedback items that the PCI SSC has had to review and comment on.
This post will not cover each and every change within the PCI DSS Version 4.0 since there are a lot. The start of this post will cover a couple of potential questions you may have due to the release of this new version, along with details of some of the specific changes within the standard itself. As always, I’ll include some ramblings at the end.
Do I need to switch to PCI DSS Version 4.0 straight away?
The good news is that there is a generous transition period for all entities to adopt this new version. Entities have two years before PCI DSS Version 3.1.2 is retired, therefore you have until the 31st March 2024 before you are required to align to this new version. Some of the newer PCI DSS requirements are also future-dated, meaning that entities can meet them immediately when PCI DSS Version 3.2.1 is retired, however there is a further 1 year before these future-dated requirements become mandatory within the standard.
All future-dated requirements become mandatory after the 31st March 2025.
Once PCI DSS Version 3.1.2 retires, do I wait for my annual renewal before implementing PCI DSS Version 4.0?
The short answer to this question is NO. As a Merchant, when you signed up for your Merchant Account with your Acquirer, you would have committed to being PCI DSS Compliant. Technically, this means that you need to be compliant with the new version of PCI DSS as soon as the old version retires. This will also likely apply to service providers, who will be under contract with their customers to maintain a compliant PCI DSS environment, therefore, once Version 3.2.1 expires, there will be an contractual requirement for service providers to ensure they are compliant against Version 4.0.
This does not mean you have to be re-certified as soon as PCI DSS Version 4.0 becomes mandatory, you still only re-certify when you current AOC (Attestation of Compliance) expires.
Will it cost more?
Potentially, it will cost more as the standard appears to hold more requirements, but how much more will depend very much on if entities start to leverage the “Customized Approach” which is discussed later on. Additionally, it is unclear at this time, what changes the SAQ and ROC have gone through, which may also impact the time needed to complete. Read my final ramblings at the end of this blog.
Can my QSA start to assess against this now?
When this blog was written, the PCI SSC hadn’t provided the mandatory PCI DSS Version 4.0 training that all QSAs must complete BEFORE being able to assess entities against this new version. I’m not too sure how the PCI SSC intends to highlight which QSAs have attended the required training though, we will have to wait and see.
PCI DSS Goals and Requirements Update
PCI DSS is made up of 6 goals and 12 principal requirements. Between version 3.x and version 4.0, the 6 goals haven’t changed much, apart from the goal of “Protect Cardholder Data” which has been changed to “Protect Account Data”.
The 12 principal requirements of PCI DSS, has seen a few changes to become more relevant as technology enhancements have been made and to make the requirements less ambiguous in their intent, as seen in the table below:
Version 3.x Requirement
Version 4.0 Requirement
1. Install and maintain a firewall configuration to protect cardholder data
1. Install and Maintain Network Security Controls.
2. Do not use vendor-supplied default for system passwords and other security parameters
2. Apply Secure Configurations to All System Components.
3. Protect stored cardholder data
3. Protect Stored Account Data.
4. Encrypt transmission of cardholder data across open, public networks
4. Protect Cardholder Data with Strong Cryptography During Transmission Over Open, Public Networks.
5. Protect all systems against malware and regularly update anti-virus software or programs
5. Protect All Systems and Networks from Malicious Software.
6. Develop and maintain secure systems and applications
6. Develop and Maintain Security Systems and Software.
7.Restrict access to cardholder data by business need to know
7. Restrict Access to System Components and Cardholder Data by Business Need to Know.
8. Identify and authenticate access to system components
8. Identify Users and Authenticate Access to System Components.
9. Restrict physical access to cardholder data
9. Restrict Physical Access to Cardholder Data
10. Track and monitor all access to network resources and cardholder data
10. Log and Monitor All Access to System Components and Cardholder Data.
11. Regularly test security systems and process
11. Test Security of Systems and Networks Regularly.
12. Maintain a policy that addresses information security for all personnel
12. Support Information Security with Organizational Policies and Programs.
PCI DSS Applicability
The ‘PCI DSS Applicability Information’ has been updated within PCI DSS Version 4.0, making more emphasis on the fact that PCI DSS also applies to entities that “could impact the security of the cardholder data environment (CDE)”.
Due to the original wording of the applicability section of the standard, a lot of entities wouldn’t identify service providers that should be in scope for the PCI DSS and would therefore often not include service providers that could impact upon the security of the entities defined CDE. Some, typical examples of these types of service providers can include:
Managed Firewall Providers
Website hosting/development companies where iframe / redirect mechanisms are in use
IT Support companies with access to the CDE
Software developers building applications involved in the storage, transmission and/or processing of CHD
Service providers that can impact upon the security of CHD should either undergo their own assessments to provide clients a completed Attestation of Compliance (AOC) or will need to be part of their customers PCI DSS assessment activities and participate in provide evidence that they are meeting any PCI DSS Requirements that are applicable to them.
Scoping
Additional work has been carried out on the scoping section of the standard. Included within this release of the PCI DSS is reference to “System components, people, and processes that could impact the security of the CDE.”. Previously, the scoping section only referred to system components that either store, process and/or transmit CHD/SAD, whereas now, it is making a distinction between system components directly involved in the payment channels and other system components that should be in scope due to the nature of their connectivity and risk they pose to the environment.
This is nicely re-enforced via “Figure 1. Understanding PCI DSS Scoping”, which includes the distinction between:
CDE: System components directly involved in the storage, processing and transmission of CHD/SAD, and system components with unrestricted connectivity to these system components (i.e. systems on the same network or routed networks with no firewalling), and
Connected-to or Security-impacting Systems: System components with direct or indirect connectivity to the CDE
This is a fantastic new addition to the standard. There is so much confusion and differences of opinion on exactly what timeframes defined within several PCI DSS Requirements mean. This new version of the standard clarifies exactly what is meant by Daily, Weekly, Monthly, etc… in a nice table as below:
Timeframes in PCI DSS Requirements
Descriptions and Examples
Daily
Every day of the year (not only on business days).
Weekly
At least once every seven days.
Monthly
At least once every 30 to 31 days, or on the nth day of the month.
Every three months (“quarterly”)
At least once every 90 to 92 days, or on the nth day of each third month.
Every six months
At least once every 180 to 184 days, or on the nth day of each sixth month.
Every 12 months (“annually”)
At least once every 365 (or 366 for leap years) days, or on the date every year.
Periodically
Frequency of occurrence is at the entity’s discretion and is documented and supported by the entity’s risk analysis. The entity must demonstrate that the frequency is appropriate for the activity to be effective and to meet the intent of the requirements.
Immediately
Without delay. In real time or near real time.
Promptly
As soon as reasonably possible.
Significant Change
There are certain requirements for which performance is specified upon a significant change in an entity’s environment. While what constitutes a significant change is highly dependent on the configuration of a given environment, each of the following activities, at a minimum, has potential impacts on the security of the CDE and must be considered as a significant change in the context of related PCI DSS requirements: • New hardware, software, or networking equipment added to the CDE. • Any replacement or major upgrades of hardware and software in the CDE. • Any changes in the flow or storage of account data. • Any changes to the boundary of the CDE and/or to the scope of the PCI DSS assessment. • Any changes to the underlying supporting infrastructure of the CDE (including, but not limited to, changes to directory services, time servers, logging, and monitoring). • Any changes to third party vendors/service providers (or services provided) that support the CDE or meet PCI DSS requirements on behalf of the entity.
Unfortunately, now this is defined, this is going to cause a massive issue, what happens if the Quarterly ASV scan is conducted on the 93rd day? Or, the scan takes longer than anticipated and was started on the 90th day (or before) but finishes after the 92nd day?
I think the PCI SSC needs to provide some updated guidance on this. The closest thing I have come across which covers this is within FAQ 1087 “For vulnerability scans, what is meant by quarterly?”, which discusses how compensating controls can be used where ASV scans have not quite followed the 3 month requirement. My feeling is that something more specific around this needs to be produced to help QSAs and SAQ (self-assessment questionnaire) entities to follow a consistent approach to deal with these scenarios.
Approaches for Implementing and Validating PCI DSS
Now we get onto the interesting bit, which I’m pretty sure that most people in the industry will have already heard about. PCI DSS Version 4.0 has introduced two approaches for implementing and validating PCI DSS to give further flexibility in how entities are able to meet PCI DSS. These two approaches are called the Defined Approach and the Customized Approach. Let us delve into these a little deeper.
Define Approach
The defined approach is your traditional approach to PCI DSS. An entity will implement the PCI DSS Requirements exactly as they are defined within the standard or will need to use a compensating control if an entity cannot meet the PCI DSS Requirements as they are explicitly defined. Nothing has changed here regarding the implementation and validation of the PCI DSS.
Customized Approach
This major change to PCI DSS Version 4.0 is this customized approach. This allows entities to implement their own controls designed to meet the objective of each PCI DSS Requirement. Since each entity can define their own controls for each requirement, there is no defined testing procedures so each QSA will need to decide on their own testing procedures to validate requirements specific to what the entity has implemented. The intention of this new approach is to give entities greater flexibility in meeting the “intent” of the standard and is designed for risk-mature entities inline with a robust risk-management approach to security.
Requirement Overview
In this version, the policy and procedure documentation requirements are included at the beginning of each Requirement, instead of at the end. Each requirement also includes the need of defined roles and responsibilities to support reach requirements activities.
Requirement 1
Requirement 1 no longer refers to “Firewalls” and instead has changed to reference Network Security Controls (NSCs). In essence, NSCs are performing the function of limiting ingress / egress traffic between environments of different security levels.
Requirement 3
Requirement 3.4.2 is an interesting requirement “3.4.2 When using remote-access technologies, technical controls prevent copy and/or relocation of PAN for all personnel, except for those with documented, explicit authorization and a legitimate, defined business need.”. This is going to be quite difficult to implement with a lot of current remote-access technologies, so it will be interesting to see how this develops until this future-dated requirement comes into force.
The wording around disk-level encryption has been updated to clarify that this is only applicable on removable electronic media OR if this is on non-removable media, then the PAN has to be rendered unreadable by other means. As the applicability notes say, disk encryption can be used, but it cannot be the only mechanism used to protect stored PANs.
Requirement 5
The most notable difference in Requirement 5 is the language. The standard no longer refers to anti-virus within this section and instead discusses anti-malware solutions.
A future requirement is included where entities have identified system components as being not at risk for malware. This future-dated requirement, requires entities to perform targeted risk analysis to determine how often an evaluation should be carried out to determine if the system components in question are still not at risk of malware.
To keep up with enhancements with anti-malware technologies, this new release of the standard now includes the option to perform continuous behavioural analysis of system under the following requirement:
5.3.2 The anti-malware solution(s):
• Performs periodic scans and active or real-time scans.
OR
• Performs continuous behavioral analysis of systems or processes.
Another future-dated requirement is that removable electronic media also needs to be automatically scanned or behavioural analysis needs to be applied when the media is connected.
PHISHING DEFENCES: Requirement 5.4.1 introduces a future requirement that entities must detect and protect personnel against phishing attacks through processes and automated mechanisms.
Requirement 6
The logical flow of Requirement 6 has been improved, change control is no longer in the middle of a requirement covering the development of internal and external software applications and has its own requirement under Requirement “6.5 Changes to all system components are managed securely.”.A future-dated requirement, Requirement 6.4.2, has been added which will enforce the use of an automated technical solution to protect public-facing web application, i.e. WAF.
Requirement 7
The introduction of a few new future-dated requirements include:
A requirement to review user’s access privileges at least once every six months has been introduced.
A requirement to limited access to application / system accounts so they can only be used by the system, application or process that specifically needs to utilise that account.
A requirement to review all access by application / system accounts to ensure they are still relevant and appropriate to the function being performed. The frequency is based upon a risk analysis.
Requirement 8
The start of Requirement 8 explains that it applies to all accounts on all system components, unless specifically called out in an individual requirement. This isn’t unusual and is also called out in Requirement 8 under PCI DSS Version 3.2.1. The only difference is that in PCI DSS Version 4.0, it also calls out that it applies to “System and application accounts”. Some entities may find this problematic if system accounts are set to expire.
Something that has now been included within this update is the need for a “break the glass” administrator access. This is something that I come across whereby organisations will implement a generic account for use in this scenario. The update to the requirement around group, shared and generic accounts now acknowledge this and has been changed to read as follows:
8.2.2 Group, shared, or generic accounts, or other shared authentication credentials are only used when necessary on an exception basis, and are managed as follows:
• Account use is prevented unless needed for an exceptional circumstance.
• Use is limited to the time needed for the exceptional circumstance.
• Business justification for use is documented.
• Use is explicitly approved by management.
• Individual user identity is confirmed before access to an account is granted.
• Every action taken is attributable to an individual user.
The minimum number of characters for a password/passphrase has been increased to twelve characters after the 31st March 2025.
The requirement to change passwords/passphrases at least once every 90 days is still included in this release, with an option to instead analyse the security posture of accounts as defined by requirement 8.3.9 as follows:
8.3.9 If passwords/passphrases are used as the only authentication factor for user access (i.e., in any single-factor authentication implementation) then either:
• Passwords/passphrases are changed at least once every 90 days,
OR
• The security posture of accounts is dynamically analyzed, and real-time access to resources is automatically determined accordingly.
Also, the wording within this requirement (and others now) “If passwords/passphrases are used as the only authentication factor for user access” seems to suggest that if MFA is being used along with passwords/passphrases, then this requirement isn’t applicable.
MFA will be required for all access to the CDE (users and administrators) after the 31st March 2025 as per requirement 8.4.2 as follows:
8.4.2 MFA is implemented for all access into the CDE.
Although, I’m not entirely sure what the point of 8.4.3 unless I’m missing something here, see below:
8.4.3 MFA is implemented for all remote network access originating from outside the entity’s network that could access or impact the CDE as follows:
• All remote access by all personnel, both users and administrators, originating from outside the entity’s network.
• All remote access by third parties and vendors.
The only thing I can think here is that the expectation is that you have to MFA for Remote Access into the corporate network and then you have to also MFA into the CDE itself.
Requirement 10
Another future-dated requirement will see the introduction of automated mechanism to perform audit log reviews. This is due to the difficulties entities would have parsing through the volume of logs manually. This isn’t really viable and there would likely be important logs missed by this manual approach.
Another future-dated requirement is that all organisations will need to be able to detect, alert and address failures of critical security control systems. Currently this is only a requirement for Service Providers, but PCI DSS Version 4.0 is bringing this requirement in for all entities.
Requirement 11
An interesting addition to internal vulnerability scanning is to example the scanning tool configuration to ensure the tool is kept up to date with the latest vulnerability information. This is a good addition to ensure scanning is being carried out against the latest information.
Another addition to internal vulnerability scanning that is future-dated, is that remediation doesn’t just apply to high-risk or critical vulnerabilities. All other vulnerabilities need to also be managed based upon risk analysis and risk rankings as per Requirement 6.3.1.
A final addition to internal vulnerability scanning that is also future-dated, is that authenticatied vulnerability scanning must be carried out.
There has been a slight modification to the penetration testing requirement in this new version. Previously in PCI DSS Version 3.2.1, “Exploitable vulnerabilities” needed to be remediated, this wording in PCI DSS Version 4.0 has been updated to “Exploitable vulnerabilities and security weaknesses”.
Also within the penetration requirements for PCI DSS Version 4.0 is a new future-dated requirement designed to ensure multi-tenant service providers support customer requests to undertake penetration testing or supply penetration testing results already carried out by the provider.
11.4.7 Additional requirement for multi-tenant service providers only: Multi-tenant service providers support their customers for external penetration testing per Requirement 11.4.3 and 11.4.4.
There is a newly, future-dated service provider requirement, to ensure IDPS techniques are able to detect, alert on/prevent, and address covert malware communication channels. IDPS solutions will need to ensure they are able to meet this new requirement before the 31st March 2025, or before which is best practice.
Finally, an interesting addition, and again future-dated requirement is 11.6.1 which introduces the need for entities to deploy change and tamper-detection mechanisms on payment pages to help protect against e-commerce skimming code to try and mitigate the threat from Magecart style attacks, which I talk about in two other blog posts “Hacking E-Commerce Payment Channels” and “PCI SSC Online Skimming Blog Post”.
I wonder if this will appear in the updated SAQ A self-assessment questionnaire??
Requirement 12
There have been several updates to Requirement 12, below are some of the more significant ones.
The risk assessment requirements have been bolstered throughout the standard, there is reference to risk assessment techniques to determine things like frequency of performing a task across multiple PCI DSS Requirements within PCI DSS Version 4.0. Within Requirement 12, there is a future-dated requirement, 12.3.1, which ensures that the risk assessment process for determining the frequency, is re-evaluated at least every 12 months. Additionally, where an entity makes use of the customized approach, there is a requirement in 12.3.2 to ensure that a targeted risk analysis is performed across each requirement making use of this new approach. This is going to make utilising the customized approach a lot more effort for entities to implement, and for QSAs to assess.
Future-dated requirements are included to monitor cryptographic cipher suites and protocols to monitor their continued viability and to monitor, at least annually, hardware and software technologies to ensure they are still fit for purpose and not end-of-life.
12.5 introduces a new requirement, “12.5 PCI DSS scope is documented and validated”. This requirement pulls together some original requirements from the previous standard, i.e. inventory requirements, however, it also includes a requirement for entities to document and validate their PCI DSS scope annually or upon significant changes. A future-dated requirement for service providers ensures that this task is carried out every 6 months.
The security awareness training requirements have been bolstered with a future-dated requirement ensuring that security awareness training content includes awareness of threats and vulnerabilities that could impact the security of the CDE. PCI DSS Version 4.0 gives examples including, but is not limited to:
Phishing and related attacks, and
Social engineering
I’m pleased that PCI DSS Version 4.0 has included an additional requirement under the existing 12.9 requirement from PCI DSS Version 3.2.1. This service provider specific requirement now includes a requirement that service provider support their customers’ requests for information to meet Requirement 12.8.4 and 12.8.5. This is one of the feedback items I submitted as part of the RFC process, that service providers should be providing supporting documentation in support of requirement 12.8.5 as a Merchant wouldn’t be able to build a roles and responsibilities matrix without the help of the service provider.
My Ramblings
I do think there are some good and useful updates to this new version of the PCI DSS, however the new customized approach does concern me on multiple fronts:
Where clients have leveraged this new approach across multiple requirements, will they appreciate the additional effort required to assess these requirements which will increase the time and cost of their annual PCI DSS Assessments? I have already experienced times where we have lost business because other QSAC (QSA Companies) have undercut the number of days quoted to complete an assessment, when you know too well that there is no chance the assessment can be done adequately in the time quoted.
Will this ultimately lower the security posture of entities certifying against the PCI DSS? I can understand that this approach is designed for risk-mature entities who should be well versed in performing adequate risk assessments to build appropriate security controls to meet the objective of the PCI DSS requirement, however, there are varying levels of QSAs, some technical and some less so. Different QSAs may accept implemented security controls, whereas other QSAs may not deem them sufficient in meeting the objective. It will be very interesting to see how this evolves as entities start to utilise this approach and see how the AQM process is used to start validating this by QSACs.
This blog post helps the reader understand the various SAQs and when they should be used.
Help around SAQs (Self-Assessment Questionnaires) is always cropping up, especially around e-commerce channels as the differences between when to use SAQ A, SAQ A-EP and SAQ D can get somewhat confusing. This blog post aims to provide guidance and tips around the various Self-Assessment Questionnaires (SAQs) that are available for Merchants (and Service Providers) to be completed as part of their PCI DSS reporting responsibilities and highlight any common gotchas.
Who PCI DSS Applies to?
If you take card payments and own a merchant account, i.e. have a Merchant ID (MID) to deposit card payments into, then as part of the Merchant Agreement that you signed, you agreed to maintain a PCI DSS Compliant environment. PCI DSS applies to the environment where storage, processing, or transmission of cardholder data is occurring, including any connected to systems, unless isolated.
If you are a service provider and either store, process, or transmit cardholder data (CHD) on behalf of a Merchant, i.e. an entity with a merchant account, or you can impact upon the CHD of a Merchant, then you are also on the hook for PCI DSS as a Service Provider. Merchants should ensure that this is covered by Service Provider contracts as it is their responsibility, under PCI DSS Requirement 12.8, to ensure all Service Providers are either PCI DSS compliant, or are at least running a PCI DSS compliant service and will support their customers compliance efforts to demonstrate this.
I’ve Outsourced so it Does Not Apply to Me
This is a common misconception. Unfortunately, if you have a MID, and you have outsourced all card payments to PCI DSS Compliant Service Providers, you still have some PCI DSS responsibilities, albeit small, but you still have some.
What are SAQs?
For Merchants (and Service Providers) eligible for submitting SAQs, based upon the total number of card transactions per year, you can assess yourself against the PCI DSS. If a Merchant can self-assess, they need to provide a completed (or several completed) SAQs annually.
The specific SAQ(s) needed will depend upon the characteristics of the payment channel you are completing the SAQ against. SAQs are a subset of the full PCI DSS based on the risks, determined by the card brands and PCI SSC, of a particular payment channel with specific characteristics, which will be discussed later.
There is a total of eight SAQs available to Merchants depending upon their payment channel characteristics as follows:
SAQ
Description
Payment Channels
SAQ A
SAQ A is used where the Merchant is not storing, processing or transmitting CHD as this is being handled by a PCI DSS Compliant Service Provider.
E-commerce and Card-not-Present
SAQ A-EP
SAQ A-EP, again is used where a Merchant is not storing, processing, or transmitting CHD as this is being handled by a PCI DSS Compliant Service Provider. This can only be used for e-commerce payment channels.
E-commerce
SAQ B
SAQ B is used where the Merchant is utilising a POI/PED (Point of Interaction/Pin Entry Device) to take the payment.
Card-Present and Card-not-Present
SAQ B-IP
SAQ B is used where the Merchant is utilising a POI/PED (Point of Interaction/Pin Entry Device) to take the payment.
Card-Present and Card-not-Present
SAQ P2PE
SAQ Point-to-Point Encryption (P2PE) is used where the Merchant is utilising a PCI SSC listed P2PE solution’s supported POI/PED (Point of Interaction/Pin Entry Device) to take the payment.
Card-Present and Card-not-Present
SAQ C
SAQ C is used where the Merchant is using a Payment Application (e.g. ePOS) that is connected to the Internet and do not store CHD.
Card-Present and Card-not-Present
SAQ C-VT
SAQ C-VT is used where a Virtual Terminal (VT) is being used to take the payment with. The VT will be accessed by the Merchant where a member of staff will input the card details on behalf of the cardholder into a website.
Card-not-Present
SAQ D
SAQ D is used when none of the other SAQs fit.
All
Service Providers have a single SAQ that is available to them as detailed below:
SAQ
Description
Payment Channels
SAQ D for Service Providers
Service Providers must complete the SAQ D for Service Providers self-assessment questionnaire.
All
What if my Payment Channels Align to Multiple SAQs?
Prior to PCI DSS Version 3.0, if you operated more than one payment channel, which aligned to multiple SAQs, you had to complete SAQ D. Thankfully, from PCI DSS Version 3.0, this is no longer the case providing your Acquirer will accept multiple SAQ submissions. So, what changed? In PCI DSS Version 3.0 SAQs, the wording changed slightly which meant that you could submit multiple SAQs.
Prior to PCI DSS Version 3.0
With the following statement, the eligibility criteria that followed locked the Merchant into the specific SAQ.
“Such merchants validate compliance by completing SAQ A and the associated Attestation of Compliance, confirming that:
– Your company handles only card-not-present (e-commerce or mail/telephone-order) transactions;
etc.”
From PCI DSS Version 3.0
Within SAQ A (and the other SAQs), a modification was made to change the line above to read.
“SAQ A merchants confirm that, for this payment channel:
– Your company accepts only card-not-present (e-commerce or mail/telephone-order) transactions;
etc.”
Although only a slight change, the ‘for this payment channel‘ allows Merchants to separate the SAQs out for the different payment channels.
SAQ Eligibility
A few times now I’ve mentioned the payment channels characteristics. Characteristics are defined within all SAQs (Self-Assessment Questionnaires) apart from SAQ D since SAQ D covers all PCI DSS (Payment Card Industry Data Security Standard) requirements and is designed for when other SAQs cannot be used. An SAQ cannot be used if it does not meet the SAQ eligibility criteria detailed within the “Before You Begin” section on Page 3 of the SAQ that provides a list of conditions by way of bullet points that must be met before the SAQ can be used by a Merchant. These conditions may list things like (not an exhaustive list):
Connectivity to other systems,
Usage within a single location,
Only accepting a specific type of transaction, i.e. e-commerce or mail/telephone order,
The use of PCI DSS compliant service providers,
SAQs, apart from SAQ D, will contain a subset of PCI DSS Requirements based upon the types of threats, known attack vectors based upon PFI (PCI Forensic Investigator) results and risks associated with a payment channel characteristic. This will be based upon certain conditions, which is why these are defined within the “Before You Begin” section of the SAQ.
If you cannot meet each bullet point, that SAQ cannot be completed; however, it is worth discussing this with the Acquirer since they are the risk owners. They may be open to allowing SAQs which may not quite meet the criteria, if the risk is relatively low; i.e. a very small number of transactions through that particular channel. Where I have seen this crop up is where PEDs (Pin Entry Devices) that connect to a mobile network are permitted to utilise SAQ B and on some occasions where SAQ C-VT has been permitted when the channel doesn’t quite meet the intent of the eligibility criteria.
What are AOCs?
The Attestation of Compliance (AOC) is a PCI DSS document that must be signed off once completing either an SAQ or a Report on Compliance (ROC), which is the report that a QSA must complete if you need to undertake an onsite QSA-led assessment. The AOC will ask you to confirm the different payment channels you support, which payment channels are included in the assessment (SAQ or ROC), describe the environment under assessment, locations included, details of service providers, details of payment applications, acknowledge the eligibility criterial is met (not for SAQ D), validate and attest to specific details of the assessment; i.e. one of the statements is “All information within the above-referenced SAQ and in this attestation fairly represents the results of my assessment in all material respects.” The AOC must be signed as you must attest to the accuracy of the assessment being completed, along with some other things.
Can SAQs be Signed off by a QSA?
Within the AOC is a section for a QSA to complete if you have engaged a QSA to help complete the SAQ. The QSA will detail what support they have provided in case the support only consisted of specific tasks. We are often tasked with completing SAQs on behalf of customers because their board members want assurances that the assessment is done correctly and is impartial to get the best result. This also adds more credibility to the assessment for the Acquirers.
Is it true SAQs can be used to determine the requirements in a ROC?
Yes, this is true, and is also true for Service Provider assessments. What is interesting is that this technique can also be used when completing SAQ D where the organisation is aligning to multiple SAQs across the various payment channels, providing they all meet the eligibility criteria of the SAQs you are aligning them to. So, the simple approach to take would be to utilise the various SAQs to determine which PCI DSS requirements are applicable for each payment channel. If, for example you align to SAQ B-IP and SAQ C-VT for two payment channels. You can go through the SAQs and assess the different channels against the applicable requirements within them. Where PCI DSS Requirements are contained within both SAQ B-IP and SAQ C-VT, you would need to assess both channels against these requirements to determine if they are in place. There is a PCI SSC (PCI Security Standards Council) FAQ on this topic named “Can SAQ eligibility criteria be used for determining applicability of PCI DSS requirements for onsite assessments?”
SAQ Breakdown
Ok, I bet this is what you have all come to this page for. So, lets jump into it; below will list all the SAQs and provide some additional information to help identify when a SAQ can be used and any gotchas.
Entities storing electronic CHD MUST complete SAQ D since all other SAQs includes the following statement within the eligibility criteria:
Your company does not store cardholder data in electronic format.
Details of each SAQ are as follows:
SAQ A
Containing 24 PCI DSS requirements, SAQ A is designed for e-commerce or mail/telephone order merchants (card-not-present) where all cardholder data functions have been completely outsourced to PCI DSS compliant service providers only. This is often used when service providers are providing services such as:
a DTMF (dual-tone multi-frequency) SaaS platform (and the calls are made direct to the service provider’s platform),
a third-party contact centre,
iframe/redirect technologies to support e-commerce payments.
SAQ A, is by far, used more for e-commerce channels that utilise iframe/redirect technologies. Within the requirements contained within SAQ A, some technical requirements in Requirement 2, 6 and 8 cover the webserver(s) handling the redirect/iframe mechanism. Additionally, I will typically include anything that could impact upon the redirect/iframe mechanism for the technical controls within the SAQ; for example, code repositories.
CHD flow for this type of e-commerce channel is from the cardholder’s web browser, directly to the service provider.
There are three points that are worth noting from the eligibility criteria for SAQ A. These are:
Your company has confirmed that all third party(s) handling storage, processing, and/or transmission of cardholder data are PCI DSS compliant;
This is often missed within the SAQs and is worth mentioning. It is up to the merchant to ensure that Service Providers are providing a PCI DSS compliant service. This is echoed within the PCI DSS Requirements 12.8.
Any cardholder data your company retains is on paper (for example, printed reports or receipts), and these documents are not received electronically.
This is included, along with some PCI DSS requirements within Requirement 9, to cover chargeback letters from the Acquirer.
All elements of the payment page(s) delivered to the consumer’s browser originate only and directly from a PCI DSS validated third-party service provider(s).
This is included to ensure that the entire content of the payment page; either the redirect or within the iframe, came from the service provider’s web service.
SAQ A-EP
Containing 183 PCI DSS requirements, SAQ A-EP is designed for only e-commerce channels, where all cardholder data transmission, storage and processing is handled by a PCI DSS compliant service provider. This differs from SAQ A in that the characteristics of this payment channel can impact upon the security of the payment transaction and/or the integrity of the payment page itself. This is due to the nature of how the payment form is built and embedded into the payment page.
Although the CHD flow is still from the cardholder’s web browser to the service provider, the merchant is responsible for building the payment form that will be used to submit the CHD. Known as a Direct Post or JavaScript method, there is much more risk associated with this technically since the Merchant can load a myriad of third-party libraries, or a malicious actor could include JavaScript code that can manipulate or scrap the payment page. This is the technique used by many e-commerce card data compromises and is discussed further in one of my previous blog posts “PCI SSC Online Skimming Blog Post” and is briefly touched on in my “Hacking E-Commerce Payment Channels” blog post.
The key difference between SAQ A and SAQ A-EP is that with SAQ A, the payment form (either following the redirect or within the iframe) is made up of code from the service provider only. With SAQ A-EP, the merchant builds the payment page and the payment form embedded within it.
There is a significant point within the eligibility criteria of SAQ A-EP which is often missed:
Each element of the payment page(s) delivered to the consumer’s browser originates from either the merchant’s website or a PCI DSS compliant service provider(s)
The significance of this is that any third-party libraries that are used within the payment form(s) must be stored on the Merchant’s webserver(s).
As per SAQ A, there is also the criteria that the Merchant is responsible for ensuring the service provider is providing a PCI DSS compliant service as follows:
Your company has confirmed that all third party(s) handling storage, processing, and/or transmission of cardholder data are PCI DSS compliant;
The “Processing e-commerce payments” Visa guidance provides a visual guide on the differences between SAQ A, SAQ A-EP and SAQ D for e-commerce payments.
SAQ B
Containing 41 PCI DSS requirements, SAQ B is designed for brick-and-mortar (card-present) merchants or mail/telephone order (card-not-present) payment channels that do not store electronic CHD. For both payment channels, the payment is facilitated using a POI/PDQ/PED (Point of Interaction/Pretty Damn Quick/PIN Entry Device) device that is standalone and connected to a telephone line. There are a few gotchas with this payment channel:
The device must be connected to a standard telephone line; either via PSTN (Public Switched Telephone Network) or to the Merchant’s internal PBX providing the phone system isn’t IP connected. If the connectivity is via a PBX that is connected to a network, this will introduce an attack vector to the CHD transmission.
If telephone payments are being taken, using the PED, then the voice call must not be over VoIP (Voice over IP) as this will invalidate one of the eligibility criteria (as discussed in a bit).
The PED must be standalone, otherwise this will invalidate one of the eligibility criteria (as discussed in a bit). This means that the PED cannot connect to an ePOS (Electronic Point of Sales) via, for example, a USB or Serial cable.
The Merchant receipts will be in scope for PCI DSS requirements in Requirement 9, unless the PEDs are configured to mask out the middle of the PAN (Primary Account Number), which is the 16+ digit card number.
There are three eligibility criteria that are of interest, which have been discussed above:
Your company uses only an imprint machine and/or uses only standalone, dial-out terminals (connected via a phone line to your processor) to take your customers’ payment card information
The significance of this is that the PED must connect to a phone line.
The standalone, dial-out terminals are not connected to any other systems within your environment
As discussed above, the PED must be standalone and not connect to an ePOS.
Your company does not transmit cardholder data over a network (either an internal network or the Internet)
This is where the voice call, over a VoIP system, invalidates this criterion.
SAQ B-IP
Containing 86 PCI DSS requirements, SAQ B-IP is also designed for brick-and-mortar (card-present) merchants or mail/telephone order (card-not-present) payment channels that do not store electronic CHD. The key difference is that the PEDs are connected via an IP network connection instead of a telephone line connection.
As with SAQ B, PEDs need to be standalone, meaning they cannot connect to any system via a USB or Serial Cable. In addition, the IP connected PED must be isolated from ALL other IP connected devices within the environment (apart from other IP Connected PEDs). These devices must also be validated to the PCI SSC PTS (PIN Transaction Security) program as listed on the PCI SSC website (excluding SCRs; Secure Card Readers).
As with SAQ B, SAQ B-IP cannot be used where CHD is transmitted over VoIP due to the following statement in the eligibility criteria:
The only transmission of cardholder data is from the PTS-approved POI devices to the payment processor;
The other criteria of interest for SAQ B-IP are:
The standalone IP-connected POI devices are validated to the PTS POI program as listed on the PCI SSC website (excludes SCRs);
This is covered within the above paragraph.
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);
This is covered within the above paragraph. One thing to note with this criterion is that it does not prohibit multiple IP-connected POI devices from being used on the same IP Subnet.
The POI device does not rely on any other device (e.g., computer, mobile phone, tablet, etc.) to connect to the payment processor;
This is covered within the above paragraph. As per the eligibility criteria already covered, these devices must be standalone, therefore they must directly connect to the network for all communication.
Technically, PEDs connected via a mobile network (GPRS/3G/4G) align to SAQ B-IP since IP Communication is used. If these devices are provided by the Acquirer, they will usually accept an assessment against SAQ B, but you must ensure this is discussed with the Acquirer and permission is sought.
SAQ P2PE
Containing 33 PCI DSS requirements, SAQ P2PE is also designed for brick-and-mortar (card-present) merchants or mail/telephone order (card-not-present) payment channels that do not store electronic CHD. When the P2PE SAQ was originally released, this was called SAQ P2PE-HW but in April 2015, the “HW” was removed from the title.
The beauty about this SAQ is that it can connect to your internal network, without bringing the network or any other system components into scope. There is no criterion about this device being connected to any other systems due to the encryption mechanism used. With a PCI P2PE deployed solution, only the devices themselves make up the scope of the PCI DSS assessment (and merchant receipts / chargeback letters if they contain the full PAN).
There are a couple of interesting statements in the eligibility criteria as follows:
All payment processing is via a validated PCI P2PE solution approved and listed by the PCI SSC;
Only PCI P2PE accredited solutions can be used if entities wish to assess against SAQ P2PE. The solution needs to match one of the ones accredited on the PCI SSC website, including matching the approved components, POI devices, etc under the “Solution Details” tab by following the solution details link. POI devices must match the hardware/firmware numbers. The P2PE Solutions can be listed here.
The only systems in the merchant environment that store, process or transmit account data are the Point of Interaction (POI) devices which are approved for use with the validated and PCI-listed P2PE solution;
For the payment channel being assessed against SAQ P2PE, only POI devices validated against a PCI-listed P2PE are used. This rules out the use of VoIP with this SAQ where telephone payments are being taken.
There is no legacy storage of electronic cardholder data in the environment;
Since P2PE solutions are often implemented as a replacement to an existing solution, the criterion is ensuring that no storage of electronic CHD exists in the environment. Remember, as discussed earlier, where electronic storage of CHD is in the environment only SAQ D can be used.
Your company has implemented all controls in the P2PE Instruction Manual (PIM) provided by the P2PE Solution Provider.
This is often missed when P2PE Solutions are deployed within an environment. Since all the eligibility criteria must be met before a SAQ can be used, entities need to ensure that the PIM is being followed properly and from the outset. If this isn’t the case, and you cannot evidence that this has and is being followed, entities will default to completing SAQ D unless ALL the P2PE devices are re-born. This often involves sending the devices back to the manufacturer so they can be reshipped with new encryption keys, following the chain of custody requirements. I discuss the importance of the PIM in my “The Importance of the P2PE Instruction Manual (PIM)” blog post.
Finally, it is worth noting that some Acquirers will allow Level 1 Merchants who align to SAQ P2PE to forego a PCI QSA On-site Assessment in favour of a self-assessment against SAQ P2PE. This will often be dependent on using a P2PE solution by the Acquirer.
SAQ C
Containing 154 PCI DSS requirements, SAQ C is designed for brick-and-mortar (card-present) merchants or mail/telephone order (card-not-present) payment channels that do not store electronic CHD. This SAQ has been developed specifically for Merchants whose payment application systems (for example, point-of-sales) are connected to the Internet.
Originally, SAQ C was intended for the franchise industry where a franchisee would utilise the franchise ePOS system of choice to facilitate payments via a broadband type connection to the Internet.
Before exploring this SAQ, it is worth exploring what is meant by “Payment Application”. Usually, this would be something like an ePOS (Electronic Point-of-Sales) system, however, this can expand into other applications supporting card payments. Typically, payment applications are applications involved in storing, processing, or transmitting cardholder data to support authorisation and/or settlement functions. Although, this sounds like there is a myriad of different types of “Payment Applications” that this can cover, the eligibility criteria of the SAQ will limit this.
There are two criteria that is worth noting within SAQ C:
The payment application system/Internet device is not connected to any other systems within your environment (this can be achieved via network segmentation to isolate payment application system/Internet device from all other systems);
As we have seen from some of the SAQs previously, there is also a dependent upon the payment application not being connected to any other systems. One thing to note is that multiple payment applications at the same site can be connected to the same isolated LAN segment. I.e. multiple ePOS systems at the franchisee bricks-and-mortar locations can be in use on the same network.
The physical location of the POS environment is not connected to other premises or locations, and any LAN is for a single location only;
This is most definitely the main criterion that often makes SAQ C not applicable to most entities. Where multiple locations are used and inter-connected for a single Internet POP (point-of-presence), this precludes the use of SAQ C. Even if each location has a separate Internet POP and site-to-site VPNs are used to permitted inter-site communication, this will often fall foul of the criterion mentioned above because often the ePOS will have central administration and therefore will allow connectivity for administrative purposes.
The point of SAQ C is for small retail organisations with single sites or multiple sites that are not inter-connected. The payment application(s) MUST be isolated from everything else.
SAQ C-VT
Containing 83 PCI DSS requirements, SAQ C-VT is designed for brick-and-mortar (card-present) merchants or mail/telephone order (card-not-present) payment channels that do not store electronic CHD. The VT stands for Virtual Terminal which is a web-browser based access to a payment terminal provided by an acquirer, processor, or service provider to authorise payment transactions for card-not-present payments. This SAQ can only be used for entities that process CHD via an isolated computer(s) that connects only to the VT where single transactions are manually entered into the VT.
My personal opinion is to treat this payment channel as card-not-present, even if the cardholder is present since the card has no physical interactions with any devices, unlike where a PED/POI is being used. Transaction charges from the acquirer will differ when using a VT since this type of payment is typically carried out as card-not-present.
Key points from the eligibility criteria are:
Your company’s only payment processing is via a virtual payment terminal accessed by an Internet-connected web browser;
All payment processing must be carried out via the PC using a web browser connected to the service providers VT.
Your company’s virtual payment terminal solution is provided and hosted by a PCI DSS validated third-party service provider;
The VT provider must be a PCI DSS validated service provider. This means that the service provider must have undertaken an on-site QSA led ROC (Report on Compliance) and be able to provide the associated AOC (Attestation of Compliance)
Your company accesses the PCI DSS-compliant virtual payment terminal solution via a computer that is isolated in a single location, and is not connected to other locations or systems within your environment (this can be achieved via a firewall or network segmentation to isolate the computer from other systems);
As with nearly all the other SAQs so far, the system component used to capture the CHD must be isolated. Additionally, this also requires the PCs used to access the VT to be in a single location, therefore you cannot have these PCs over multiple locations within the environment.
Your company’s computer does not have software installed that causes cardholder data to be stored (for example, there is no software for batch processing or store-and-forward);
Processing of CHD is carried out manually, one transaction at a time.
Your company’s computer does not have any attached hardware devices that are used to capture or store cardholder data (for example, there are no card readers attached);
Pretty self-explanatory, capture is via the computer keyboard, or mouse if a virtual keyboard is being used.
Your company does not otherwise receive or transmit cardholder data electronically through any channels (for example, via an internal network or the Internet);
Although we have seen this in previous SAQs, it is worth calling this one out again here. This is because often entities will leverage SAQ C-VT when VoIP is in use. This criterion would prohibit the use of SAQ C-VT where the transmission of CHD is over a VoIP system.
As more and more entities are embracing unified communications, especially as entities start to move to platforms such as Microsoft Teams, entities are finding themselves moving more to an alignment to SAQ D due to some of the eligibility criteria discussed in this blog. I’ve discussed the implications of VoIP in a couple of blogs over the past few years so feel free to look at these if your organisation is using VoIP or unified communications to facilitate telephone payments. Take a look at; VoIP and Small Merchants and New Released PCI DSS Telephone Guidance.
Another common mistake with this SAQ is where Merchants will deploy remote desktop technologies/VDI (Virtual Desktop Infrastructure) to limit the scope to an isolated remote desktop/VDI environment where the virtual terminal is accessed from. Unfortunately, it is simply not viable to align SAQ C-VT in this scenario since the call agent’s desktop used to access the remote desktop/VDI environment is also in-scope because the call agent is using the desktop to input the CHD. The call agent’s desktop and everything else that it has connectivity to is included in scope, which is typically the entire environment. The following eligibility criterium isn’t typically met when a centralised remote desktop/VDI environment is used:
Your company accesses the PCI DSS-compliant virtual payment terminal solution via a computer that is isolated in a single location, and is not connected to other locations or systems within your environment (this can be achieved via a firewall or network segmentation to isolate the computer from other systems)1;
Exploring this criterium, the following issues arise:
The remote desktop/VDI environment is typically in a different location to where call agent PCs are, therefore not in a single location;
The SAQ is design for a computer; i.e. PC or Laptop as indicated within the criterium bullet point, also the PCI Security Council’s FAQ 1443 “What is the Intent of the SAQ eligibility criteria“, this clearly states that the intent of SAQ C-VT is for us through a computer and not a remote desktop/VDI environment through the following statement ‘SAQ C-VT for environments using only web-based virtual payment terminals on a personal computer‘;
The call agent’s PC is “connected to” other systems within the environment; i.e. the remote desktop/VDI environment;
SAQ D (for Merchants and Service Providers)
Containing 375 PCI DSS requirements (Service Provider version, the Merchant version will contain less due to there being some Service Provider specific requirements), SAQ D is designed for use when Merchants don’t meet any of the other SAQs eligibility criteria, when multiple payment channels are being assessed in a single assessment, where electronic CHD is being stored (which may only be temporary) or for ALL Service Provider self-service assessments, using SAQ D for Service Providers.
SAQ D covers all PCI DSS requirements so is often difficult for organisation to attain and maintain PCI DSS compliance.
Where SAQ D is being aligned, segmentation techniques can often be utilised to reduce the scope that PCI DSS requirement apply to, thereby reducing the entities PCI DSS burden and efforts. This is often carried out incorrectly and often segmented systems and networks are often incorrectly deemed out of scope. The PCI DSS discusses segmentation as meaning isolation which is documented within the following paragraph on page 11 of the PCI DSS.
“Without adequate network segmentation (sometimes called a “flat network”) the entire network is in scope of the PCI DSS assessment. Network segmentation can be achieved through a number of physical or logical means, such as properly configured internal network firewalls, routers with strong access control lists, or other technologies that restrict access to a particular segment of a network. To be considered out of scope for PCI DSS, a system component must be properly isolated (segmented) from the CDE, such that even if the out-of-scope system component was compromised it could not impact the security of the CDE.”
Most entities complete SAQs incorrectly. Either they align an incorrect SAQ by misinterpreting the eligibility criteria, or the assessment carried out is completed incorrectly. The main misconception with completing SAQs is that this is a simple tick-box exercise. This is far from the truth, which often means that entities believe they are PCI DSS compliant, when they are not.
Entities MUST still validate each applicable requirement by following the tasks within the “Testing Procedures” column within the SAQ. Even if an entity believes the requirement to be in place, this still needs to be verified. Where I work at Sec-1, Part of Claranet Cyber Security, we undertake assisted SAQ consultancy where our QSAs will complete the SAQ on behalf of our clients, to provide additional assurance that the SAQ has been completed correctly. The QSA will verify each applicable requirement and complete the SAQ Acknowledgement section to describe what activities the QSA has carried out and provide a signature.
Merchant’s Service Provider Responsibility
Service Providers have a PCI DSS responsibility if they are storing, processing, or transmitting CHD on behalf of their clients, or if they can impact upon the security of their client’s CDE. Where a Service Provider has a PCI DSS responsibility, the service being consumed should be operating in a PCI DSS compliant manner. Service Providers do not have a direct reporting obligation to the card brands; therefore, it is up to the Merchants consuming the service to request evidence that the service is PCI DSS compliant. This can either be done by requesting an Attestation of Compliance from the Service Provider, or by including the Service Provider within the Merchant’s PCI DSS assessment. The latter would require the Service Provider to supply evidence to the Merchant that all PCI DSS requirements that are applicable for the Service Provider are being met.
Where Service Providers are handling, or can impact upon, over 300,000 transactions per annum, the Service Provider must undertake an onsite QSA led assessment. Where transactions are below 300,000, the Service Provider can conduct a self-assessment against SAQ D for Service Providers.
Merchants have a requirement within PCI DSS under Requirement 12.8, to ensure Service Provider due diligence is carried out, which includes monitoring the Service Provider’s PCI DSS compliance status. Merchants should ensure clauses are within all Service Provider contracts to ensure the Service Provider maintains PCI DSS against a current version of the standard.
Although this blog article provides a lot of useful information regarding the use of SAQs, ultimately the Acquirer will determine an entity’s SAQ obligations for reporting PCI DSS compliance. Since the Acquirer will not understand your operating environment and the way payment flows are working, it is often best to engage a QSA to help understand the environment and payment channels and provide feedback for an Acquirer in helping with the SAQ determination. This is especially true where the Acquirer utilises a ‘PCI Compliance Portal’ to help identify SAQ eligibility as my experience usually highlights that the portal can often identify the wrong SAQ due to incorrect responses to the questions posted by the portal.
Mapping out the cardholder data environment (CDE) and wrestling with the SAQ alignments can be daunting so if you would like QSA assistance then please feel free to reach out to me at Sec-1, part of Claranet Cyber Security on this address info.cybersecurity@uk.clara.net
We are still living in trouble times with COVID-19 still wreaking havoc across the globe with only a glimmer of hope with a few of the vaccines in stage 3 trials looking likely to be available early 2021. Regardless, there will become a time when life will hopefully get back to some normality and the worldwide restrictions imposed by governments will start easing.
The aim of this blog post is to get you thinking about what the long-term impact of COVID-19 will or may have on your PCI DSS Compliance programs going forward.
I have broken my thoughts down into the following areas, although I’m sure there are more areas that I’ve not included so hopefully this post will help the community start thinking about PCI DSS post COVID-19.
Will the need for on-site assessments reduce?
Unanticipated Increase in transaction volumes
Increased e-commerce risks
Is homeworking here to stay?
Risk of failing requirements
Will the need for on-site assessments reduce?
The PCI Security Standards Council (PCI SSC) has always maintained that QSA (Qualified Security Assessor) led PCI DSS assessments must be carried out ‘on-site’, as highlighted within section 5.3 ‘Qualified Security Assessor Companies (QSA Companies)’ of the “QSA Program Guide”, detailing that QSA Companies and their QSA Employees must perform PCI DSS Assessments in accordance with the PCI DSS by being on-site at the assessed entity during the PCI DSS Assessment.
‘PCI SSC intends for on-site testing to be the norm, with the majority of PCI DSS assessment testing completed at the physical client location. Though the entire PCI DSS Assessment may not require being on-site, required validation methods like ‘observe’ – meaning the assessor watches an action or views something in the environment – are difficult to complete remotely. Examples of observation subjects include personnel performing a task or process, system components performing a function or responding to input, system configurations/settings, environmental conditions and physical controls.”
Although the FAQ does put the onus on the QSA to be able to defend the decision to perform elements of the assessment remotely, the FAQ follows up with the following:
‘The QSA is expected to be physically on-site for each PCI DSS Assessment, though the duration of the on-site visit will vary. PCI SSC recognizes that outlier scenarios may exist where validation of individual requirements can be reasonably achieved remotely without on-site visit, but these are expected to be the exception and if such an approach is used, the QSA must be able to sufficiently document and defend why this approach was used for those individual requirements.’
The issue with performing fully remote assessments is that if they get selected by the PCI SSC AQM (Assessor Quality Management) team for an audit, it could potentially cause issues if the AQM Team do not agree with your reasoning for a remote assessment.
COVID-19 Implications
The introduction of COVID-19 restrictions earlier this year has highlighted that, to some extent, on-site PCI DSS assessments can be conducted remotely. On the 11th March 2020, the PCI SSC released a blog post entitled “Remote Assessments and the Coronavirus” which acknowledged that the global efforts of governments in controlling the spread of the virus will have an impact upon PCI DSS (and others) assessments. This early guidance by the PCI SSC provided details on how a remote assessment should be carried out and how it should be reported within the Report on Compliance (ROC). It is stressed that remote assessments must be carried out with the same level of assurance that controls are properly implement and that requirements are met as if the assessment was being carried out on-site.
In my opinion, some assessments possibly could benefit from being done remotely, i.e. ROC-A (ROCs that align to Self-Assessment Questionnaire (SAQ) A and therefore have only requirements from SAQ A in scope) where an iframe or redirect is being used for e-commerce only payment channels. One could argue that the “onsite” elements of this assessment could reasonably be done remotely via screensharing and video call.
It will be interesting to see how this shapes assessment going forward and if this “Remote Assessments” guidance will be extended to a normal way of working which will inevitably help reduce the time travelling and associated costs. Who knows what PCI DSS Version 4.0 will bring to this topic of conversation, especially since I would imagine that the proposed “Customised Implementation” will certainly increase the costs of onsite assessments. Some details on the new customised approach can be found on one of my previous blog posts entitled “PCI DSS Version 4.0 Buzz” or the PCI SSC Blog entitled “5 Questions About PCI DSS v4.0”.
There is still a long way to go before PCI DSS Version 4.0 will be released and reporting requirements will transition to this new version of the standard. More details on the PCI DSS Version 4.0 timeline can be found on the “PCI DSS v4.0: Anticipated Timelines and Latest Updates” PCI SSC Blog.
Unanticipated increase in transaction volumes
There have been two major shifts in consumer habits that have been brought upon by COVID-19. These are:
Increase in contactless transactions: Although a huge number of bricks and mortar stores were forced to close around the world during county lockdown measures, when these measures were released, a lot of stores have been encouraging contactless payments to limit the risk of spreading COVID-19. In response to this, the contactless payment limit was increased on the 1st April 2020 from £30 to £45 as part of the financial services industry’s response to COVID-19, https://www.ukfinance.org.uk/press/press-releases/contactless-limit-uk-increases-%C2%A345-today.
Increase in online shopping: Although as one can image, there have undoubtably been some winners and losers when it comes to online shopping volumes during the pandemic. According to a post by Econsultancy: Stats roundup: coronavirus impact on marketing, ecommerce & advertising, grocery, home & gardening and clothing shops were winners, whilst beauty and skincare shops were seeing a decline. The same article says there were reportedly “a 66% spike in global daily ecommerce sales at the height of the lockdown, analysis from Nosto suggests that this has levelled off to an average 7% above levels recorded last year, as of early August” (Article updated weekly, this was taken from the November 6th 2020 update).
It will therefore not come as a surprise, that this will likely see an increase in Merchant transaction volumes which could see some Merchants annual card transactions increasing. There are two potential impacts to this:
Your Merchant level may increase changing the reporting requirements to the Acquirer. If this changes from Level 2 to Level 1 (or in some instances from Level 3 to Level 2), a QSA Lead assessment may be required.
This may impact your Service Provider (SP) levels that you are utilising, if their annual card transactions go over 300,000 per year.
So, what if my Merchant Level increases?
There are four merchant levels. Merchant Level 1 requires an onsite QSA Lead assessment and the production of a Report on Compliance (ROC) and Attestation of Compliance (AOC) by the QSA. The other levels require a Self-Assessment Questionnaire (SAQ) and AOC completed by the Merchant. Merchant levels are determined by the transaction volumes over a year period. Over 6 million per year and you are Level 1.
Merchant Level
Criteria(Visa)
Level 1
>6 million transactions or a report compromise
Level 2
>1 and <6 million transactions
Level 3
>20,000 e-commerce transactions but <1 million transactions in total
Level 4
<1 million transactions
Going from Merchant Level 2 to Level 1 may have a significant impact for an organisation as a QSA will need formally assess you against the PCI DSS. Changes within between other levels can also have some impact as some Payment Brands also require an onsite QSA Led assessment or an internal assessment by an “Internal Security Assessor” (ISA) at Merchant Level 2, so there may be some impact moving from Level 4/3 to Level 2.
Either way, changes between the Merchant Levels may prompt Acquirers to follow up on PCI DSS reporting requirements more stringently.
What about Service Provider Levels?
There are only two SP Levels, Level 1 SPs require an onsite QSA Led assessment whilst Level 2 SPs allows for a Self-Assessment Questionnaire (SAQ D for Service Providers) and a Service Provider AOC to be completed. SPs have a much smaller transaction criteria of 300,000 transaction per year before they are classed as a Level 1 SP. As you can imagine, this could be reached within a relatively small –time-frame in the current climate and therefore SPs need to be mindful that customers may be requiring Level 1 Onsite Assessments to support their own PCI DSS programs.
Sustained Change in Consumer Shopping Behaviours
This shift to contactless payments for card-present transactions and increase in online shopping. This shift in consumer shopping behaviours may continue once society gets back to normal. This change in the Merchant Levels may therefore stay at the levels experienced during the government restrictions and constraints placed upon society to help limit the spread of COVID-19. There may also be an impact on the organisations business model, especially if consumers are making more use of online shopping and less use of stores. The same Econsultancy article says that “71% of British consumers are reluctant to shop in store this Christmas.”.
Increased E-commerce Risks
Since the global pandemic hit, consumer shopping behaviours have changed with more opting for online shopping options. As we discussed earlier, this has seen an increase in e-commerce sales across various vertical markets. An article by Security Boulevard entitled “COVID-19 and the normal for e-commerce” states that the United States has seen a significant 91% increase in online shopping. It is not surprising that what comes with this growth, also comes an increase in e-commerce compromises. The same Security Boulevard article quotes a 30% increase in Magecart, online skimming attacks on online retailers and banks during the pandemic (as of May 2020 when the article was published). See my previous blog post entitled “PCI SSC Online Skimming Blog Post” article for more information on Magecart.
E-commerce fraud has been an increasing trend as more and more consumers move towards e-commerce and card-present channels become more and more secure, for example with P2PE (Point-to-Point Encryption) solutions and EMV.
Organisations need to be mindful of these shifts in consumer habits and the increased risks of doing business online.
Most organisations are moving towards simpler e-commerce payment deployments to leverage the use of smaller Self-Assessment Questionnaires (SAQs) and therefore less PCI DSS effort. I have seen an increase in the number of clients moving towards iframe and redirect deployments to leverage SAQ A which has the smallest number of PCI DSS requirements.
Although utilising these technologies does reduce the overall PC DSS scope and simplifies the organisations PCI DSS compliance programs, there are still potential security gaps if only PCI DSS SAQ alignment is considered. I wrote a blog post several years ago that highlights this called “Why the PCI DSS Version 3.2.1 SAQ A update isn’t enough!”.
My recommendation, especially in today’s climate and the increased threats from compromises of e-commerce channels is to provide additional security controls above and beyond that of SAQ A, even if you are utilising iframe and redirect payment techniques.
Is Homeworking Here to Stay?
A quick google search on this subject and there are an overwhelming number of articles claiming that the pandemic has shown home working does work and many companies are planning to make home working the new ‘norm’. A BBC article from the 5th October called “Home working her to stay, study of businesses suggests” states that 74% of firms plan to maintain the increase in home working. How does this factor into the PCI DSS discussion here then? There are several potential impacts to this;
Changes in telephone payment channels,
Potential Remote Access implications,
Introduction of gaps within existing PCI DSS business processes
PCI DSS scope changes to telephone payment channels
One possibility is that the scope of telephone payment channels could change if telephone payments are to be taken remotely. This very much depends upon the technologies being used, for example, if DTMF (Dual-Tone Multi-Frequency) or IVR (Interact Voice Response) is used then this likely will make no difference, however, if call agents are taking the payment details for processing, then this can have significant risk impacts and impacts to the overall PCI DSS scope for the payment channel.
A QSA should be consulted if call agents will be taking payments from home and Merchants should discuss this with their Acquirers.
Potential Remote Access implications
Depending upon how the cardholder data environment (CDE) is setup, organisations may already permit remote access into the CDE. Where this is not implemented, the remote access solution becomes in scope and there are several PCI DSS requirements which govern where remote access is permitted which can access or impact the CDE. These are detailed as follows:
8.1.3 Immediately revoke access for any terminated users.
Scope is extended to the remote access solution if user authentication is not utilising the same directory service as is serving the CDE already.
8.1.5 Manage IDs used by third parties to access, support, or maintain system components via remote access as follows:
• Enabled only during the time period needed and disabled when not in use.
• Monitored when in use.
With the increase of remote working, service providers may also embrace remote working and whereas previously they may have come onsite to carry out maintenance or troubleshooting/repair work, they may wish to do this remotely. This requirement is specifically where third parties are provided with remote access into the CDE.
8.3.2 Incorporate multi-factor authentication for all remote network access (both user and administrator, and including third-party access for support or maintenance) originating from outside the entity’s network.
If remote access solutions are being reconfigured to permit access into the CDE, multi-factor authentication (MFA) will need to be configured to meet this requirement.
12.3 Develop usage policies for critical technologies and define proper use of these technologies.
Remote access would be classed as a critical technology and would therefore need to be incorporate into all relevant policy/process documentation for usage of remote access.
12.3.8 Automatic disconnect of sessions for remote-access technologies after a specific period of inactivity
Remote access technologies should be configured with a period of inactivity specified. What is strange about this requirement is that the “period” is not defined. My recommendation is to review vendor and industry recommendations and perform a risk assessment of this to identify a suitable period which can then be defined and configured.
12.3.9 Activation of remote-access technologies for vendors and business partners only when needed by vendors and business partners, with immediate deactivation after use
This one is self-explanatory. It needs to be written in policy and a suitable process developed to meet this requirement.
12.3.10 For personnel accessing cardholder data via remote-access technologies, prohibit the copying, moving, and storage of cardholder data onto local hard drives and removable electronic media, unless explicitly authorized for a defined business need. Where there is an authorized business need, the usage policies must require the data be protected in accordance with all applicable PCI DSS Requirements.
Ensure remote access policies are in place to meet this requirement.
Risk of failing requirements
This is potentially an issue which could land organisations in hot water come assessment time and would therefore only be an issue in the short term after the pandemic ends. With all the potential changes to payment channels and employee working patterns, we’ve already touched on the implication of increased requirements based on some of these changes, however what we haven’t highlighted is the potential that supporting PCI DSS documents and processes will most likely need to be adapted to support these changes. If not careful, organisations may forget to update all the necessary documentation and processes which may lead to a failed PCI DSS assessment due to potential gaps.
My Final Ramblings
I think it’s inevitable that there will be some long-lasting changes when things get back to more normality. Organisations need to consider what the implications to their PCI DSS environments and supporting documentation and business processes these changes will mean. The threat landscape is constantly evolving and as we’ve discussed, the threat to e-commerce environment has increased. Although PCI DSS is an excellent and mature data security standard, organisations should leverage tooling in the form of risk assessments to identify areas of the payment environment where the heightened risk levels warrant going above and beyond PCI DSS requirements and where organisations are aligning to smaller Self-Assessment Questionnaire reporting requirements, look to complement their PCI DSS security programs with additional requirements to strengthen security based upon the risk assessments carried out.
This is a short post to discuss the “Not Tested” response when undertaking a PCI DSS assessment. I first saw this practice a couple of years ago when reviewing an “Attestation of Compliance for Onsite Assessments – Service Providers” (Service Providers AOC) whilst undertaking a PCI DSS assessment for one of my customers. This was limited to the physical security controls for the data centre providing co-location (colo) services to my customer. The AOC (Attestation of Compliance) utilised the “Not Tested” responses for a lot of PCI DSS Requirements, which at the time seemed reasonable since the scope of the assessment didn’t involve any payment flows as these were contained within the customers responsibilities within the colo service. This was something that I started to adopt in similar types of assessments where it made sense to utilise this response.
However, during the 2019 PCI SSC (Security Standards Council) Europe Community Meeting in Dublin, Brandy Cumberland (PCI SSC Director, AQM Programs) gave an AQM update during the QSA Assessors session on the last day. During this talk, she pointed out that when utilising the “Not Tested” response, you cannot and should not provide a compliant assessment.
The way this was explained to me was to do with the legal language within the AOC in “Section 3: Validation and Attestation Details” under the “Part 3. PCI DSS Validation” subsection. The key text within this section is the “all questions answered affirmatively” as follows:
“Compliant: All sections of the PCI DSS ROC are complete, all questions answered affirmatively, resulting in an overall COMPLIANT rating; thereby (Merchant Company Name) has demonstrated full compliance with the PCI DSS.”, or
“Non-Compliance: Not all sections of the PCI DSS ROC are complete, or not all questions are answered affirmatively, resulting in an overall NON-COMPLIANCE rating, thereby (Merchant Company Name) has not demonstrated full compliance with the PCI DSS.”
The issue with using the “Not Tested” is that you are not answering the question affirmatively because no testing has been carried out to provide an affirmative response. Even “Not Applicable”, is an affirmative response since the QSA needs to assess the applicability of the requirement.
When can “Not Tested” be used?
The PCI SSC has released an FAQ entitled “Can a partial PCI DSS assessment be documented in a Report on Compliance (ROC)?” which provides further details on Partial PCI DSS assessments which utilise the “Not Tested” response. The FAQ details five example scenarios for when partial assessments are likely to be carried out; for example, an acquirer asking a Merchant to validate the milestone they are working at from the PCI DSS Prioritised Approach.
The “ROC Summary of Assessor Findings” section of the Report on Compliance (ROC) document details when the “Not Tested” response should be used. For the “Not Tested” the response is used when:
“The requirement (or any single aspect of the requirement) was not included for consideration in the assessment and was not tested in any way.”
Meaning that the requirement was not looked at to determine its applicability to the environment to determine if it should or should not be in scope. The QSA has not verified the requirements applicability to the assessment and instead has chosen to ignore the requirement completely. Section “What is the difference between “Not Applicable” and “Not Tested”” says:
“If a requirement is completely excluded from review without any consideration as to whether it could apply, the “Not Tested” option should be selected.”
My final rambling
QSAs need to ensure that compliant assessments have not utilised the “Not Tested” or “Not in Place” response in any of the responses within the ROC (or SAQs if the QSA is providing an assisted SAQ). A “Not Applicable” should be used, after the QSA has assessed the requirement and determined that the requirement was deemed as not applicable for the assessment. If performing a Service Provider assessment, a Merchant’s QSA may not accept the AOC being provided if the “Not Tested” has been used to provide a compliant assessment.
Answers to common ASV questions I often come across.
Working as a QSA and for an ASV Company I am often asked ASV questions. Most of which are around the same topics, but with the odd question that is quite intriguing. I have therefore decided to write up some of the most common and intriguing questions in this blog post. Hopefully, it will help others who have similar questions or are confused around any of the ASV requirements of PCI DSS (Payment Card Industry Data Security Standard).
The questions that I will be covering within the post are as follows:
How long do I need to remediate any failing issues?
I have been asked this question many times and I have also come across this issue whilst carrying out QSA consultancy for our clients. Reviewing the specific requirements for ASV scanning within Requirement 11.2 gives the following ASV Requirement 11.2.2 “Perform quarterly external vulnerability scans, via an Approved Scanning Vendor (ASV) approved by the Payment Card Industry Security Standards Council (PCI SSC). Perform rescans as needed, until passing scans are achieved.”, with three sub requirements within the ‘Testing Procedures’ column as follows:
Requirement 11.2.2.a “Review output from the four most recent quarters of external vulnerability scans and verify that four quarterly external vulnerability scans occurred in the most recent 12-month period.”,
Requirement 11.2.2.b “Review the results of each quarterly scan and rescan to verify that the ASV Program Guide requirements for a passing scan have been met (for example, no vulnerabilities rated 4.0 or higher by the CVSS, and no automatic failures).”, and
Requirement 11.2.2.c “Review the scan reports to verify that the scans were completed by a PCI SSC Approved Scanning Vendor (ASV).”.
Note: I am not including ASV requirements included within ‘significant change’ requirements as they are similar.
Nothing within these requirements indicate any timeframes for remediating vulnerabilities within ASV scans. Just that you must scan every quarter, AND that rescans need to be carried out to demonstrate that the vulnerabilities are fixed. We need to look at Requirement 6 of PCI DSS to look at patching requirements built into the standard. Remediation of vulnerabilities need to be carried out in line with documented processes in line with Requirement 6.2 “Ensure that all system components and software are protected from known vulnerabilities by installing applicable vendor-supplied security patches. Install critical security patches within one month of release.”, with two sub requirements within the ‘Testing Procedures’ column, one of which being as follows:
Requirement 6.2.a“Examine policies and procedures related to security-patch installation to verify processes are defined for:
• Installation of applicable critical vendor-supplied security patches within one month of release.
• Installation of all applicable vendor-supplied security patches within an appropriate time frame (for example, within three months).”
Purely from a risk perspective, vulnerabilities of the external footprint of the PCI environment should be remediated as soon as possible but at a minimum should fall in line with documented policies/processes. Often, Requirement 6.1 and Requirement 6.2 go hand in hand. Requirement 6.1 includes a risk ranking process “To assign a risk ranking to vulnerabilities that includes identification of all “high risk” and “critical” vulnerabilities.”. The categorisation and ranking of vulnerabilities should be already carried out by the ASV which as per the ASV Program Guide (Version 3.1 at the time of writing), must, whenever possible, utilise The Common Vulnerability Scoring System (CVSS) or the National Vulnerability Database (NVD). The ASV Program Guide defines the following risk ranking based on CVSS scores:
CVSS Score
Severity Level
ASV ScanResult
7.0 through 10.0
High
FAIL
4.0 through 6.9
Medium
FAIL
through 3.9
Low
PASS
Going off Requirement 6.2 requirements that vulnerabilities below High can be remediated within three months (for example), multiple ASV scans will need to be provided to demonstrate that any High vulnerabilities have been remediated as per the requirements of Requirement 6.2; i.e. within one month. My recommendation would be that best endeavour would be to also remediate Medium vulnerabilities within the same timeframe as High severity vulnerabilities and looking at the into the PCI SSC FAQ 1087 “For vulnerability scans, what is meant by quarterly?”, which highlights that vulnerabilities should be identified and remediated within a timely manner. Remediation is key as ASV scanning focuses on the external attack surface of the cardholder data environment which has an extremely large pool of potential threat actors.
Since the remediation period can vary, to best manage ASV scanning and the “quarterly” intent, I would suggest that an ASV schedule is setup so each quarter’s scan starts on the same date every quarter, then the remediation and passing scans can be achieved as per the requirements within Requirement 12.2.2.a and subsequent rescans in line with Requirement 12.2.2.b.
Do I really need four passing ASV scans to be compliant?
Yes and no! The wording of Requirement 12.2.2.a above includes “Review the results of each quarterly scan and rescan to verify that the ASV Program Guide requirements for a passing scan have been met…”, which implies that a “passing scan” has to be obtained. So, let us explore this a little, the requirement says that the results of each quarterly scan and rescan needs to be reviewed to verify that the ASV Program Guide requirements for a passing scan have been met. The ASV Program Guide details CVSS scoring which will result in a fail; for example, vulnerabilities with CVSS scores 4.0 or above and some other specific vulnerabilities which will be an automatic failure, for example, unsupported operating system. A failing report will be issued if anything is picked up that constitutes a fail within the ASV Program Guide.
So, this is where it gets a little interesting. Looking at the PCI Security Standards Council (PCI SSC) FAQ 1152; “Can an entity be PCI DSS compliant if they have performed quarterly scans but do not have four passing scans” it says;
“With new vulnerabilities continually being identified, scanning becomes an integral part of an organization’s vulnerability management process, resulting in a cycle of scanning, patching and re-scanning until a “clean” scan is obtained. However, due to the frequency of new vulnerabilities being identified, it may not always be possible to produce a single, clean scan for every quarter.”
This is saying that there is every chance that during the remediation window between that quarters ASV scan and the time for the rescan, a new vulnerability may have been released and the ASV scanner’s detection rules being updated. This will result in another failing scan, even if the entity has remediated all vulnerabilities found as per the first scan. Additional, FAQ 1152 says:
“To verify that the quarterly scan requirement has been met, the following should be in place:
• Scans of all in-scope systems were performed for each quarterly period, and all in-scope systems are covered by the entity’s scan-remediate-rescan processes
• Rescans were performed as necessary, and show that vulnerabilities identified in the initial quarterly scans have been remediated, for all affected systems, as part of the quarterly process
• The entity has processes in place to remediate currently identified vulnerabilities
• Repeated failing scans are not the result of poor remediation practices resulting in previously identified vulnerabilities not being properly addressed”
The text in blue above highlights that an entity will need to ensure that rescans are performed showing that vulnerabilities identified in the initial quarterly scan have been remediated.
So, providing an entity has the initial scan (as already highlighted above, my recommendation is to set a schedule for the initial scans, every 3 months and stick to this schedule) and subsequent rescans showing that ALL failing issues have been remediated, in line with the patching requirements within Requirement 6.2 (see the question above) then this will be sufficient. This is also dependant on the fourth bullet point above, a process must be in place to ensure any newly identified vulnerabilities are still remediated and not just left until the next ASV Scan window; which against should fall in line with patching requirements within Requirement 6.2.
Doesn’t my next scan start 3 months after my passing scan?
I have been asked this numerous times and I think the confusion here is to do with the way the ASV Report templates are designed which are contained within the ASV Program Guide Appendixes and therefore must be generated by ASV solutions. ASV reports have a field within them which says, “Scan expiration date (90 days from the date scan completed)”, this causes an issue whereby the remediation window can affect the timing of ASV scans. Let us explore this with an example whereby a company goes off the scan expiration date on the passing ASV reports.
Company “PCI Ramblings” initiates a PCI ASV Scan on the 1st of January, a vulnerability with a CVSS score of 5.1 is identified which is remediated on the 29th of February (inline with PCI Ramblings remediation window defined within Requirement 6.2) and a rescan is run which results in a passing scan. PCI Ramblings runs the next ASV scan on the 29th of May (within 90 days of the passing scan), again a vulnerability is identified, this time it has a CVSS score of 6.5. Remediation takes nearly two months, so a passing rescan is not achieved until 22nd of July. Third quarter scan is run on the 18th of October with a further vulnerability with a CVSS score of 4.5 identified. This takes just over a month to remediate with a passing re-scan occurring on the 25th of November. Three months from the 25th November would take the fourth ASV scan to the following February, leaving PCI Ramblings short of their ASV scans.
Looking into the PCI SSC FAQ 1087 “For vulnerability scans, what is meant by quarterly?”, we have already highlighted above that vulnerabilities should be identified and addressed in a timely manner, suggesting to me that even if an organisations remediation window is defined as 3 months for medium vulnerabilities, this should be much less for attack surfaces which are publicly accessible over the Internet. Even if 3 months remediation is defined, the intent of the PCI DSS requirements for ASV is that ASV scanning is carried out in line with the PCI SSC ASV Program Guide every quarter, therefore the scenario identified above would not meet this intent.
I always recommend that organisations work from an initial scan date and work ALL further scans to be in 3 month (90 day) intervals from that initial scan date to ensure the requirements of Requirement 12.2.2 can be adequately met. This is depicted in the “Example ASV Schedule” diagram below.
Why does the ASV not determine my ASV scope?
As per Section 4.2 of the ASV Program Guide, the scan customer is responsible for:
“Defining the scope of external vulnerability scanning, which includes:
•Providing the IP addresses and/or domain names of all Internet-facing systems to the ASV so the ASV can properly conduct a full scan.
•Implementing proper network segmentation for any external-facing components excluded from the scope.
See Section 5.5, “ASV Scan Scope Definition,” for more information.”
Although an ASV Company can, and often will, help with this, scan customers should really be asking a QSA to help with environment scoping as the PCI Cardholder Data Environment (PCI CDE) and any “Connected-to” environments would need to be in scope. Additionally, any segmentation techniques employed by the scan customer may need to be considered to limit the scope of ASV scanning.
What needs to be included within my ASV scans?
Again, this is raised quite often by customers and it continues to be an issue when customers are trying to carry out a like for like quote. As per the ASV Program Guide within Section ‘5.5 ASV Scan Scope Definition’, ASV scans need to include scanning of “all external accessible (Internet-facing) system components owned or utilised by the scan customer that are part of the cardholder data environment (CDE), as well as any external facing system component that may provide access to the CDE”. This is quite clear, however if we break this down a little. As I have mentioned in a previous response above, the scope does not just include the CDE but also connected-to systems. So organisations need to ensure the ASV scope is accurate because it may not just be the environment that is known as the CDE, i.e. directly involved within the storing, processing or transmission of cardholder data (CHD) but may also include any other systems that have connectivity to the network segment(s) that make up the CDE. When I’m doing my assessments, connected-to systems and networks are typically still in scope for PCI DSS assessment activities, therefore I wrap them up as being a part of the CDE to simplify the environment that needs to be included as in scope.
Another point that needs to be made here, which is often missed and can be mis-configured when using some ASV solutions is that the scope doesn’t just include IP Addresses, but also need to include fully-qualified domain names (FQDNs) and other entryways into system components. Often, ASV scans will only be configured for IP Addresses and will therefore miss some critical components. In the past I have come across instances where web applications have been missed from the scope and although the IP Address is included, the web server is behind a load balancer which uses the FQDN to direct it to the correct web resource. This was therefore missed from the ASV scans as it was scanning a completely different webservice.
Segmentation of large public IP ranges can cause complications when trying to determine the scope. If a large public IP range has been allocated to the scan customer and the range has been split up to support in-scope systems and out-of-scope system, then the segmentation would need to be validated to determine it is adequate enough for the out-of-scope public IP addresses to be excluded from scope.
If a hosting company is used to host part of the in-scope environment, if you look at their Attestation of Compliance (AOC) you need to;
Ensure that the scope of their PCI DSS assessment has included the server and environment that you are utilising, and
Confirm that Requirement 12.2.2 has been included.
It is important that where hosting companies and more to the point, where shared hosting providers are involved; either the hosting provider is performing ASV scanning for you or you must include this yourself. If you will be relying on the hosting providers ASV scan results, you will need to ensure that ALL entry points have been included, unless the hosting provider is responsible for the web applications within the environment, it will be unlikely that these entry points will be included within their scans.
Remember, it is the scan customers responsibility to get this right, therefore if anyone is struggling to determine the correct ASV scope, then the chances are that PCI DSS assessment activities may not be including the correct environment either so consult a QSA to validate the scope of the PCI DSS Environment. This will then help to identify the external footprint and therefore help determine the correct ASV scope.
I have given you my scope so why do a discovery scan that I have to check and confirm?
I often hear comments regarding this. Some ASV solutions are quicker than others, depending on how robust the discovery checks are. The requirement to run an ASV discovery scan is include within the ASV Program Guide under Section ‘5.5.3 ASV “Discovery” and Scope Validation’ and therefore must be included as part of the solution. The discovery scan must run, and any discrepancies must be raised with the scan customer for confirmation that nothing is potentially missing from the provide scope. This is detailed within the following text: “identify whether any scoping discrepancies exist in the information provided by the scan customer.”.
The intent of this requirement is to provide a level of validation and feedback any potential discrepancies which the scan customer may have missed or forgotten to include. Since the scope is the responsibility of the scan customer, and the scan customer attests to the scope being accurate and to help secure cardholder data environments, it is important that ASV Companies do their best to flag any missing systems or entry points into the scan customers environments.
I am doing quarterly ASV scans so why do I still need an annual PCI penetration test?
ASV is an automated external vulnerability scan that can help to identify vulnerabilities and misconfigurations against the external footprint of the cardholder data environment. These tools will typically run against the infrastructure, services and applications running within the environment. These automated scanning tools will scan:
PhysicalDevices: such as, but not limited to; routers, firewalls, switches, load balancers
Servers: which could be physical servers or virtual servers,
Services: such as, but not limited to; DNS, Email, Web (HTTP/HTTPS), FTP, SSH, SFTP, RDP, and others,
Web Applications: (HTTP/HTTPS) running on web server technologies such as, but not limited to; IIS (Internet Information Server), Apache, Nginx, etc…
Vulnerability scanners will typically utilise scripts, signatures and/or databases of known vulnerabilities in an automated manner to identify weaknesses within the scanned environments. Usually, automated scanners will perform this from an unauthenticated perspective, however some automated vulnerability scanners do support authenticated scans, some of which are better than others at supporting this task. Currently, the ASV Program Guide does not require ASV Scans to perform authenticated scans which could leave vulnerabilities un-identified which would otherwise be if authenticated to the environment and/or web applications. Typically, automated vulnerability scanners will not attempt to exploit any potential vulnerabilities identified; although better automated vulnerability scanners will perform a level of “safe” exploitation in an attempt to limit false positives, which are vulnerabilities reported which turn out to not exist. Automated scanners are also generally unable to identify where a sequence of identified vulnerabilities may be chained together to accomplish a more significant compromise of the host systems. They are often limited to the immediate effect of a payload, and unable to track (nor speculate on) potential vulnerabilities through more elaborate system processes or user journeys e.g. a payload injected in the context of one user that is triggered when logged in as another. Furthermore, they are extremely limited in their capacity to identify where business logic flaws may exist, or to understand where an identified issue may seem benign yet in the context of an organisation is a serious reportable issue e.g. Role Based Access Control scenarios where a user can access privileged information they shouldn’t be able to, yet the requests/responses look ‘legitimate’ and only knowledge of the systems intended design/role limitations can identify that a problem exists. Finally, as well as the possibility of false negatives, vulnerability scanners are written to output as many potential findings as possible for review, hence without conducting such a review a report will consist of many false positives.
Penetration testing, on the other hand, is often deemed as goal-oriented utilising a skilled individual with familiarity of a systems intended design and purpose to manually test the environment, identifying unknown vulnerabilities and actively chaining relatively benign vulnerabilities together to further exploit the environment like a real threat actor would. Penetration testing will still utilise vulnerability scanning tools as part of the reconnaissance stage to map out the environment before manually carrying out exploits and other manual techniques with the aim to exploit the infrastructure and any web application weaknesses within the environment. The process will also involve validation of any vulnerabilities identified by scanners, and the filtering out of false positives that would otherwise appear in a report, giving an overall more accurate picture.
Vulnerability scanning and penetration testing compliments an organisations cyber security program to reduce cyber security risks. Vulnerability scanning is much cheaper than penetration testing and can therefore by carried out more regularly and can be used to detect simple vulnerabilities and misconfigurations. Penetration will often be more expensive due to the human element and the time spent by the penetration tester to manually test all attack vectors and therefore many organisations cannot afford to conduct this as often.
I am doing quarterly ASV scans which means I am secure, yes?
As discussed in the previous question, ASV scanning simply carries out automated scans based on known vulnerabilities and configuration weaknesses. This involves only the external attack surface of an organisation and provides no information on vulnerabilities that may exist in other parts of a system, such as the internal perimeter of the CDE. In some respects, this can give entities a false sense of security, which is often why this question crops up. As with everything, vulnerability scanners come with varying degrees of capabilities and feature sets. Many ASV scanners, although built upon other commercial vulnerability scanners, may operating ASV scanning on a reduced feature set to simply meet the specification defined within the PCI SSC ASV Program Guide. We have also already discussed the difference between a vulnerability scan and penetration testing in an earlier question, which I will not repeat. For this reason, and as intended by PCI DSS, ASV scanning should be one of the many techniques and tools used within an organisations arsenal to compliment the security program to help secure the environment.
Warning: Due to the topic, this post is long and therefore I have made a PDF version of this which can be downloaded here.
This is something that many QSAs (Qualified Security
Assessors) are unable to agree on and I’ve been involved in many discussions
for and against utilising a shared Microsoft Windows Active Directory (AD)
infrastructure. As I’ve already written
about, this is something that in the past I have not allowed because when I used
to do penetration testing, the ability to compromise the whole Windows Domain from
simply gaining administrative access to a domain joined host was usually
trivial. That said, one could argue that
this was due to the configuration of AD and the security of the Windows systems
supporting it.
From a PCI DSS perspective, the PCI SSC guidance “Information Supplement: Guidance for PCI DSS Scoping and Network Segmentation” (Referred to as the PCI SSC Scoping Guidance herein) includes the use of Microsoft AD as a ‘Shared Service’, meaning that the same Microsoft AD can be used to service the in-scope Cardholder Data Environment (CDE) and the not-in-scope environments. This still finds me somewhat uneasy and I would still highly recommend designing a separate Microsoft AD environment to support the CDE and non-CDE environment as sharing a Microsoft AD environment will introduce unnecessary risks to the CDE and the cardholder data (CHD) being handled. Mis-configurations over time to a shared Microsoft AD will only increase the chances of a compromise, therefore this is an important risk that must be managed well to ensure the environment stays secure.
That said, I have set off on this path to identify if there is a way to configure Microsoft AD and it’s supporting Windows infrastructure in a way that will provide increased protection against compromised untrusted domain joined hosts from leading to a complete compromise of Microsoft AD and the Domain Controllers (DCs). This article will discuss the approach and findings to this research in the hope of providing further guidance for hardening Microsoft AD to reduce the risks of this type of deployment if an organisation is adamant on deploying Microsoft AD in this manner.
Objective
I’ve discussed my approach to ‘Scoping and Segmentation’ in a previous post (here), if you haven’t already read it I would recommend you do so. As a recap, I discuss an approach which was originally introduced within the “Open PCI DSS Scoping Toolkit” (Referred to as the Open Scoping Toolkit herein) and which maps to a similar concept within the PCI SSC Scoping Guidance. Both documents discuss the concept of 3 categories of network segments of different security boundaries. These are defined as follows;
Page 10 of PCI SSC guidance document discusses
three categories of systems as follows;
CDE Systems,
Connected-to or Security-impacting Systems
(Shared Service),
Out-of-Scope Systems.
Open PCI DSS Scoping Toolkit as follows;
CAT 1 (i.e. CDE Systems),
CAT 2 (i.e. Connected-to or Security-impacting
Systems),
CAT 3 (i.e. Out-of-Scope Systems)
To make the post easier to read, I’ll be using the terms CAT
1, CAT 2 and CAT 3, however these are synonymous to the three categories (CDE
Systems, Connected-to/Security-impacting systems and Out-of-Scope Systems)
identified within the PCI SSC Scoping Guidance as detailed above.
The key concept within these two documents is that the CAT 1
and CAT 3 segments should never have direct connectivity. “Shared Services” can operate within the CAT
2 environment, which can serve both the CAT 1 and CAT 3 segments. CAT 1 and CAT 2 are in scope for PCI DSS
assessment activities, whilst, typically the CAT 3 segment remains out-of-scope
for PCI DSS assessment activities.
The PCI SSC guidance document includes Microsoft Active
Directory as a “Shared Service” which can service both the CAT 1 and the CAT 3
segments, which, as I’ve already discussed, I have always felt uncomfortable
with. The objective of this research and
this article is to assume that the CAT 3 segment and all ‘not-in-scope’ (or
untrusted) domain joined hosts within this segment have been compromised and a
threat actor has “Administrative” control of one of (or all of) them. Administrative access may give the threat
actor access through Firewalls / Access Control Lists (ACLs) providing
segmentation between the various network segment security boundaries. Therefore, the goal is to identify a configuration
of Active Directory that protects the CAT 2 and CAT 1 Active Directory
infrastructure against a domain level attack, limiting the exposure to just CAT
3 devices.
The following paragraph on Page 6 of the PCI SSC Scoping
Guidance says;
“The intent of segmentation is to
prevent out-of-scope systems from being able to communicate with systems in the
CDE or impact the security of the CDE. Segmentation is typically achieved by
technologies and process controls that enforce separation between the CDE and
out-of-scope systems. When properly implemented, a segmented (out-of-scope)
system component could not impact the security of the CDE, even if an attacker
obtained administrative access on that out-of-scope system.”
Therefore, my objective is aligning to this premise of
obtaining administrative access to the CAT 3 system(s), proving little to no
risk to the environment, namely Active Directory, thus maintaining CAT 3
‘out-of-scope’.
I’ll be looking at techniques to do this without the need to implement mitigation’s on the untrusted CAT 3 devices themselves. Since we are trying to keep these hosts out-of-scope, if we start to implement mitigation controls on them, we are then bringing them into scope for some requirements which could then snowball into the whole of CAT 3 pretty much implementing all applicable PCI DSS controls thereby negating the point of them being not-in-scope.
Architecture
Due to the scoping and segmentation concepts discussed, a lot of organisations and QSAs will accept a design which is architecturally implemented in this manner, see the simplistic diagram below.
Simplistic Design Diagram
Domain Controllers could be deployed in one or many various
locations across CAT 1, CAT 2 and CAT 3.
Regardless of their deployments, providing Microsoft Active Directory
Sites and Services is configured correctly, you can still restrict which DCs
clients will utilise for authentication to limit blanket access through
firewalls from many Domain Joined hosts.
For Microsoft Windows and Microsoft AD to function correctly, multiple services operating within a Windows infrastructure have various port requirements. The following table lists various port requirements which allow connectivity between Windows workstations and DCs and for intra-DC communications. These ports are used to support services such as, but not limited to; Active Directory, Distributed File System Namespaces, Distributed File System Replication, Distributed Transaction Coordinator and Group Policy. For a breakdown of ports and services, see the following Microsoft article; “Service Overview and Network Port Requirements for Windows”;
Source Port
Protocol
Application Protocol
Destination Ports
1024-65535
TCP/UDP
DNS
53
1024-65535
TCP/UDP
Kerberos
88
1024-65535
TCP
RPC (Remote Procedure Call)
135
1024-65535
TCP/UDP
NetBIOS Name Server
137
1024-65535
UDP
NetBIOS Datagram Service
138
1024-65535
TCP/UDP
NetBIOS Session Services
139
1024-65535
TCP/UDP
LDAP (Lightweight Directory Access Protocol)
389
1024-65535
TCP
SMB (Server Message Block)
445
1024-65535
TCP
Microsoft Active Directory Global Catalog
3268
1024-65535
TCP
Microsoft Active Directory Global Catalog with LDAP/SSL
3269
1024-65535
TCP
RPC
5722**
1024-65535
TCP
Active Directory Web Services (ADWS) / Active Directory Management Gateway Services
9389
1024-65535
TCP/UDP
Dynamic Port Ranges
49152-65535*
* Windows 2000, XP and Windows Server 2003 utilise a smaller
range of dynamic ports; 1025 to 5000
** Windows 2008/2008 R2 servers only
So, these firewall ports will be included between CAT 3 and
CAT 2 and between CAT 1 and CAT 2 in the diagram above. These ports will likely need to be in both
directions.
As you can see from the table, the port requirements are quite significant with some of these ports introducing many additional security concerns to the environment, especially SMB, RPC and NetBIOS ports which can allow threat actors to map out the Windows environment, brute-force user credentials or can expose vulnerabilities as these services are often the target of threat actors looking to find 0-day vulnerabilities.
Attacks/Risks
There are many attacks and mis-configurations that can lead
to a compromise of a Microsoft AD infrastructure. Due to the nature of Microsoft AD and the way
in which it controls user authentication and utilises trusts-relationships
between other domains, forests and computers, there are inherent risks that can
often be introduced. Some of the most
common issues include;
Over privileged
accounts: A secure design of Microsoft AD, or any other authentication
system usually includes a least privilege concept. This ensures users’ accounts are configured
with the absolute minimum privileges required for the user to carry out their job
function. It is often the case that Microsoft
AD accounts are configured with more privileges than needed and within larger
environments, you can often see 100’s or even 1000’s of accounts like
this. This increases the attack surface area
and the probability of compromising an over privileged account that can be used
to gain full administrative control over the entire Microsoft AD infrastructure.
Privileged accounts
with weak credentials: Linked to the above, there is a risk of privileged
accounts having weak passwords that can be easily guessed and therefore
compromised. If a threat actor can gain
access to a privileged account, this could provide an attack vector that leads
to a compromise of the entire Microsoft AD infrastructure.
Password reuse:
This can pose a real problem within Microsoft AD environments. Often, passwords will be re-used across multiple
accounts and across multiple devices. If
not managed correctly, it only takes a compromise of a single system to then
yield a privileged account password that is used across many devices or either
the entire environment. An attacker can
leverage this to then compromise the entire Microsoft AD infrastructure.
Abuse of Delegation
Tokens: An issue within a Microsoft AD environment is that delegation tokens
can often be cached on domain joined servers and workstations. This becomes a massive issue if there is
inadequate patching which exposes domain joined machines to privileged access. Finding a domain joined machine with a domain
administrative delegation token provides an attacker with administrative privileges
across the whole domain. With a
delegation token, it allows the computer or service to present the credentials
of that user via their delegation token.
Therefore, if a delegation token of a domain administrator is located,
the delegation token can be used as if you were that domain administrator.
Pass-the-hash attacks:
With pass-the-hash attacks, if the user’s password hash is obtained (for
example, by dumping a local machines password database), Windows will allow a
user to present the hash of their password instead of the actual password. This
negates the need of an attacker cracking a user’s password since they can
simply just present the hash obtained, authenticating as that user.
SMB Relay attacks: This is an old problem dating back to 1997 in a paper by Dominique Brezinski called “A weakness in CIFS Authentication”. This man-in-the-middle attack allows an attacker to authenticate to a domain resource as a valid user. The attack works by waiting for the start of a user’s SMB authentication process, then routing this traffic through the attacker’s computer, modifying the request so it is coming from the attacker but with the user’s credentials, thus authenticating to the resource as that user. A good write up of this can be found in the “Server Message Block: SMB Relay Attack (Attack That Always Works)” article.
Kerberoasting attacks: This attack relies on having a valid user account to request service tickets for service accounts via their Service Principal Name (SPN) values. Active Directory will return an encrypted ticket, which is encrypted using the (NT Lan Manager) NTLM hash of that account. This can then be used to perform an off-line brute force attack to obtain the service account password in plain text. As discussed within Microsoft’s “Best Practices for Securing Active Directory”, avenues to compromise also includes; outdated applications and operating systems, missing patches and gaps in anti-virus and anti-malware deployments. These elements are not specific to this discussion; therefore, these other attack vectors are not discussed further within this document which will purely focus on specific configuration and techniques to help secure Microsoft AD deployments.
Targeted Accounts
Within Microsoft AD, there are three main privileged groups that are targeted by threat actors, EA
(Enterprise Admins), DA (Domain Admins) and BA (Built-in Administrators) groups,
DNSAdmin is also targeted which is discussed later. Users of these groups are the target of threat
actors since these groups of users have privileged access to the Active
Directory. On workstations and member
servers, the local Administrators group is also targeted as this group provides
the attack with privileged access to the workstation/server.
Additionally, VIP (Very Important Person) domain accounts
are often targeted due to the types of data they have access to.
The remainder of this document discusses one possible design
and various best practice configuration techniques which will help mitigate some
of the threats to Microsoft AD helping to secure Microsoft AD as a ‘Shared
Service’.
One Possible Design Scenario
My issue with the simplistic design above is that domain controllers are located within CAT 2, therefore there are a lot of ‘undesired’ ports required to allow functionality between the untrusted domain joined machines in CAT 3 and the Microsoft AD services in CAT 2. The following design can somewhat simplify this since a second DC (or multiple for fault tolerance) can be included within CAT3, however this DC would still be in scope for PCI DSS assessment activities. Additionally, since there is no firewall between the CAT 3 system components and the DC housed within CAT 3, this exposes the DC to additional threats. For this reason, it is recommended that the local software firewall be utilised to provide additional firewalling functionality (which would come into scope for PCI DSS Requirement 1).
Example Design Scenario Diagram
Specific Configuration and Best Practice Techniques
This section provides some best practice and configuration
specifics that can (and most definitely
should) be used to harden the Microsoft AD environment. The narrative of the discussions within this
section will be based on the example design scenario above. The following sub-sections will discuss some
specific configurations, techniques and areas of AD that can help secure the
environment.
Microsoft Active Directory Sites and Services
With this example design, traffic from the untrusted domain
joined machines within CAT 3 and Microsoft AD can be limited to DC3. This can be done by configuring Microsoft AD
Sites and Services correctly. Once setup
correctly, the firewall rules can be locked down to block traffic between
domain joined machines and CAT 2, only allowing DC3 into CAT 2.
N.B. The design diagram
does identify additional shared services, such as Microsoft CRM and Exchange
Server. Access to these resources can be
restricted on the firewall or front-end servers (Microsoft Exchange) could be
used within CAT 3.
Separate Accounts
Privileged access accounts should not be used for general
productivity (day-to-day) tasks.
Privileged accounts should only be accessed when required to perform a
specific task which requires elevated privileged and should only be used to
complete said task.
There are a lot of Windows vulnerabilities that require elevated privileges to work, therefore only standard user accounts should be used for general day-to-day activities. As per the 2019 BeyondTrust Annual Microsoft Vulnerabilities Report (Available Here), 81% of crucial vulnerabilities discovered in 2018 would be mitigated by simply not running as an Administrator.
Additionally, as already discussed in the Attacks/Risks section above, limiting use of these accounts will reduce the attack surface and the chances a threat actor will gain access to a privileged account.
Securing Privileged Accounts
This section discusses the various techniques that can help with
securing privileged accounts.
Privileged Account
Hardening/Best Practice
Microsoft has released many extremely useful articles
discussing how privileged user credentials can be secured to protect against
many of the threats they face. This
section will provide information on some (not all) of the recommendations as
follows:
Privileged accounts should not be used to browse the Internet or receive emails. In fact, Domain Controllers and other sensitive systems, including Privileged Access Workstations (PAWs); which are discussed later, should not have access to the Internet. Restrictions on web browsers and email clients can be placed on these systems and firewalls can be configured to block Internet access.
Password re-use should not be in use within the environment. Password re-use is where the same password is used across many accounts. In fact, this is a breach of one of PCI DSS requirements 8.5.b which says “8.5.b Examine authentication policies and procedures to verify that use of group and shared IDs and/or passwords or other authentication methods are explicitly prohibited.”. LAPS can help with this which is discussed later, however it still comes with its complications so the easiest way to overcome this problem is to simply disable Administrator accounts across all servers and workstations (booting into Safemode will still allow disabled Administrator accounts to be used). LAPS coupled with disabling the Administrator account will provide coverage against password reuse and the ability to utilise the Administrator account remotely.
Limit the number of accounts within privileged domain groups, or better yet, add accounts to the “Privileged Groups” only when needed and only for the duration of when that user requires said privileges. This should be supported by a strong approvals process for granting these privileges.
Authentication Policy Silos can be used to limit where account can be used. This can effectively be used to limit privileged and “sensitive” accounts to where they can be used within the domain. This can be used to limit high-value account usage to high-value assets, thus limiting the risks of account compromises of these high-value accounts by enforcing their usage to high-value assets only (i.e., can limit accounts for us in CAT 1 only). See the “Authentication Policies and Authentication Policy Silos” article for further reading.
Limit the number of accounts with direct administrative control over workstations and servers. Many organisations will limit access to privileged domain groups but will provide user accounts with local administrative rights to a lot of the estate’s workstations and servers. These accounts would still be targeted by attackers and could be leveraged to compromise the AD estate.
LAPS can be used to provide just-in-time local admin passwords. With LAPS, unique random passwords are generated for administrative user accounts across all workstations and servers the LAPS client has been deployed to. The passwords are then stored within Active Directory, which are protected by ACLs (Access Control Lists) which can be configured to a select number of system administrators. Ideally, the Administrative account should be disabled instead of relying on LAPS, due to additional complications as detailed below.
N.B. This
can cause an issue with PCI DSS requirements because potentially, multiple
users will have access to the administrative passwords. A suitable compensating control would need to
be implemented to work with LAPS due to this issue.
MFA using Smart cards or certificate-based authentication mechanisms can and should be used to further protect privileged accounts.
A Microsoft article (found here) discusses activities that increase the likelihood of compromise. Within this article, it suggests that logging on to unsecured computers with privileged accounts can increase the risk of a compromise. The issue is that the security posture of the unsecured domain joined computers is unknown, therefore utilising an AD account that has elevated privileges across the domain is a bad idea as the credentials could be compromised. To perform administrative functions across these machines, the recommendation would be to create specific domain user accounts (Not Domain Admin) designed for the purpose of performing administrative functions on these unsecured computers. Add these users to an Active Directory Group (Unsecure Comp Local Admins) and add this group into the local Administrators groups on each machine within CAT 3. This will give these users the ability to perform local administrative functions. Domain user accounts should only be added to this group when they need to perform remote administrative activities so this group should remain empty for the majority of the time.
Care still needs to be taken when logging on directly or utilising logon types which will leave reusable credentials on the destination host (e.g. RUNAS authentication). As already mentioned, it would be recommended that these accounts utilise MFA (all privileged accounts would be recommended). The “Administrative Tools and Logon Types” section of the “Active Directory administrative tier model” document details which logon types leave reusable credentials on a destination host. Again, it is important that the membership of the “Unsecure Comp Local Admins” group is kept empty until needed. To further secure these accounts, Active Directory Users and Computers can be used to restrict authentication of these user accounts to only work for the unsecured computers. This can be done by configuring the “Logon Workstations” for the user account profile (this can be found under Account à Log On To). You need to specify the NetBIOS machine name or DNS computer name of each machine the user account can logon to. This can get tiresome; therefore, this can be done via PowerShell by providing a list of users. Note: This property is limited to 64 computers.
Workstations and Member
Servers Local Privileged Accounts
The following best practices are recommended for privileged
accounts on domain joined workstations and servers;
Limit the exposure of compromised Administrator
accounts by limiting where they can logon;
Via Group Policy, this can be done by adding Administrator to the following objects;
Computer Configuration\Policies\Windows Settings\Security Settings\Local
Policies\User Rights Assignments:
Deny access to this computer from the network
Deny log on as a batch job
Deny log on as a service
Deny log on through Remote Desktop Servers
The following “Securing Privileged Access” Microsoft article recommends the use of just-in-time passwords (i.e. LAPS) to perform administrative functions on workstations which are in less secure environments (i.e. CAT 3), so as not to expose a domain admin account. A contradictory recommendation within the follows “Avenues-to-Compromise” article also suggests disabling the built-in administrator account, which is disabled by default in current versions of Windows Workstation (from Windows Vista). Under normal operation of the Windows host, a disabled administrator accounts cannot be used. This, coupled with LAPS, will therefore further secure the environment since should a host get compromised and the attacker obtain the local administrator password hash, it will be a randomly generated password. A disabled administrator account can only be used if the machine is booted up into safe mode, so for Disaster Recovery purposes, an authorised user can access the LAPS passwords within Active Directory and recover the system through safe mode.
Privileged Accounts
and Groups in Active Directory
The following best practices should be applied to privileged
accounts and groups in Microsoft AD;
For BA accounts, the following controls should
be implemented;
Enable the “Account is sensitive and cannot be
delegated” flag on the account. This can
be done within the user’s properties within Active Directory Users and
Computers.
Enable the “Smart card is required for
interactive logon” attribute on the account.
Windows will reset the account’s password to a 120-character random
value. This makes this account unusable,
although the password could be reset if required.
Within a Group Policy object that is linked to
all workstations and servers, add this BA account into the following rights in
Computer Configuration\Policies\Windows Settings\Security Settings\Local
Policies\User Rights Assignments;
Deny access to this computer from the network
Deny log on as a batch job
Deny log on as a service
Deny log on through Remote Desktop Services
Within a Group Policy object that is linked to
domain controllers, add this BA account into the following rights in Computer
Configuration\Policies\Windows Settings\Security Settings\Local Policies\User
Rights Assignments;
Deny access to this computer from the network
Deny log on as a batch job
Deny log on as a service
Deny log on through Remote Desktop Services
(N.B.: This does not stop the Administrator account from being used at the console, or in disaster recovery scenarios)
Disable the BA account.
Enable auditing of the BA account to highlight
any changes to the configuration of the account.
For the EA group, the following controls should
be implemented;
On a day-to-day basis, the EA group should not
have any members, apart from possibly the Forest Root domain’s administrator,
which should be secured as above.
Within a Group Policy object that is linked to
all workstations and servers, add this EA group into the following rights in
Computer Configuration\Policies\Windows Settings\Security Settings\Local
Policies\User Rights Assignments;
Deny access to this computer from the network
Deny log on as a batch job
Deny log on as a service
Deny log on through Remote Desktop Services
Enable auditing of the EA group to highlight any
changes to the configuration of the account.
For the DA group, the following controls should
be implemented;
On a day-to-day basis, the DA group should not
have any members and should only be used in build or disaster recovery
scenarios. The only possible exception
to this is possibly the domain’s administrator account, which should be secured
as above.
Within a Group Policy object that is linked to
all workstations and servers, add this DA group into the following rights in
Computer Configuration\Policies\Windows Settings\Security Settings\Local
Policies\User Rights Assignments;
Deny access to this computer from the network
Deny log on as a batch job
Deny log on as a service
Deny log on through Remote Desktop Services
N.B. If jump servers are used to administer DCs and Microsoft AD, ensure these are within an Organisational Unit (OU) that restricts this GPO from being applied.
Enable auditing of the DA group to highlight any
changes to the configuration of the account.
N.B. By default the Domain Admins group is added as a member of the local
Administrators group on workstations and servers when they get added to the
domain. This should not be modified as
it can affect supportability and disaster recovery options.
For the local Administrators group, the
following controls should be implemented;
On a day-to-day basis, the DA group should not
have any members and should only be used in build or disaster recovery
scenarios. The only possible exception
to this is possibly the domain’s administrator account, which should be secured
as above.
Within a Group Policy object that is linked to
all workstations and servers, add this local Administrators group into the
following rights in Computer Configuration\Policies\Windows Settings\Security
Settings\Local Policies\User Rights Assignments;
Deny access to this computer from the network
Deny log on as a batch job
Deny log on as a service
Within a Group Policy object that is linked to
all domain controllers (usually the Domain Controllers OU), add this local
Administrators group into the following rights in Computer
Configuration\Policies\Windows Settings\Security Settings\Local Policies\User
Rights Assignments;
Access this computer from the network
Allow logon locally
Allow logon through Remote Desktop Services
Enable auditing of the local Administrators
group to highlight any changes to the configuration of the account.
N.B. Be careful do not implement Deny logon locally or Deny logon through
Remote Desktop Services for the local Administrators group as this could cause issues.
N.B. All additional PCI DSS Requirements for user accounts should also
be implemented as per the PCI DSS V3.2.1; i.e. Requirements 7 & 8.
Multi-Factor Authentication should be used for all “Administrative”
accounts.
Role Based Access Controls (RBAC)
As discussed in the previous section, in most cases, membership
of the EA, DA and BA privileged groups should not have any members in
them. So, how do system administrators
carry out admin tasks? This is where
RBAC comes in. This can be achieved via
native tools and interfaces, tooling created by the company or third-party
products. The idea of RBAC is to create
roles within Active Directory and delegating the necessary rights and
permissions to that group, allowing its members to perform day-to-day admin
tasks. By utilising this approach, the
organisation can create roles with specific rights and permissions, ensuring
that the group doesn’t have too much privilege.
This can be challenging and will rely on the organisation
having clearly defined roles and responsibilities for the various groups of
administrators within the IT teams. To
ensure each role is configured with the least privileges required, for each role, the
organisation should identify;
For each role you define, you should identify:
Which
tasks members of the role perform on a day-to-day basis and which tasks are
less frequently performed.
On
which systems and in which applications members of a role should be granted
rights and permissions.
Which
users should be granted membership in a role.
How
management of role memberships will be performed.
N.B. If highly privileged
rights/permissions are required, then separate accounts should be used, with
MFA enabled on these accounts. All the
guidance above for “Privileged” accounts should be followed for these highly
privileged roles.
Microsoft AD does have some predefined security groups that
may be appropriate for specific job roles, for example; the DNS Admins
group. The DNS Admin group has the
necessary rights and permissions to maintain and manage DNS zones and records,
however care of this group needs to be taken since DNS is heavily utilised for
the correct operation of AD so a malicious threat actor could compromise the
correct operation of AD by modifying DNS or can redirect traffic flows.
Membership within the privileged groups; EA, DA and BA
should be temporary and immediate revoked once the user has carried out their
task.
Service Account Hardening
Many system administrators will configure service accounts
with excessive permissions. These
accounts will often be configured as members of some of the highly privileged
groups such as Domain Admins or Schema Admins.
Each service account’s function needs to be fully understood so the
minimum level of privileges can be configured for the account to operate
correctly. A compromise of a privileged
account could allow an attacker to compromise the accounts of every user or
service account utilising this information to compromise other systems within
the environment.
Ensuring all service accounts are limited to privileges
required for the service to perform its functions ensures that a compromise of
the account doesn’t give the attacker too much functionality within the Microsoft
AD environment.
Another issue with service accounts is managing
passwords. Typically, a service account
will have a strong password configured and securely stored within the
environment for when additional services are installed that requires that service
account. This causes a security concern and
causes issues with PCI DSS since multiple users know the service account’s
password. Something added in Windows
Server 2012 was gMSA (Group Managed Service Accounts) which utilises the Key
Distribution Service to generate new passwords in line with the ManagedPasswordInterval
setting. This can be used for scheduled
tasks, IIS Application Pools, and other applications that support gMSA.
Where service accounts are used, gMSA should be investigated
to determine if this feature can be used.
If gMSA cannot be used, strong passwords should be configured along with
a documented process ensuring that each service account has its password changed
at an acceptable pre-defined interval and the supporting applications are
re-configured to reflect this. An
individual shouldn’t have access to the password, which should be under
dual-control (i.e. two administrators who both set half the password). There should be no reason to store this as
processes should be in place to simply reset the password and application
should this be required.
Additional hardening should be carried out; such as, but not
limited to:
Enable the “Account is sensitive and cannot be
delegated” flag on the account. This can
be done within the user’s properties within Active Directory Users and
Computers.
If the service account is used on a handful of
computers, restrict the account to these specific computers within Microsoft
Active Directory for Users and Computers.
Enable auditing of the service account to
highlight any changes to the configuration of the account.
Ensure a service account is created for each
specific function. Don’t share service
accounts that have similar privilege requirements.
This should provide some protection against Kerberoasting attacks.
Read-Only Domain Controllers
Read-Only Domain Controllers (RODC) are ideal for locations
which are less secure or present a greater risk to the asset. This RODC type is designed so no changes can
be made to AD and, that replication traffic is in-bound only.
By default, credential caching is not enabled on RODCs,
therefore no passwords are stored. This
behaviour can be changed if required by permitting specific groups to cache
passwords. Due to the physical risks of
RODCs, this would not be advisable.
Another feature of the RDOC is the ability to filter specific object attributes to stop replication of these attributes to the RDOC. This would be recommended if utilising LAPS to ensure the administrator account passwords are not replicated to these RODCs.
There are other features of RODC; such as SYSVOL Modification Isolation, Administrator Role Separation and Read-only DNS Server which help to protect the environment. These are discussed further within the following paper; “Beyond the MCSE: Active Directory for the Security Professional” that was presented at Black Hat and should be configured.
Finally, where RODCs are used in less secure remote
locations, BitLocker Drive Encryption should be used to protect the operating
system against physical attacks. That
said, since this ‘critical’ piece of infrastructure is within these remote
locations, PCI DSS Requirements 9.1 to 9.4 would also be included for these
physical locations.
Just in Time (JIT) Administration
JIT, also referred to as just in time privileges utilises Microsoft solutions to provide administrative privileges when required for a specific task and for a specified time period. Introduced in Windows Server 2016, this is performed by leveraging “Microsoft Identity Manager and Privileged Access Manager (PAM)“. PAM builds upon this JIT least privilege principle ensuring administrators don’t have administrative privileges for a prolong period. This builds on a PowerShell toolkit defining a set of commands for performing privileged activities known as Just Enough Administration (JEA) (Discussed here from a TechEd 2014 Talk https://channel9.msdn.com/Events/TechEd/NorthAmerica/2014/DCIM-B362)
PAM works by separating privileged accounts to a BASTION
domain from an existing Active Directory environment. For an account to be provided with privileged
access, this needs to be requested and then approved before the privileged
account is given the necessary permission via a foreign principal group (shadow
principals) within the BASTION forest which mirror objects within the existing
Active Directory. Workflows are
leveraged for users to request temporary access to privileged groups within the
main active directory which is achieved via shadow principal users and groups
within the BASTION forest, which have a time-to-live value so the shadow
principle through these shadow principle users and groups.
PAM has four setup and operation steps as follows;
Prepare: This preparation step is concerned with
identifying the groups within the existing Active Directory that has
significant privileges which need to then be created within the BASTION domain.
Protect: Designed to protect the
authentication of the users requesting JIT administration using; for example,
Multi-Factor Authentication (MFA).
Operate: This step is responsible
for granting administrative privileges by adding the user account to the
privileged group within the BASTION domain, for a set period of time. This will only be fulfilled if the
authentication requirements are met, and the request gets approved.
Monitor: This whole activity is
audited with alerting and report functionality included by PAM.
Privileged Access Workstations (PAW)
Aka Secure Administrative Hosts, are hosts dedicated to
providing a secure platform to allow privileged accounts to undertake
administrative tasks within AD and the supporting environment. These hosts should not be permitted to access
the Internet and should not run unnecessary applications such as, but not
limited to, email applications, web browsers or productivity software (for
example Microsoft Office).
These systems should never be accessed from a less-trusted
system and the privileged accounts used when operating on these hosts shouldn’t
rely on a single authentication factor.
Physical security of these devices should be considered and therefore PCI
DSS Requirements 9.1 to 9.4 should be included wherever these hosts are located.
Smart cards should be used for privileged accounts used to
access the PAW. This can be done by
enforcing the use of smart cards on the PAW through Group Policy through the
following GPO setting;
The accounts permitted to access the PAW should be limited
through the following GPO settings;
Computer Configuration\Policies\Windows
Settings\Local Policies\Security Settings\Local Policies\User Rights Assignment
A secure baseline of the PAW should be created utilising
tools such as; but not limited to, the Microsoft Security Configuration Wizard,
Microsoft Security Compliance Manager and other third-party tools; for example,
CIS (Centre for Internet Security) baselines.
AppLocker or a third-party application restriction software should
be deployed to restrict which scripts, tools and applications are permitted to
run.
RDP restrictions should be configured to limited who can
connect to the Remote Desktop Service.
PAWs shouldn’t have Internet connectivity and should be
properly patched inline with PCI DSS Requirement 6.2.
Finally, care needs to be taken if the PAWs are running on a
virtualisation infrastructure since additional security controls and hardening
of the virtualisation infrastructure would need to be carried out.
SMB Message Signing
SMB Message Signing helps to prevent attacks relaying NTLM
authentication messages, therefore stopping SMB Relaying discussed above. This can be done through GPO by enabling the;
SMB Servers
Microsoft network server: Digitally sign
communications (always)
SMB Clients
Microsoft network client: Digitally sign
communications (always)
Regardless of their location within the environment, Security Features on Domain Controllers and Member Servers should not be disabled. The Windows Firewall automatically configures itself based on the roles or features installed on it, additionally User Access Control (UAC) should not be disabled on any server unless a specific scenario requires it as per Microsoft Support article 2526083.
As already discussed, access to the Internet from Domain
Controllers and Members Servers should be blocked and a robust patching policy
/ process needs to be implemented. Also, as discussed under PAWS, a secure
baseline should be created utilising tools such as; but not limited to, the
Microsoft Security Configuration Wizard, Microsoft Security Compliance Manager
and other third-party tools.
As highlighted in one of the linked Microsoft articles, care
needs to be taken when security baselines are transposed from older operating
systems to newer operating systems as some of the newer security settings may end
up being misconfigured. When installing
newer servers or raising the functional levels of the domain/forest, the newer
security features should always be reviewed, creating a new baseline for these
systems.
RDP restrictions should be in place on all Domain
Controllers and Member Servers. This
should be configured using a combination of user rights settings allowing
specific users RDP access and through the correct implementation of WFAS
(Windows Firewall with Advanced Security) configuration to limit access to
authorised clients such as PAWs. This
should be configured through GPO to ensure a consistent configuration and to
ensure the settings are re-applied, should they get changed.
Remote Desktop Admin Mode
This should be configured across the entire estate. With this setting enabled, the transmission of reusable credentials to the remote systems are prevented. This will prevent administrative credentials from being harvested should the remote system be compromised. How to configure this on the remote systems and how to launch remote desktop in RestrictedAdmin mode is explained within this “Remote Desktop Services: Enable Restricted Admin mode” article.
Alerting / Logging
As with any environment, adequate logging and alerting should be configured to help identify compromises, hacking attempts and to assist in any forensics work to help identified specific details of the attack/compromise. The Microsoft “Audit Policy Recommendations” article provides details of what logging should be enabled.
Additional General Hardening
This section is in no way a comprehensive list of all best
practice security hardening required to design a secure Microsoft Active
Directory environment. Industry-recognised
hardening resources and tools such as the Microsoft Security Configuration
Wizard, Microsoft Security Compliance Manager and other third-party tools
should be utilised to ensure a robust hardening configuration strategy is used. Some hardening examples include;
Enforce NTLMv2 within the environment (or investigate replacing it with a more secure authentication protocol such as Kerberos and restricting the use of NTLM within the environment. The following “Restricting NTLM usage” article provides additional information)
Enforce EPA (Enhanced Protection for Authentication)
Group Policy Preferences is a feature introduced in Windows 2008. In 2014, Microsoft released the encryption key used by this feature to encrypt credentials that can be stored within Group Policy for scheduling tasks, mapping drives, etc… Although in 2014 Microsoft released a patch for this, the old credentials can still be left lingering within the SYSVOL share or cached on local machines. It is important to ensure these are not located within the environment. GrimHacker released a tool called “GP3Finder” that can be used to help identify this issue
On Member Servers, set the “Computer Configuration\Windows Settings\Security Settings\Account Policies\Local Policies\Interactive logon: Number of previous logons to cache (in case domain controller is not available)” to 0. This will ensure users credentials are no longer cached on Member Servers which is set to 10 by default.
On all systems, disabled the “Store password using reversible encryption” option in Group Policy. This is within the following setting; “Computer Configuration\Windows Settings\Security Settings\Account Policies\Password Policy: Store passwords using reversible encryption”
Prevent WDigest passwords being stored in memory. A patch was released to resolve this issue back in 2014, however a registry key setting is also required; “HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\SecurityProviders\WDigest: UseLogonCredential” set to 0
Disable NetBIOS and LLMNR, which can be done by as
follows:
For NetBIOS, use the “001 Microsoft Disable
Netbios Option” and then configure the clients to accept the DHCP server to
determine the NetBIOS behaviour. This
can be done through the following registry key, which can be configured through
Group Policy;
HKLM:SYSTEM\SYSTEM\CurrentControlSet\Services\NetBT\Parameters\Interfaces\tcpip{*}:NetbiosOptions
-Value 2
N.B. The * denotes a unique hexadecimal number
For LLMNR, this can be done via GPO by setting
enabling “Turn off Multicast Name Resolution” option within Computer
Configuration\Administrative Templates\Network\DNS Client within Group Policy
Regular Review of Controls
Since there is a lot of the security configuration,
techniques and controls used to help secure Microsoft AD for us as a “Shared
Service”, this configuration must be regularly reviewed against the baseline. Privileged Groups/Accounts should be
monitored to identify any unauthorised changes which could indicate a potential
compromise of the environment, or a simply mis-configuration by an
administrator.
My opinion would be that this review needs to be carried out at least quarterly to help ensure no mis-configurations compromising the security of the design and implementation is introduced and that all security controls, configurations and techniques are maintained. Staff should also be allowed time to keep abreast of new security techniques designed to further secure Microsoft AD and Windows hosts to maintain a high security baseline across this type of deployment.
Penetration Testing
There is no denying that the use of Microsoft Active
Directory as a “Shared Service” is highly risky and requires a lot of technical
configuration and discipline to best practices to help secure the
environment. A breakdown of just one of
these technical controls or a discipline to best practices implemented can
result in a compromise of the secure environment and breach of cardholder data.
To ensure the security best practices and technical
configuration is maintained, it is important that the environment is adequately
scoped for Penetration Testing activities.
Testing should be increased within these environments to validate the
security and segmentation across the environment with penetration testing
recommended to be a minimum of every 3 to 6 months depending upon the volumes
of cardholder data that could be at risk through a compromise.
MFA
With the introduction of PCI DSS Version 3.2.1, all
non-console administrative access needs to support Multi-Factor Authentication
(MFA). The guidance within the PCI DSS
Requirements and Security Assessment Procedures document does highlight that
where the CDE is segmented, MFA can be configured at the network level for
entry into the CDE, it doesn’t then need to be configured on each system. However, with this type of setup, I would
suggest that for all non-console access where administrative users are being used,
MFA be enabled to protect against replay attacks. Additionally, it is also worth pointing out
that for some authentication; SMB access, it is unlikely that MFA can be
configured, therefore it is best to ensure administrative accounts are not used
on any authentication mechanisms that does not support MFA.
Domain Controller PCI DSS Requirements
When the DC is located within the CAT 3 zone, it will still
be in scope for all applicable requirements.
This section gives an idea of what PCI DSS Version 3.2.1 requirements
will NOT likely be applicable;
however, this list can still depend upon the environment setup and the QSAs
discretion.
N.B. This section only covers the applicability of PCI DSS Requirement to the Domain Controller in the scenario highlighted at the beginning of the post, i.e. operating within the CAT 3 zone. It doesn’t include the organisations overall PCI DSS requirement. It doesn’t include the Jump Box or PAWS that may be located within the CAT 3 zone used to access the DC within its site location.
Requirement 1: Install and maintain a firewall configuration to protect cardholder data
This requirement is applicable since the WFAS should be
configured to reduce the attack surface of the DCs. If other “in-scope” devices; for example, a Jump
Box/PAWS, are located at remote sites where the RODCs are located, a hardware
firewall may be used to protect all these in scope devices. This will very much depend upon the
environment since the use of the WFAS can simplify the firewall configuration
since Windows can pre-configure this based on the roles/components installed.
The following requirements have been identified as potentially
not being applicable;
Requirement
Discussion
1.1.4
DMZ wouldn’t be applicable for the CAT 3 Domain Controller.
1.2.2
Router isn’t applicable for the CAT 3 Domain Controller.
1.3
Public access to the Domain Controller wouldn’t be applicable for the CAT 3 Domain Controller.
1.4
Portable computing devices aren’t applicable for the CAT 3 Domain Controller.
Requirement 2: Do not use vendor-supplied defaults for system passwords and other security parameters
Hardening of the DCs will be in scope to ensure they are not
susceptible to compromise. Only the
following requirements have been identified as potentially not being
applicable;
Requirement
Discussion
2.1.1
Wireless wouldn’t be applicable for the CAT 3 Domain Controller.
2.6
Shared Hosting shouldn’t be applicable for the CAT 3 Domain Controller.
As per requirement 2.2, configuration standards need to be
in place for ALL system components (which
include DCs). Suitable hardening needs
to be carried out, this should be aimed at protecting the systems from
attack. Industry-accepted system
hardening standards exist and must be used to help meet this requirement. My recommendation would be to incorporate as
many security hardening standards and sources as possible to ensure DCs (and
other system components) are securely configured.
Requirement 3: Protect stored cardholder data
This requirement wouldn’t be applicable since the DCs in CAT
3 wouldn’t be storing CHD.
Requirement 4: Encrypt transmission of cardholder data across open, public networks
This requirement wouldn’t be applicable since the
transmission of CHD wouldn’t touch the DCs.
Requirement 5: Maintain a Vulnerability Management Program
The only requirement that wouldn’t be applicable within
Requirement 5 would be Requirement 5.1.2, since the DCs would be considered as
commonly affected by malicious software and therefore would need anti-virus to
be installed.
Requirement 6: Develop and maintain secure systems and applications
Within Requirement 6, only Requirements 6.1, 6.2 and 6.4
would likely be applicable for the in-scope DCs.
Requirement 7: Restrict access to cardholder data by business need to know
All Requirement 7 is likely in scope for the CAT 3 DCs.
Requirement 8: Identify and authenticate access to system components
All Requirement 8 is likely in scope for the CAT 3 DCs. The majority of this will be covered by settings
which are configured within the Active Directory domain which would be
replicated to the DCs; therefore, already be covered by the entire PCI DSS
program.
Requirement 9: Restrict physical access to cardholder data
Only the requirements from Requirement 9.1 to Requirement
9.4 (inclusive) would likely be included in scope for PCI DSS assessment
activities. These cover the physical
location of where the DCs are physically located.
Requirement 10: Track and monitor all access to network resources and cardholder data
All Requirement 10 is likely in scope for the CAT 3 DCs.
Requirement 11: Regularly test security systems and processes
The only exception to all Requirement 11 being in scope is
Requirement 11.2.2 for External ASV scanning.
Requirement 11.1 would be applicable for the CAT 3 DCs and
the location where the CAT 3 Domain Controllers are located.
Requirement 12: Maintain a policy that addresses information security for all personnel
I would expect all of Requirement 12 to be in scope for PCI
DSS. 12.3 should include acceptable use
of some of the privileged accounts, limited their use on certain devices.
My Final Ramblings
Reviewing the PCI SSC released the PCI SSC Scoping guidance, the use of Microsoft Active Directory as a ‘Shared Service’ is included. For this reason, many organisations have started to adopt this same strategy within their architectural designs for their CDE and non-CDE environments. In my honest opinion, this is still dangerous since one mis-configuration of the myriad of security controls designed to secure this setup can potentially lead to a compromise of the environment. It is generally much safer to separate the non-CDE and CDE Microsoft Active Directories.
Although the above techniques should help organisations
configure Microsoft Active Directory securely to support its use within a PCI
DSS Cardholder Data Environment (CDE).
Organisations still need to be careful of scope creep within the CAT 3
environment. The premise of determining
if a system component is in scope or not, depends on the risk that system has
to the environment should it be compromised.
Your specific environment should be reviewed by a QSA to determine
what the scope is and only a QSA would be able to sign this off. Although the customer is responsible for
defining the scope of the environment, the QSA will validate it during the
assessment. This is a requirement within
the front section of the Report on Compliance (ROC) so a QSA would still have
to sign it off.
This is just one type of Microsoft Active Directory design
and doesn’t include the use of multiple domains within the forest or multiple
inter-connected forests. There are
specific attacks against domain trusts which would need to also be considered
should a Microsoft Active Directory forest with multiple Active Directory
domains be in use. There are some
articles discussing this at the end of this blog.
If the entity being assessed is deploying a shared Active
Directory, the specific hardening and secure design concepts being followed
should be adequately documented so the QSA is able to validate the secure
design and review specific configuration settings before signing it off as
adequately segmented and secured.
I would also like to make a very specific point on
segmentation testing and penetration testing.
If a shared Active Directory is deployed, the scope of the internal
penetration testing and segmentation testing MUST include an exhaustive test of all CAT 3 environments, INCLUDING system components within
them. This MUST include domain joined hosts, even if they are not determined
in scope for the PCI DSS Assessment. The
aim of the penetration testing and/or segmentation testing should be to
compromise CAT 3 hosts to see if the penetration tester can leverage the host
to compromise in-scope CAT 3 systems or the CAT 2/1 environments. This should be fully documented within the organisations
penetration testing methodology which is a requirement under PCI DSS
Requirement 11.3.
Planning for Compromise
The various Microsoft articles linked within this blog post include a section called “Planning for compromise”. This is an interesting read and organisations should plan for when a Microsoft Active Directory gets compromised because it may require a full rebuild of the environment and therefore should be included within the organisation’s disaster recovery plan. A compromise of a system makes that system untrustworthy, which means it will need to be rebuilt before it is considered trustworthy within the environment. If the compromise impacts the Domain Controllers within the environment, due to the replication between all Domain Controllers, all Domain Controllers within the environment become untrustworthy, therefore requiring a complete rebuild of the environment. Therefore, it is important that this needs to be planned for.
Some of the articles used during research
I don’t usually include a section like this within my posts, however I feel that some of the resources I used in the writing of this post may be useful to others.
Earlier this week, the emails went out inviting assessors and Participating Organisations (POs) to review the draft version of the PCI DSS (Payment Card Industry Data Security Standard) Version 4.0. Unfortunately, the PCI Security Standards Council (SSC) requires a Non Disclosure Agreement (NDA) to be accepted before download, therefore there will be no specific posts about its contents.
What I will say is that if you want to view it, then quickly sign up to be a Participating Organisation as the RFC period is only till the 13th December 2019 at 8pm EST.
This Request for Comments (RFC) process is new for the PCI DSS as usually updates to the standard are conducted by the payment brands and the PCI SSC. This should hopefully help to not only shape the standard, helping further secure the payment card industry against the ever evolving threat landscape, but to also help accommodate enhancements in security technologies and security techniques by enabling organisations to embrace them within the framework of the PCI DSS.
Blog post explaining why PCI DSS should be properly implemented within businesses that accept card payments. This post also discusses the fine structure, in particular Visa’s fine structure.
I recently spoke to a UK Acquirer who informed me that they no longer charge their merchants non-compliance and non-progression fees. Visa used to set quotas for the number of Level 1 and Level 2 merchants that should be PCI Data Security Standard (PCI DSS) compliant and would issue fees to the acquirer, which they obviously passed onto their non-compliant merchants.
Since 2016, when Visa implemented a more aggressive Account Data Compromise (ADC) fining structure, the UK Acquirer I spoke to said that they scrapped the non-compliance/progression fees that they were issuing to merchants (well larger, Level 1 and Level 2 merchants). Recently I spoke to Visa who confirmed that although they are less likely to issue non-compliant / non-progression fees, they would still issue them if merchants were found to be making no efforts in becoming PCI DSS compliant.
I thought
it was time to provide an update to an original blog I posted in 2018 where I
discussed why it wasn’t such a good idea to ignore PCI DSS.
The
driver for the original post was due to questions I often got asked, when
organisations investigated the costs of PCI DSS and associated ‘Consultancy’ required
to ensure it was done correctly. These
questions were always along the lines of, “What will happen if I ignore PCI DSS
compliance?” or “Do I need to bother with PCI DSS compliance?”.
Firstly,
I’d like to still reiterate a point made in the original post that ALL
organisations that store, process and/or transmit cardholder data (CHD) have an
obligation to be PCI DSS, even organisations that can impact upon the security
of another organisations CHD or Cardholder Data Environment (i.e. Service
Providers) have an obligation to be operating in a PCI DSS compliant manner in
support of their customers’ compliance obligations.
When a
merchant signs up to an Acquirers ‘Merchant Agreement’, this agreement will
include a statement where the merchant agrees to being PCI DSS, therefore it is
a contractual obligation for all merchants to be PCI DSS compliant as part of
their ‘Merchant Agreement’ and apply to all acceptance channels including;
retail (card-present), mail/telephone order (card-not-present MOTO) and
e-commerce (card-not-present).
So, what do I get out of being PCI DSS compliant?
Although PCI DSS is often touted as a ‘basic’ security standard, it is a mature data security standard which has evolved for over 15 years (initially released in 2004). The standard evolves based on the ever-evolving threat landscape and the analysis of past PCI Data breaches. Often organisations will go above and beyond PCI DSS based on their internal risk assessments and attitudes towards information security and risk appetite.
Improved security by following the good security practices outlined within the PCI DSS.
Reduced risk of compromise and what follows such as, but not limited to; payment brand breach penalties, reputational damage resulting in a loss of consumer confidence, legal fines through data protect laws (e.g. the General Data Protection Regulation), etc. (notice that this is a reduced risk, no matter how good an organisations security program is, nothing can guarantee no risk of compromise. Organisations have to simply do their best to reduce this risk and make it as difficult as possible to try and deter a threat actor from wasting time and effort).
Protection from payment brand breach penalties if compliant at the time of the breach. The caveat here is that the organisation needs to be able to demonstrate that, at the time of the breach the environment was still compliant. Often organisations struggle to maintain PCI DSS compliance once the assessment is carried out. The Verizon 2018 Payment Security Report shows that in 2016, only 52.5% of organisations reviewed had remained PCI DSS compliant at an interim validation, with an average of 16.4% of controls not in place.
You have a corporate and legal (data protection) responsibility to keep your customer data safe.
So, what are the risks in not bothering with PCI DSS compliance?
Many of
the benefits identified above, can also be contributed to the risks of not
bothering with PCI DSS compliance;
Increased risk of a breach resulting in:
Potential reputational damage,
Financial losses (payment brand penalties, data protection fines), and
Losses in revenue from lack of consumer confidence.
Although, in 2016 Visa scrapped non-compliance/progression fines to Acquirers for not meeting quota, MasterCard still can issue these fines which would be passed ono by the Acquirer.
An Acquirer can choose to withdraw a merchant’s ability to take card payments, although this would be unlikely, it is a possibility.
Non-compliance and non-progression fees
Since
Visa scrapped these in 2016, I have started to come across organisations that
no longer receive these ‘fees’, whilst some are still receiving these ‘fees’.
Although my recent conversation with a UK acquirer confirmed that these ‘fees’
were no longer being charged, they still expect their Merchants to be
progressing PCI DSS and to demonstrate this. Acquirers still need to
report back to the card brands on how many Level 1, 2, 3 and 4 merchants they
have that are PCI DSS compliant and report progression.
Some
acquirers still may issue non-compliance fees as they are set by the Acquirer
and as I’ve already discussed, MasterCard still issues these, but within the UK
market, I’ve not really come across MasterCard doing this.
Where
these fees are still being issued, most literature will discuss fees of between
£10 per month and £50 per month which can be per merchant or per Merchant ID
(MID). These fees can increase after a year of being non-compliant.
That said, some Acquirers will charge based upon a percentage of the
transaction value. I’ve come across merchants paying just £50 per month
in non-compliance fees and others paying £1000’s per month.
I’ve
previously posted about my issues with these non-compliance fees, and that in
my honest opinion it didn’t seem to go far enough to force some merchants into
becoming or working towards PCI DSS compliance. Often, organisations will
take a view on the cost of becoming compliant against the cost of paying these
fees. It would be interesting to see future analysis as to how the Visa
changes to the ADC fines and some Acquirers decision to no longer issue these
fees has affected the rate in which Merchants are becoming compliant.
I can
appreciate that PCI DSS can be complex for many organisations and isn’t
achievable overnight. Lenience should be given to organisations working at
becoming compliant, providing that they are able to adequately prove that they
are progressing a PCI DSS compliance program. The PCI SSC Prioritised
Approach (PCI SSC
Download Library) is
usually used to demonstrate this to the Acquirer and for more complex
environments working on the more complicated SAQs (Self-Assessment
Questionnaires) or ROCs (Report on Compliance), it is my opinion that a QSA led
audit should be carried out to demonstrate compliance against the reported
milestone an organisation reports back to the Acquirer.
Payment brand breach penalties
According
to Financial
Fraud Action UK, card
fraud in the UK in 2016 totalled £618 million which saw a 9% increase on the
previous year. In 2016, Visa and MasterCard increased Account Data Compromise
(ADC) Penalties issued to Merchants. The Visa Europe ADC penalties are as
follows:
Merchants will be charged €3,000 for each ADC regardless of their PCI DSS Merchant Level.
If the Merchant qualifies for (PCI Forensic Investigators) PFI Lite investigation (see my PFI article), the merchant will only need to pay the €3,000 case fee, providing the PFI Lite investigation process is followed.
If the Merchant has to undergo a full PFI investigation, typical ADC penalties will be as follows:
€3,000 case fee,
€3 per card deemed at risk (PAN compromised),
additional €18 per card deemed at risk (CVV2 also compromised),
If the Visa fine totals €100,000 or more, the fine structure changes to 5% of the entities Visa Card turnover for the past 12 months before the breach started.
MasterCard
issues two types of penalties which are known as Operational Reimbursement (OR)
and Fraud Reimbursement (FR). OR penalties can be anything up to $10,000, while
FR is available to issuers that opt into the MasterCard ADC reimbursement
program. MasterCard review OR & FR on a case by case basis based on
which issuers cards have been impacted and deemed at risk. This,
therefore, makes it difficult to provide details of specific MasterCard
penalties. The average fine is $5.50 per
unique card lost during the window of exposure.
ADC
penalties will be levied by each card brand that is impacted by the compromise,
which can increase the value of the fines. Additionally, Visa Europe’s
€3,000 case fee can be applied to all of a compromised merchant’s acquirers.
Self-notifications
of an ADC will also benefit from a reduced penalty. Additionally,
merchants enlisted on the Verified by Visa (VbV) scheme will find that any VbV
transactions will see up to a 50% reduction in the card deemed at risk
fine. For example, if 14% of the cards deemed at risk were authenticated
VbV transactions, a 14% reduction would be issued. Anything over 50% will
be capped at a 50% reduction.
My final ramblings
Organisations
are contractually obliged to implement PCI DSS which is part of the Merchant
Agreement. Additionally, organisations have a responsibility to protect
consumers data, including cardholder data. PCI DSS provides a mature
standard which is designed to protect card data and therefore shouldn’t be seen
as a burden but should be embraced to help protect the operational integrity of
the payment systems and the data being stored, processed and/or transmitted.
I do
believe that something should be done to force entities into taking PCI DSS
more seriously. Although the fining
structure does provide an additional deterrence, it seems that this is more
focusing at the larger merchants which means that smaller merchants don’t
really have any driver to take this seriously.
There have been many high-profile e-commerce compromises, especially ones linked to the Magecart “Skimming” attacks discussed within the PCI SSC released blog/bulletin. Some companies hit by this attack include; British Airways, Ticketmaster, OXO, Feedify and Newegg.
So, what is Magecart?
Magecart is a term being used to describe an attack involving
the use of malware within a website that is used to skim cardholder information
being submitted by the end-user. The aim
is to use the malware to skim end-users card details and any other personal
information that can be used to facilitate online payments. The malicious code could be added directly to
the e-commerce site through a site compromise or can be included as part of a
compromised third-party script that is loaded by the e-commerce site. Often, third-party scripts are added to
e-commerce sites to perform functionality such as; advertising, live chat
functionality, web tracking functionality, etc.
Although Magecart is being used to describe this specific type of attack, Magecart is also a term given to the cybercriminal group responsible for these types of attacks. According to the ‘Inside Magecart: Profiling the Groups Behind the Front Page Credit Card Breaches and the Criminal Underworld that Harbors Them’ joint research paper by RiskIQ and Flashpoint, this term is used to encompass at least seven cybercriminal groups using this technique of utilising card skimmers on compromised e-commerce sites.
The RiskIQ / Flashpoint paper identifies the first Magecart
group emerging in 2015, however acknowledges that it may have been active since
2014 based on when domain names used by the group were created.
There are some key points for this type of attack;
iframe and redirect payment techniques are less susceptible to this type of attack, if cardholders are using compliant web browsers. This attack relies on the malicious JavaScript (JS) being able to interact with the payment information to skim this information during the payment journey. Within an iframe, the ‘Same Origin Policy (SOP)’ ensure the JS cannot interact with the iframe, providing a compliant web browser is used by the cardholder. For the JS to be able to manipulate iframe/redirect payment functionality, the payment journey would need to be manipulated to allow for the payment to still succeed. There is still a risk of compromise of CHD (Cardholder Data) from iframe and redirect payment functionality and therefore organisations may look to go above and beyond SAQ A as discussed in one of my previous posts “Why the PCI DSS Version 3.2.1 SAQ A update isn’t enough!”.
Where a Direct Post, JavaScript or API payment technique is used to process the payment, entities should not remotely load any scripts into the payment page. CSP (Content Security Policies) should be used to restrict this to protect from compromised third-party scripts or scripts hosted in less secure environments. CSP can be used to also white-list trusted sources, however the recommendation would be to keep all scripts on the e-commerce site which can be validated by the entities staff before being uploaded to the site.
FIM should be used to detect changes within the e-commerce source code to help identify the inclusion of malicious code.
The PCI SSC released article suggests that where externally hosted third-party scripts are included within the e-commerce payment flow, these third-parties should be classed as PCI DSS Service Providers. This does meet the “or can impact upon the cardholder data or CDE” caveat of a Service Provider (See Third-Party Service Providers) therefore this needs to be seriously considered by all organisations running e-commerce websites. The only possible exception to this could be for iframe/redirect functionality as the use of third-party scripts shouldn’t have access to the contents of the iframe. It is however worth confirming this with the Acquirer or card brand since scripts loaded into the parent page could be feasibly used to alter the payment flow.
My Final Ramblings
A lot of the advice within the
PCI SSC blog post should be implement as part of PCI DSS as these attacks would
realistically only work (and be sustainable) against Direct Post, JavaScript
and API e-commerce payment channels.
These types of channels will align against either SAQ A-EP
(Self-Assessment Questionnaire) or SAQ D whose PCI DSS requirements cover the
points within the PCI SSC Magecart Bulletin’s Detection and Prevention best
practices sections.
It is worth noting that iframe and redirect payment channels are deemed by the PCI SSC and Card Brands as lower risk thank the other e-commerce payment techniques, they still need to be adequately secured. These e-commerce sites can still be compromised and modified to expose cardholder data. For me, the main difference is that it is much harder to compromise the site and maintain the payment functionality. In 2016, Foregenix released an alert entitled “Major UK Payment Service Provider iFrame Man-In-The-Middle Breach” that demonstrated an attack which compromised an iframe deployment, whilst still being able to facilitate a payment proving that a determined attacker could feasibly maintain the payment functionality.
It is therefore important to consider security of iframe/redirect deployments as you would any other website within the organisation. This is something I touch upon within the following blog article; “Why the PCI DSS Version 3.2.1 SAQ A update isn’t enough!”
As many of you are probably aware, on the 14th January 2020, Windows 2008 and Windows 2008 R2 will become end-of-life. Organisations utilising these servers within their cardholder data environments (CDEs) need to start planning their migration project to ensure the CDE doesn’t fall into a non-compliant state.
Requirement 6.1 and Requirement 6.2 go hand-in-hand to ensure systems are patched against known vulnerabilities. When system components are no longer supported by a vendor, security patches are no longer released. There have recently been a few exceptions to this; however, these are very few and far between and will usually be against only a small subset of newly released vulnerabilities; i.e. May 2019, Microsoft released an update for Windows 2003/XP against CVE-2019-0708 (Bluekeep) which was a Remote Code Execution vulnerability within Remote Desktop Services. CVE-2019-0708 Windows 2003/XP patches are available here and details of CVE-2019-0708 is available here.
Believe it or not, there are still some Windows XP machines still operating within organisations’ CDEs along with Windows 2003 systems. Some organisations may have no option but to continue to run these systems due to old bespoke systems running on them that are not compatible with newer operating systems. Additional constraints may also include financial or resourcing issues.
So, what should organisations do?
There is plenty of time for organisations to plan to migrate current Windows 2008/2008 R2 servers to newer Windows servers. Organisations should be looking to plan this, get budgets signed off for the migration project and ensure implementation can be completed prior to the January 2020 deadline.
If there are legitimate business or financial reasons why this needs to be delayed or cannot be completed, organisations should start to investigate this and work on how the organisation is going to mitigate this risk. As per the PCI SSC FAQ 1130 from June 2013, a PCI DSS Compensating Control Worksheet (CCW) needs to be completed for Requirements 6.1 and 6.2. The CCWs need to include details of how the organisation has implemented controls which will meet the intent of Requirements 6.1 and 6.2 to the same vigour, or greater as the original PCI DSS requirements.
DID YOU KNOW?
Finally, I stumbled across this during my research for this post. Microsoft will be continuing to release security patches for Microsoft Windows 2008/2008 R2 and Microsoft SQL 2008 for a further three years, if they are migrated to Microsoft Azure’s platform, click here for further information. The company I work for specialise in cloud migration so feel free to contact them here.
Update 03/Oct/2019: Extended support for an additional three years is available at an additional cost. Microsoft have an FAQ which is available here covering a myriad of questions on this topic, including costings.