#Why this matters
Unlike wired Ethernet, 802.11 radio frames travel through open air in every direction. Anyone within range with a monitor-mode adapter can passively capture frames or send forged management packets without touching a cable. Securing Wi-Fi therefore depends on modern cryptographic handshakes, protected management frames, and safe client habits.
#Evolution of Wi-Fi standards: why WEP, TKIP, and WPS are broken
- WEP (1999) -- Broken: Uses RC4 with a short 24-bit Initialization Vector (IV). Rapid IV reuse lets attackers recover the key in minutes using ARP replay frames and statistical analysis. Never use WEP.
- WPA / TKIP (2003) -- Deprecated: Built over RC4 as a transitional fix for WEP hardware; deprecated due to weak integrity checks and must be disabled.
- WPA2 (2004) -- Transitional: Uses AES-CCMP (128-bit) with either a Pre-Shared Key (WPA2-Personal) or 802.1X / Enterprise per-user authentication. Weak passphrases remain exposed to offline cracking.
- WPA3 (2018) -- Current standard: Replaces PSK with SAE (Simultaneous Authentication of Equals), preventing offline dictionary cracking and providing forward secrecy. WPA3-Personal uses SAE with 128-bit AES-CCMP and mandatory 802.11w PMF. WPA3-Enterprise adds an optional 192-bit security mode (AES-256-GCMP + 802.1X).
| Protocol | Cipher / Auth | Key weakness | 2026 Status |
|---|---|---|---|
| WEP | RC4 (24-bit IV) | Rapid IV collisions, cracked in minutes | Obsolete, do not use |
| WPA | TKIP (RC4-based) | Legacy RC4 flaws, weak MIC | Deprecated, disable |
| WPA2-Personal | AES-CCMP + PSK | Offline handshake/PMKID cracking, unpatched KRACK | Use only with strong passphrase and PMF |
| WPA3-Personal | AES-CCMP + SAE + PMF | Dragonblood (2019, patched) | Recommended |
| WPA3-Enterprise | AES-CCMP / 192-bit AES-256-GCMP + 802.1X | RADIUS misconfiguration | Recommended for organizations |
WPS (Wi-Fi Protected Setup) is also broken by design. Its 8-digit PIN uses the last digit as a checksum, leaving 7 digits checked in two separate halves: 4 digits (10,000) plus 3 digits (1,000), reducing brute force to 11,000 attempts at most. Routers with weak PRNGs also fall to offline Pixie Dust attacks. Always disable WPS.
#The WPA2 4-way handshake, PMKID, and KRACK
When a client joins WPA2-Personal, the access point (AP) and client derive session keys through a 4-way EAPOL handshake:
- Offline cracking: Attackers who capture M1-M4 test passphrases offline with
hashcat(-m 22000). - PMKID attack (clientless): Tools such as
hcxdumptoolextract the PMKID directly from the AP's first EAPOL frame without waiting for any connected client. - KRACK (2017): Key Reinstallation Attack (CVE-2017-13077) exploits nonce reuse in the 4-way handshake to reinstall keys and decrypt traffic on unpatched clients. OS patches and WPA3 fix this flaw.
- Handshake or PMKID can be cracked offline
- No forward secrecy if PSK leaks
- 802.11w PMF is optional
- SAE prevents offline dictionary cracking
- Forward secrecy protects past traffic
- 802.11w PMF is mandatory
#Management frame abuse: deauthentication, Evil Twin, and KARMA
Without Management Frame Protection, Deauthentication frames are unauthenticated. In monitor mode (wlan0mon), an attacker can send broadcast Dot11Deauth frames (ff:ff:ff:ff:ff:ff) to disconnect clients or force a reconnection handshake.
- ProbeClient searches for saved SSIDs like FreeAirport_WiFi
- ImpersonateRogue AP (Evil Twin or KARMA) answers with matching SSID
- DisconnectOptional forged deauth drops clients from real AP
- InterceptVictim joins rogue AP; captive portal or MITM captures data
- Evil Twin: A rogue AP mimics a legitimate SSID with stronger signal and often serves a fake captive portal to harvest credentials.
- KARMA attack: Replies affirmatively to every SSID a client probes for so the device auto-joins.
#Hardening access points and verifying PMF
802.11w Management Frame Protection (PMF) cryptographically signs management frames to block forged deauthentication packets. In /etc/hostapd/hostapd.conf, set ieee80211w=2 to make PMF mandatory:
# /etc/hostapd/hostapd.conf (authorized lab AP)
ssid=CyberSamSU_Lab
wpa=2
wpa_key_mgmt=SAE
rsn_pairwise=CCMP
ieee80211w=2$ iw dev wlan0 scan | grep -E "SSID:|RSN:|Pairwise|Authentication|Capabilities"
SSID: CyberSamSU_Lab
RSN: * Version: 1
* Pairwise ciphers: CCMP
* Authentication suites: SAE
* Capabilities: 16-PTKSA-RC 1-GTKSA-RC MFP-required MFP-capable#Defending and common mistakes
- Leaving WPS enabled: Even a strong passphrase is bypassed if an 8-digit WPS PIN falls in 11,000 attempts.
- Keeping WPA/TKIP mixed mode: Isolate legacy IoT devices on a separate VLAN instead of downgrading the main WLAN.
- Ignoring client habits: Disable Wi-Fi auto-join, delete outdated profiles, and use a VPN on public Wi-Fi to defeat Evil Twin and KARMA.
- Skipping firmware patches: Keep router firmware and client OSes updated against KRACK (2017) and Dragonblood (2019).
#Summary
- WEP (RC4 IV reuse), WPA/TKIP, and WPS (11,000-attempt split PIN and Pixie Dust) are broken and must be disabled.
- WPA2-Personal handshakes and clientless PMKID frames allow offline cracking of weak passphrases, while unpatched clients are exposed to KRACK (2017).
- WPA3-SAE eliminates offline dictionary cracking, adds forward secrecy, and mandates 802.11w PMF (
ieee80211w=2) against forged deauth frames. - Pair hardened AP settings (WPA3-SAE or 802.1X, disabled WPS, patched firmware) with safe client habits (no auto-join, pruned profiles, VPN on open Wi-Fi).