beginner

Wi-Fi Security and Enterprise Wireless

Radio waves go through walls, so wireless needs strong authentication and encryption. Learn open, WEP, WPA, WPA2 and WPA3, personal versus enterprise modes, 802.1X with RADIUS, guest networks and captive portals, rogue access points and evil twins, management frame protection, and a hardening checklist. Then audit a list of SSIDs for weak settings.

50 min

1. Why wireless is different

On a wired network an attacker must plug in. On Wi-Fi, anyone within radio range, possibly in the car park, can listen to the traffic and try to connect. Security therefore rests on three things: who may join (authentication), keeping the traffic private (encryption), and noticing rogue devices (monitoring).

2. The security protocols

Protocol Year Status Notes
Open n/a Unencrypted Anyone can read the traffic. Use only for public or guest with caution, ideally with Enhanced Open (OWE)
WEP 1997 Broken Key recoverable in minutes; never use
WPA (TKIP) 2003 Deprecated Interim fix for WEP hardware; weak cipher
WPA2 2004 Acceptable if configured well AES-CCMP encryption. Personal uses a shared passphrase; Enterprise uses 802.1X
WPA3 2018 Current SAE replaces the pre-shared key handshake (resists offline guessing), forward secrecy, mandatory management frame protection, 192-bit Enterprise option
OWE (Enhanced Open) 2018 Good for guests Encrypts open networks without a password

Recommendations: WPA3 (or WPA2/WPA3 transition mode) with AES; PMF (802.11w) required or at least enabled; no WEP, WPA-TKIP or WPS. The 6 GHz band mandates WPA3 or OWE.

Personal versus Enterprise

  • Personal (PSK / SAE): everyone uses the same passphrase. Simple, suitable for homes and small shops. Weaknesses: the secret spreads, leavers still know it, and a weak or short passphrase can be guessed offline (WPA2) from a captured handshake. Use long random passphrases (16 or more characters), or better, per-device keys (PPSK / iPSK) where the vendor supports them.
  • Enterprise (802.1X): each user or device authenticates to a RADIUS server using an EAP method. The access point is only the authenticator; it passes credentials to the server and enforces the result. Each session gets unique encryption keys.

3. 802.1X and EAP in short

Three roles: supplicant (the client), authenticator (the AP or switch), authentication server (RADIUS, such as FreeRADIUS, Windows NPS or a cloud service). The client and server exchange EAP messages tunnelled through the AP; on success, RADIUS returns an accept with optional attributes (VLAN, ACL, role) and the AP lets the client on.

Common EAP types:

  • PEAP-MSCHAPv2: username and password inside a TLS tunnel; easy with directory accounts. The client must validate the server certificate, or it can be tricked by an evil twin.
  • EAP-TLS: client and server certificates; the strongest and often preferred with MDM-issued certificates. No passwords to steal.
  • EAP-TTLS, EAP-FAST: other tunnelled methods.

Benefits: per-user accountability and revocation, dynamic VLAN assignment (staff versus contractors), integration with your directory, and no shared secret. Revisit the AAA and RADIUS lesson for the server side.

4. Guest and IoT networks

  • Put guests on a separate SSID mapped to a separate VLAN with internet-only access, client isolation (guests cannot talk to each other), bandwidth limits and a captive portal (acceptance of terms, voucher or sponsor approval, or OWE).
  • Put IoT devices (cameras, TVs, sensors) on their own VLAN with restricted access. Many support only WPA2-PSK, so isolate them and allow only the traffic they need.
  • Do not mix guests with corporate traffic, and never give guests the corporate passphrase.

5. Common wireless attacks

Attack How it works Defence
Eavesdropping Capturing traffic on open or weakly encrypted networks WPA3 or WPA2-AES; HTTPS/VPN on top
Offline passphrase cracking Capturing a WPA2-PSK handshake and guessing Long random passphrases, WPA3-SAE, Enterprise
Rogue AP An unauthorised AP plugged into your network Wireless intrusion detection (WIPS), 802.1X on wired ports, port security
Evil twin A fake AP copying your SSID Enterprise with server certificate validation, WPA3, user awareness
Deauthentication attack Forged management frames disconnect clients 802.11w management frame protection (mandatory in WPA3)
WPS PIN brute force Guessing the 8-digit PIN Disable WPS
KRACK, Dragonblood and similar Protocol implementation flaws Patch AP and client firmware
Misconfiguration Default admin passwords, management over HTTP Change defaults, restrict management, use HTTPS/SSH

