Which Nmap scan works when firewall drops SYN and URG flags?
A local firewall is configured to drop all incoming packets with the TCP SYN or URG flags set. Which of the following Nmap commands should a penetration tester use to scan the ports 22, 53, 80, and 443 on the target machine and get the most reliable results?
Community Votes
62% of anonymous learners picked answer C. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
The exam tests your knowledge of TCP flag states and Nmap scan types; the trap is assuming a full connect scan can work when the initial SYN handshake is dropped.
When a firewall drops TCP SYN and URG packets, Nmap's ACK scan (-sA) bypasses the filtering and reveals ports as unfiltered; CompTIA PT0-002 candidates favor -sA over -sT because connect scans still require a blocked SYN.
Selecting -sT (TCP connect scan) is the most common mistake, since -sT performs a full three-way handshake and is blocked by a firewall that drops SYN packets, so it cannot establish a connection.
Community Discussion (5 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
Option C, nmap -sA, sends TCP ACK packets with neither SYN nor URG set, so it passes the firewall rule. The target responds with RST for unfiltered ports, allowing Nmap to at least distinguish filtered from unfiltered ports. The top-voted comment correctly notes that -sS is blocked because it uses SYN, while -sY targets SCTP and is irrelevant to TCP port discovery.
Why the Other Options Are Wrong
A (-sY) uses SCTP INIT, not TCP, so it cannot scan TCP ports 22, 53, 80, or 443. B (-sS) sends a SYN packet and will be dropped by the firewall. D (-sT) performs a full TCP connect handshake, which begins with SYN and therefore also fails. Some commenters argue D is reliable because it gives open/closed state, but the firewall rule makes the handshake impossible.
Community Comment Notes
The leading C comment correctly explains that ACK scans are the only option that does not rely on SYN, and that -sA reports filtered/unfiltered rather than open/closed. A smaller group supporting D overlooks that -sT still starts with a SYN packet, so it will time out. The exam likely expects you to prioritize a scan that can get a response through the firewall, even if the result is only unfiltered.
Official Reference
Exam Strategy
When a firewall blocks specific TCP flags, look for a scan type that avoids those flags entirely. For PT0-002, remember that -sA is designed to map firewall rules and can return useful 'unfiltered' state even when SYN scans are dropped.