All exams← All Certified Ethical Hacker (CEH) notes

Hacking Wireless Networks: Certified Ethical Hacker (CEH) revision notes

Revision notes

## Hacking Wireless Networks

Wireless networks, particularly Wi-Fi, are a common target for ethical hackers due to their widespread use and potential vulnerabilities. Understanding these vulnerabilities and attack vectors is crucial for the CEH exam.

Wi-Fi Security Protocols

  • WEP (Wired Equivalent Privacy): This is the weakest protocol and should never be used. It's vulnerable to attacks due to its use of a small Initialization Vector (IV) and the RC4 stream cipher, allowing for quick cracking by capturing enough packets.
  • WPA/WPA2 (Wi-Fi Protected Access):
  • WPA-PSK (Pre-Shared Key): Common in home/small office networks. It relies on a shared passphrase. Attacks often target the 4-way handshake process, where the PMK (Pairwise Master Key) is derived. Attackers capture this handshake and perform offline dictionary or brute-force attacks against the passphrase.
  • WPA-Enterprise (802.1X/RADIUS): Used in larger organizations, providing stronger authentication via a central server (RADIUS). It's more resistant to dictionary attacks as each user has unique credentials.
  • KRACK (Key Reinstallation Attack): A critical vulnerability in WPA2 that allowed attackers to reinstall the pairwise key, leading to re-use of nonces and potential decryption of traffic.
  • WPA3: The latest standard, offering significant improvements. It uses Simultaneous Authentication of Equals (SAE), also known as Dragonfly Key Exchange, to provide stronger protection against offline dictionary attacks and forward secrecy.

Common Attack Techniques

  • Deauthentication Attacks: Attackers send deauthentication frames to clients, forcing them to disconnect from the AP. This is often done to capture the 4-way handshake when the client reconnects.
  • Evil Twin Attacks: A rogue Access Point (AP) is set up with the same SSID as a legitimate network. Users unknowingly connect to the fake AP, allowing the attacker to intercept traffic, capture credentials (e.g., via a captive portal), or launch further attacks.
  • WPS (Wi-Fi Protected Setup) Attacks: WPS, designed for easy device connection, can be vulnerable to brute-force attacks on its 8-digit PIN, especially the 'Pixie Dust' attack. It's recommended to disable WPS.
  • Packet Sniffing and Analysis: Tools like Wireshark or Kismet are used to capture wireless traffic, identify network details, and look for unencrypted data or handshakes.
  • Aircrack-ng Suite: A powerful collection of tools for auditing Wi-Fi networks, including `airmon-ng` (monitor mode), `airodump-ng` (packet capture), `aireplay-ng` (injection attacks, deauthentication), and `aircrack-ng` (password cracking).

Mitigation Strategies

  • Use WPA3 where possible, or WPA2-Enterprise. Avoid WEP and WPA-PSK with weak passphrases.
  • Employ strong, complex passphrases for WPA2-PSK.
  • Disable WPS functionality.
  • Regularly audit wireless networks for rogue APs and vulnerabilities.
  • Implement network segmentation to limit the impact of a compromised wireless segment.

Key facts

Flashcards

What is the weakest Wi-Fi security protocol?
WEP (Wired Equivalent Privacy)
tap to reveal
What is the primary target for dictionary attacks against WPA/WPA2-PSK?
The 4-way handshake
tap to reveal
What type of attack forces clients to disconnect and reconnect to a Wi-Fi network?
Deauthentication attack
tap to reveal
Which attack involves setting up a fake Access Point with the same SSID as a legitimate one?
Evil Twin attack
tap to reveal
What does WPS stand for, and what is its main vulnerability?
Wi-Fi Protected Setup; vulnerable to brute-force attacks on its 8-digit PIN.
tap to reveal
How does WPA3 improve security over WPA2?
It uses Simultaneous Authentication of Equals (SAE) to prevent offline dictionary attacks and provide forward secrecy.
tap to reveal
What is the name of the attack that exploited vulnerabilities in WPA2's 4-way handshake, allowing key reinstallation?
KRACK (Key Reinstallation Attack)
tap to reveal
Name a popular tool suite used for Wi-Fi auditing and cracking.
Aircrack-ng
tap to reveal
Practice questions

