IDLE/IPID Header Scan IPID Increment Analysis

Answer Correct answer: A — An IPID increment of 2 in an IDLE scan confirms that the target ports are open.

A Certified Ethical Hacker (CEH) is analyzing a target network. To do this, he decides to utilize an IDLE/IPID header scan using Nmap. The network analysis reveals that the IPID number increases by 2 after following the steps of an IDLE scan. Based on this information, what can the CEH conclude about the target network?

  1. The ports on the target network are open Correct Answer
  2. The target network has no firewall present
  3. The ports on the target network are closed
  4. The target network has a stateful firewall present

Community Votes

A
69%
D
31%

69% of anonymous learners picked answer A. Votes are pick records left by other test-takers — they are not the verified answer.

Community Insight

The core concept tested is the mathematical relationship between IPID changes and port states in idle scanning, with the common trap being confusion between the +1 (closed) and +2 (open) increment rules.

This question explores the interpretation of IP Identification (IPID) increments during an Nmap IDLE scan to determine target port status. It establishes that an increment of 2 specifically indicates open ports on the target host via a zombie scanner.

Many candidates select D (Stateful Firewall), mistakenly believing that any deviation from the standard +1 increment implies firewall activity rather than the specific logic of the idle scan mechanism.

Community Discussion (10 comments)

insaniunt 👍 6 Selected: A
Ok, I saw the ceh v12 book: Consequently, the IPID is increased by 2, which implies that the port on the target machine was open." - page 317
agelbahri 👍 1 Selected: A
because of ( after following the steps of an IDLE scan ) which means using zompi
GK2205 👍 1 Selected: D
While A and D have merits, there is no mention of the use of a Zombie system to perform the testing, one has to assume the IDLE/IPID is being sent direct (Trusted CEH). Therefore the result (Which excludes the IPID incrementation of the Zombie) is the response of a Stateful Firewall.
milktea810182 👍 1 Selected: D
Stateful firewalls maintain information about the state of active connections, including the IPID sequence numbers. When Nmap sends probes to closed ports, the firewall generates ICMP error messages in response to those probes. These ICMP error messages trigger changes in the IPID sequence number, causing it to increase by 2 for each probe. This behavior is a result of the firewall's response mechanism, indicating the presence of a stateful firewall on the target network. Therefore, the correct conclusion the CEH can draw about the target network based on the observed behavior is that the target network has a stateful firewall present.
LordXander 👍 1 Selected: A
I would go with A as the documentation for Module 3, page 317 (not 217) says that. Also, reading the nmap documentation suggested A with some further insights in why it could be D
Spam_Protection 👍 1 Selected: A
Module 3 Page 217 Send a SYN+ACK packet to the zombie, and it responds with an RST packet containing the IPID. Assuming that the port on the target was open and that the zombie has already sent an RST packet to the target, the IPID number is increased by 1. Now, the zombie responds with an RST packet to the attacker using its next IPID, i.e., 31339 (X + 2). Consequently, the IPID is increased by 2, which implies that the port on the target machine was open. Thus, using an idle scan, an attacker can identify the open ports and services on the target machine by spoofing their IP address with a zombie’s IP address.
brrbrr 👍 2 Selected: D
The IDLE/IPID header scan is a technique used to identify the presence of a stateful firewall. In this scan, if the IPID number increases by 2 for each successive probe, it indicates that the system is using a stateful firewall.
przemyslaw1 👍 2 Selected: A
An IPID increased by 2 will indicate an open port, whereas an IPID increased by 1 will indicate a closed port
insaniunt 👍 1 Selected: D
D. The target network has a stateful firewall present In an IDLE/IPID header scan using Nmap, the scanning technique relies on the behavior of the IPID (IP Identification) field in IP headers. In a normal scan, the IPID field typically increments by 1 for each packet sent. However, in the presence of a stateful firewall that performs packet normalization, the IPID might increase by a different value. If the IPID number increases by 2 after performing the IDLE/IPID header scan, it suggests that the target network has a stateful firewall present. This behavior occurs because the firewall is manipulating the IPID field in a way that deviates from the normal incrementation observed in the absence of such a firewall.
qwerty100 👍 1
A. The ports on the target network are open https://nmap.org/book/idlescan.html

Comments & Corrections

No comments yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Submitted for moderation before publishing. Keep it helpful and respectful.

Expert Analysis

Why the Answer Is Correct

In an IDLE scan, the attacker uses a 'zombie' host to probe the target. If the target port is open, the zombie receives a SYN+ACK from the target, causing its IPID to increment by 1. The zombie then sends an RST back to the attacker, using the next IPID value. Consequently, the difference between the initial and final IPID observed by the attacker increases by 2. This specific behavior confirms the port is open.

Why the Other Options Are Wrong

Option C is incorrect because closed ports typically result in an IPID increment of 1 (the zombie ignores the packet and only increments for its own traffic). Option B is incorrect because firewalls do not prevent this side-channel analysis if the zombie is reachable. Option D is a distractor; while stateful firewalls affect packet tracking, the +2 increment is a deterministic signature of an open port in this specific scan type, not a general indicator of a firewall presence.

Community Comment Notes

Community consensus heavily favors A, citing the CEH v12 textbook page 317 which explicitly links the +2 increment to open ports. Some users like brrbrr argue for D, suggesting firewall normalization causes the change, but this contradicts the fundamental mechanics of the IDLE scan where the zombie's reaction to the target determines the count. Comments referencing the Nmap documentation confirm that the +2 delta is the hallmark of an open port response.

Official Reference

Exam Strategy

Memorize the specific IPID deltas for IDLE scans: +1 means closed/filtered, and +2 means open. Do not overthink firewall interactions unless the question explicitly mentions packet filtering blocking the zombie's responses.

Frequently Asked Questions

Why does an IPID increment of 1 indicate a closed port?

When a port is closed, the zombie ignores the probe. Its IPID only increments due to its own background network traffic, resulting in a +1 change.

Can a stateful firewall cause an IPID increment of 2?

No. While firewalls track connections, the +2 increment is a direct result of the zombie receiving a response from the target server, indicating an open port.

More 312-50v12 FAQ →

Related Analysis

← Back to 312-50v12 Study Guide