While net-security-basics covers general network defense (firewalls, IDS, Zero Trust), wireless adds a special threat: anyone in radio range can eavesdrop or inject traffic. Wired networks assume physical access to the cable; Wi-Fi must authenticate and encrypt every station over the air. That is the story of WEP → WPA2 → WPA3.
Why Radio Breaks Wired Assumptions
- Eavesdropping — any listener in range can capture every frame. Encryption is mandatory, not optional.
- Injection — an attacker can forge frames from another station, so authentication and integrity matter as much as confidentiality.
- De-auth attacks — management frames are not encrypted in some generations, letting an attacker force stations off the network (a DoS).
WEP: Broken from the Start
Wired Equivalent Privacy (1997) attempted to provide confidentiality and integrity on a gesture toward wired security, but it was fatally weak:
- A 40-bit (or 104-bit) key is static for the whole network and often reused across many sessions.
- It reused a 24-bit IV (Initialization Vector) — with enough traffic, IVs repeat (the birthday problem) and the key stream is recoverable.
- Its integrity check (CRC-32) is not cryptographically keyed, so an attacker can flip bits and recompute a valid checksum.
Result: a WEP network is decryptable in minutes with off-the-shelf tools. WEP was formally deprecated and should never be used.
WPA2: Pre-Shared Keys & the 4-Way Handshake
WPA2 (802.11i, 2004) is built on AES-CCMP. In Personal mode every station shares a Pre-Shared Key (PSK) — a passphrase. The PSK itself never travels over the air; instead it is derived into keys through the 4-way handshake:
- The AP sends an ANonce (a random number).
- The station replies with its SNonce plus a Message Integrity Code (MIC).
- Both sides independently derive a Pairwise Transient Key (PTK) from the passphrase-derived PMK, the two nonces, and both MAC addresses.
- They confirm — now a unique, per-session encryption key protects the link (forward secrecy holds even if the PSK is later leaked).
The passphrase is turned into the PMK by PBKDF2 (a slow key-derivation function) with the network’s SSID as salt.
Why WPA2-PSK Can Be Cracked Offline
An attacker who captures the 4-way handshake can offline brute-force the passphrase: because PBKDF2 is deterministic, they try candidate passphrases, derive the PMK/PTK, and check whether the captured MIC matches. Weak passphrases fall fast. Defenses include using long, random passphrases, or moving to WPA3/WPA2-Enterprise, which does not rely on a guessable shared secret.
Enterprise Mode: 802.1X & RADIUS
Instead of one shared PSK, Enterprise (WPA2/WPA3-Enterprise) authenticates each user against a RADIUS server using 802.1X:
- The station’s supplicant starts an Extensible Authentication Protocol (EAP) exchange.
- The AP (authenticator) forwards it to the RADIUS server (authentication server).
- EAP-TLS (certificate-based) or EAP-PEAP (username/password inside TLS) proves identity.
- On success, the server delivers a fresh key per session — so each user’s traffic is separately encrypted and revocable.
This is the secure pattern for corporate and campus Wi-Fi; a compromised device can be revoked without changing one shared password.
WPA3 & Modern Defenses
WPA3 (2018) fixes the last big WPA2 weakness — the offline PSK guessing attack:
- SAE (Simultaneous Authentication of Equals) replaces the PSK handshake with a Dragonfly key exchange. Each guess now requires an online interaction with the AP, so offline dictionary attacks fail even with weak passphrases.
- 192-bit security mode and forward secrecy are default.
- PMF (Protected Management Frames) is required, defeating unauthenticated de-auth attacks.
Hardening Checklist
- Never use WEP — use WPA3 (or WPA2/WPA3 mixed) with a long, random passphrase.
- Use Enterprise + EAP-TLS for anything sensitive, so credentials are certificates, not passwords.
- Enable Protected Management Frames and, on managed Wi-Fi, rogue-AP / de-auth detection.
- Segment guest networks with client isolation so one compromised device cannot reach others.
Verify It Yourself
- Run the Wi-Fi Security thread back-to-back with the
net-security-basicstopic and contrast: which defenses are link-layer (this topic) vs network/edge-layer (that topic)? - On your router, check whether WPA2-PSK, WPA3-SAE, or 802.1X is configured and whether PMF is enabled.
- Reason through the offline attack: why does capturing the 4-way handshake never reveal the passphrase directly, yet let an attacker test guesses?