CompTIA CySA+ (CS0-004) Practice Questions

CompTIA Cybersecurity Analyst (CySA+) exam preparation (exam series code CS0-004)

CompTIA CySA+ (CS0-004) practice questions in English: 180 questions with explanations. The mock exam has 85 questions and 165 minutes.

CompTIA CySA+ (CS0-004) free question 4 / 10 · Domain 2: Vulnerability Management

A port scan shows 25/tcp as open, and Nmap labels it a mail server only because of its list of well-known services. The analyst needs the actual mail server product and version to check for exploits. Which option should be added?

  1. -Pn, which skips host discovery and treats the target addresses as if they were online
  2. -sS, which sends a SYN packet to the ports and reports whether they are open, closed, or filtered
  3. -sV, which interrogates the open ports to learn the application name and version number
  4. -sn, which prints the hosts that answered the discovery probes and skips the port scan
Show the answer and explanation

Answer: C

Why this is correct
The Nmap Reference Guide notes that a lookup in nmap-services reports only that port 25 probably corresponds to a mail server, and that you should not bet your security on it. For vulnerability assessments you want to know which mail server and version are running, because an accurate version number helps dramatically in determining which exploits a server is vulnerable to. Version detection (-sV) interrogates the discovered ports with probes and match expressions to determine the service protocol, the application name, and the version number.

Why the other options are wrong
"-sn, which prints the hosts that answered the discovery probes and skips the port scan" … The -sn option only reports which hosts are available. It performs no port scan and learns nothing about the software behind a port.
"-sS, which sends a SYN packet to the ports and reports whether they are open, closed, or filtered" … A SYN scan reports whether ports are open, closed, or filtered. It does not interrogate the service behind an open port to learn the product and version.
"-Pn, which skips host discovery and treats the target addresses as if they were online" … Skipping host discovery changes which addresses are scanned, not how much is learned about each open port.

Key points
The page says that the -A option enables version detection among other things, and that by default version detection skips TCP port 9100 because some printers simply print anything sent to that port.

Go to the CompTIA CySA+ (CS0-004) practice app (10 free questions; purchase unlocks all questions)

See the full practice set