SECURITY ENGINEERING · PART 2 · NETWORKING FOR SECURITY · WIRELESS · 33 OF 229

Wi-Fi Security: WPA2, WPA3, Evil Twins, 802.1X

Wireless networks send everything through the air, so the security is all in the protocol: open networks, the broken WEP, WPA2 and its offline password-guessing weakness, what WPA3 fixes, enterprise Wi-Fi with 802.1X where each person has their own login, evil twin and deauthentication attacks, guest and device isolation, and how to run an office network properly.

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 9
  9. 10
  10. 11
  11. 12
  12. 13
  13. 14
  14. 15
  15. 16
  16. 17
  17. 18
  18. 19
  19. 20
  20. 21
  21. 22
  22. 23
  23. 24
  24. 25
  25. 26
  26. 27
  27. 28
  28. 29
  29. 30
  30. 31
  31. 32
  32. 33
  33. 34
  34. 35
  35. 36
  36. 37
  37. 38
  38. 39
  39. 40
  40. 41
  41. 42
  42. 43
  43. 44
  44. 45
  45. 46
  46. 47
  47. 48
  48. 49
  49. 50
  50. 51
  51. 52
  52. 53
  53. 54
  54. 55
  55. 56
  56. 57
  57. 58
  58. 59
  59. 60
  60. 61
  61. 62
  62. 63
  63. 64
  64. 106
  65. 107
  66. 108
  67. 109
  68. 110
  69. 111
  70. 112
  71. 113
  72. 114
  73. 115
  74. 116
  75. 117
  76. 118
  77. 119
  78. 120
  79. 121
  80. 122
  81. 123
  82. 124
  83. 125
  84. 126
  85. 127
  86. 128
  87. 129
  88. 130
  89. 131
  90. 132
  91. 133
  92. 134
  93. 135
  94. 136
  95. 137
  96. 138
  97. 139
  98. 140
  99. 141
  100. 142
  101. 143
  102. 144
1 / 13

Press play to hear the narration, or step through at your own pace.

Key takeaways

  • WEP, WPA broken
  • WPA2 needs a long passphrase
  • WPA3 stops offline guessing
  • 802.1X per user
  • isolate guests

Notes

The generations

There have been five generations. An open network has no encryption; everything is readable from the air. WEP, from nineteen ninety nine, can be broken in minutes and must never be used. WPA was a stopgap and is also broken. WPA2 arrived in two thousand four with proper encryption and is still the most common. WPA3, from two thousand eighteen, fixes WPA2's main weakness. If a device only supports WEP or the first WPA, it does not belong on your network.

Wi-Fi security, old to new
  • open: no encryption at all WEP (1999): broken in minutes. Never use
  • WPA (2003): a stopgap, also broken
  • WPA2 (2004): AES. Still the most common
  • WPA3 (2018): fixes WPA2's main weakness
  • check yours: router settings

WPA2 weakness

WPA2 with a shared password has one well-known weakness. When a device joins, it performs a four-way handshake with the access point. An attacker in range can record that handshake, go home, and try passwords against it offline, as fast as their hardware allows, with no further contact with your network. A short or common password falls quickly. The defense is a long, random passphrase, twenty characters or more, or moving to WPA3.

WPA2-Personal (shared password)
  • everyone uses one password
  • joining involves a four-way handshake
  • an attacker in range records the handshake
  • then guesses passwords offline, at their own speed, no further contact needed
  • a weak password falls quickly
  • defense: a long random passphrase, or WPA3

What WPA3 fixes

WPA3 replaces that handshake with one called SAE. Now each password guess requires a live exchange with the access point, so recording a handshake and guessing offline no longer works, and the access point can slow repeated attempts. It adds forward secrecy, so traffic recorded today cannot be decrypted later even if the password leaks. It requires protected management frames. And a related feature encrypts connections even on open networks like cafes.

WPA3
  • SAE handshake: each guess needs a live exchange with the access point, so offline guessing stops working
  • forward secrecy: an old capture cannot be decrypted later
  • protected management frames required
  • OWE: encryption even on open networks

Evil twin

The attack that still works everywhere is the evil twin. The attacker broadcasts a network with the same name and a stronger signal. To hurry things along they send forged deauthentication frames, which knock devices off the real network so they reconnect, often to the twin. Now the attacker is a man in the middle, or shows a fake login page asking for the Wi-Fi password. Protected management frames block the forged deauthentication part.

Evil twin and deauth
  • the attacker broadcasts the same network name, with a stronger signal
  • deauthentication: forged frames kick devices off the real network
  • devices reconnect to the twin
  • now the attacker is in the middle, or shows a fake login page for the password

Enterprise Wi-Fi

Companies should not use a shared password at all. Enterprise Wi-Fi, built on a standard called eight oh two dot one X, gives every person or device its own credentials, checked by an identity server. The strongest form puts a certificate on each managed device, so there is no password to phish and only company devices can join. When someone leaves you disable one account instead of changing a password for everyone, and every connection in the logs belongs to a named person.

WPA2/3-Enterprise (802.1X)
  • each user or device has its own credentials
  • the access point asks an identity server (RADIUS)
  • best: a certificate per managed device (EAP-TLS)
  • someone leaves: disable one account, no password change
  • every connection is tied to a person in the logs

A trap in enterprise

