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.
On the 23rd of September 2020, the PCI SSC (Security Standards Council) opened up round two of the PCI DSS (Payment Card Industry Data Security Standard) version 4.0 Request for Comment (RFC) period. This will run from the 23rd September 2020 to the 13th November 2020. The PCI SSC released a blog entitled “Request for Comments: PCI DSS Version 4.0 Draft Standard” discussing this.
For the first time since the initial release of PCI DSS, the PCI SSC has introduced this RFC process, allowing, under NDA (Non-Disclosure Agreement), PCI Stakeholders the opportunity to review a draft of the updated standard and provide comment. Each and every comment received by the PCI SSC gets reviewed as part of this new process.
There is very little information on what is proposed for PCI DSS v4.0 since this is under strict NDA, I discussed some of the ‘proposed’ changes in a previous post (PCI DSS v4.0 Buzz) prior to signing up to the RFC and thus signing the NDA. Unfortunately, I will be unable to provide any insights, apart from what is already in the public domain due to this.
It is anticipated that the new version will be released in Q4 of 2021 with a long sunset period far beyond the usual six months which looks to be 18 months. This takes us to around Q2 2023 until PCI DSS v3.2.1 can no longer be used. Timelines were discussed back in May 2020 in a blog post entitled “PCI DSS v4.0: Anticipated Timelines and Latest Updates“
This RFC is open to the following stakeholders; Participating Organisations (POs), QSA Companies (QSACs) and ASV Companies. Details will have been sent to your primary contact so please reach out to them to get involved and get your voice heard and help shape this new and major shakeup of PCI DSS.
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.
Post to highlight potential issues with using PDQ Devices from home during the Coronavirus pandemic.
As countries around the world are implementing social distancing measures and in some cases country/state/county wide lockdowns, organisations are looking at introducing remote working to allow the business to continue working with employees working from their homes.
This is having an impact on organisations’ payment channels which are having to adapt to these new ways of working. Often, these changes mean that the security of the payment channels are not implemented to the same rigour as they normally are, or the introduction of these remote working practices means that the channel just cannot be PCI DSS compliant due to the technologies and practices deployed. I’ve already wrote about this within the following post; COVID19 Implications, so I will not cover this off again.
I was recently asked to comment on the risks with employees taking chip-and-pin/PED/PDQ/POI (Pin Entry Devices/Pretty Damn Quick/Point of Interaction) devices home so employees can still process customer payments. To be honest, on the face of it there didn’t seem too many risks, until I started to investigate how calls may be taken by remote workers and the potential connectivity issues depending on how the PDQ device connects. Obviously, these devices must be used in card-not-present mode, therefore the only feasible way to get the information to the Merchant employee would be over the phone.
Note: Merchants MUST NOT instruct customers to send cardholder data by insecure messaging technologies such as, but not limited to; chat mechanisms (skype, teams, text, Whatsapp, etc..), email messaging, etc…
Let us look into the following areas;
Insecure Home Networks
Telephone
POI Connectivity
POI Obligations
Other Implications
Insecure Home Networks
There are many security implications with utilising corporate devices on home networks. The security posture of home networks is an unknown and therefore should be considered insecure or ‘a dirty network’. There are techniques that employees can carry out to help further secure these environments, which may need support from the organisation’s IT Support team. Some of the issues surrounding these home networks includes:
Default passwords on home devices (i.e. Wireless/ADSL routers, IoT devices, etc…)
Insecurely configured Wi-Fi on home routers (default encryption keys or insecure encryption keys and insecure encryption algorithms/Features used (WEP/WPS)
The use of multiple devices within the home, on the same network (wireless/wired) with different levels of security (i.e. insecurely developed & unpatched); IoT is notorious for being insecure which could introduce a security risk to other devices within the household.
Organisations are finding they need to support home working and therefore are expanding their network boundaries past the organisations Internet gateway into employees’ own homes which has not only security implications but can also have compliance, data privacy and other legal complications.
Employees should work to try and bridge some of these gaps within their home networks. Default passwords can be changed on devices within the home environment that connect to the network. Random and strong passwords should be used. Password managers (for example; Lastpass) can help employees to manage and maintain separate and unique passwords for all the different devices and websites that they require access to. This will not only strengthen the devices within the home network environment but will also help to strengthen their online presence by enabling them to have different passwords for all the different online resources.
Password managers can also be used to store Wireless keys, which should be configured to use WPA2 at a minimum with a password that is no less than 15 characters.
All devices within the home network should be regularly patched, this will limit the chances of a devices being compromised by a malicious threat actor. If it is possible, it would be more secure broadband routers supported it to segment the network into corporate and household traffic. If existing routers cannot support this functionality, organisations should consider procuring and pre-configuring ADSL routers that can support this, these are not that expensive.
An assumption has been made that organisations will provide home workers with corporate issued laptops which will be suitably configured with a local firewall, anti-virus and be suitably patched. Bring Your Own Device (BYOD) brings a myriad of issues which are not discussed in the blog post.
Telephone Implications
A lot of organisations support Voice-over-IP (VoIP) telephone systems, which are often extended out to employee’s homes to support home working. This is either presented directly over the Internet with the phone dialling into the corporate VoIP system, via a softphone on the corporate Laptop support by a VPN or by utilising a cloud VoIP provider and therefore just connecting directly over the Internet.
VoIP can cause massive headaches for PCI DSS Compliance which are discussed within the following articles; Newly Released PCI DSS Telephony Guidance and VoIP and Small Merchants. I’m not going to dwell into too much detail as these posts discuss this further. Unless a call divert (and the corporate PBX performing the call divert is already PCI DSS Complaint) to a landline or mobile phone is in place, the likelihood is that the call will be made using VoIP which introduces a risk to the voice communication.
This can have further implications to the organisations if the call routing has been changed to support the home workers. The telephone system, if Dual-Tone Multi-Frequency/Interactive Voice Response (DTMF/IVR) is normally used to take payments, may not usually be in scope for PCI DSS compliance and therefore the Internal network isn’t in scope. By changing the routing (where a softphone is used) the scoping is potentially going to see a significant increase by including the corporate network, telephone system, PCs (softphones), VPN systems and any other connected-to systems that touch these systems that are now routing the VoIP traffic.
Organisations also need to understand where cloud providers are used, is the traffic that is traversing the Internet encrypted? Contrary to PCI SSC FAQ 1153 “How does PCI DSS apply to VoIP?”, which in my honest opinion needs to be altered, Merchants have no control over the voice traffic from the customer (cardholder) as it routes to their environment, however, and this is where I disagree with FAQ 1153, Merchant’s do have control over the connectivity from their Telco into their own environments along with voice traffic leaving the organisation. I believe Merchants should provision secure voice communications between them and their voice provider; therefore, where a VoIP Cloud Provider is used, this traffic should be encrypted.
Finally, an additional complication can be with voice recordings. The same mechanisms to support pause/resume functionality or DTMF/IVR functionality may not be available to the organisation due to the changes in the voice routing. Where this is the case, organisations mustn’t take calls that will be handling cardholder data IF call recordings cannot be paused. This will expose the card information to all call recordings which will include the Sensitive Authentication Data (SAD) which isn’t permitted to be stored after authorisation (please see the newly released PCI Security Standard Council guidance ‘Protecting Telephone-Based Payment Card Data’ which describes a very specific exception to this.
POI Connectivity
Devices can support multiple types of connectivity; Plain Old Telephone Service/Public Switched Telephone Network (POTS/PSTN), Mobile Network (i.e. GPRS/3G/4G), IP Connected (Wireless or Wired) and P2PE (Point-to-Point Encrypted) IP Connected.
As you can probably gather, PSTN and Mobile connectivity has no “connectivity” implications since these are not operating on the potentially insecure home network. P2PE also has no implications because the supporting IP network is not in scope for these types of devices. Security concerns are seen with IP Connected devices because these will utilise the home network to support connectivity. As we have already discussed, there are security concerns over the security posture of the home network which must be treated as insecure. Although these devices undergo independent testing and the communication of CHD should utilise strong encryption, the use of these devices bring the networking components into scope for PCI DSS, therefore, it would be unlikely on a home network that this could become PCI DSS compliant. Either, utilise a device that doesn’t introduce “connectivity” implications or look to deploy a corporately secure network component at employees’ homes.
POI Obligations
Within PCI DSS Requirement 9, organisations have POI obligations. Organisations need to perform substitution and tamper checks on a regular basis (as defined by the organisations, typically based on a risk assessment). These checks will still need to be completed and adequately documented and evidenced to support the organisations ongoing PCI DSS Compliance program; however, with the devices being used at a home environment, the risk of tampering and substitution may be a lot lower than within the corporate environment. These checks could therefore be carried out at longer time intervals, i.e. every 2 weeks instead of every day, however the recommendation would be to carry out a risk assessment and document how the organisation came to the interval that has been defined.
Although it may not be necessary to secure the devices at home when not in use, it would still be recommended and good practice. The risk of a family member or friend tampering with the devices are slim; however, if you have ability to lock the device in a drawer/filing cabinet then this would be ideal to demonstrate due diligence and good practice.
Other Implications
Finally, I wanted to highlight a few other implications of taking card-not-present payments through a PDQ at home.
Have the devices been configured to mask the PAN (Primary Account Number) from the Merchant receipt? Often the PAN is not needed by the organisation, and it would be much more beneficial to ensure that the Merchant receipts are masking this number, otherwise it will become in scope for media handling requirements within PCI DSS Requirement 9. It is much simpler to just instruct the Acquirer to turn this functionality off on the PDQ device.
It is much harder to monitor employees when they are working from home, which increases the risk of fraud. Employees can start to harvest cardholder details from callers which can then be used for fraudulent reasons or sold. This is near impossible to police since employees need to obtain the card information for input into the PDQ. The only real way to limit this exposure is to deploy technologies such as DTMF/IVR. Employees should obtain regular training to ensure they still handle cardholder data (CHD) appropriate and still don’t write the information down. Organisations can include practices of writing CHD down as long as this data is suitably handled in line with applicable controls, or as most organisations will do, they have strict policies prohibiting CHD from being written at all, enforcing that data must be inputted directly into the capture mechanism (e.g. Website Portal, PQD). This is easier to policy from the workplace, however it will be much more difficult when working from home. Where practices allow employees to write down CHD, this should be disallowed for working from home and effectively communicated to employees. The controls around storage and disposal will not likely be as thorough within the home environment which will increase the risk of exposing CHD.
My Ramblings
There are many concerns with deploying PDQ/PED devices at home locations. The security posture of the home network, implications of taking payments over the telephone, POI connectivity issues and other POI implications. In line with PCI DSS Requirement 12.2, organisations should perform a full risk assessment to ensure all the risks have been considered and suitable controls/mitigations have been implemented.
There are some techniques employees can employ to try and mitigate the risk of the home network; however, ideally the home network and devices for corporate use should be separated to provide an additional layer of protection. This can be implemented by replacing the employees ADSL Router with one that can support network/Wi-Fi segmentation, which can be configured by IT. The intention is that this should be a short-term plan to handle the worldwide COVID-19 pandemic. If this was a more long-term plan, then consider deploying a corporate owned Internet circuit to staff expected to take card payments. If, P2PE (Point-to-Point Encryption) validated PEDs are used, then the home network will not come into consideration since the network is not in scope when these devices are used.
Telephony is a problem which as discussed above has massive implications. Ideally, PDQ/PEDs won’t be used in favour of a DTMF/IVR solution which not only takes the network and PDQ/PEDs out of scope, but also takes the call agent out of scope, further securing the payment channel and limiting risk. If a longer working from home strategy is sought, then this should be considered.
Where VoIP has to be used, then organisations should make considerable efforts to secure the communication as I discuss in my COVID-19 Implications post, due to the relatively fast pace that changes have had to be incorporating into the payment channels to ensure continued business operations, organisations still have a responsibility to ensure the payment channels are secure and maintain PCI DSS compliance. Where this is not possible, this should be a short-term situation with organisations continually improving the security posture and PCI DSS compliance status over time. The most secure short-term mechanism is probable the use of a corporate laptops with VPN Connectivity and a softphone. All transmission is over the VPN and then contained within the organisations corporate network environment boasting strong security technologies and practices and a mature security and compliance program. The laptop should meet a minimum set of PCI DSS requirements to protect it from the home network environment, which are detailed within the referenced COVID-19 Implications post post.
The simplest device connectivity is either P2PE Devices using a network/wireless connection, a device using a mobile network connection (GPRS/3G) or a device connecting via POTS/PSTN. Utilising a Wireless and or Network device is much less secure if the device is configured to run on the home network, unless a corporate configured ADSL Router is in use which has been preconfigured (or a corporate supplied Internet circuit).
As discussed, don’t neglect the POI obligations under PCI DSS Requirement 9. The interval between tamper and substitution checks could feasibly be increased as the risk should be much less; however, organisations should carry out a risk assessment and document how the interval was determined.
Organisations need to review Merchant receipts from the PDQ devices to ensure the PAN is masked. If it is not, the Acquirer should be contacted asking them to mask the PAN if it isn’t required for chargeback enquiries. If this cannot be done, then suitable handling processes/policies needs to be implemented to specifically address the storage of these receipts at employees’ homes. Secure storage may need to be procured in order to support employees handling of these.
Finally, organisations need to be conscious of the increased risk of fraud and should carry out a risk assessment against this. Where possible, consider the use of DTMF/IVR solutions to take telephone payments which should not only significantly simplify the organisations PCI DSS Compliance program but also help to reduce the risk of fraud and CHD compromises.
Post to discuss the potential implications of the COVID-19 pandemic and how organisations are forced to adapt their payment channels to continue doing business.
The current COVID-19 outbreak is a global crisis on an unprecedented
scale. Countries all over the world are
working hard to protect citizens and to collaborate on global efforts to
understand the virus and work on preventative measures to help in the fight
against this worldwide killer.
In attempts to limit the loss of life, governments all
around the world are limiting social contact and, in some instances,
implementing countrywide lockdowns of citizens.
Due to these extreme but necessary measures being implemented, and to
limit the risk to staff, businesses are closing or moving to remote working
practices which has resulted in changes to the way cardholder data is flowing
through organisations’ payment channels.
Most organisations are finding that their business continuity plans are
not equipped to handle the scale of remote working that has come out of these extreme
measures whereby no office locations are accessible (or very limited access to
an extremely small number of employees).
The PCI SSC (Payment Card Industry Security Standards Council) released a blog post “Remote Assessments and the Coronavirus” on 11th March 2020 providing guidance to the community on how remote PCI DSS assessments may work with the imposed travel restrictions. In addition to this, the PCI SSC has setup a COVID-19 page to release response and guidance to the PCI stakeholders and community.
The guidance received so far has been focused around the
continuation of PCI DSS assessments and how QSAs can adapt their way of working
during the current crises. I’m getting
clients reaching out to ask how they can adapt their payment channels to allow workers
to work from home. There doesn’t seem to
be much information regarding this so hopefully this post will help
organisations that need to make changes to their current working practices,
which ultimately results in changes to their payment channels.
A significant issue with organisations adapting existing
payment channels, or in some cases defining new ones is the timescale in which
these changes have had to be made within.
This quick turnaround on these changes means that organisations are often
unable to validate that any changes made are in line with the requirements of
the PCI DSS (Data Security Standard). There
are several issues I have come across thus far such as:
changes to the payment channel are utilising
system components and networks that are not currently included within an
organisations scope for PCI DSS assessment activities;
due to the remote working instructions from most
governments, both Bring Your Own Devices (BYOD) and Corporate devices that are
not part of an organisations PCI DSS assessment activities are being used by
employees, and;
Home wireless networks are the primary
connectivity of mobile devices being used by employees.
This means changes will be leveraging an environment that
may not be PCI DSS compliant which will therefore breach the signed attestation
of compliance (AOC) that is in place which includes the following two
statements; “I have read the PCI DSS and I recognize that I must maintain PCI
DSS compliance, as applicable to my environment, at all times” and “If my
environment changes, I recognize I must reassess my environment and implement
any additional PCI DSS requirements that apply”. Obviously, with the timescales involved,
validating these un-assessed systems and environments is just not plausible
under the current crises which is becoming a challenge to compliance concerns
by many organisations.
Under the current pandemic and an organisations obligation
to key stakeholders and its customers; most organisations see remote working as
a necessity to continue doing business.
What I have found is that Acquirers are very sympathetic to these needs
based upon the current pandemic and don’t want to stop organisations doing
business. My main advice to clients
is to talk to your Acquirer and/or payment brands regarding any changes that
are required to help you continue to operate for the short term. Ensure you have detail of what you intend to
do and what “quick wins” you can implement or have already implemented to help
mitigate the risk to the environment after the changes are made.
What can I do?
Although Acquirers and/or payment brands are showing
flexibility during this time of crisis, organisations still need to do their
upmost to ensure payment channels stay secure.
Where remote access solutions are to be introduced to help
support business operations, I would recommend at a minimum the following tasks
are carried out:
Treat changes as a significant change, although
organisations may struggling to complete their significant change obligations
(ie. Internal/external penetration testing).
See once this is over section…
Perform a risk assessment on the changes
proposed to help identify the key risks that you should be looking to minimise. Follow the risk assessment methodology that
is used per Requirement 12.2;
Review the information security policy and adapt
it based on the new way of working, ensure this is shared with all staff and
staff have read and understood it as per Requirement 12.1 and
Requirement 12.1.1;
Multi-Factor Authentication (MFA) should be in
place for all remote access into the PCI DSS environment as per Requirement
8.3.2;
Provide additional user awareness training and
cardholder data handling training of staff that will be supporting the new or
updated payment channel. Although not specifically linked to Requirement
12.6, this will help staff operate in a secure manner;
Where VPNs are being used to provide remote
access, split tunnelling should be disabled to ensure that all traffic MUST go
over the VPN. This will ensure that
connectivity to the Internet is still governed by the organisations security
policies and technologies deployed to enforce these policies;
Least privileges should be enforced through any
remote access solution to provide additional security. Remote access profiles should be configured
for each user’s role, physically restricting access to systems that can be reached
over the VPN.
Corporate Owned Mobile Devices
Mobile devices (Laptops for example) that are being used by employees
to remotely connect into the environment should be configured as:
Local firewall must be enabled and at a minimum
configured to block all incoming traffic as per Requirement 1.4;
Antivirus should be deployed in line with Requirement
5 of PCI DSS. Even if the mobile
devices have never been included within scope, this is security 101 and should
be in place for most organisation’s environments;
Automatic patching of the mobile device should
be in place which should be in line with Requirement 6.2, again this is
security 101 and should be in place for most organisation’s environments.
BYOD
Organisations have always found BYOD to be problematic,
which is why many of them will not permit BYOD within their organisations. Problems arise from a lack of assurance over
the security posture of the devices since they are owner, managed and
maintained by employees. Due to this
lack of assurance, this causes issues with compliance because it is unlikely
that adequate security measures are being maintained, thereby making compliance
impossible. BYOD should be avoided in
favour of a corporate owned device; however, if BYOD is the only option to
ensure the business is able to still operate during this pandemic, then
organisations should look to limit the risk of BYOD as much as possible. This could include providing guidance to
staff to raise the security posture of their devices or by allowing IT Support
staff to remotely connect to implement these measures to help reduce risk. It would be unlikely that BYOD could be used
whilst maintaining PCI DSS compliance.
To limit the risk, the following could be carried out (short term plan):
Run an anti-malware scan to ensure the device is clean of malware (there are free tools on the Internet, or some enterprise anti-virus vendors include employee licensing);
Run Anti-virus software and ensure it is configured correctly and it is checked to ensure it is up-to-date and automatically receiving signature updates (see if current corporate AV software is covered for employee use);
Ensuring the machines are fully patched. Windows updates configured to automatically update (and can be manually ran) and other tools can be downloaded to ensure other applications are patched (PatchMyPC for example);
Firewalls configured to block all incoming connections. This should be considered for any local connections also to ensure devices connected to the Wireless network are unable to remotely connect to the device.
Out-of-date Operating Systems must not be used as BYOD devices; for example Windows XP or Windows 7.
Some QSA will offer an alternate solution to improve the
security and limit risk of BYOD being used by use of a Virtual Desktop
Infrastructure (VDI) solution such as Citrix, VMware, Windows Remote Desktop or
Amazon WorkSpaces to name a few. Some
solutions also can perform endpoint checks to validate the security posture of
these devices trying to connect, which can provide additional assurance. This doesn’t completely remove the risks since
a compromised BYOD can still have malware that captures keystrokes and therefore
harvest cardholder data being inputted into the VDI environment. By endpoint checking before a connection is
permitted will further reduce this risk, along with the additional tasks identified
above.
Note: Not really a PCI DSS issue (as cardholder data is
unlikely to be stored on mobile devices) but care needs to be taken if
confidential and/or PII data is being stored on BYOD’s since these will
unlikely to have disk encryption deployed and the security posture will not be at
the same level as corporate owned devices.
Long Term
Measures should only be a short-term fix to allow
organisations to continue to work during these unprecedented times. There is a chance that this pandemic and the
extreme measures could be in place for months and therefore organisations
should, and must, look to be implementing additional controls and security
measures to improve the security of the new or modified payment channels. It is important that organisations stay in
touch with their Acquirers and/or payment brands.
Once this is over!
It is unclear how long this pandemic will continue for and
how long it will be before organisations can get back to a status quo on business
operations. I wanted to highlight some
areas where I can foresee potential issues that may arise from the aftermath of
what’s currently going on around the world.
It is unclear how much leeway organisations will have once everything
is back to normal and organisations are undergoing PCI DSS assessments in the 1-year
aftermath of this global crisis.
There will inevitably be some requirements that will end up
being “Not in Place” due to this crisis; for example, organisations may be
unable to; run an internal quarterly vulnerability scan, quarterly wireless
scans or inspections of unattended POI devices, for example. In addition to these types of requirements
that just are unable to be carried out, during an assessment a QSA may be
expecting to see specific evidence based on the COVID 19 crisis, for example:
Significant change specific requirements; change
control, internal/external vulnerability scans, internal/external penetration
testing. This will very much depend on
how long this needs to be in place,
Change control evidence specific to alterations
made in response to some of the changes made to allow remote working,
Update (or at least a review) to the Information
Security Policy based on this current crisis,
A risk assessment being carried out,
Update to the Incident Response Plan as the
potential threat landscape has changed due to payment channel changes.
Additionally, organisations may be wondering if there will
be any extensions to their current assessments which may get delayed.
I’m hopefully that the payment brands will provide us with
more guidance on these types of issues in due course, especially for Service
Provider assessments where an Acquirer cannot be contacted for a decision.
My Ramblings
Please speak to your Acquirers regarding any changes that
need to be made that may impact the security of your payment card channels. There is a global response to this pandemic
and Acquirers and the Payment Brands understand that organisations need to very
quickly adapt their working practices to ensure continued business operations.
All organisations should start with a Risk Assessment in
line with Requirement 12.2, it is important that organisations carry out a
detailed risk assessment and look to implement basic security controls and/or
techniques to help mitigate key risks identified.
This is not an excuse for organisations to run payment
environments with sub-standard security measures, so organisations must look to
improve the security of any “Short Term” solution that is put in place.
It is expected that further guidance will be released by
the PCI SSC and Payment Brands so keep an eye on PCI SSC’s COVID 19 page and
relevant Payment Brand releases for further information.
Point-of-Interaction (POI) devices that are approved against PTS POI v3.0 (Pin Transaction Security) were due to expire as of the 30th April 2020. The PCI Security Standards Council (PCI SSC) has just announced that this expiration date has been extended due to the global issues caused by the COVID-19 virus.
Due to the logistical issues faced by organisation to help minimise the spread of coronavirus, the PCI SSC Builtin “Extensions of Expiry for PCI PTS POI v3 Devices” has confirmed that PTS POI v3.0 devices will now expire on the 30th April 2021, exactly one year after the planed expiration.
The advice provided by the PCI SSC is that countries and entities that are not adversely affected by the coronovirus, should still look to deploy the new generation of devices such as PTS POI v4.0, v5.0 and v6.0 when the standard is released later this year.
PCI DSS (Payment Card Industry Data Security Standard)
mentions significant change in several of its requirements. Often, organisations can fall foul of this
requirement because they simply don’t understand what is meant by a
‘Significant Change’. This article will
hopefully help organisations to understand this terminology, identify what this
means to them and help to ensure PCI DSS requirements which rely on significant
changes can be fulfilled.
What is a Significant Change?
A significant change can vary from environment to environment, what a significant change to Company X may be different to what a significant change is to Company Y. My recommendation to all my clients is to document what a significant change means to them and their environments, listing out changes that would meet this requirement. PCI SSC (PCI Security Standards Council) released FAQ 1317 in 2015 which included a couple of sentences to help understand what is meant by a significant change as follows;
“Generally, changes affecting
access to cardholder data or the security of the cardholder data environment
could be considered significant. Examples of a significant change may
include network upgrades, additions or updates to firewalls or routing devices,
upgrades to servers, etc.”
For me, this is summed up in the following extract “changes
affecting access to the cardholder data or the security of the cardholder data
environment”, where changes to critical devices and/or security impacting
devices could introduce a security weakness to either the cardholder data
environment or access to cardholder data should be considered a significant
change. This is still open to
interpretation; therefore, to ensure assessments run smoothly, this is why I
advise my clients to document what types of changes should be treated as a
significant change for their specific environment. For example, an organisation may choose to
include the commission of a new public facing website as a significant change;
whereas, an organisation using Serverless architecture where the number of
public facing web services can increase on demand may not deem this as
affecting the security of the environment since the new servers are based on
the existing webserver which runs a hardened images, meeting PCI DSS
requirements. Another example of a
significant change may be replacing a firewall for a new vendor’s
firewall. This would require significant
reconfiguration and the risk of introducing misconfigurations that could compromise
the security of the environment would be quite high.
Key PCI DSS Requirements
The following key requirements of PCI DSS Version 3.2.1 are
applicable when an organisation is undergoing a significant change. Each of these will be discussed as follows;
6.4.6 Upon completion of a significant
change, all relevant PCI DSS requirements must be implemented on all new or
changed systems and networks, and documentation updated as applicable
All sub requirements of Requirement 6.4 relate to change control requirements. This specific requirement is designed to ensure that all significant changes are carried out in a PCI DSS compliant manner, ensuring all the necessary PCI DSS controls are applied and that any relevant documentation is updated to reflect the changed environment. This can be updates to the asset registry (Critical Devices/Software), updates to build standards (for example, a replacement of a firewall to a new vendor), updates to network diagrams, etc… Suitable checks and balances should be in place to validate that significant changes have been applied as per the requirements of PCI DSS. This should be documented within the change control records to provide an audit trail and to ensure the processed are properly followed.
11.2 Run internal and external network
vulnerability scans at least quarterly and after any significant change in the
network (such as new system component installations, changes in network
topology, firewall rule modifications, product upgrades).
This should be self-explanatory. The intention here is to identify any misconfiguration or low hanging fruit vulnerabilities that vulnerability scanners would pick up. This should include both internal and external vulnerability scans.
The change should be adequately planned so these scans run as soon as possible after the change. This will limit the vulnerability window (i.e. the point in time the vulnerability appears, to when the vulnerability was fixed) thus reducing the risk from the vulnerability introduced during the significant change.
The scope doesn’t necessarily have to include the entire environment; however, organisations need to ensure that system components and security impacting systems that can be directly, or indirectly effected by the change are inadvertently missed from the scope. If you are a Level 1 or a Level 2 Merchant that requires a QSA Led Assessment or you are a Level 1 Service Provider, the QSA (Qualified Security Assessor) should pick up on whether the scope is adequate to cover the significant change. If in doubt, discuss this with your QSA.
11.2.3 Perform internal and external
scans, and rescans as needed, after any significant change. Scans must be
performed by qualified personnel.
This requirement supports 11.2 above, requiring rescans should any internal or external scans pick up vulnerabilities that requires rescans under PCI DSS (i.e. CVSS Score 4 or above for external ASV Scans or Internal Scans that have any “high risk” vulnerabilities as defined by the organisation within PCI DSS Requirement 6.1.
11.3.1 Perform external penetration
testing at least annually and after any significant infrastructure or
application upgrade or modification (such as an operating system upgrade, a
sub-network added to the environment, or a web server added to the
environment).
11.3.2 Perform internal penetration
testing at least annually and after any significant infrastructure or
application upgrade or modification (such as an operating system upgrade, a
sub-network added to the environment, or a web server added to the
environment).
Requirement 11.3.1 and 11.3.2 are the same; one is for external and one is for internal penetration testing. The response to Requirement 11.2 is very valid here also. Significant changes within PCI DSS environments can inadvertently introduce vulnerabilities which would go undetected until the annual penetration testing activities, massively increasing the vulnerability window, thereby increasing the risk of a compromise to the environment. It is important that penetration testing is planned for in advance, with the penetration test ideally being included within the project deliverables, and the penetration testing company engaged as early into the project as possible. It is worth noting that often penetration testing companies can have 6+ week lead times for delivering penetration tests, therefore this needs to be factored into the project.
12.2 Implement a risk-assessment process that:
Is performed at least annually and upon significant changes to the environment (for example, acquisition, merger, relocation, etc.),
Identifies critical assets, threats, and vulnerabilities, and
Results in a formal, documented analysis of risk.
This is often overlooked because the examples do not include technical changes to the cardholder data environment. For me, I would highly recommend organisations to undertake a full risk assessment process for any potentially significant changes that are to be undertaken. This will help the organisation identify and document any new risks to the cardholder data environment that will exist after the change but can also be used to identify where potential risks can be introduced by not implementing the proposed change correctly. This work will not only help the organisation account for any perceived issues from the change but also help identify the correct scope for vulnerability scanning and penetration testing activities.
NIST SP 800-37 (Updated Section to Blog)
Thank you to Jim Seaman for pointing out NIST SP 800-37 Risk Management Framework for Information Systems and Organizations: A systems Life Cycle Approach for Security and Privacy which includes reference to ‘Significant Change’ and highlights examples of what types of significant changes could impact an organisations risk posture. Within Appendix F, there is a section called “Event-Driven Triggers and Significant Changes”, which discusses a significant change as being an indicator or prompt that causes an organisational predefined reaction (defined as an event-driven trigger). An organisations reaction would be to re-evaluate the organisations risk posture based upon the trigger.
NIST SP 800-37 defines a significant change as “A
significant change is defined as a change that is likely to substantively
affect the security or privacy posture of a system.” Significant changes to systems
that may trigger an event-driven review to include, but not limited to:
Modifications to how information, including PII, is processed;
Installation of a new or upgraded operating system, middleware component, or application;
Modifications to system ports, protocols, or services;
Installation of a new or upgraded hardware platform;
Modifications to cryptographic modules or services;
Changes in information types processed, stored, or transmitted by the system; or
Modifications to security and privacy controls.
Environmental significant changes that may trigger an event-driven
review to include, but not limited to:
Moving to a new facility;
Adding new core missions or business functions;
Acquiring specific and credible threat information that the organization is being targeted by a threat source; or • Establishing new/modified laws, directives, policies, or regulations.
My Ramblings
Although this seems to be quite a simple requirement to
meet, if organisations are not careful and don’t plan this element of PCI DSS
correctly, they can fall foul of it which can jeopardise their PCI DSS
Certification.
Hopefully this article will help organisations be better
prepared for the implementation of significant changes within their PCI DSS
environments.
On a final note, Appendix A3 Designated Entities Supplemental
Validation (DESV) also includes provisions for significant change. Not many organisations are asked to complete
this supplemental validation by their Acquirers; however, the following related
requirements should be considered as an additional validation step after a
significant change is carried out (although, unless you have to complete DESV, organisations
have no obligation to carry this out);
A3.2.1 Document and confirm the accuracy
of PCI DSS scope at least quarterly and upon significant changes to the
in-scope environment. At a minimum, the quarterly scoping validation should
include:
Identifying all in-scope networks and system
components
Identifying all out-of-scope networks and
justification for networks being out of scope, including descriptions of all
segmentation controls implemented
Identifying all connected entities—e.g.,
third-party entities with access to the cardholder data environment (CDE)
PCI DSS Reference: Scope of PCI DSS Requirements
A3.2.5 Implement a data-discovery
methodology to confirm PCI DSS scope and to locate all sources and locations of
clear-text PAN at least quarterly and upon significant changes to the
cardholder environment or processes.
Data-discovery methodology must take into consideration the potential for clear-text PAN to reside on systems and networks outside of the currently defined CDE.
PCI DSS Reference: Scope of PCI DSS Requirements
As most of you have already probably noticed, Requirement A3.2.1/A3.2.5 activities are designed to validate the scope of the PCI DSS environment. After a significant change, it is most definitely worthwhile validating that changes made haven’t inadvertently brought additional systems and/or networks into scope for assessment activities. A3.2.5 is designed to identify if a by-product of the change has introduced any clear-text PANs (Primary Account Numbers) into the environment.
Ultimately, the expectation is that the organisation will have a defined policy for what it classes as a ‘significant change’ (review the examples within NIST SP 800-37 and reference this within the policy), will perform a risk assessment against any proposed significant changes, will perform actions to mitigate any risks identified, and will have a defined process for what activities are to be conducted (such as pen test etc) when that criteria for a significant change is met.
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.