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
What defines passive OS fingerprinting?
- It analyses observed packets without sending probes to the target
- It sends crafted packets and compares the replies
- It logs in to the host and reads the version
- 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.
Which TCP/IP characteristics help distinguish operating systems?
- The initial TTL
- The order and values of TCP options
- Whether the DF (don't fragment) bit is set
- The expiry date of the web certificate
- 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.
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.
