TExcelTAD
Home › Cybersecurity › Wireless Security

Wireless Security

WiFi sends your traffic over radio, so anyone within range can receive it. A wired network at least requires physical access to a socket; a wireless one reaches the car park. Wireless security is therefore about two things: who may join the network, and keeping traffic unreadable to everyone else who can hear it.

How WiFi protection evolved

Standard Year Status Notes
Open (no security) — Unsafe Anyone can join and read traffic that isn't otherwise encrypted
WEP 1999 Broken Design flaws let keys be recovered quickly. Never use it
WPA (TKIP) 2003 Deprecated A stop-gap for WEP hardware
WPA2 (AES-CCMP) 2004 Acceptable Personal mode (pre-shared key) is only as strong as the passphrase
WPA3 (SAE, GCMP) 2018 Recommended Resists offline guessing of the passphrase, requires protected management frames

Personal vs Enterprise

  • Personal mode (WPA2-PSK, WPA3-SAE) uses one shared passphrase for everyone. Simple, but when someone leaves, everybody must get a new passphrase.
  • Enterprise mode (802.1X) gives each user their own credentials, checked by a RADIUS server. Access can be revoked per person, and each session gets its own keys. Organisations should use it.

Why WPA3 matters

With WPA2-Personal, someone who records a device joining the network can later try passphrase guesses offline, as fast as their hardware allows, without ever touching the network again. A long random passphrase is the only protection.

WPA3-Personal replaces the handshake with SAE (Simultaneous Authentication of Equals, a password-authenticated key exchange). A recorded handshake reveals nothing that can be tested offline: every guess requires a fresh live exchange with the access point, which can be slowed and noticed. SAE also gives forward secrecy: learning the passphrase later doesn't decrypt traffic captured earlier.

WPA3 also makes Protected Management Frames (PMF, 802.11w) mandatory. Without PMF, anyone can forge "disconnect" frames and knock devices off the network; with PMF those frames are authenticated.

Note: During migration many networks run WPA2/WPA3 transition mode so older devices can still join. It is better than WPA2 only, but older clients still use the weaker handshake. Move to WPA3-only when your devices allow it.

Common wireless threats (conceptually)

  • Evil twin / rogue access point: a fake network with a familiar name (Airport_Free_WiFi) that users join by mistake. Defences: Enterprise mode with server-certificate validation, wireless intrusion detection that spots unknown access points, and using a VPN or HTTPS everywhere on untrusted networks.
  • Weak passphrases: a short PSK can be guessed. Defence: WPA3, or a long random passphrase.
  • WPS: the 8-digit "push button / PIN" setup feature has known design weaknesses. Defence: turn it off.
  • Unmanaged IoT devices that share the staff network. Defence: a separate SSID and VLAN for IoT.

Auditing an access point configuration

A practical defensive task is checking access point settings against a baseline. The model below scores a configuration and lists what to fix:

python · try it yourself
BASELINE = [
    ("security", lambda v: v in ("wpa3-personal", "wpa3-enterprise", "wpa2-enterprise"),
     "use WPA3 (or WPA2-Enterprise)"),
    ("pmf", lambda v: v == "required", "require protected management frames"),
    ("wps", lambda v: v is False, "disable WPS"),
    ("passphrase_length", lambda v: v >= 16, "use a passphrase of 16+ characters"),
    ("admin_password_changed", lambda v: v is True, "change the default admin password"),
    ("guest_isolated", lambda v: v is True, "isolate the guest network"),
    ("firmware_age_days", lambda v: v <= 90, "update the firmware"),
]

def audit(name, config):
    problems = [advice for key, ok, advice in BASELINE if not ok(config[key])]
    score = len(BASELINE) - len(problems)
    print(f"{name}: {score}/{len(BASELINE)} checks passed")
    for advice in problems:
        print("  -", advice)

audit("office-ap", {
    "security": "wpa2-personal", "pmf": "optional", "wps": True,
    "passphrase_length": 10, "admin_password_changed": True,
    "guest_isolated": False, "firmware_age_days": 400,
})
audit("lab-ap", {
    "security": "wpa3-personal", "pmf": "required", "wps": False,
    "passphrase_length": 24, "admin_password_changed": True,
    "guest_isolated": True, "firmware_age_days": 30,
})
office-ap: 1/7 checks passed
  - use WPA3 (or WPA2-Enterprise)
  - require protected management frames
  - disable WPS
  - use a passphrase of 16+ characters
  - isolate the guest network
  - update the firmware
lab-ap: 7/7 checks passed

How long should a WiFi passphrase be?

For WPA2-Personal, passphrase strength is what stands between an attacker with a recorded handshake and your network. Strength is measured in bits of entropy: for a passphrase chosen randomly from an alphabet of N symbols, each symbol adds log2(N) bits. (The Password Policy lesson covers this in depth; human-chosen passwords are much weaker than the formula suggests.)

python · try it yourself
import math

def passphrase_bits(length, alphabet_size):
    return length * math.log2(alphabet_size)

options = [
    ("8 lowercase letters", 8, 26),
    ("12 letters + digits", 12, 62),
    ("20 letters + digits", 20, 62),
    ("5 diceware words (7776-word list)", 5, 7776),
]
for label, length, size in options:
    print(f"{label:<33} {passphrase_bits(length, size):6.1f} bits")
8 lowercase letters                 37.6 bits
12 letters + digits                 71.5 bits
20 letters + digits                119.1 bits
5 diceware words (7776-word list)   64.6 bits

Each extra bit doubles the work of guessing. Around 80 bits or more is comfortable for a long-lived WiFi key: 20 random letters and digits, or six or seven random words. Eight lowercase letters (under 38 bits) is far too few.

Best-practice checklist

  1. Use WPA3 (or WPA2/WPA3 transition while old devices remain); never WEP or open networks for anything private.
  2. For organisations, use Enterprise mode with certificate validation on clients.
  3. Separate guest and IoT networks from staff devices, with client isolation.
  4. Disable WPS, change default admin credentials, and don't expose the router admin page to the internet or the guest network.
  5. Keep firmware updated; access points are network devices with their own vulnerabilities.
  6. On public WiFi, rely on end-to-end encryption (HTTPS, a VPN) rather than on the network.

Hiding the network name (SSID) or filtering MAC addresses adds almost no security: both are visible to anyone listening and are easily copied. They mainly add inconvenience.

Go further: From WEP to WPA3 explains what each Wi-Fi generation fixed, and The WPA2 4-Way Handshake walks through the frames message by message.

Test yourself

Which feature of WPA3-Personal stops attackers from testing passphrase guesses offline against a recorded handshake?

  1. Hidden SSIDs
  2. SAE (Simultaneous Authentication of Equals)
  3. MAC filtering
  4. TKIP

Why is WPA2/WPA3-Enterprise preferred for organisations?

  1. It is faster
  2. Each user has their own credentials that can be revoked individually
  3. It doesn't need passwords
  4. It hides the SSID

How much security does MAC address filtering add?

  1. A lot: MAC addresses are secret
  2. Very little: MAC addresses are visible and can be copied
  3. It replaces encryption
  4. It enables WPA3