Certopolis

Certified Information Systems Security Professional (CISSP)

Vulnerability scan vs penetration test (CISSP)

NIST SP 800-115 says a vulnerability scanner checks only for the possible existence of a vulnerability by matching hosts against a database of known flaws. A penetration test mimics real-world attacks and, in its attack phase, exploits a vulnerability to confirm it exists. Penetration testing is also the more reliable way to judge vulnerabilities in aggregate.

What does a vulnerability scan tell you?

Vulnerability scanning identifies hosts and their attributes, such as operating systems, applications and open ports, and then tries to identify vulnerabilities by matching what it finds with a database of known vulnerabilities. It can find outdated software versions, missing patches and misconfigurations, and can check compliance with security policy.

SP 800-115 lists its limits. Scanners can have a high false positive rate, reporting vulnerabilities where none exist, so someone with expertise should interpret the results. Scanners rely on a repository of signatures, so the assessor should install the latest updates before running one.

Vulnerabilities rarely exist in isolation. Several low-risk findings can present a higher risk when combined, and a scanner cannot detect weaknesses that appear only through combinations of attack patterns. NIST says the more reliable way to identify the risk of vulnerabilities in aggregate is penetration testing.

What does a penetration test add?

In a penetration test, assessors mimic real-world attacks to find ways around the security features of an application, system or network. Most tests look for combinations of vulnerabilities that give more access than any single one. A test can also show how sophisticated an attacker needs to be and whether defenders detect attacks and respond appropriately.

SP 800-115 describes four phases: planning, discovery, attack and reporting. In planning, rules are identified, management approval is finalized and documented, and goals are set. No actual testing happens in that phase. The attack phase verifies previously identified potential vulnerabilities by attempting to exploit them.

Penetration testing is labor-intensive and needs great expertise. Systems may be damaged or made inoperable, and that risk can be reduced but never fully eliminated.

Overt or covert testing?

Overt testing, also called white hat testing, is done with the knowledge and consent of the organization's IT staff. Covert testing, also called black hat testing, is done without the IT staff's knowledge but with the full knowledge and permission of upper management.

The purpose of covert testing is to examine the damage or impact an adversary can cause. It does not focus on identifying vulnerabilities and does not test every control. It is useful for testing technical controls, IT staff response to perceived incidents, and staff knowledge of security policy.

Some organizations name a trusted third party for a covert test. That party mediates between the assessors, management, IT staff and security staff, so the organization does not start incident response measures without first verifying that an attack is really underway.

Where the exam catches people

  • Believing a scanner finding proves a weakness exists: a scan shows possible existence, and exploitation in a penetration test confirms it.
  • Believing a set of low-rated scan findings means low overall risk: combined weaknesses can be worse, and penetration testing is the reliable view of aggregate risk.
  • Believing covert means unauthorized: upper management fully knows and approves, and only the IT staff are not told.
  • Believing a covert test is a way to list every vulnerability: it examines the impact an adversary can cause and usually exploits only the most rudimentary flaws.
  • Believing testing starts in the planning phase: planning sets rules, approval and goals, and actual testing begins in discovery.

Written from these sources

Try 3 questions on this

Pick an answer to see why each option is right or wrong.

  1. A vulnerability scan flags a possible buffer overflow on an internal application server. Before funding an emergency fix, management wants evidence that the weakness truly exists on that server. Which activity provides it?

    Right. In the game that’s Renown for your Domain 6: Security Assessment and Testing building.

    Not that one: A is right. In the game your Domain 6: Security Assessment and Testing building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    If the attack succeeds, the vulnerability is verified.

    Written from nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-115.pdf

  2. A scan of an engineering network reports a dozen weaknesses, each rated low by the scanning tool. The CISO suspects that together they could let an attacker reach the design servers, and wants the most reliable view of the risk they pose in combination. Under NIST SP 800-115, which approach provides it?

    Right. In the game that’s Renown for your Domain 6: Security Assessment and Testing building.

    Not that one: D is right. In the game your Domain 6: Security Assessment and Testing building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    It names penetration testing as the more reliable way of identifying the risk of vulnerabilities in aggregate.

    Written from nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-115.pdf

  3. With upper management's full permission but without telling the IT staff, an organization commissions a covert security test of its network. Under NIST SP 800-115, what is this kind of test designed to examine?

    Right. In the game that’s Renown for your Domain 6: Security Assessment and Testing building.

    Not that one: D is right. In the game your Domain 6: Security Assessment and Testing building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    It is useful for testing technical controls, IT staff response to perceived incidents, and staff knowledge and implementation of security policy.

    Written from nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-115.pdf

Ask for something