tonia.ai · Concepts

Securing Wireless Networks

A wired network has a physical boundary; a wireless one leaks through walls into the parking lot. Every frame is broadcast to anyone with an antenna, so Wi-Fi security has to rebuild with cryptography the confinement that a cable provides for free.

01The open medium

Radio removes the assumption that an attacker must be physically connected. Anyone in range can passively capture every frame, and anyone with a cheap adapter can transmit frames that look like they came from your access point or your laptop.

building walls AP laptopphone car attacker What an attacker in range can do • capture every frame • inject or spoof frames • impersonate the AP • jam or deauthenticate • map devices by probes
Directional antennas extend "range" far beyond what the AP's coverage map suggests.

Wireless security therefore needs three things a cable never had to provide: access control (who may join), link encryption (so captures are useless), and mutual authentication (so clients know the AP is genuine).

02From WEP to WPA3

Wi-Fi security has been rebuilt three times, each generation answering the last one's failure.

WEP1999RC4, static key24-bit IVbroken in minutes WPA2003TKIP stopgapsame hardwaredeprecated WPA22004AES-CCMP4-way handshakeoffline guessing, KRACK WPA32018SAE, forward secrecymandatory PMFcurrent baseline
Each step was forced by public attacks on the one before it.
WEPWPA (TKIP)WPA2 (CCMP)WPA3
CipherRC4RC4 + per-packet keysAES-CCMPAES-CCMP / GCMP-256
IntegrityCRC-32 (linear)Michael MICCBC-MACCBC-MAC / GMAC
Personal authShared keyPSKPSK (guessable offline)SAE
Forward secrecyNoNoNoYes
Management frame protectionNoNoOptional (802.11w)Required

03Why WEP failed

WEP is the textbook example of strong primitives assembled badly. RC4 itself was not the main problem; the way WEP fed it keys was.

Tiny IV, repeated keystream

Each packet's key was a 24-bit IV plus the shared secret. After roughly 5,000 packets an IV repeat is likely; two packets under the same keystream leak their XOR.

Weak key scheduling

Certain IVs leak bits of the secret through RC4's first output bytes. Collect enough and the key falls out statistically.

CRC is not a MAC

CRC-32 is linear, so an attacker can flip ciphertext bits and fix the checksum without knowing the key. Integrity was illusory.

One key for everyone

No key management: the same static key on every device, rarely changed, shared with every guest who ever connected.

The lesson generalizes: never reuse a stream-cipher keystream, never use a checksum where you need a MAC, and never ship a protocol without a way to rotate keys.

04The WPA2 4-way handshake

WPA2 never sends the password. Both sides already hold a Pairwise Master Key (PMK), derived from the passphrase and SSID or delivered by 802.1X. The handshake proves each side has it and derives a fresh per-session key from two random nonces.

ClientAccess point has PMKhas PMK 1 · ANonce PTK = PRF(PMK, nonces,MAC addresses) 2 · SNonce + MIC derives same PTK,checks MIC 3 · group key (encrypted) + MIC 4 · ACK + MIC → install keys messages 1–2 captured → passphrase can be guessed offline at GPU speed
Elegant, but with WPA2-Personal anyone who records messages 1 and 2 can test passphrase guesses offline without ever touching the network again.

Where it broke

Offline dictionary attacks: the PMK is a deterministic function of the passphrase, so a weak passphrase is only as strong as an attacker's wordlist. KRACK (2017): replaying message 3 tricked clients into reinstalling an in-use key and resetting nonces, enabling decryption and injection. It was a flaw in the standard itself, so nearly every device needed a patch.

05WPA3 and SAE

WPA3-Personal replaces the PSK-based PMK with SAE (Simultaneous Authentication of Equals, the "Dragonfly" exchange): a password-authenticated key exchange in which each side proves knowledge of the password through an elliptic-curve exchange that reveals nothing an eavesdropper can test offline.

No offline guessing

Each guess requires a live interaction with the AP, which can rate-limit it. A captured handshake is worthless to a cracker.

Forward secrecy

Every session gets an independent key. Learning the password later does not decrypt recorded past traffic.

Protected management frames

802.11w is mandatory, so forged deauthentication and disassociation frames are rejected.

Enhanced Open (OWE)

Open networks (cafés, airports) get unauthenticated Diffie–Hellman encryption, so passive sniffing no longer works even without a password.

WPA3 was not flawless at launch. The Dragonblood research found timing and cache side channels in early SAE implementations and downgrade paths in WPA2/WPA3 transition mode. Fixes include hash-to-curve (H2E) password element derivation, which removed the timing leak.

06Shared key vs. per-user authentication

A pre-shared key is one secret for every device. It cannot tell users apart, cannot revoke one person, and must be changed everywhere when anyone leaves. Enterprise mode replaces it with 802.1X: each user or device authenticates individually against a central server, and each session gets its own PMK.

Supplicantlaptop / phonecert or credentials Authenticatoraccess pointport closed until OK Auth serverRADIUS→ directory / PKI EAP over Wi-FiEAP in RADIUS TLS tunnel end to end: the AP relays but cannot read credentials
On success the server hands the AP a per-user PMK; the 4-way handshake then runs as before.
EAP methodClient proves identity withNotes
EAP-TLSClient certificateStrongest; no passwords to phish. Needs device PKI.
PEAP / EAP-TTLSUsername + password inside TLSCommon. Safe only if clients validate the server certificate.
EAP-pwd / SAE-basedPassword via PAKENo certificates, resists offline guessing.

