Bitzu

CPSA ยท Mapping, fingerprinting and host auditing

Active and passive OS fingerprinting

TTL, window size, TCP options, active probing vs passive observation and their reliability.

Key points

  • Operating systems implement TCP/IP slightly differently: initial TTL, TCP window size, which TCP options appear and in what order, the DF bit and sequence-number behaviour.
  • Active fingerprinting (nmap -O) sends crafted probes and compares replies to a database.
  • Passive fingerprinting only studies traffic already seen.
  • Both give a best guess, and middleboxes such as NAT or firewalls can distort it.

Source: https://nmap.org/book/osdetect-methods.html

Practice questions

Single choice

What defines passive OS fingerprinting?

  1. It analyses observed packets without sending probes to the target
  2. It sends crafted packets and compares the replies
  3. It logs in to the host and reads the version
  4. It asks the administrator which OS is installed
Show answer

Answer: A. It analyses observed packets without sending probes to the target

Passive fingerprinting infers the OS from traffic already on the wire without sending anything to the target. Sending crafted probes is active fingerprinting.

Select all that apply

Which TCP/IP characteristics help distinguish operating systems?

  1. The initial TTL
  2. The order and values of TCP options
  3. Whether the DF (don't fragment) bit is set
  4. The expiry date of the web certificate
  5. The title of the home page
Show answer

Answer: A. The initial TTL, B. The order and values of TCP options, C. Whether the DF (don't fragment) bit is set

Option order and values, the DF bit and the initial TTL all differ between stacks. A certificate expiry date and an HTML title are application data and say nothing about the TCP/IP stack.

True or false

Because passive fingerprinting sends no probes, its result is always more accurate than active fingerprinting.

Show answer

Answer: False

False. Passive methods are stealthy, but they depend on whatever traffic happens to be seen and on a few header fields, so they are often less precise. Active probing can elicit many targeted responses.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More CPSA topics in this module