Certopolis

CompTIA Security+ (SY0-801)

Vulnerability scan vs penetration test: Security+ explained

A vulnerability scan is an automated check that reports known vulnerabilities and has a high false positive rate. A penetration test mimics real attacks and tries to exploit weaknesses, often by chaining several of them, to show what an attacker could actually reach.

Vulnerability scanning

NIST SP 800-115 says scanners compare a system's responses against signatures of known vulnerabilities and report the matches. They are fast and cheap, but they find only surface vulnerabilities on active systems and can report flaws that do not exist.

Local scanning, with a scanner installed on each host, finds more detail than network-based scanning because it usually has local access and a root or administrator account. A scan from outside the perimeter sees open ports but can miss outdated software on the host.

Findings need validation. SP 800-115 says manually examining the system typically gives more accurate results than comparing a second tool's output, because a second tool often repeats the same false positives.

Penetration testing

A penetration test launches real attacks on real systems to find ways around security features. Most tests look for combinations of vulnerabilities that give more access than any one flaw. If an exploit succeeds, the vulnerability is verified.

It is labor-intensive and can damage systems, so it needs careful planning and approval. The planning phase produces the rules of engagement. The final report describes the vulnerabilities found, presents a risk rating, and gives guidance on mitigating them.

Risk levels

Scanners each use their own severity levels, and those levels may not match the real risk. SP 800-115 gives the example of an FTP server flagged for cleartext passwords that is only used anonymously with no passwords. Assessors should set the risk level themselves rather than accept the scanner's.

Where the exam catches people

  • Believing a second scanner confirms a finding: it often repeats the same false positive; manual examination is more accurate.
  • Believing a scan proves a flaw is exploitable: only an exploit attempt, as in a penetration test, verifies it.
  • Believing several low-risk findings are always low risk together: combined they can be higher risk, which penetration testing shows and scanners do not.
  • Believing a scanner's severity label is the organization's risk: assessors should set the risk level for their own environment.

Written from CompTIA's documentation

Try 3 questions on this

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

  1. A network-based vulnerability scan reports a critical flaw in a database service that the server's administrator says is not installed. Which of the following would most accurately confirm whether the finding is real?

    Right. In the game that’s Renown for your Security Operations building.

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

    Show the full explanation and doc quotes

    Findings can be validated by manually examining the system or by comparing a second tool's results, but comparison tools often produce the same false positives, and manual examination typically gives more accurate results.

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

  2. A vulnerability scan run from outside the network perimeter reports open ports on several servers but misses outdated software installed on them. Which of the following would provide the most detailed results?

    Right. In the game that’s Renown for your Security Operations building.

    Not that one: B is right. In the game your Security Operations building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    That host-level view finds OS and application flaws that a scan over the network misses.

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

  3. A company's security manager reads the final report from a penetration test to decide which of the confirmed weaknesses to remediate first. Which of the following elements of the report most directly supports this decision?

    Right. In the game that’s Renown for your Security Operations building.

    Not that one: C is right. In the game your Security Operations building would lose a little Renown, and this question would come back later.

    Show the full explanation and doc quotes

    The risk rating is what lets the manager rank findings and fix the most serious first, which is why penetration test report review appears under prioritization in the objectives.

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