WiFi Security (WEP, WPA2)

Context: FIT1047_MOC · why radio changes the security game — and the data-link-layer encryption ladder · first taste of the security half (SSL/TLS, VPN in later lectures)

Quick Revision

  • 🎯 Objective: radio leaves the building ⟹ you cannot restrict the physical layer ⟹ encrypt at the data link layer (or higher).
  • 📦 Core Components: open WiFi (capture-anything demo) ➔ WEP (shared static key — broken) ➔ WPA/WPA2 (802.11i: per-packet keys, AES, PSK vs Enterprise).
  • ⚡ Key Constraint: browser-login hotspots are still open WiFi — the web login is application-layer; every frame remains capturable in the air.

📝 Core

  • The threat ➔ radio penetrates walls and leaves the campus; thicker walls and directional antennas don’t fix it (visitors exist) ⟹ eavesdropping is trivial by design.
  • Open WiFi ➔ no authentication, no encryption; the lecture demo captures another user’s traffic without any login — hotspot users must bring their own protection (VPN, TLS-encrypted services).
  • Defence principle ➔ if the physical layer can’t be restricted, encrypt above it: data link layer (this note) or network/transport/application layers (VPN, SSL/TLS — later lectures).
  • WEPWired Equivalent Privacy: one shared static key (40/128-bit) between NIC and AP encrypting everything — very easy to crack; historical only.
  • WPA/WPA2 (802.11i) ➔ longer keys, changed per packet, strong AES encryption; two modes — PSK (pre-shared key, personal) and Enterprise (802.1X) with an authentication server. Still breakable, especially PSK with weak passwords.

⚖️ Core Decision Matrix

OpenWEPWPA2-PSKWPA2-Enterprise
authenticationnoneshared keypre-shared key802.1X auth server
encryptionnonestatic key (40/128-bit)AES, per-packet keysAES, per-packet keys
securityzero — capture at willbroken in minutesgood unless weak passwordstrongest of the four

⚠️ Common Mistakes

  • 💡 “Login page” ≠ secure ➔ captive-portal hotspots authenticate at the application layer; the radio frames stay unencrypted — classic exam trap.
  • 💡 WEP’s flaw is the STATIC shared key ➔ every frame under one unchanging key gives cryptanalysis unlimited samples; WPA2’s per-packet keys remove exactly that.
  • 💡 PSK strength = password strength ➔ AES doesn’t save a guessable passphrase; Enterprise moves trust to a server instead.

🧠 Active Recall