## 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.
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