🌍 Ethical Hacking · subject
Ethical Hacking Sniffing Syllabus
The Sniffing syllabus for Ethical Hacking in full: 3 chapters and 9 topics, every one listed below, plus 50 Sniffing flashcards with answers.
Sniffing syllabus: all 3 chapters
Expand any chapter to see its topics and sub-topics.
-
Sniffing Concepts
3 topics- What is Sniffing?
- Types of Sniffing
- Promiscuous Mode
-
Sniffing Tools
3 topics- Wireshark
- Tcpdump
- Ettercap
-
Countermeasures
3 topics- Encryption
- Network Segmentation
- Intrusion Detection Systems
Ethical Hacking Sniffing flashcards — 50 questions with answers
What is sniffing in the context of network security?
Sniffing is the process of capturing, monitoring, and inspecting data packets as they travel across a network, typically using a packet-capturing tool (sniffer) to intercept traffic passing through a network interface.
What is the primary goal of a sniffing attack?
To intercept and read sensitive data traversing the network, such as usernames, passwords, emails, session tokens, and other confidential information, often from unencrypted (cleartext) traffic.
At which OSI layer does packet sniffing primarily operate to capture raw frames?
The Data Link layer (Layer 2), where the network interface card captures raw Ethernet frames; sniffers then parse higher-layer data (IP at Layer 3, TCP/UDP at Layer 4, etc.).
What are the two main types of sniffing?
Passive sniffing and active sniffing.
What is passive sniffing and where is it typically used?
Passive sniffing is capturing traffic without injecting packets into the network. It works on hub-based networks where traffic is broadcast to all ports, so the attacker simply listens and is very hard to detect.
What is active sniffing and why is it needed on switched networks?
Active sniffing involves injecting traffic (e.g., ARP spoofing, MAC flooding) into the network to redirect or capture packets. It is needed on switched networks because a switch forwards frames only to the intended port, not to all ports.
Why is passive sniffing ineffective on a modern switched network by default?
A switch maintains a MAC address table (CAM table) and forwards unicast frames only to the specific port of the destination MAC, so an attacker's port does not receive other hosts' traffic without an active technique.
What is MAC flooding and how does it enable sniffing?
MAC flooding sends a large number of frames with fake source MAC addresses to overflow the switch's CAM table. When the table is full, many switches fail-open and behave like a hub, broadcasting frames to all ports so the attacker can sniff them.
What is ARP spoofing (ARP poisoning) as an active sniffing technique?
The attacker sends forged ARP replies to associate their own MAC address with the IP of another host (often the gateway), causing victims to send traffic through the attacker, enabling a man-in-the-middle position for sniffing.
What is DHCP starvation and how does it relate to sniffing?
DHCP starvation floods a DHCP server with requests using spoofed MACs to exhaust its address pool. This can be paired with a rogue DHCP server to reroute victim traffic through the attacker for sniffing.
What is promiscuous mode on a network interface card?
Promiscuous mode is a NIC configuration in which the card passes all received frames to the CPU regardless of destination MAC address, instead of discarding frames not addressed to it. It is required for sniffing traffic not destined for the host.
In normal (non-promiscuous) mode, which frames does a NIC accept?
Frames whose destination MAC matches the NIC's own MAC address, plus broadcast frames and subscribed multicast frames; all other frames are discarded by the hardware.
What is monitor mode and how does it differ from promiscuous mode?
Monitor mode is a wireless (802.11) mode that captures all radio frames on a channel without associating to an access point, including management/control frames. Promiscuous mode captures frames on a network the host is already connected to and does not capture other-network 802.11 management frames.
What is Wireshark?
Wireshark is a free, open-source, cross-platform GUI network protocol analyzer used to capture and interactively browse traffic on a network, with deep inspection and dissection of hundreds of protocols.
Which underlying libraries does Wireshark use to capture packets on different platforms?
libpcap on Unix/Linux/macOS and Npcap (formerly WinPcap) on Windows.
What is the difference between a capture filter and a display filter in Wireshark?
A capture filter (BPF syntax) limits which packets are recorded during capture and cannot be changed retroactively; a display filter is applied after capture to show a subset of already-captured packets and can be changed freely.
Write a Wireshark display filter that shows only HTTP traffic and only TCP packets to port 443.
For HTTP use $\texttt{http}$; for TCP to port 443 use $\texttt{tcp.port == 443}$. Combined example: $\texttt{http || tcp.port == 443}$.
In Wireshark, what does the 'Follow TCP Stream' feature do?
It reassembles and displays the full bidirectional application-layer conversation of a TCP session in order, making it easy to read exchanged data (e.g., an entire HTTP request/response or login exchange).
What is Tcpdump?
Tcpdump is a free, open-source command-line packet analyzer that captures and displays TCP/IP and other packets transmitted or received over a network, using the libpcap library.
What is the tcpdump command-line syntax to capture on interface eth0 and write to a file?
$\texttt{tcpdump -i eth0 -w capture.pcap}$ captures on eth0 and writes raw packets to capture.pcap; $\texttt{-r capture.pcap}$ reads them back.
Show the other 30 Sniffing flashcards
Which filter language do both tcpdump and Wireshark capture filters use?
Berkeley Packet Filter (BPF) syntax.
Write a tcpdump filter expression that captures only traffic to or from host 10.0.0.5 on port 80.
$\texttt{host 10.0.0.5 and port 80}$
What does the tcpdump flag -n do?
It disables name resolution, printing numeric IP addresses and port numbers instead of resolving them to hostnames and service names, which speeds up output and avoids DNS lookups.
What is Ettercap?
Ettercap is a free, open-source comprehensive suite for man-in-the-middle attacks on LANs, supporting sniffing of live connections, content filtering, and active/passive dissection of many protocols including ARP poisoning.
Name two core capabilities of Ettercap beyond simple packet capture.
ARP poisoning (to place itself as MITM on a switched LAN) and on-the-fly content filtering/injection or credential harvesting from dissected protocols; it also supports DNS spoofing via plugins.
What is the fundamental countermeasure against sniffing attacks?
Encryption of data in transit, so that even if packets are captured, their contents are unreadable ciphertext without the key.
Why does encryption defeat the goal of a sniffing attack?
Sniffing captures raw packets; if the payload is encrypted, the attacker sees only ciphertext and cannot recover plaintext credentials or data without the decryption key, so interception yields no usable information.
Which secure protocols replace their cleartext counterparts to prevent credential sniffing?
HTTPS (TLS) replaces HTTP, SSH replaces Telnet, SFTP/FTPS replace FTP, and IMAPS/POP3S/SMTPS replace their unencrypted mail equivalents.
What is the difference between symmetric and asymmetric encryption used to protect network traffic?
Symmetric encryption uses a single shared secret key for both encryption and decryption (fast, e.g., AES). Asymmetric encryption uses a public/private key pair (e.g., RSA) and is used for key exchange and authentication; TLS combines both.
What does TLS provide that raw TCP does not, relevant to sniffing defense?
Confidentiality (encryption), integrity (message authentication codes), and authentication (certificates) of the transmitted data, so captured packets cannot be read or undetectably modified.
What is network segmentation as a defense against sniffing?
Network segmentation divides a network into smaller isolated segments (e.g., via VLANs, subnets, or firewalls) so that traffic in one segment is not visible to hosts in another, limiting the scope a sniffer can observe.
How do VLANs help mitigate sniffing?
VLANs logically separate broadcast domains on a switch, so hosts in one VLAN cannot receive broadcast/ARP traffic or (without a router) reach hosts in another VLAN, reducing the attack surface for ARP poisoning and passive sniffing.
Why does replacing hubs with switches reduce passive sniffing risk?
A hub broadcasts every frame to all ports (so any host can passively sniff all traffic), while a switch forwards unicast frames only to the destination port, so passive sniffing captures only the attacker's own and broadcast traffic.
What is an Intrusion Detection System (IDS)?
An IDS is a device or software that monitors network or system activity for malicious behavior or policy violations and generates alerts when suspicious activity, such as sniffing-related attacks, is detected.
What is the key difference between an IDS and an IPS?
An IDS (Intrusion Detection System) only detects and alerts on suspicious activity (passive/out-of-band), while an IPS (Intrusion Prevention System) sits inline and can actively block or drop malicious traffic in real time.
What are the two primary detection methodologies used by intrusion detection systems?
Signature-based (misuse) detection, which matches traffic against known attack patterns, and anomaly-based detection, which flags deviations from an established baseline of normal behavior.
Compare signature-based and anomaly-based IDS detection in terms of unknown attacks.
Signature-based detection cannot catch novel (zero-day) attacks lacking a signature but has low false positives; anomaly-based detection can catch unknown attacks by flagging deviations from baseline but tends to produce more false positives.
How can an IDS/network monitoring detect ARP poisoning used for active sniffing?
By detecting anomalies such as multiple IP addresses mapping to one MAC, duplicate or changing MAC-to-IP bindings, and a flood of gratuitous ARP replies, which tools like arpwatch and IDS signatures flag.
What is the difference between a NIDS and a HIDS?
A NIDS (Network-based IDS) monitors traffic on network segments via a sensor/tap, while a HIDS (Host-based IDS) runs on an individual host and monitors that system's logs, files, and activity.
How can a host in promiscuous mode potentially be detected on a network?
Detection techniques include the ARP test (sending a request to a nonexistent MAC to which only promiscuous NICs may respond), abnormal latency/ping tests with crafted MACs, and DNS reverse-lookup tests, since promiscuous NICs process frames non-promiscuous ones ignore.
Which protocols commonly transmit credentials in cleartext, making them prime sniffing targets?
Telnet, FTP, HTTP, POP3, IMAP, SMTP, and SNMPv1/v2 all transmit data (and often credentials) in plaintext, making them highly vulnerable to sniffing.
What is a SPAN port (port mirroring) and how does it relate to sniffing/monitoring?
A SPAN (Switched Port Analyzer) port, or port mirror, copies traffic from one or more switch ports to a designated monitoring port. It is used legitimately by IDS/analyzers and can also be abused to sniff traffic on a switch.
What is a network tap and how does it differ from a SPAN port?
A network tap is a dedicated hardware device inserted inline on a link that copies all traffic to a monitoring port without loss. Unlike a SPAN port, it does not consume switch resources and does not drop packets under heavy load, providing a full, reliable copy.
What is DNS spoofing in the context of a sniffing/MITM attack?
DNS spoofing (DNS cache poisoning) supplies forged DNS responses so a victim resolves a hostname to an attacker-controlled IP, redirecting traffic to the attacker where it can be sniffed or manipulated.
What is a man-in-the-middle (MITM) attack and how does it enable sniffing on switched networks?
In a MITM attack the attacker secretly positions itself between two communicating parties (e.g., via ARP poisoning) so all traffic flows through the attacker, allowing them to sniff, and potentially alter, the data on an otherwise switched network.
What is a .pcap file?
A .pcap (packet capture) file is the standard binary file format, defined by libpcap, that stores captured network packets along with metadata (timestamps, lengths) for later analysis in tools like Wireshark or tcpdump.
What is the modern successor to the classic .pcap format used by Wireshark?
PCAPNG (.pcapng, PCAP Next Generation), which supports multiple interfaces, richer metadata, comments, and enhanced timestamps, and is now Wireshark's default capture format.
Give an example of how DHCP snooping mitigates active sniffing attacks.
DHCP snooping is a switch feature that builds a trusted binding table of legitimate IP-to-MAC-to-port mappings and blocks rogue DHCP servers; combined with Dynamic ARP Inspection it drops forged ARP packets, defeating ARP poisoning used for sniffing.
What is Dynamic ARP Inspection (DAI) and which attack does it counter?
Dynamic ARP Inspection is a switch security feature that validates ARP packets against the DHCP snooping binding table and drops invalid IP-to-MAC mappings, countering ARP spoofing/poisoning used to enable man-in-the-middle sniffing.
Why is a fully switched network with encryption and Dynamic ARP Inspection considered strong defense-in-depth against sniffing?
Switching limits which traffic a host can see, DAI/DHCP snooping prevent the ARP poisoning needed for active sniffing/MITM, and end-to-end encryption ensures that any packets that are captured remain unreadable ciphertext, so multiple layers must fail for an attack to succeed.
Ethical Hacking Sniffing FAQ
What is in the Ethical Hacking Sniffing syllabus?
Ethical Hacking Sniffing is split into 3 chapters: Sniffing Concepts, Sniffing Tools and Countermeasures. Together they contain 9 topics.
How many chapters are in Ethical Hacking Sniffing?
3 chapters, containing 9 topics. The largest chapter is Sniffing Concepts, with 3 topics.
Are there flashcards for Ethical Hacking Sniffing?
Yes — a 50-card Sniffing deck, printed in full in the flashcards section of this page and available in the Examius app with spaced repetition. The free plan covers one exam of your choice, including its flashcards; Examius Pro, a one-time purchase, unlocks every other exam and deck.