Upon completion of this extended tutorial, students will be able to:
Wireless LAN security is a critical aspect of network design, as the broadcast nature of radio waves exposes communications to eavesdropping, injection, and unauthorised access. This tutorial provides a comprehensive examination of the evolution of Wi‑Fi security standards, from the flawed WEP to the modern WPA3. We delve into the cryptographic protocols (TKIP, AES‑CCMP, GCMP), authentication frameworks (PSK, 802.1X/EAP), and enterprise architectures that enforce security. We also explore common attack vectors—rogue APs, deauthentication floods, KRACK, evil twin, and side‑channel attacks—and present countermeasures. Finally, we discuss best practices for deploying secure WLANs in various scenarios, including enterprise, IoT, and public hotspots. This extended version includes advanced theoretical discussions, practical case studies, and a wealth of assessment questions.
Wireless networks face unique security challenges compared to wired networks:
Common attack vectors: eavesdropping, man‑in‑the‑middle (MITM), session hijacking, denial of service (deauthentication), rogue APs, evil twin, and brute‑force attacks on weak PSKs.
WEP (Wired Equivalent Privacy) was the original security protocol, designed to provide confidentiality comparable to wired networks. It used RC4 stream cipher with a 40‑bit or 104‑bit key and a 24‑bit Initialization Vector (IV).
Major flaws:
WEP is now considered completely broken and should never be used.
Wi‑Fi Protected Access (WPA) was introduced as an interim solution before the full IEEE 802.11i standard. It addressed WEP's weaknesses by introducing TKIP.
TKIP improvements:
However, TKIP still uses RC4 and is susceptible to certain attacks (e.g., Beck‑Tews attack on Michael). WPA is considered deprecated.
WPA2 is the full implementation of IEEE 802.11i, using the Advanced Encryption Standard (AES) in Counter Mode with CBC‑MAC Protocol (CCMP) for confidentiality and integrity.
CCMP:
WPA2 is currently the most widely deployed security standard, though it has vulnerabilities (e.g., KRACK) that target the 4‑way handshake (protocol flaw, not encryption).
WPA3, introduced in 2018, addresses weaknesses in WPA2 and adds new features:
WPA3 is backward compatible with WPA2 (transition mode).
A typical enterprise WLAN security architecture includes:
The 802.1X authentication process involves: Supplicant (client) → Authenticator (AP) → Authentication Server (RADIUS). The EAP messages are encapsulated in EAPOL (EAP over LAN) between client and AP, and RADIUS between AP and server.
| Attack | Description | Countermeasure |
|---|---|---|
| Eavesdropping | Passive capture of unencrypted or weakly encrypted traffic | Use WPA2/3 with AES encryption |
| Rogue AP | Unauthorized AP inserted into the network to capture traffic | WIDS/WIPS, 802.1X, and AP authentication |
| Evil Twin | Fake AP with same SSID to lure clients; MITM | Client verification of AP certificates (802.11u), use of 802.11w |
| Deauthentication / Disassociation | Floods management frames to disconnect clients | Management Frame Protection (802.11w), rate limiting |
| KRACK | Key Reinstallation Attack on the 4‑way handshake | Patched firmware (frequent updates) |
| PSK Brute‑force | Offline dictionary attack on captured 4‑way handshake | Use strong passphrase (>12 characters), or 802.1X |
| WPS PIN attack | Brute‑force WPS PIN (8 digits) | Disable WPS |
A financial company deploys WPA2‑Enterprise using EAP‑TLS (mutual certificate authentication) with a RADIUS server integrated with PKI. All devices are enrolled via MDM. APs are connected to controllers with 802.11w and WIDS. This provides robust security against eavesdropping and unauthorised access.
A smart building uses IoT sensors with limited CPU. They use WPA2‑PSK with a strong passphrase and a dedicated VLAN. To mitigate brute‑force, they use MAC‑based whitelisting (though weak) and disable WPS. They also use periodic key rotation.
A coffee shop uses Enhanced Open (OWE) for encryption without authentication, protecting customers from passive eavesdropping. They also use a captive portal for terms of service, but rely on client‑side security (VPN) for full protection.
Test your understanding of wireless security and deployment.
Q1. What is the main cryptographic flaw in WEP that allows key recovery?
The 24‑bit IV is too short, causing IV reuse. Attackers can collect enough packets with the same IV to recover the RC4 key using the Fluhrer‑Mantin‑Shamir attack.
Q2. What are the two main security enhancements introduced by TKIP over WEP?
Per‑packet key mixing (prevents IV reuse) and a message integrity check (Michael) to prevent bit‑flipping attacks.
Q3. Which encryption algorithm does WPA2 use for data confidentiality and integrity?
AES‑CCMP (Counter Mode with CBC‑MAC Protocol) using AES in CTR mode and CBC‑MAC for integrity.
Q4. What is the purpose of the 4‑way handshake in WPA2?
It establishes the Pairwise Transient Key (PTK) between the client and AP, and verifies the PMK (pre‑shared or derived from 802.1X).
Q5. How does WPA3 (SAE) resist offline dictionary attacks, unlike WPA2‑PSK?
SAE uses the Dragonfly key exchange, which requires an online interaction for each guess. An attacker cannot verify a password without being online and participating in the handshake, making offline brute‑force impossible.
Q6. What is the role of the RADIUS server in an 802.1X deployment?
The RADIUS server authenticates the client (and optionally the AP) using EAP methods, and provides the PMK to the AP for subsequent 4‑way handshake.
Q7. What is the difference between WPA2‑Personal and WPA2‑Enterprise?
WPA2‑Personal uses a Pre‑Shared Key (PSK) for authentication, with the same key shared among all users. WPA2‑Enterprise uses 802.1X with a RADIUS server, providing per‑user credentials and dynamic keys.
Q8. What is a rogue AP and how can it be detected?
A rogue AP is an unauthorised AP connected to the network. It can be detected by WIDS/WIPS systems that monitor for unknown MAC addresses, mismatched SSIDs, or using automated site surveys.
Q9. What is the KRACK attack and how is it mitigated?
KRACK (Key Reinstallation Attack) targets the 4‑way handshake, tricking the client into reinstalling a previously used key. Mitigation: firmware updates that implement the 802.11 standard’s countermeasures (e.g., not allowing key reinstall).
Q10. Why is Management Frame Protection (MFP) important?
MFP protects management frames (Deauthentication, Disassociation) from being spoofed, preventing DoS attacks and session hijacking.
Q11. What is the purpose of OWE (Opportunistic Wireless Encryption) in WPA3?
OWE provides encryption for open networks without authentication, using Diffie‑Hellman to establish a key, protecting against passive eavesdropping.
Q12. Describe an evil twin attack and how to prevent it.
An evil twin is a rogue AP that mimics a legitimate SSID. Prevention: use WPA2/3 with strong authentication, verify AP certificates (in 802.1X), and use 802.11w to secure management frames.
Q13. What is the difference between TKIP and CCMP?
TKIP uses RC4 with per‑packet key mixing and Michael MIC; CCMP uses AES‑CTR for encryption and AES‑CBC‑MAC for integrity. CCMP is much stronger.
Q14. What is the minimum recommended passphrase length for WPA2‑PSK?
At least 12 characters (random, including uppercase, lowercase, numbers, and symbols). The Wi‑Fi Alliance recommends 8 characters minimum, but 12+ is safer.
Q15. How does 802.1X provide mutual authentication?
In 802.1X, both the client and server authenticate: the server presents a certificate (or uses TLS) to the client, and the client proves its identity via credentials (certificate, username/password, etc.).
Q16. What is the purpose of the Pairwise Master Key (PMK)?
The PMK is the root key from which the Pairwise Transient Key (PTK) is derived via the 4‑way handshake. It is derived from the PSK (personal) or from EAP authentication (enterprise).
Q17. Why is WEP’s CRC32 integrity check vulnerable?
CRC32 is a linear function; an attacker can flip bits in the encrypted data and adjust the CRC accordingly without knowing the key, enabling undetected tampering.
Q18. What is the benefit of using EAP‑TLS over EAP‑PEAP?
EAP‑TLS uses mutual certificate authentication, which is more secure and resistant to credential theft (no password involved). EAP‑PEAP uses server certificate and client password (or MSCHAPv2), which can be subject to brute‑force and credential theft.
Q19. What is a common method to secure guest Wi‑Fi in a corporate environment?
Place guest traffic on a separate VLAN with no access to internal resources, use a captive portal for authentication (or open with OWE), and apply bandwidth limits.
Q20. How does WPA3 improve upon WPA2 in terms of forward secrecy?
WPA3 uses SAE, which employs an ephemeral key exchange (Dragonfly), so even if the password is later compromised, past session keys (and thus past traffic) cannot be decrypted.
Q21. What is the role of the Authenticator in 802.1X?
The Authenticator (typically the AP) relays EAP messages between the Supplicant (client) and the Authentication Server (RADIUS). It also controls the port access based on the authentication result.
Q22. Why is it important to disable WPS on home routers?
WPS (Wi‑Fi Protected Setup) PIN method is vulnerable to brute‑force attacks because the PIN is only 8 digits (11,000 guesses). Even with lockout, attackers can bypass it. Disabling WPS eliminates this attack vector.
Q23. What is the concept of "defence in depth" in WLAN security?
It means using multiple layers of security: encryption (WPA2/3), strong authentication (802.1X), network segmentation (VLANs), monitoring (WIDS), and policy enforcement (firewalls) to mitigate any single point of failure.
Q24. How does the 4‑way handshake provide session key freshness?
The handshake uses nonces (ANonce from AP, SNonce from client) that are randomly generated each session. The PTK is derived from PMK, ANonce, SNonce, and MAC addresses, ensuring unique keys per session.
Q25. What are the main benefits of using a cloud‑managed WLAN controller over a on‑premises controller?
Cloud management offers scalability, lower capital expenditure, simplified deployment, automatic updates, and centralised visibility across multiple sites. However, it relies on internet connectivity and may have latency for control plane operations.
Apply your security knowledge to these scenarios.
Exercise 1: You are a network administrator for a university. You need to deploy secure Wi‑Fi for faculty, students, and guests. Design a security architecture including authentication, encryption, and segmentation. Justify your choices.
Use WPA2‑Enterprise or WPA3‑Enterprise with 802.1X for faculty/staff (EAP‑PEAP with Active Directory, or EAP‑TLS for high security). For students, use WPA2‑Enterprise with EAP‑PEAP (or a captive portal for open access). For guests, use a separate VLAN with open network (OWE for encryption) and a captive portal for terms of service. Implement WIDS to detect rogue APs. Use RADIUS server (e.g., FreeRADIUS) integrated with LDAP.
Exercise 2: A small business uses WPA2‑PSK with a weak password "password123". An attacker captures the 4‑way handshake. Explain how the attacker can recover the PSK offline. What can the business do to mitigate this?
Attacker uses a dictionary attack with a tool like aircrack‑ng on the captured handshake. The handshake contains the PMK derived from the PSK, which can be brute‑forced offline (PBKDF2 is slow but feasible for weak passwords). Mitigation: use a strong passphrase (>12 characters, random), or better, use WPA2‑Enterprise.
Exercise 3: You are setting up a home Wi‑Fi. Compare the security of WPA2‑PSK, WPA3‑SAE, and WPA2‑Enterprise. Which would you choose and why?
WPA3‑SAE is the most secure for home use, as it resists offline brute‑force and provides forward secrecy. WPA2‑PSK is acceptable if a strong password is used, but WPA3 is better. WPA2‑Enterprise is overkill for home and requires a RADIUS server.
Exercise 4: Explain how a deauthentication attack works. What can an attacker achieve, and how can it be prevented?
An attacker sends forged deauthentication frames to a client or AP, disconnecting the client. This can be used for DoS or to force the client to re‑authenticate, allowing the attacker to capture the handshake for offline cracking. Prevention: enable 802.11w (Management Frame Protection) on both AP and client.
Exercise 5: A company deploys WPA2‑Enterprise with EAP‑PEAP. What are the potential security risks of EAP‑PEAP? How can they be mitigated?
Risks: if the server certificate is not validated by the client, an attacker can set up a rogue RADIUS server and capture credentials (evil twin). Mitigation: ensure clients validate the server certificate (use a trusted CA and check the certificate CN). Also, use strong password policies and consider moving to EAP‑TLS for mutual certificate authentication.
Exercise 6: You suspect a rogue AP on your network. Describe the steps you would take to detect and locate it.
Use a WIDS/WIPS (e.g., with a dedicated sensor or use APs in monitor mode). Look for unknown MAC addresses, mismatched SSIDs, or APs with same SSID but different BSSID. Physically locate using signal strength mapping (using a spectrum analyser or handheld direction‑finding). Then disconnect the rogue AP and investigate the switch port it is connected to.
Exercise 7: Explain the difference between PMK caching and 802.11r (Fast BSS Transition) in terms of roaming security and latency.
PMK caching stores the PMK from a previous authentication to avoid full 802.1X re‑authentication, reducing latency. 802.11r (Fast BSS Transition) uses a pre‑authentication mechanism and a key hierarchy to speed up roaming without repeating the full 4‑way handshake, achieving faster handoffs (~20‑50 ms). Both improve latency, but 802.11r is more comprehensive for voice roaming.
Exercise 8: A public Wi‑Fi hotspot uses open (no encryption) access. A user connects and logs into their bank. What are the risks? What could the hotspot provider do to improve security?
Risks: passive eavesdropping (sniffing credentials), session hijacking, MITM. Provider should implement OWE (Enhanced Open) for encryption, even without authentication. They could also use a captive portal, but that doesn't protect the data. They should encourage users to use VPNs.
Exercise 9: What is the role of the Group Temporal Key (GTK) in WPA2? How is it distributed?
The GTK is used for multicast and broadcast traffic. It is generated by the AP and distributed to clients via the Group Key Handshake, which occurs after the 4‑way handshake. The GTK is encrypted with the PTK to ensure secure delivery.
Exercise 10: You are upgrading a WPA2‑Personal network to WPA3‑SAE. What changes are required on the client and AP side? What compatibility issues might arise?
AP must support WPA3 and SAE; client must support WPA3 (most modern devices do). Transition mode allows both WPA2 and WPA3 clients to connect, but with reduced security for legacy devices. Compatibility issues: older clients may not support SAE, requiring the AP to offer WPA2 as fallback, which may expose the network to PSK brute‑force.
Exercise 11: An attacker sets up an evil twin AP with the same SSID as a corporate network but with an open or weaker encryption. How can a user be tricked, and what can be done to prevent this?
A user may connect to the stronger signal of the evil twin, especially if they have “auto‑connect” enabled. Prevention: corporate networks should use WPA2/3‑Enterprise with 802.1X, where clients validate the server certificate. Users should also be trained to check certificate warnings.
Exercise 12: Compare the security of WPA3‑Personal (SAE) and WPA3‑Enterprise (192‑bit) in terms of key strength and authentication mechanisms.
WPA3‑Personal uses SAE with a password and the Dragonfly exchange, providing resistance to offline attacks, but the password strength still matters. WPA3‑Enterprise with 192‑bit security uses stronger cryptographic algorithms (AES‑256, SHA‑384) and EAP‑TLS with certificates, providing the highest security for sensitive environments.
Independent research and analysis problems.
HW1. Write a detailed analysis of the vulnerabilities of WEP, including the mathematical basis of the FMS attack. Explain why the IV reuse is critical.
WEP uses RC4 with a 24‑bit IV. Since the IV is part of the key, when it repeats, the same keystream is used. XORing two ciphertexts encrypted with the same keystream cancels the keystream, leaving the XOR of the plaintexts. With known plaintext (e.g., IP headers), the keystream can be recovered. The FMS attack exploits weak IVs that reveal key information, reducing the brute‑force space.
HW2. Research the differences between TKIP and CCMP. Why is TKIP considered deprecated, and what are the security implications?
TKIP uses RC4 and Michael MIC; both are weaker than AES‑CCMP. TKIP has known vulnerabilities (e.g., Beck‑Tews attack on Michael). It is deprecated in 802.11ac and later. Using TKIP exposes networks to attacks that compromise integrity and confidentiality.
HW3. Explain the 802.11i 4‑way handshake in detail, including the derivation of the PTK from PMK, ANonce, SNonce, and MAC addresses. What is the purpose of each message?
Message 1: AP sends ANonce to client. Message 2: Client derives PTK (using PMK, ANonce, SNonce, MACs) and sends SNonce + MIC. Message 3: AP sends GTK + MIC (verifies PTK). Message 4: Client sends ACK (confirms installation). This establishes the PTK and provides key freshness and mutual proof of PMK.
HW4. Investigate the KRACK vulnerability. How does it work, and what are the necessary patches? Why is it considered a protocol flaw rather than an implementation bug?
KRACK (Key Reinstallation Attack) exploits the retransmission of the 3rd message of the 4‑way handshake. The attacker forces the client to reinstall an already‑used PTK, resetting the nonce and replay counter, allowing replay attacks. It is a protocol flaw because the standard didn't prevent key reinstallation. Patches involve the client discarding retransmitted messages after key installation.
HW5. Compare the EAP methods: EAP‑TLS, EAP‑PEAP, EAP‑TTLS, and EAP‑FAST. Which is most secure, and which is most deployable in a corporate environment?
EAP‑TLS is the most secure (mutual certificates) but requires a PKI. EAP‑PEAP and EAP‑TTLS are widely deployed (username/password with server certificate), with PEAP being more common. EAP‑FAST is Cisco‑proprietary. EAP‑TLS is recommended for high security; PEAP is a good compromise for ease of deployment.
HW6. Discuss the role of IEEE 802.11w (Management Frame Protection) and its impact on security. Why is it not always enabled?
802.11w protects management frames (Deauthentication, Disassociation, and some others) from forgery. It is crucial to prevent DoS attacks. However, it is not always enabled because older clients may not support it, causing compatibility issues. It is optional in WPA2 but mandatory in WPA3.
HW7. Explain how a wireless intrusion prevention system (WIPS) works. What are the key components, and how does it differ from a WIDS?
A WIPS actively prevents attacks, not just detects them. Components: sensors (APs or dedicated) that monitor the air, a central server that analyses data, and an enforcement point that can take actions (e.g., sending deauth to rogue APs, blocking MACs, or dynamically adjusting channels). A WIDS only alerts; a WIPS automatically responds.
HW8. Analyse the security implications of using WPA2‑PSK in a large enterprise. What are the risks, and why is 802.1X preferred?
WPA2‑PSK uses a shared key, which is difficult to manage for many users and devices. If an employee leaves, the key must be changed on all devices. There is also no per‑user accountability. 802.1X provides individual credentials, dynamic keys, and centralised management, making it far more secure and scalable.
HW9. Research the concept of "secure onboarding" for IoT devices with limited interfaces. How can they be securely enrolled onto a WPA2‑Enterprise network?
IoT devices often lack keyboards. Secure onboarding can use methods like: provisioning via a smartphone app (using BLE or QR codes), using a bootstrap network (open network for registration), or using Zero‑Touch Provisioning (e.g., with certificates pre‑installed). Once enrolled, the device gets a unique credential.
HW10. Compare the security of WPA3‑Personal with WPA2‑Personal in terms of resistance to brute‑force and dictionary attacks. Discuss the SAE mechanism.
WPA2‑PSK is vulnerable to offline dictionary attacks because the handshake contains material that can be used to test passwords offline. WPA3‑SAE uses the Dragonfly key exchange, which requires online interaction for each guess, making offline brute‑force infeasible. This is a significant security improvement.
HW11. Write a critical analysis of the statement: "WPA3 is the ultimate solution for Wi‑Fi security." Discuss its limitations and the need for other security measures.
WPA3 provides strong encryption and authentication, but it is not a silver bullet. It does not protect against application‑layer attacks, phishing (evil twin still possible if certificates are not validated), or side‑channel attacks. Also, WPA3 may not be available on all devices. A defence‑in‑depth approach with network segmentation, monitoring, and user education is still necessary.
HW12. Design a security audit plan for a corporate WLAN. Include the steps to test encryption, authentication, rogue AP detection, and response procedures.
Audit plan: 1) Survey the air for all SSIDs and BSSIDs (using a tool like Kismet). 2) Test encryption (ensure WPA2/3, no WEP/TKIP). 3) Test authentication: try to connect with invalid credentials, check for 802.1X certificate validation. 4) Deploy a rogue AP to test detection (WIDS). 5) Check AP firmware versions. 6) Review logs and alerts. 7) Develop a response plan for detected incidents.
This extended tutorial covered the evolution and implementation of wireless LAN security, including:
Understanding these security principles is critical for designing and maintaining robust wireless networks. The next tutorial will explore Cellular Network Fundamentals and Architecture.
© COMP347 – Unit 7: Wireless and Mobile Networks (Extended Tutorial 5)