Skip to content

Lesson 6 of 13 · 12m

802.1X, EAP, and the Certificate That Is the Real Boundary

Enterprise Wi-Fi replaces the passphrase with a RADIUS exchange — and the whole thing stands or falls on whether clients validate the server certificate.

Enterprise Wi-Fi has no shared passphrase to crack — it has a RADIUS server, and the security boundary moved somewhere nobody looks: the client-side server certificate validation checkbox.

The shape of the exchange

Three parties: the supplicant (client), the authenticator (the AP, which is just a bouncer), and the authentication server — RADIUS, usually FreeRADIUS or NPS. Client and AP speak EAPOL — EAP over LAN — while AP and RADIUS speak EAP inside RADIUS. Until authentication completes, the authenticator permits exactly one conversation: the EAP exchange. No DHCP, no IP, nothing else.

The practical consequence of that architecture: the AP never learns the user's password, and the user-specific keying material that eventually replaces the handshake arrives from the RADIUS side — which is why there is no PSK for an attacker to grind.

PEAP-MSCHAPv2: TLS outside, DES-era inside

The common deployment is PEAP: an outer TLS tunnel, then MSCHAPv2 inside it. MSCHAPv2 is a 1990s challenge-response whose crypto is DES-based and broken — Moxie Marlinspike's CloudCracker, launched in 2012, reduced any captured MSCHAPv2 exchange to a guaranteed crack (roughly a day on an FPGA DES pipeline then; trivial now). Hashcat mode 5500 handles the format.

The attack that lands in practice isn't protocol-breaking; it's a rogue AP with a RADIUS of its own. Stand up hostapd plus FreeRADIUS — or a purpose-built rig like EAPHammer — on the target SSID. Clients that connect and don't verify the server's cert run PEAP with the attacker's RADIUS, emit a full MSCHAPv2 challenge/response, and the attacker cracks it offline. Harvested credentials replay into the real network, and often into everything else the victim's domain account touches.

EAP-TLS

EAP-TLS does mutual certificate authentication — the client presents a certificate too. There is no password, no challenge/response, nothing for a rogue AP to capture and grind; a successful harvest gets the attacker a handshake with a cert they can't impersonate. The cost is a PKI: issuing, deploying and revoking client certs is real ops work — MDM enrollment, cert lifetimes, revocation — which is exactly why so many shops stay on PEAP long after MSCHAPv2 was pronounced dead.

A third option shows up in controllers like UniFi and Cisco: per-device or per-user private PSKs (iPSK/multi-PSK). It keeps PSK simplicity while scoping each leaked key to one device — a middle rung between shared PSK and full 802.1X.

The checkbox that is the whole game

Every PEAP misconfiguration funnels to one place: the supplicant's trust settings. "Validate server certificate" disabled, or enabled with no CA and no server name pinned, means the client will do full TLS with anyone's RADIUS. Windows shipped EnableValidateServerCert prompts users click through; macOS and MDM profiles can pin a CA and servername so no user decision exists. A user clicking "connect anyway" on a certificate warning is the exploit working as designed.

What the harvest buys

A cracked MSCHAPv2 response is the user's domain password — the same password on the VPN, the SSO portal, and probably email, because enterprise credentials reuse themselves by design. One rogue AP outside the cafeteria for a week can return a credential list long enough to keep an intruder busy for months. The Wi-Fi wasn't the target; it was the harvesting ground.

What to do

  • EAP-TLS wherever you can run a PKI.
  • On PEAP: pin the CA and the RADIUS server hostname, deploy via MDM/GPO so validation isn't a user choice, and never let clients auto-join enterprise SSIDs outside enrollment.
  • Log RADIUS rejects — a sudden wave of them can be a rogue AP harvesting.

Was this lesson helpful?

Sign in to rate

Keep reading

Related articles from the SudoSecurity blog.