π‘ The Radio Frequency Attack Surface: Boundaryless Transmissions & 802.11 Ciphers
Unlike wired Ethernet infrastructures, where an attacker must achieve physical access to copper cabling, patch panels, or wall jacks, Wireless Local Area Networks (WLANs / IEEE 802.11) broadcast all communications over unguided radio frequencies (2.4 GHz, 5 GHz, and 6 GHz spectrums). This open broadcast medium eliminates traditional physical perimeter boundaries: anyone within radio transmission range can capture raw frames, inject spoofed packets, and attempt to subvert authentication mechanisms. The evolution of wireless security represents a decades-long struggle between cryptanalysis and protocol engineering: from the broken static RC4 implementation of Wired Equivalent Privacy (WEP) to Wi-Fi Protected Access 2 (WPA2-PSK) and modern WPA3-SAE (Simultaneous Authentication of Equals). Securing modern wireless infrastructure requires cybersecurity engineers to understand 802.11 frame structures, analyze the cryptographic derivation of the 4-Way Handshake, mitigate state-machine flaws like KRACK, and deploy hardened 802.1X/EAP-TLS frameworks with Protected Management Frames (802.11w PMF).
IEEE 802.11 MAC FRAME ARCHITECTURE & THREE SUB-TYPES:
GENERAL MAC FRAME FORMAT (Up to 30 bytes of header overhead):
ββββββββββββββββ¬βββββββββββββββ¬βββββββββββ¬βββββββββββ¬βββββββββββ¬βββββββββββββββ¬βββββββββββ¬βββββββββββββββββββ¬βββββββββ
β Frame Controlβ Duration/ID β Address 1β Address 2β Address 3β Seq Control β Address 4β Frame Body β FCS β
β (2 bytes) β (2 bytes) β (6 bytes)β (6 bytes)β (6 bytes)β (2 bytes) β(6 bytes) β (0 - 2312 bytes) β(4 bytesβ
ββββββββββββββββ΄βββββββββββββββ΄βββββββββββ΄βββββββββββ΄βββββββββββ΄βββββββββββββββ΄βββββββββββ΄βββββββββββββββββββ΄βββββββββ
FRAME CONTROL FIELD BIT BREAKDOWN (2 BYTES / 16 BITS):
ββββββββββββββββ¬βββββββββββββββ¬βββββββββββββββ¬βββββββββββ¬βββββββββββ¬βββββββββββ¬βββββββββββ¬βββββββββββ¬βββββββββββ
β Protocol Ver β Type (2 bits)β Subtype (4b) β To DS β From DS β More Fragβ Retry β Pwr Mgmt β WEP/Prot β
β (2 bits) β 00=Mgmt, etc β Specific codeβ (1 bit) β (1 bit) β (1 bit) β (1 bit) β (1 bit) β (1 bit) β
ββββββββββββββββ΄βββββββββββββββ΄βββββββββββββββ΄βββββββββββ΄βββββββββββ΄ββββββββββββββββββββββ΄βββββββββββ΄ββββββββββ΄β
THE THREE PRIMARY 802.11 FRAME TYPES:
1. MANAGEMENT FRAMES (Type 00):
β’ Purpose : Establishes and terminates radio connectivity.
β’ Subtypes: Beacon (0000), Probe Request (0100), Probe Response (0101),
Authentication (1011), Association Request (0000), Deauthentication (1100).
β’ Security Flaw: IN LEGACY WPA/WPA2, MANAGEMENT FRAMES ARE UNENCRYPTED AND UNAUTHENTICATED!
Adversaries forge Deauthentication frames (spoofing AP MAC) to kick clients off the air!
2. CONTROL FRAMES (Type 01):
β’ Purpose : Medium clearing, flow control, channel acquisition, and frame acknowledgment.
β’ Subtypes: Request to Send (RTS - 1011), Clear to Send (CTS - 1100), ACK (1101).
β’ Unencrypted: Handled directly by physical transceivers.
3. DATA FRAMES (Type 10):
β’ Purpose : Carries upper-layer encapsulated network data (IPv4/IPv6, ARP, TCP/UDP).
β’ Protection: Payload is cryptographically encrypted using CCMP (AES-128) in WPA2 or GCMP in WPA3.
WIRELESS CIPHER SUITE COMPARATIVE SPECIFICATION:
1. WIRED EQUIVALENT PRIVACY (WEP - IEEE 802.11-1999):
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β’ Cipher Algorithm : RC4 Stream Cipher (Symmetric key stream XORed with plaintext) β
β β’ Key Construction : Key = [ 24-bit Initialization Vector (IV) ] + [ 40-bit or 104-bit PSK ] β
β β’ Integrity Check : CRC-32 (Cyclic Redundancy Check - Linearly malleable, not a MAC!) β
β β
β β οΈ THE MATHEMATICAL COLLAPSE (Fluhrer, Mantin, and Shamir - FMS Attack): β
β 1. The IV is only 24 bits wide (2^24 = 16,777,216 possible values). β
β 2. Under a busy network (10,000 packets/min), identical IVs repeat in under 30 minutes! β
β (Keystream Reuse: C1 β C2 = P1 β P2). β
β 3. Certain "Weak IVs" leak key byte correlations through the first bytes of the RC4 PRGA. β
β Result: Complete key recovery within 60 seconds from passive traffic collection! β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
2. WPA / TEMPORAL KEY INTEGRITY PROTOCOL (TKIP - IEEE 802.11i Draft):
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β’ Objective: Emergency firmware upgrade for existing legacy WEP hardware without new chips. β
β β’ Improvements: 48-bit IV (eliminates quick IV wraparound), per-packet key mixing, β
β and "Michael" Message Integrity Code (MIC). β
β β’ Status: Deprecated. Cryptanalytic flaws (Beck-Tews attack) allow selective packet forgery. β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
3. WPA2 / COUNTER MODE CBC-MAC PROTOCOL (CCMP - IEEE 802.11i-2004):
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β’ Cipher Algorithm: AES-128 (Advanced Encryption Standard with 128-bit symmetric block key). β
β β’ Confidentiality : Counter Mode (CTR) transforms block cipher into stream cipher. β
β β’ Integrity / Auth: Cipher Block Chaining Message Authentication Code (CBC-MAC). β
β β’ Security Status : Robust data-plane confidentiality. Vulnerable only at the key negotiation β
β phase (4-Way Handshake dictionary brute-forcing) and state transitions (KRACK). β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
THE WPA/WPA2 4-WAY HANDSHAKE PROTOCOL SPECIFICATION:
MATHEMATICAL FOUNDATION:
1. PAIRWISE MASTER KEY (PMK):
PMK = PBKDF2_HMAC_SHA1( Passphrase, SSID, Iterations=4096, OutputLength=256 bits )
2. PAIRWISE TRANSIENT KEY (PTK - 512 bits):
PTK = PRF-512( PMK, "Pairwise key expansion", Min(AA,SPA) || Max(AA,SPA) || Min(ANonce,SNonce) || Max(ANonce,SNonce) )
βββ KCK (Key Confirmation Key) : Bits 0..127 (Used to compute the Message Integrity Code - MIC)
βββ KEK (Key Encryption Key) : Bits 128..255 (Used to encrypt the Group Temporal Key - GTK)
βββ TK (Temporal Key) : Bits 256..511 (Used by CCMP/AES to encrypt actual data packets)
PROTOCOL EXCHANGE SEQUENCE (EAPOL-Key Frames):
[SUPPLICANT (CLIENT)] [AUTHENTICATOR (ACCESS POINT)]
β β
βββββ MESSAGE 1: EAPOL-Key( ANonce, Key Replay Counter = 1 )ββββββββββββ€
β (AP sends random 256-bit ANonce. Client now has all components β
β needed to derive the PTK: PMK, ANonce, SNonce, MAC addresses) β
β β
βββββΊ MESSAGE 2: EAPOL-Key( SNonce, MIC, RSN Information Element )βββββΊβ
β (Client sends its SNonce + MIC computed using derived KCK. β
β AP derives PTK independently and validates MIC. Authenticated!) β
β β
βββββ MESSAGE 3: EAPOL-Key( ANonce, Encrypted GTK, MIC, Install PTK )βββ€
β (AP proves it knows PMK; transmits encrypted GTK for broadcast; β
β instructs client to install Temporal Key (TK) into driver). β
β β
βββββΊ MESSAGE 4: EAPOL-Key( ACK / Confirmation )βββββββββββββββββββββββΊβ
β (Client confirms keys installed; wireless link is now active!) β
βΌ βΌ
scapy. Inspects PCAP traces to identify the 4-Way Handshake exchange, extracts nonces, MAC addresses, and Message Integrity Code (MIC) fields for security verification.
from scapy.all import rdpcap, Dot11, EAPOL
import sys
class WpaHandshakeAuditor:
"""
Parses an 802.11 packet capture to inspect the presence and
structural integrity of the 4-Way Handshake EAPOL frames.
"""
def __init__(self, pcap_path: str):
self.pcap_path = pcap_path
self.eapol_frames = []
def audit_capture(self) -> dict:
print(f"[*] Analyzing capture trace: {self.pcap_path}...")
packets = rdpcap(self.pcap_path)
for idx, pkt in enumerate(packets):
# Check if frame is 802.11 and contains EAPOL layer
if pkt.haslayer(Dot11) and pkt.haslayer(EAPOL):
dot11 = pkt[Dot11]
eapol = pkt[EAPOL]
# Extract radio MAC addresses
bssid = dot11.addr3 # Access Point BSSID
client = dot11.addr1 if dot11.addr2 == bssid else dot11.addr2
# Raw byte parsing of EAPOL Key Descriptor
raw_payload = bytes(eapol)
key_info = int.from_bytes(raw_payload[5:7], byteorder='big') if len(raw_payload) >= 7 else 0
# Determine handshake message number via Key Information bitmask flags
msg_num = self._resolve_message_number(key_info)
self.eapol_frames.append({
"packet_index": idx,
"message": msg_num,
"ap_bssid": bssid,
"client_mac": client,
"payload_len": len(raw_payload)
})
return {
"total_eapol_detected": len(self.eapol_frames),
"frames": self.eapol_frames,
"handshake_complete": len(self.eapol_frames) >= 4
}
@staticmethod
def _resolve_message_number(key_info: int) -> str:
# Key Info bit flags (IEEE 802.11i):
# Bit 3: Pairwise | Bit 6: Install | Bit 7: ACK | Bit 8: MIC
pairwise = bool(key_info & (1 << 3))
install = bool(key_info & (1 << 6))
ack = bool(key_info & (1 << 7))
mic = bool(key_info & (1 << 8))
if pairwise and ack and not mic and not install:
return "Message 1 (AP β Client: ANonce)"
elif pairwise and not ack and mic and not install:
return "Message 2 (Client β AP: SNonce + MIC)"
elif pairwise and ack and mic and install:
return "Message 3 (AP β Client: GTK + Install)"
elif pairwise and not ack and mic and not install:
return "Message 4 (Client β AP: Final ACK)"
return "Group Key Handshake / Unknown"
if __name__ == "__main__":
# Demonstration script loaded for academic auditing
print("==========================================================================")
print(" 802.11 EAPOL 4-WAY HANDSHAKE TELEMETRY ANALYZER")
print("==========================================================================")
print("[*] Script parsed for educational inspection of WPA/WPA2 key negotiation frames.")
print(" Extracts ANonce, SNonce, and verifies cryptographic parameters.")
THE KEY REINSTALLATION ATTACK (KRACK) PROTOCOL MECHANICS:
THE PROTOCOL SPECIFICATION MANDATE (IEEE 802.11i):
"When the client receives Message 3 of the 4-Way Handshake, it must install the
Temporal Key (TK) into the kernel encryption engine and reset the packet replay counter to 0."
THE RETRANSMISSION ATTACK SCENARIO:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β 1. Client and AP execute normal handshake up to Message 3. β
β 2. Client receives Message 3 βββΊ Installs TK βββΊ Transmits Message 4 to AP. β
β β
β 3. THE MAN-IN-THE-MIDDLE INTERCEPTION (CHANNEL SWITCH / EVIL TWIN PROXY): β
β Attacker intercepts Message 4 and DROPS it before it reaches the Access Point! β
β β
β 4. ACCESS POINT TIMEOUT & RETRANSMISSION: β
β Because the AP never received Message 4, it assumes Message 3 was lost on the radio link. β
β The AP retransmits a duplicate Message 3 to the Client! β
β β
β 5. THE FLAWED STATE MACHINE RE-INSTALLATION (CVE-2017-13077): β
β Upon receiving the retransmitted Message 3: β
β β’ Client RE-INSTALLS the same Temporal Key (TK)! β
β β’ Client RESETS its transmit packet counter (Nonce) BACK TO ZERO! β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ (Cryptographic Disaster)
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β CRYPTOGRAPHIC CONSEQUENCE: NONCE REUSE IN AES-CCMP & GCMP β
β In stream ciphers and CTR mode: Keystream = AES( Key, Nonce ). β
β Because the Nonce was reset to 0 while the Key remained identical: β
β Client encrypts Packet A: Nonce=1, Keystream=K1 βββΊ C_A = P_A β K1 β
β Client encrypts Packet B: Nonce=1, Keystream=K1 βββΊ C_B = P_B β K1 <-- REUSED KEYSTREAM! β
β β
β Result: C_A β C_B = P_A β P_B. Attacker decrypts packets, replays traffic, and injects data! β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
WPA3 SAE (SIMULTANEOUS AUTHENTICATION OF EQUALS) ARCHITECTURE:
WHY WPA3 ELIMINATES OFFLINE BRUTE-FORCE ATTACKS:
In WPA2, the PMK was statically derived from the password via PBKDF2.
In WPA3, the password is used ONLY to compute a Password Element (PWE) on an elliptic curve!
The actual session key is negotiated dynamically using Diffie-Hellman Key Exchange:
THE DRAGONFLY HANDSHAKE PHASES:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β PHASE 1: PASSWORD ELEMENT (PWE) DERIVATION β
β Client and AP hash the shared password into an elliptic curve point: PWE = HashToCurve(Pass). β
β β
β PHASE 2: SAE COMMIT EXCHANGE (PEER-TO-PEER): β
β Both Client and AP generate random private scalars (r_c, r_ap) and masks (m_c, m_ap). β
β β’ Client Commit : Scalar_c = (r_c + m_c) mod q | Element_c = -(m_c * PWE) β
β β’ AP Commit : Scalar_ap = (r_ap + m_ap) mod q | Element_ap = -(m_ap * PWE) β
β They exchange Commit frames over the air. β
β β
β PHASE 3: SHARED SECRET DERIVATION & CONFIRM EXCHANGE: β
β Both peers compute identical Shared Key (K) without revealing PWE or private scalars! β
β Exchange Confirm frames: Verifies cryptographic possession of K. β
β β
β β’ Forward Secrecy: Even if the Wi-Fi password is stolen in the future, PAST traffic CANNOT β
β be decrypted because every session key depends on ephemeral Diffie-Hellman parameters! β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
DRAGONBLOOD VULNERABILITIES (CVE-2019-9494):
β’ Timing and Cache Side-Channel Attacks in the "Hunting-and-Pecking" algorithm used to map
passwords to curve points.
β’ Mitigation: Replaced Hunting-and-Pecking with constant-time Hash-to-Curve algorithms in WPA3 rev 2.
ENTERPRISE 802.1X / EAP WIRELESS ARCHITECTURE:
THE THREE-PARTY 802.1X TOPOGRAPHY:
ββββββββββββββββββββββββββββ ββββββββββββββββββββββββββββ ββββββββββββββββββββββββββββ
β SUPPLICANT β β AUTHENTICATOR β β AUTHENTICATION SERVER β
β (Client Workstation) β β (Wireless Access Point)β β (FreeRADIUS / MS-NPS) β
ββββββββββββββ¬ββββββββββββββ ββββββββββββββ¬ββββββββββββββ ββββββββββββββ¬ββββββββββββββ
β β β
ββ 1. 802.11 Association Request βββββΊβ β
βββ 2. 802.11 Association Response ββββ€ β
β β β
βββ 3. EAP-Request / Identity βββββββββ€ β
ββ 4. EAP-Response / Identity ββββββββΊββ 5. RADIUS Access-Request ββββββββββΊβ
β (EAP encapsulated in 802.11) β (EAP encapsulated in UDP 1812) β
β β β
βββ 7. EAP-TLS Handshake (Cert Exch)ββΊβββ 6. RADIUS Access-Challenge ββββββββ€
β (Client validates Server Cert; β β
β Server validates Client Cert) β β
β β β
β βββ 8. RADIUS Access-Accept (PMK) βββββ€
β β (RADIUS sends derived PMK to AP) β
β β β
βββ 9. Standard 4-Way Handshake ββββββΊβ β
β (Driven by the unique PMK) β β
βΌ βΌ βΌ
ENTERPRISE EAP METHODS COMPARED:
βββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββ
β EAP METHOD β CREDENTIAL MECHANISM β SECURITY POSTURE & PHISHING STATUS β
βββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββ€
β EAP-TLS (RFC 5216) β Mutual X.509 Certificates β HIGHEST ASSURANCE. Phishing immune! β
β β (Both client and server cert)β No passwords transmitted over air. β
βββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββ€
β PEAP-MSCHAPv2 β Server Certificate + β VULNERABLE TO ROGUE AP (EVIL TWIN)! β
β (Protected EAP) β User Active Directory Pwd β If client skips cert validation, β
β β β MSCHAPv2 challenge is stolen/cracked!β
βββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββ€
β EAP-TTLS β Server Certificate + β Secure if root CA is enforced; β
β β Tunneled User Credentials β vulnerable if validation disabled. β
βββββββββββββββββββββββββββ΄βββββββββββββββββββββββββββββββ΄βββββββββββββββββββββββββββββββββββββββ
from scapy.all import sniff, Dot11, Dot11Deauth, Dot11Beacon
from collections import defaultdict
import time
class WirelessIntrusionDetector:
"""
Passive Wireless IDS Engine:
1. Monitors 802.11 management frames in RF monitor mode.
2. Detects high-volume Deauthentication bursts (Denial of Service).
3. Identifies Rogue Access Points / Evil Twins spoofing legitimate SSIDs with anomalous BSSIDs.
"""
def __init__(self, legitimate_ssid: str, authorized_bssids: list, deauth_threshold: int = 15):
self.legitimate_ssid = legitimate_ssid
self.authorized_bssids = [b.lower() for b in authorized_bssids]
self.deauth_threshold = deauth_threshold
# Tracking sliding window: BSSID -> count of deauths in last 5 seconds
self.deauth_tracker = defaultdict(list)
def process_packet(self, pkt):
if not pkt.haslayer(Dot11):
return
now = time.time()
# -------------------------------------------------------------
# 1. DEAUTHENTICATION FLOOD DETECTION (Type 0, Subtype 12)
# -------------------------------------------------------------
if pkt.haslayer(Dot11Deauth):
ap_mac = pkt[Dot11].addr2 or "Unknown"
target_mac = pkt[Dot11].addr1 or "Broadcast"
# Clean entries older than 5 seconds
self.deauth_tracker[ap_mac] = [t for t in self.deauth_tracker[ap_mac] if now - t < 5.0]
self.deauth_tracker[ap_mac].append(now)
if len(self.deauth_tracker[ap_mac]) >= self.deauth_threshold:
print(f"[!] WIDS ALERT: 802.11 DEAUTH FLOOD DETECTED!")
print(f" Source (AP/Spoofed) : {ap_mac}")
print(f" Target Client : {target_mac}")
print(f" Velocity : {len(self.deauth_tracker[ap_mac])} frames / 5 sec")
# -------------------------------------------------------------
# 2. ROGUE AP / EVIL TWIN DETECTION (Beacon Frame Type 0, Subtype 8)
# -------------------------------------------------------------
elif pkt.haslayer(Dot11Beacon):
try:
beacon_ssid = pkt[Dot11Beacon].info.decode('utf-8', errors='ignore')
except Exception:
beacon_ssid = ""
beacon_bssid = (pkt[Dot11].addr2 or "").lower()
# If an AP broadcasts our corporate SSID but has an unauthorized BSSID:
if beacon_ssid == self.legitimate_ssid and beacon_bssid not in self.authorized_bssids:
print(f"[!] CRITICAL WIDS ALERT: ROGUE AP / EVIL TWIN DETECTED!")
print(f" Spoofed SSID : {beacon_ssid}")
print(f" Rogue BSSID : {beacon_bssid} (UNAUTHORIZED HARDWARE MAC!)")
if __name__ == "__main__":
CORP_SSID = "Nikita-Infotech-Enterprise"
APPROVED_BSSIDS = ["00:14:d1:ab:cd:ef", "00:14:d1:ab:cd:f0"]
wids = WirelessIntrusionDetector(CORP_SSID, APPROVED_BSSIDS, deauth_threshold=10)
print("==========================================================================")
print(" 802.11 WIRELESS INTRUSION DETECTION SYSTEM (WIDS) ENGINE")
print("==========================================================================")
print(f"[*] Monitoring Airwaves for SSID : {CORP_SSID}")
print(f"[*] Authorized BSSIDs : {APPROVED_BSSIDS}")
print("[*] Sensor Active. Awaiting raw RF frames...")
# In live deployment on monitor interface (e.g. wlan0mon):
# sniff(iface="wlan0mon", prn=wids.process_packet, store=0)
IEEE 802.11w PROTECTED MANAGEMENT FRAMES (PMF) SPECIFICATION:
HOW 802.11w ELIMINATES DEAUTHENTICATION SPOOFING:
Under 802.11w, when an association is established, the AP and Client derive an additional key:
IGTK (Integrity Group Temporal Key): Used by the Broadcast Integrity Protocol (BIP).
ACTION ON UNICAST MANAGEMENT FRAMES (e.g., Targeted Deauth / Disassociation):
β’ Encrypted and authenticated directly using the CCMP/AES Temporal Key (TK)!
β’ If an attacker injects a spoofed Deauth frame: The client checks the MIC.
Because the attacker does not know the TK, the MIC check fails, and the frame is DROPPED!
ACTION ON BROADCAST MANAGEMENT FRAMES:
β’ Protected via AES-128-CMAC using the shared IGTK.
β’ Clients reject unauthenticated broadcast deauthentications immediately.
ENTERPRISE HARDENING CONFIGURATION (hostapd.conf / Enterprise Controller):
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β # In /etc/hostapd/hostapd.conf: β
β β
β # Mandate WPA3-Personal or WPA2-Enterprise with PMF β
β wpa=2 β
β wpa_key_mgmt=WPA-EAP WPA-EAP-SHA256 β
β rsn_pairwise=CCMP β
β β
β # IEEE 802.11w Protected Management Frames Configuration: β
β # 0 = Disabled (Vulnerable legacy mode) β
β # 1 = Optional (Allows legacy clients, but leaves network open to downgrade attacks) β
β # 2 = REQUIRED (Mandatory PMF! Rejects clients that do not support 802.11w!) β
β ieee80211w=2 β
β β
β # Group Management Cipher Suite (BIP / AES-128-CMAC) β
β group_mgmt_cipher=AES-128-CMAC β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
WIRELESS NETWORK SECURITY PROTOCOL SPECIFICATION MATRIX:
βββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββ¬βββββββββββββββββββ¬ββββββββββββββββββββββββββββββββ
β STANDARD / PROTOCOL β CIPHER SUITE & INTEGRITY β KEY DERIVATION β PRIMARY VULNERABILITY / DEFENSEβ
βββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββΌβββββββββββββββββββΌββββββββββββββββββββββββββββββββ€
β WEP β RC4 Stream Cipher β 24-bit IV + β FMS Attack, IV Collisions / β
β (IEEE 802.11-1999) β CRC-32 (Linear checksum) β Static WEP Key β Deprecated: Do not deploy β
βββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββΌβββββββββββββββββββΌββββββββββββββββββββββββββββββββ€
β WPA (TKIP) β RC4 Stream Cipher + β 48-bit IV + β Beck-Tews Attack, MIC drop / β
β (IEEE 802.11i Draft) β Michael MIC β Per-packet mixer β Deprecated: Upgrade to CCMP β
βββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββΌβββββββββββββββββββΌββββββββββββββββββββββββββββββββ€
β WPA2-Personal β AES-128 in Counter Mode β PBKDF2-SHA1 β 4-Way Handshake dictionary β
β (WPA2-PSK / CCMP) β CBC-MAC (CCMP) β 4096 iterations β attacks / Use complex >16-charβ
βββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββΌβββββββββββββββββββΌββββββββββββββββββββββββββββββββ€
β WPA2 State Transitions β Reinstallation of TK β 4-Way Handshake β KRACK (Key Reinstallation) / β
β (CVE-2017-13077) β during Message 3 retransmit β Nonce reset β Patch client wpa_supplicant β
βββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββΌβββββββββββββββββββΌββββββββββββββββββββββββββββββββ€
β WPA3-Personal β AES-128 / AES-256 β SAE Dragonfly β Dragonblood side-channels / β
β (WPA3-SAE) β GCMP-256 (Galois Counter) β Elliptic Curve β Mandate Hash-to-Curve updates β
βββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββΌβββββββββββββββββββΌββββββββββββββββββββββββββββββββ€
β 802.11w (PMF) β AES-128-CMAC β IGTK Key β Deauth & Disassoc Floods / β
β β Broadcast Integrity Protocol β BIP Derivation β Enforce ieee80211w=2 β
βββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββΌβββββββββββββββββββΌββββββββββββββββββββββββββββββββ€
β WPA2/WPA3 Enterprise β 802.1X Port Authentication β EAP-TLS / β PEAP Rogue AP credential leak /β
β (EAP Framework) β RADIUS Server integration β Dynamic PMK β Deploy mutual cert EAP-TLS β
βββββββββββββββββββββββββββ΄βββββββββββββββββββββββββββββββ΄βββββββββββββββββββ΄ββββββββββββββββββββββββββββββββ€
β TOP 5 WIRELESS HARDENING PRINCIPLES: β
β 1. Mandate Protected Management Frames: Enable 802.11w PMF to prevent management frame spoofing. β
β 2. Deploy WPA3 with Forward Secrecy: Eliminate offline dictionary attacks using SAE Dragonfly. β
β 3. Prefer EAP-TLS in Enterprise Networks: Use mutual X.509 certificate authentication over PEAP. β
β 4. Segment Guest and IoT Wireless: Isolate guest Wi-Fi and IoT devices onto dedicated VLANs. β
β 5. Monitor the RF Spectrum: Deploy WIDS sensors to detect rogue APs and anomalous frame velocity. β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
WIRELESS CONFIGURATION DEFECTS & DIAGNOSTIC REMEDIATIONS:
// ==============================================================================
// PITFALL 1: LEGACY CLIENT DISCONNECTS AFTER ENABLING 802.11w (PMF)
// SYMPTOM: Enabling 'ieee80211w=2' (Required) causes legacy barcode scanners,
// older printers, and legacy laptops to fail association completely.
// CAUSE: Older client Wi-Fi chipsets lack 802.11w driver support and reject the
// RSN Information Element advertising mandatory PMF capabilities.
// REMEDIATION:
// 1. Configure transition mode (ieee80211w=1 - Optional) during migration phases, OR
// 2. Create a separate, isolated, segmented IoT SSID on an independent VLAN with
// restricted firewall access for legacy devices that cannot support PMF.
// ==============================================================================
// ==============================================================================
// PITFALL 2: 802.1X EAP-TLS AUTHENTICATION FAILING SILENTLY
// SYMPTOM: Client associates to the SSID, prompts for credentials, but connection
// drops after 10 seconds without an IP address.
// CAUSE: Certificate Trust Chain or Clock Skew:
// 1. The client does not possess the issuing Intermediate/Root CA of the RADIUS server.
// 2. The RADIUS server certificate has an expired validity date or invalid EKU:
// (Enterprise Wi-Fi requires 'Server Authentication' OID: 1.3.6.1.5.5.7.3.1).
// REMEDIATION: Distribute the enterprise Root CA via Active Directory Group Policy (GPO)
// or MDM profile, and ensure server certificates include correct Extended Key Usage.
// ==============================================================================
// ==============================================================================
// PITFALL 3: CO-CHANNEL INTERFERENCE DEGRADING WIDS ACCURACY
// SYMPTOM: High rate of frame loss and false packet drops on 2.4 GHz monitoring channels.
// CAUSE: Improper channel assignment: Access points configured on overlapping channels
// (e.g. Channels 2, 3, 4, 8, 9) instead of non-overlapping channels (1, 6, 11).
// REMEDIATION: Restrict 2.4 GHz deployments strictly to non-overlapping channels 1, 6, and 11
// with 20 MHz channel widths; migrate enterprise traffic to 5 GHz (UNII-1/2/3) and 6 GHz bands.
// ==============================================================================