Hacking Wireless Networks: 5 practice questions

Q1. An ethical hacker is performing a wireless network assessment and uses a deauthentication attack. What is the primary goal of this attack?
  • A.  To jam the entire 2.4GHz frequency band, preventing all communication.
  • B.  To gain unauthorized administrative access to the access point's configuration panel.
  • C.  To force a legitimate client to disconnect and reconnect, allowing the capture of the 4-way handshake.
  • D.  To directly crack the WPA2-PSK passphrase by analyzing the deauthentication frames.
Show answer & explanation
✓ Answer: C. To force a legitimate client to disconnect and reconnect, allowing the capture of the 4-way handshake.
A deauthentication attack sends spoofed frames to disconnect a client, forcing it to re-authenticate. This allows an attacker to capture the crucial 4-way handshake for offline cracking.
Q2. During a wireless penetration test, which tool from the Aircrack-ng suite is specifically designed for capturing 802.11 frames and discovering wireless networks after putting a wireless card into monitor mode?
  • A.  Airodump-ng
  • B.  Aircrack-ng
  • C.  Aireplay-ng
  • D.  Airbase-ng
Show answer & explanation
✓ Answer: A. Airodump-ng
`airodump-ng` is the packet capturing and network discovery tool in the suite. `Aircrack-ng` is for cracking, `aireplay-ng` for injecting packets, and `airbase-ng` for creating rogue APs.
Q3. What is a key security enhancement in WPA3 that specifically mitigates offline dictionary attacks, which are a major vulnerability in WPA2-PSK?
  • A.  The use of 192-bit AES encryption for enhanced confidentiality.
  • B.  The mandatory implementation of MAC address filtering for all clients.
  • C.  The replacement of the Pre-Shared Key (PSK) with Simultaneous Authentication of Equals (SAE).
  • D.  The deprecation of all RC4-based ciphers in favor of TKIP.
Show answer & explanation
✓ Answer: C. The replacement of the Pre-Shared Key (PSK) with Simultaneous Authentication of Equals (SAE).
WPA3's Simultaneous Authentication of Equals (SAE), also known as Dragonfly, requires an interactive exchange for each password guess, making offline dictionary attacks against a captured handshake impossible.
Q4. An attacker sets up a fraudulent Wi-Fi access point with the same SSID as a legitimate corporate network to trick employees into connecting and capturing their credentials. What is this attack called?
  • A.  IV Attack
  • B.  WPS Pixie-Dust Attack
  • C.  Bluesnarfing
  • D.  Evil Twin Attack
Show answer & explanation
✓ Answer: D. Evil Twin Attack
An Evil Twin attack involves creating a rogue access point with an identical SSID to a legitimate one, aiming to intercept traffic or steal credentials from users who mistakenly connect to it.
Q5. A penetration tester wants to attempt a 'clientless' attack to capture a hash from a WPA/WPA2 access point without waiting for a user to connect. Which technique would they use?
  • A.  A FMS (Fluhrer, Mantin, and Shamir) attack.
  • B.  A standard deauthentication attack.
  • C.  A PMKID (Pairwise Master Key Identifier) attack.
  • D.  A KRACK (Key Reinstallation Attack).
Show answer & explanation
✓ Answer: C. A PMKID (Pairwise Master Key Identifier) attack.
The PMKID attack allows an attacker to request a connection and capture the RSN Information Element from the AP's first EAPOL frame. This contains a hash that can be used for offline cracking, without a client being present.
Test yourself
See the Certified Ethical Hacker (CEH) page

More Certified Ethical Hacker (CEH) topics