Common ASV Questions

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 ScoreSeverity LevelASV Scan Result
7.0 through 10.0HighFAIL
4.0 through 6.9MediumFAIL
through 3.9LowPASS

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.

Image to provide a visual representation of an example of an ASV scanning schedule.

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;

  1. Ensure that the scope of their PCI DSS assessment has included the server and environment that you are utilising, and
  2. 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:

  • Physical Devices: 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.