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.