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?
Keep reading
Related articles from the SudoSecurity blog.
The Same Researcher Broke apt the Same Way Twice, Seven Years Apart
In 2019 Max Justicz showed apt would install a package an attacker swapped in over a redirect. In November 2026 he did it again, CVE-2026-109518, through a different door that ends in the same place: code as root from a man in the middle. The fix shows how apt reuses files on disk.
A 257-Byte Password Is the Key: Inside the OpenSSH musl Bypass
CVE-2026-123158 lets an attacker log into a locked account on musl-based systems like Alpine by sending a password nobody set. The trigger is one number, 257, and the reason is a C library returning a single asterisk. I reproduced the exact boundary against musl 1.2.4 and read the fix.
Zero-Trust Access for Homelabbers: Teleport vs. Tailscale vs. WireGuard vs. Cloudflare Tunnel
Four tools solve four different problems that all get pitched as the same problem. Here's what each one does, where each one breaks, and the combination that covers a real homelab without paying an SSO tax you didn't see coming.
Zero Trust Everything: The Complete Guide to Self-Hosting Teleport for Secure Infrastructure Access
SudoSecurity runs Teleport internally for everything — admin panel access, secure database connections, Kubernetes, and zero-trust philosophy across our entire team. This is the complete technical guide to installing, configuring, and running your own self-hosted Teleport cluster from scratch.