6. Hardening checklist

  1. Use WPA3 (or WPA2-AES with PMF) and disable WEP, TKIP and WPS.
  2. Use 802.1X (EAP-TLS preferably) for staff devices; certificates on managed devices.
  3. Long, unique PSKs for small networks; rotate when people leave.
  4. Separate SSIDs and VLANs for corporate, guest and IoT; firewall between them.
  5. Client isolation on guest and public networks.
  6. Change default credentials, update firmware, manage APs over HTTPS/SSH from a management VLAN.
  7. Do not rely on hidden SSIDs or MAC filtering: they are trivial to bypass and add no real security.
  8. Enable WIPS/rogue detection and review alerts; scan for rogue APs periodically.
  9. Reduce transmit power so signals do not extend far beyond the building.
  10. Log and monitor authentication failures and unusual clients.
  11. Teach users: use VPN on public Wi-Fi, check certificate warnings, be suspicious of unexpected captive portals.

7. Hands-on: audit SSID settings

Each SSID is a dictionary with a name, a security mode (open, wep, wpa, wpa2-psk, wpa2-enterprise, wpa3-sae, wpa3-enterprise) and optional cipher, wps (True/False), passphrase and pmf.

  • audit_ssid(ssid) returns a list of issue strings: "open network", "broken encryption (WEP)", "outdated protocol (WPA)", "weak cipher (TKIP)" if the cipher is tkip, "WPS enabled" if wps is true, "short passphrase" if the mode is PSK or SAE and the passphrase is shorter than 12 characters, and "management frame protection off" if a WPA3 network has pmf set to "disabled".
  • security_rank(sec) ranks the modes from open (0) up to wpa3-enterprise (6).
  • best_network(ssids) returns the name of the highest-ranked network.
  • needs_radius(sec) is true for the enterprise modes.

(The passphrases in this exercise are made up for the audit; never reuse a passphrase from an example.)

Audit wireless networks for weak settings — Python 3
YOUR CODE (edit here, then press Run)
Ctrl/⌘ + Enter
OUTPUT
A small business uses one WPA2 passphrase for staff, visitors and the card terminal. A staff member leaves. What should the owner do now, and what is the better long-term design?

Immediately change the passphrase and reconnect the legitimate devices, because the leaver still knows it. Long term: separate SSIDs and VLANs for staff, guests (isolated, internet only) and the payment terminal (tightly restricted), use WPA3 or WPA2-AES with a long random passphrase for each, disable WPS, and move staff to per-user authentication (802.1X or per-device keys) so access can be revoked individually.

Can You Explain It?

Close the lesson and answer these without looking back. The goal isn't the wording — it's whether you've formed a usable mental model.

  • Compare WEP, WPA2 and WPA3 and say which you would deploy and why.
  • Explain how 802.1X authentication works with an access point and a RADIUS server.
  • Describe how you would design Wi-Fi for staff, guests and IoT devices in a small office.

8. Key takeaways

  • Wireless traffic can be received by anyone in range: protect it with strong authentication and encryption.
  • Use WPA3 (or WPA2-AES with PMF); never WEP, TKIP or WPS.
  • Enterprise (802.1X) gives per-user access and revocation; EAP-TLS with certificates is the strongest.
  • Separate corporate, guest and IoT networks with VLANs, isolation and firewalling.
  • Detect rogue APs and evil twins, patch firmware, and remember that hidden SSIDs and MAC filters are not security.

🧪 Want to practise this on your own computer? See how to set up your lab →

🤖

Need clarification? Ask GT

Hi, I'm GT — your AI tutor for Wi-Fi Security and Enterprise Wireless. What would you like to know?
📝

Knowledge Check

1 of 4

Which Wi-Fi security mode should be avoided entirely because it can be broken in minutes?

Report a problem

About: /lessons/wifi-security-and-enterprise-wireless