lesson 7.1 · chapter 7 of 7: wi-fi security · 25 min
Wi-Fi security: WPA2, WPA3 and 802.1X
objective
Tell open, WPA2-Personal, WPA3-Personal and Enterprise (802.1X) networks apart, follow the four-way handshake that sets up encryption, follow a laptop proving who it is to a RADIUS server, and pick the right security for a home, a café, an office and its guests.
How does Wi-Fi keep traffic private?
A secret knock
A club has a secret knock. Anyone who knows it gets in, and once inside, members talk in a code that changes every night. A cable network has walls round it; Wi-Fi doesn’t. Anyone nearby with a radio can hear every frame, so Wi-Fi security has two jobs:
- Who gets in: proving the device is allowed (authentication).
- Privacy: encrypting every frame so eavesdroppers hear only noise, with keys fresh for each connection.
in one sentence Anyone nearby can hear Wi-Fi, so it has to check who’s joining and encrypt everything.
The options
| Security | Who gets in | Privacy | Use it for |
|---|---|---|---|
| Open | anyone | none: frames go unencrypted | nothing new; only behind a captive portal you trust |
| Enhanced Open (OWE) | anyone, no password | yes: each device gets its own keys | cafés, guest networks |
| WEP, WPA (TKIP) | — | broken | never: replace any device that needs them |
| WPA2-Personal | anyone with the passphrase | yes | homes, small offices, older devices |
| WPA3-Personal (SAE) | anyone with the passphrase | yes, and a captured handshake can’t be cracked offline | homes and small offices, if devices support it |
| WPA2/WPA3-Enterprise (802.1X) | each person or device, checked by a server | yes, with keys unique to each user | offices, schools, anywhere people come and go |
Personal means one shared passphrase. Enterprise means each user or device has its own credentials, checked by a RADIUS server.
in one sentence Personal: one shared passphrase. Enterprise: everyone their own credentials, checked by RADIUS.
The four-way handshake
Every WPA2 and WPA3 connection ends with the same four frames, the four-way handshake from lesson 6. Before it starts, both the laptop and the access point already share a secret, the PMK (pairwise master key):
- on WPA2-Personal, it’s worked out from the passphrase and the network name;
- on WPA3-Personal, it comes from an exchange called SAE (simultaneous authentication of equals), fresh for each connection;
- on Enterprise, the RADIUS server hands it to the access point after checking the user.
The handshake never sends the PMK. Instead:
- The access point sends a random number, the ANonce (nonce means number used once).
- The laptop sends its own random number, the SNonce, plus a MIC (message integrity check): a stamp only someone who knows the PMK could make.
- The access point checks the MIC, and sends the group key for broadcasts, encrypted, with its own MIC.
- The laptop confirms.
Both sides mix the PMK, both nonces and both MAC addresses to get the PTK (pairwise transient key), the key that encrypts this one connection. New nonces next time means new keys next time.
in one sentence Two random numbers plus the shared secret make fresh keys, and the secret itself never crosses the air.
Why WPA3 matters for passphrases
On WPA2-Personal, someone who records a handshake has everything they need to test passphrase guesses on their own computer, billions of them, without ever touching the network again. A short or common passphrase falls fast. WPA3’s SAE exchange is built so a recording doesn’t help: each guess needs a live attempt against the access point. WPA3 also requires protected management frames, so an attacker can’t forge the “disconnect” frames used to kick people off.
in one sentence WPA3 stops offline guessing of the passphrase, and protects management frames.
Enterprise: 802.1X and RADIUS
In an office, a shared passphrase is a problem: when someone leaves, everyone’s passphrase has to change. 802.1X gives each person or device their own credentials. Three roles:
- the supplicant: the laptop;
- the authenticator: the access point, which relays and enforces;
- the authentication server: a RADIUS server, which checks the credentials (RADIUS listens on UDP port 1812).
They talk EAP (extensible authentication protocol), with a choice of methods:
- EAP-TLS: certificates on both the laptop and the server. No passwords to guess or phish. The strongest common choice.
- PEAP: the server shows a certificate, a protected tunnel is built, and the user’s username and password go inside it. Easy to roll out, but only safe if laptops are set to check the server’s certificate.
When the server says yes, it also sends the access point the PMK for that user, and can tell it which VLAN to put them in, so staff and contractors can share one network name but land in different networks.
in one sentence 802.1X: the laptop proves itself to RADIUS through the access point, and gets keys of its own.
Two exchanges to watch
The first animation is the four-way handshake on a WPA2-Personal network called home: the same four frames you saw at the end of joining in lesson 6, opened up.
The second is an Enterprise network called office: a laptop proving who it is to a RADIUS server with EAP-TLS, through the access point, before the handshake. The real exchange has about a dozen frames; the animation shows the parts that matter.
in one sentence One handshake on a home network; one 802.1X login, then the handshake, on an office network.
Watch the keys being made
Try it on your own computer (optional)
- Mac: hold Option and click the Wi-Fi icon. Security shows what your network uses, such as WPA2 Personal or WPA3 Personal.
- Windows:
netsh wlan show interfacesin Command Prompt. Look at Authentication (for example WPA2-Personal) and Cipher (CCMP is AES). - Linux:
nmcli -f SSID,SECURITY device wifi listlists nearby networks and their security.
in one sentence The handshake makes fresh keys from a shared secret; 802.1X gives every user their own secret first.
Pick the security
Choose security for each, and say why:
- A family home. Everyone’s phones and laptops are recent; one old smart plug only does WPA2.
- A café that wants free Wi-Fi with no password to hand out.
- A 200-person office, staff laptops managed by IT.
- The same office’s visitors.
- The office’s 40 printers and badge readers, which don’t support 802.1X.
hint
Ask, for each: who should get in, can each person have their own credentials, and what can the devices actually do?
show the solution
- WPA3-Personal in transition mode (WPA2 and WPA3 on one network name), with a long passphrase. Recent devices use WPA3; the smart plug falls back to WPA2. Or put the plug on its own WPA2 network.
- Enhanced Open (OWE), ideally with an open fallback for the few old devices that can’t do it: no password, but customers can’t read each other’s traffic.
- WPA3-Enterprise with EAP-TLS: certificates IT already manages, no passwords to phish, and one laptop’s certificate can be revoked on its own. PEAP is the easier fallback, as long as laptops check the server certificate.
- A separate guest network in its own VLAN, with OWE or a passphrase that changes regularly, often behind a captive portal (a sign-in or terms page), blocked from the staff network.
- Their own network name and VLAN, WPA2- or WPA3-Personal with a long passphrase (some systems can give each device its own passphrase), and firewall rules so they reach only the servers they need.
That’s the last lesson. Back to lesson 6 for joining and roaming, or to the start of the course. The hands-on part of the course will configure a wireless controller and access points, join laptops to them, and capture these same frames in Wireshark; until then, Networking 101 covers the wired side.
5 check: test yourself
Pick an answer for each question. You'll see straight away whether it's right, and why. Questions marked what happens next? are about the animations.
what happens next?On a WPA2-Personal network, what’s sent over the air in the four-way handshake?
Each side sends a random nonce; both mix them with the shared secret to make the session keys, and a MIC proves they got the same answer.
What’s the big weakness of a shared passphrase (WPA2-Personal)?
One secret for everyone means you can’t revoke one person, and a recorded handshake lets an attacker test guesses at full speed. WPA3’s SAE fixes the second problem.
In 802.1X, who checks the user’s credentials?
The access point only relays the conversation (EAP) between the laptop and the RADIUS server, which says accept or reject.
What does EAP-TLS use to prove who the laptop is?
Both sides show certificates. No password to phish or guess, which is why it’s the strongest common choice.
A café wants free Wi-Fi with no password, but doesn’t want customers able to read each other’s traffic. What fits?
OWE encrypts every connection without anyone typing anything. It doesn’t prove who anyone is, but it stops casual snooping.