The most common enterprise failure is clients configured to accept any server certificate. An attacker's fake AP then completes PEAP and collects password hashes.

07Common wireless attacks

Real AP"CorpWiFi" ch 6 Evil twin"CorpWiFi" ch 11 Victimauto-reconnects ① connected ② forged deauth ③ joins stronger signal ④ captive portal or fake RADIUS harvests credentials; all traffic flows through the attacker
Deauthentication without protected management frames, combined with an AP broadcasting the same name, is the most common wireless attack chain.

Evil twin

An attacker AP with the same SSID. Devices pick it by signal strength. Defeated by SAE (attacker lacks the password) and by strict server-certificate validation in enterprise mode.

Rogue AP

An unauthorized AP plugged into the wired network, often by an employee for convenience. It bypasses every perimeter control. Found with wireless surveys and switch-port controls.

Deauthentication

Unauthenticated management frames kick clients off at will, forcing handshake captures or pushing them to an evil twin. Stopped by 802.11w PMF.

WPS PIN

The 8-digit setup PIN is checked in two halves, so about 11,000 guesses recover it, and the passphrase with it. Disable WPS.

Jamming

Raw RF interference. No cryptography helps; detection and physical response are the only defenses. Availability always depends on the medium.

Implementation flaws

FragAttacks (2021) showed frame aggregation and fragmentation design flaws dating to 1997 affecting every generation, including WPA3.

08Designing a secure wireless network

Strong link encryption is the start, not the end. A wireless network should be treated as just another untrusted access segment and fenced off accordingly.

CorpWPA3-Enterprise · EAP-TLS IoTWPA3-Personal · per-device GuestOWE · client isolation VLAN 10VLAN 20VLAN 30 Firewallzone policy → internal apps → only its cloud service → internet only no IoT → Corp
Separate networks for separate trust levels: a compromised smart TV should never reach the payroll server.

Baseline

WPA3 (or WPA2-AES with PMF in transition), WPS off, TKIP off, long random passphrases, firmware patched.

Identity

802.1X with EAP-TLS for managed devices; clients pinned to the RADIUS server's CA and name.

Monitoring

A wireless IDS (WIDS) to detect rogue and twin APs, deauth floods, and unusual probes; periodic site surveys.

Physical

Tune transmit power and antenna placement so coverage stops near the walls, and secure APs against tampering.

The 2007 TJX retail breach shows the cost of skipping these steps: attackers cracked WEP at a store, then used that foothold to reach central payment systems over an unsegmented network and remained undetected for many months, exposing tens of millions of card records.

09Common misconceptions

MythHiding the SSID hides the network.
RealityThe name still appears in probe requests and association frames. Hidden networks also make clients broadcast the name everywhere they go, aiding evil twins.
MythMAC filtering controls access.
RealityMAC addresses travel unencrypted and are trivially spoofed. Useful for inventory, not security. Modern phones randomize them anyway.
MythWPA2 with a password is fully secure.
RealityShared PSKs can be cracked offline if weak, leaked by any user, and cannot be revoked individually.
MythOpen Wi-Fi is fine if sites use HTTPS.
RealityHTTPS helps, but DNS, metadata, and non-TLS apps leak, and the AP itself may be fake. OWE or a VPN closes much of the gap.

—References

Peer-reviewed

  1. Bartoli, A., Medvet, E. & Onesti, F. (2018). Evil twins and WPA2 Enterprise: a coming security disaster? Computers & Security, 74. doi:10.1016/j.cose.2017.12.011
  2. Bellardo, J. & Savage, S. (2003). 802.11 denial-of-service attacks. USENIX Security. usenix.org
  3. Borisov, N., Goldberg, I. & Wagner, D. (2001). Intercepting mobile communications. ACM MobiCom. doi:10.1145/381677.381695
  4. Fluhrer, S., Mantin, I. & Shamir, A. (2001). Weaknesses in the key scheduling algorithm of RC4. SAC. doi:10.1007/3-540-45537-X_1
  5. He, C. & Mitchell, J. (2005). Security analysis and improvements for IEEE 802.11i. NDSS. ndss-symposium.org
  6. Tews, E., Weinmann, R.-P. & Pyshkin, A. (2007). Breaking 104 bit WEP in less than 60 seconds. WISA. doi:10.1007/978-3-540-77535-5_14
  7. Vanhoef, M. (2021). Fragment and forge. USENIX Security. usenix.org
  8. Vanhoef, M. & Piessens, F. (2016). Predicting, decrypting, and abusing WPA2/802.11 group keys. USENIX Security. usenix.org
  9. Vanhoef, M. & Piessens, F. (2017). Key reinstallation attacks. ACM CCS. doi:10.1145/3133956.3134027
  10. Vanhoef, M. & Ronen, E. (2020). Dragonblood. IEEE S&P. doi:10.1109/SP40000.2020.00031

Standards and guidance