There is one trap. With password-based enterprise Wi-Fi the device sends login credentials to the identity server. An evil twin can pretend to be that server, and if the device is not configured to check the server's certificate, it hands the credentials over. People who set up Wi-Fi by hand and tap accept on a certificate prompt are exactly the victims. The fix is to push Wi-Fi settings through device management, or use device certificates so there is nothing to steal.

Validate the server
  • password-based enterprise Wi-Fi: the device sends credentials to the server
  • an evil twin can pose as that server
  • if the device does not check the server certificate, it hands over the login
  • fix: push Wi-Fi settings by device management; or use certificates (EAP-TLS)

Separate networks

A sensible office runs several wireless networks from the same access points. Staff, with enterprise authentication and managed devices only. Guests, with internet access only, client isolation switched on so guests cannot reach each other, and no route to anything internal. And a separate isolated network for printers, televisions and other devices that are rarely patched. Following zero trust, even the staff network grants nothing by itself; applications still require login and TLS.

Office wireless layout
  • staff: enterprise auth, managed devices only guest: internet only, client isolation on, no route to anything internal
  • devices (printers, TVs, IoT): their own isolated network
  • treat even staff Wi-Fi as untrusted: apps still need login and TLS

Hardening the gear

Access points and routers are computers and need the same care. Change the default administrator password. Keep firmware updated and replace hardware that no longer receives updates. Turn off WPS, the push-button joining feature, because its PIN can be guessed. Hiding the network name and filtering by hardware address are not security; both are bypassed in seconds. And scan for rogue access points, the cheap router an employee plugged in under a desk.

Access point hygiene
  • change the default admin password
  • update firmware; replace unsupported hardware
  • turn off WPS: its PIN can be brute-forced
  • hiding the network name is not security
  • MAC filtering is not security
  • scan for rogue access points plugged in by staff

On public Wi-Fi

For your own devices on public Wi-Fi, assume someone is in the middle. Use HTTPS only and never accept a certificate warning. Use a VPN or your company's zero-trust client. Turn off automatic joining of open networks and forget ones you no longer use, because a device that remembers a network name will happily join an evil twin using it. Be suspicious of unexpected login pages. And when it matters, use your phone's hotspot instead.

Personal habits
  • assume someone is in the middle
  • HTTPS only; never accept a certificate warning
  • VPN or zero-trust client
  • turn off auto-join for open networks; forget old ones
  • never type a password into a Wi-Fi "login page" you did not expect
  • a phone hotspot is safer

Common mistakes

Mistakes. One shared password for the whole company, known to every former employee. A short Wi-Fi password that falls to offline guessing. A guest network that can reach internal systems. Printers and cameras on the same network as staff laptops. WPS enabled and the default administrator login never changed. Users trained to accept certificate prompts when joining. And access points running firmware from years ago.

Avoid these
  • one shared password for the whole company
  • a short Wi-Fi password
  • guest network that can reach internal systems
  • printers and cameras on the staff network
  • WPS on, default admin login
  • users accepting certificate prompts
  • old firmware

Say it like this

In the interview: I use WPA3 or WPA2 Enterprise with eight oh two dot one X so every user and device authenticates individually, ideally with device certificates, and I push the Wi-Fi configuration through device management so server certificates are validated. Guests get an isolated internet-only network, and printers and other devices get their own. I keep access points patched, scan for rogue ones, and grant no access just for being on the Wi-Fi.

In the interview
  • "WPA3 or WPA2-Enterprise with 802.1X, ideally device
  • certificates, settings pushed
  • by device management so server
  • certificates are checked. A guest network with isolation
  • and internet only, IoT apart, patched access points, rogue
  • AP scans, and no trust from Wi-Fi alone."

Interview questions

Q1What are the differences between WEP, WPA, WPA2 and WPA3?

WEP is broken and crackable in minutes. WPA was a stopgap and is also deprecated. WPA2 uses AES-CCMP and is secure with a strong passphrase but allows offline guessing of a captured handshake. WPA3 uses the SAE handshake, which prevents offline guessing and adds forward secrecy.

Q2How is a WPA2-Personal network attacked?

An attacker within range captures the four-way handshake when a device joins (often forcing a reconnect with deauthentication frames) and then guesses passwords offline against it. A long random passphrase makes this impractical; WPA3 removes the attack.

Q3What is an evil twin attack?

An attacker runs an access point with the same network name as a legitimate one, often with a stronger signal, so devices connect to it. The attacker can then intercept traffic or present a fake login page to collect credentials.

Q4What is 802.1X / WPA-Enterprise?

An authentication framework where each user or device authenticates individually to a RADIUS identity server through the access point, instead of sharing one password. With EAP-TLS each device presents a certificate, giving per-user accountability and easy revocation.

Q5Why must clients validate the server certificate in enterprise Wi-Fi?

With password-based EAP methods the client sends credentials to the authentication server. If the client does not verify the server certificate, an evil twin can impersonate it and capture those credentials. Configuration should be pushed by device management.

Q6How should a guest Wi-Fi network be configured?

On a separate network or VLAN with internet access only, client isolation enabled so guests cannot reach each other, and no route to internal systems. It should be treated as fully untrusted.

Q7Are hiding the SSID and MAC address filtering effective security controls?

No. A hidden network name is revealed whenever a device connects, and MAC addresses are visible in the air and easily spoofed. They add inconvenience, not security, and are no substitute for strong authentication.

Q8What is WPS and why disable it?

Wi-Fi Protected Setup lets devices join with a button press or an eight-digit PIN. The PIN design allows it to be brute-forced in a practical time, revealing the Wi-Fi password, so WPS should be turned off.