This is such a controversial subject, but I felt the need to write about PCI DSS scoping and segmentation. Many QSA (Qualified Security Assessors) will have their own opinions on this subject. I believe there are two types of QSAs, those with a strong technical background and technical capabilities and others which are from more of an audit background with less technical capabilities. Although it will be very rare that you will come across a QSA with strong capabilities in everything IT, those QSAs with a strong technical background and a strong varied capability will have enough knowledge to research technologies they are not au fait with, or that are new and immerging. Often the scoping decisions will be based on the QSA technical capabilities and understand of the types of threats and perceived risks within the specific cardholder data environment and payment channels.
Many people who have been immersed within PCI DSS for a long time will know that the “Open Scoping Framework Group” produced a document in 2012 called the “Open PCI DSS Scoping Toolkit” (referred to as Open Scoping Toolkit for the remainder of this article), which no longer appears to be available for download. For a long time, this was used by many PCI DSS professionals as a comprehensive approach to scoping out a cardholder data environment (CDE), even though this document wasn’t endorsed by the PCI Security Standards Council (PCI SSC). In 2016, the PCI SSC released their own guidance called “Information Supplement: Guidance for PCI DSS Scoping and Network Segmentation” (referred to as the PCI SSC Scoping document for the remainder of this article). This was initially released in December 2016 with a minor update released in May 2017. When reviewing this document, it follows some of the same concepts within the Open PCI DSS Scoping Toolkit document.
Now let’s delve a little deeper into the PCI SSC Scoping document;
- What is worth pointing out from the onset is that it’s not just the devices directly involved in the payment that are in scope for PCI DSS. On page 5 of the PCI SSC Scoping document;
“An organization’s CDE is only the starting point to determine the overall PCI DSS scope. Accurate PCI DSS scoping involves critically evaluating the CDE and CHD flows, as well as all connected-to and supporting system components, to determine the necessary coverage for PCI DSS requirements. Systems with connectivity or access to or from the CDE are considered “connected to” systems. These systems have a communication path to one or more system components in the CDE. Connectivity may occur over various technologies, including physical, wireless, and virtualized.”
This statement is making the point that the CDE (Cardholder Data Environment), which is the environment which is directly involved in the storing, processing and/or transmitting of cardholder data (CHD) not only comprises of the system components that may be in scope for PCI DSS. Additional connected-to and supporting system components may also be in scope, which may operate within a network segment that is not within the CDE.
- Page 6 is quite clear within this statement;
“It is important to understand the risks and impacts if connected-to system components are excluded or overlooked from PCI DSS scope. Compromises of connected-to system components often lead to compromise of the CDE and theft of CHD.
The following scoping concepts always apply:
- Systems located within the CDE are in scope, irrespective of their functionality or the reason why they are in the CDE.
- Similarly, systems that connect to a system in the CDE are in scope, irrespective of their functionality or the reason they have connectivity to the CDE.
- In a flat network, all systems are in scope if any single system stores, processes, or transmits account data.
Note that public, untrusted networks (for example, the Internet) are not in scope for PCI DSS. However, PCI DSS requirements must be implemented to protect the entity’s in-scope systems and data from untrusted networks.”
The key here is the last three bullet points. This is clearly stating that all systems within the CDE are in scope for the assessment, regardless of if they are involved in the payment process or not. The Open Scoping Toolkit refers to system components which are within the CDE but are not directly involved in the payment flow as ‘Infectious’, thus making these “non-payment” system components in scope as they are within the CDE. This is consistent between both the Open Scoping Toolkit and the PCI SSC Scoping documents.
The following bullet point above;
- Similarly, systems that connect to a system in the CDE are in scope, irrespective of their functionality or the reason they have connectivity to the CDE.
Says that system components outside of the CDE that connect to system components within the CDE are also in scope. This could be confusing as an earlier statement defines “connected-to” systems as “Systems with connectivity or access to or from the CDE are considered “connected to” systems.”. This says that connectivity of “connected-to” systems can be bi-directional, so it can include connections which are initiating from the CDE to systems outside of the CDE.
- Page 6-7 indicates the true intent of what the PCI DSS means by segmentation. This is a long-standing misunderstanding within the community that when PCI DSS talks about segmentation, it means isolation (which is clearly documented within the PCI DSS standard itself).
“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.
Note that connectivity or access is allowed into the CDE from systems outside of the CDE. However, all such connectivity is in scope for PCI DSS and all applicable PCI DSS requirements apply to secure that connection or access.”
As already identified, once the organisation starts to permit communication into and out of the CDE, other systems start to become in scope. Therefore, to truly de-scope systems outside of the CDE, you will need to fully isolate these systems from bi-directional communication to/from the CDE. Insufficiently implementing this not only brings systems into scope, but it can also have implications on which Self-Assessment Questionnaire (SAQ) can be completed due to failing to meet some of the eligibility criteria governing the use of particular SAQs.
- Page 10 of PCI SSC Scoping document discusses three categories of systems as follows;
- CDE Systems,
- Connected-to or Security-impacting Systems,
- Out-of-Scope Systems.
The Open Scoping Toolkit introduced a similar concept of three categories of network segments. These were defined 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)
Whilst the PCI SSC Scoping document is defining this against systems, the Open Scoping Toolkit introduced these three categories as network segments. The Open Scoping Toolkit then introduced further classifications of the types of systems operating within each of the identified network segment categories.
The basic concept was;
Anything connected to CAT 1 was part of the CDE and everything was in scope. A firewall would separate CAT 1 and CAT 2, with restricted access to and from CAT 1 and CAT 2. CAT 2 devices which could connect to or receive connections from the CDE were in scope. A firewall would separate CAT 2 and CAT 3, no CAT 3 traffic could directly communicate with the CAT 1 segment. Under the Open Scoping Toolkit, CAT 1 systems were infectious (as discussed earlier), however this was not the case for CAT 2 systems that didn’t support connections to/from the CDE.
- Section 3.1 “Verifying segmentation of out-of-scope systems” on page 13 of the PCI SSC Scoping document further highlights some key points;
“To be considered out of scope, a system component must not have access to any system in the CDE. It is possible for an out-of-scope system to be on the same network segment or subnet as a connected-to or security-impacting system, as long as the out-of-scope system cannot access the CDE, either via the in-scope system or via any other method.”
So, this is agreeing with the Open Scoping Toolkit that it may not be necessary for out-of-scope systems to be in scope simply because they are on the same network segment as a connected-to or security-impacting system (i.e. CAT 2 isn’t infectious). That said, the following further paragraph seems to suggest that it would be hard to deem systems as not infectious;
“In order for a system to be considered out of scope, controls must be in place to provide reasonable assurance that the out-of-scope system cannot be used to compromise an in-scope system component, as the in-scope system could then be used to gain access to the CDE or impact security of the CDE. Examples of controls that could be applied to prevent out-of-scope systems from compromising a connected-to or security-impacting system include:
- Host-based firewall and/or intrusion detection and prevention system (IDS/IPS) on in-scope systems that block connection attempts from out-of-scope systems.
- Physical access controls that allow only designated users to access in-scope systems.
- Logical access controls that permit only designated users to login to in-scope systems.
- Multi-factor authentication on in-scope systems.
- Restricting administrative access privileges to designated users and systems/networks.
- Actively monitoring for suspicious network or system behaviour that could indicate an out-of-scope system attempting to gain access to an in-scope system component or the CDE.”
In this paragraph, the guidance is saying that out-of-scope systems need appropriate controls to prevent the out-of-scope system from compromising a connected-to or security-impacting system which is on the same network segment. To simplify this, within my approach, I simply treat the CAT 2 segment as infectious since a well-designed PCI DSS architecture would utilise this segment for systems which are supporting the CDE environment and potentially supporting the “out-of-scope” environment as a “Shared Service” (Shared Services are introduced on page 14 of the PCI DSS Scoping document).
- As you will see from Chapter 4 “Example Segmentation implementations: Shared Services” on page 14 discusses three distinct network zones which are defined as follows:
“The following principles apply to both Example 1 (outlined in Section 5.1) and Example 2 (Section 5.2):
- Three distinct network zones are defined:
- Corporate LAN
- Shared Services
- CDE”
N.B. Other principles have been omitted from this post, I would recommend reading the PCI DSS Scoping document.
Some of you may think that this looks a lot like the Open Scoping Toolkit approach. Well, that would be because it does; Corporate LAN (CAT 3), Share Services (CAT 2) and CDE (CAT 1).
My Approach
So that’s an overview of some of the key points within the existing guidance that is available. Now, I’d like to discuss my personal approach. This may differ from other QSAs so it is best to engage your own QSA to confirm with them how they would scope your PCI DSS environment.
I have tried to simplify this so that organisations can clearly see where the demarcation point lies between what systems are included within an assessment and which systems do not since there are no risks to the CDE from the not-in-scope systems.
I follow the CAT 1, CAT 2 and CAT 3 concept from the Open Scoping Toolkit with one significant difference; I treat all CAT 2 systems as in scope for the PCI DSS assessment. As discussed above, it can complicate matters to have a mix of “out-of-scope” and “connected-to/security-impacting” systems on the same network segment, so treating these systems as infectious, can simplify the scoping/segmentation for the client and assessment.
Where clients insist on operating a few systems like this, I pay close attention to what security controls have been applied to the “connected-to/security impacting” systems to ensure they are protected from the “out-of-scope” systems.
As highlighted early on within the PCI SSC Scoping document. The key thing I look for when assessing a system to determine if it is in scope or not is simply; if a threat actor gains full control over this system, can this impact the security of the CDE or CHD in any way? I look at this from a worst-case scenario and if the answer is yes, then the system is in scope, which also may bring other systems in scope which are on the same network segment or other routed network segments.
In addition to paying close attention to the security controls, I am quite pragmatic and will review the connection directionality and the service. If a “connected-to” system is only accepting connections from the CDE AND there is no risk of data exfiltration, then I may deem that there is no risk to the CDE by this system accepting these connections. It will very much depend the; type of connection, data that is flowing and the service running. This type of review only really works where connections are initiated from outside the CDE. It would be much harder to justify an incoming connection as not having any risks to the CDE or CHD.
My PCI DSS Rant
Although the material produced by the PCI SSC is excellent and was a long-awaited piece of guidance for the whole community, I have a little bugbear with it. On page 15 of the PCI SSC Scoping document it lists some example common shared services within section 4.1 “Example 1: ‘Connected-to’ Shared Services”. I have an issue with Active Directory being listed as a shared service. I am yet to come across an Active Directory deployment that facilitates the use of the same Active Directory infrastructure within the CDE and “out-of-scope” environments. It is impossible (unless there have been some significant developments over the past few years) for anyone to categorically say that a compromise of a “Domain Joined” out-of-scope host, cannot lead to the compromise of the Active Directory infrastructure which would therefore lead to a compromise of “Domain Joined” CDE hosts. I personally do not permit Active Directory to be shared between CDE and out-of-scope systems.
UPDATE 29th April 2019: A colleague recently posted a blog, “Gaining Access to Card Data Using the Windows Domain to Bypass Firewalls” about how he compromised CHD where a shared Active Directory was in use. This helps to highlight why I don’t permit Active Directory as a “Shared Service”.
