Access Point Hardening, WPS and Guest Networks
Most Wi-Fi compromises in small offices and homes need no cryptography at all: TKIP left on for an old printer, WPS still accepting PINs, a guest network where every laptop can reach every other one, an admin page with the factory password reachable from the Internet. Hardening an access point means going through its settings with the attacker's shortcuts in mind. This lesson builds a configuration checker, explains why WPS's PIN method fails, and sets up guest and Enhanced Open networks properly.
A hardening checklist
| Area | Hardened setting | Why |
|---|---|---|
| security mode | WPA3-Personal (SAE) or Enterprise; WPA2/WPA3 transition only temporarily | offline guessing, transition risks |
| ciphers | CCMP (or GCMP) only; no TKIP, no WPA1, no WEP | history |
| PMF | required, or at least capable | PMF |
| SAE details | hash-to-element on, strong groups only | Dragonblood |
| WPS | off (both PIN and push-button if not needed) | below |
| passphrase | generated, 20+ characters, unique SSID | key-chain lesson |
| guest network | separate SSID, separate VLAN, client isolation, Internet only | below |
| management | admin interface on the wired management network only, never on the WAN or guest side; unique strong admin password; HTTPS/SSH only; no Telnet | Remote administration |
| services | UPnP off, remote cloud management only if needed and with MFA | exposed services |
| firmware | current, auto-update or a patch routine; end-of-life hardware replaced | KRACK, vendor advisories |
| logging | syslog to a central collector; WIDS alerts on | detection |
| "security" features with no value | hidden SSIDs, MAC filtering | both are visible to any observer |
A configuration checker
The lab AP's settings, written in the style of hostapd, the Linux access-point daemon (other vendors have the same settings under other names). The checker turns the table above into findings:
CONFIGS = { # hostapd-style settings of the lab AP (synthetic), one block per SSID
"LabNet": """ssid=LabNet
wpa=2
wpa_key_mgmt=WPA-PSK SAE
rsn_pairwise=CCMP
ieee80211w=1
sae_pwe=2
wps_state=2
ap_isolate=0
ignore_broadcast_ssid=0""",
"LabNet-Guest": """ssid=LabNet-Guest
wpa=3
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP
rsn_pairwise=CCMP TKIP
ieee80211w=0
wps_state=0
ap_isolate=0
ignore_broadcast_ssid=1
macaddr_acl=1""",
}
def review(text):
c = dict(line.split("=", 1) for line in text.splitlines())
akm = c.get("wpa_key_mgmt", "").split()
f = []
if c.get("wpa") != "2": f.append("HIGH WPA1 (wpa=1/3) enabled: TKIP and the old WPA element")
if "TKIP" in c.get("rsn_pairwise", "") + c.get("wpa_pairwise", ""): f.append("HIGH TKIP allowed")
if "SAE" not in akm: f.append("MED no SAE: WPA2-PSK only, offline guessing possible")
elif "WPA-PSK" in akm: f.append("INFO transition mode (PSK + SAE): plan WPA3-only")
if c.get("ieee80211w", "0") == "0": f.append("MED PMF off (ieee80211w=0)")
if "SAE" in akm and c.get("sae_pwe", "0") == "0": f.append("MED SAE without hash-to-element")
if c.get("wps_state", "0") != "0": f.append("HIGH WPS enabled (PIN method: 11,000 guesses)")
if c.get("ap_isolate", "0") == "0" and "Guest" in c["ssid"]: f.append("HIGH guest clients can reach each other (ap_isolate=0)")
if c.get("ignore_broadcast_ssid", "0") != "0": f.append("INFO hidden SSID: no security value, makes clients probe by name")
if c.get("macaddr_acl", "0") != "0": f.append("INFO MAC filtering: MAC addresses are trivially copied")
return f or ["ok"]
for name, text in CONFIGS.items():
print(name)
for finding in review(text):
print(" " + finding)LabNet
INFO transition mode (PSK + SAE): plan WPA3-only
HIGH WPS enabled (PIN method: 11,000 guesses)
LabNet-Guest
HIGH WPA1 (wpa=1/3) enabled: TKIP and the old WPA element
HIGH TKIP allowed
MED no SAE: WPA2-PSK only, offline guessing possible
MED PMF off (ieee80211w=0)
HIGH guest clients can reach each other (ap_isolate=0)
INFO hidden SSID: no security value, makes clients probe by name
INFO MAC filtering: MAC addresses are trivially copied
The main SSID is close to good: transition mode is a planned step, but WPS is still on. The guest network collects most mistakes at once: WPA1 with TKIP, no PMF, and no client isolation, which lets any guest scan and attack the others. Hiding its SSID and filtering MAC addresses add nothing: both are bypassed by watching the air for a few seconds.
WPS: why the PIN method fails
Wi-Fi Protected Setup (2006) lets a device join by pushing a button on the router or typing an 8-digit PIN printed on its label. In 2011 Stefan Viehböck showed that the PIN method collapses:
- The 8th digit is a checksum of the first seven, so only PINs exist.
- The protocol confirms the two halves separately: the AP's answer reveals whether the first four digits were right before the last three are even checked. The search is attempts, not ten million.
- Many routers had no lockout, and some couldn't really turn WPS off. Once the PIN is known, the router hands over the WPA passphrase, whatever its strength.
In 2014 Dominique Bongard's Pixie Dust finding made some chipsets worse still: their WPS nonces came from weak or predictable generators, so a single recorded exchange allowed recovering the PIN offline.
def wps_checksum(pin7):
"""Last digit of an 8-digit WPS PIN (the standard's checksum over the first seven digits)."""
acc = 0
while pin7:
acc += 3 * (pin7 % 10); pin7 //= 10
acc += pin7 % 10; pin7 //= 10
return (10 - acc % 10) % 10
pin7 = 1234567
print("PIN", f"{pin7:07d}{wps_checksum(pin7)}", "(the last digit is a checksum, not a secret)")
naive = 10 ** 8
real = 10 ** 7 # checksum digit is computed, not guessed
split = 10 ** 4 + 10 ** 3 # AP confirms the first half on its own, then the second
print(f"naive view: {naive:,} PINs; with the checksum: {real:,}; with the half-by-half confirmation: {split:,}")
for rate in (1 / 3, 1 / 10): # online attempts per second against an AP without lockout
print(f"at one attempt every {1 / rate:.0f} s: worst case {split / rate / 3600:.1f} hours")PIN 12345670 (the last digit is a checksum, not a secret)
naive view: 100,000,000 PINs; with the checksum: 10,000,000; with the half-by-half confirmation: 11,000
at one attempt every 3 s: worst case 9.2 hours
at one attempt every 10 s: worst case 30.6 hours
Eleven thousand online attempts take hours, not years. The default PIN 12345670 printed by the program is also a reminder that "a valid PIN" and "a secret PIN" are different things: some devices shipped with well-known or derivable PINs.
Detection: AP logs of WPS registration attempts and lockouts (WPS-PIN-NEEDED, WPS-AP-SETUP-LOCKED-style events in hostapd), WPS attempts from unknown devices outside setup windows, and beacons advertising WPS (the WPS vendor element) during a survey of your own APs.
Fix: turn WPS off on every AP and verify it in a survey (the beacon must no longer carry the WPS element); if push-button setup is needed, enable it only for the minute of pairing. Replace routers whose WPS can't be disabled.
Guest networks
A guest network exists to give Internet access to devices you don't manage, without giving them anything else:
- Separate SSID and VLAN, with a firewall that allows only DNS, DHCP and outbound Internet; no route to internal ranges (Zones, DMZs and Trust Boundaries, VLAN and ACL Design).
- Client isolation (
ap_isolate, "station isolation"): the AP doesn't forward frames between its clients, so guests can't scan or attack each other. Across several APs, the same rule is enforced on the switch or controller (private VLANs, firewall rules). - Rate limits and a session lifetime; a captive portal for terms of use if needed, knowing it is not a security control.
- Encryption without a shared secret: a guest passphrase printed on the wall gives everyone the PMK. That is what Enhanced Open fixes.
Enhanced Open (OWE)
Opportunistic Wireless Encryption (RFC 8110), certified as Wi-Fi Enhanced Open (2018), gives open networks encryption without a password. During association the client and the AP run an unauthenticated Diffie–Hellman exchange (elliptic-curve, group 19 by default); the shared secret becomes the PMK and the usual 4-way handshake follows. Each client gets its own keys, so a passive listener sees only encrypted frames, and other guests can't decrypt your traffic.
What OWE doesn't do: it authenticates nobody, so an active evil twin can run its own OWE exchange. It protects against eavesdropping, not impersonation, exactly like unauthenticated Diffie–Hellman. For café and conference networks it is still a large improvement over open Wi-Fi or a shared passphrase. A transition mode pairs an open SSID with a hidden OWE SSID for clients that support it.
How it is checked over time
- Configuration as code where the platform allows it, with checks like the program above in the change pipeline.
- Regular surveys of your own APs: beacons show security mode, PMF, WPS; compare with the inventory.
- Central logs: admin logins, configuration changes, WPS events, SAE/PSK failures.
- Firmware tracking against vendor advisories and end-of-life dates.
Pitfalls
- Trusting the web interface's "WPS off" switch without checking the beacons.
- Isolating guests on one AP while the next AP in the building bridges them on the wired side.
- Leaving the admin interface reachable from the guest network "because it has a password".
Practice
1. Fix the guest configuration so that the checker reports only what you accept. Which lines change?
wpa=2, rsn_pairwise=CCMP (remove wpa_pairwise), wpa_key_mgmt=SAE (or OWE for an open guest network), ieee80211w=2, ap_isolate=1, ignore_broadcast_ssid=0, and remove macaddr_acl. With wpa_key_mgmt=SAE and no sae_pwe, the checker would still ask for hash-to-element: add sae_pwe=1 or 2.
2. Why does a strong 30-character WPA2 passphrase not protect a router with the WPS PIN enabled?
WPS hands the passphrase to anyone who presents the right PIN, and the PIN falls in at most 11,000 attempts. The passphrase's strength is bypassed, not attacked.
3. A conference wants "secure but easy" Wi-Fi for 2,000 visitors. What do you propose?
Enhanced Open (OWE), with an open transition SSID for old devices, client isolation, a separate VLAN with Internet-only access, rate limits, and a note to visitors that the network doesn't authenticate itself, so they should keep using TLS and VPNs. Alternatively Passpoint/802.1X with per-user credentials if the organisers can issue them.
Test yourself
How many attempts does the WPS PIN method need in the worst case?
- 100,000,000
- 10,000,000
- 11,000
- 8
What does client isolation on a guest SSID prevent?
- Internet access
- Guests reaching each other's devices
- DHCP
- Encryption
What does Enhanced Open (OWE) protect against?
- Evil twins
- Passive eavesdropping, by giving each client its own keys without a password
- Jamming
- Malware
Which two settings have no security value?
- PMF and SAE
- Hidden SSID and MAC filtering
- Client isolation and VLANs
- CCMP and PMF