Chapter 10: Wireless and Contactless Attacks¶
A wired connection must be physically tapped; a wireless one can be heard by anyone within range of the right receiver. This chapter covers six attacks on Wi-Fi, Bluetooth and contactless cards: evil twin access points, WPS PIN attacks, WPA2 handshake cracking, deauthentication, Bluetooth attacks and RFID or NFC cloning.
Layman analogy
A wired network connection is like a private phone call on a landline — physically intercepting it requires access to the line. A wireless network is like a conversation on a walkie-talkie — anyone with the right receiver within range can listen in.
10.1 Evil Twin Access Point¶
The attacker creates a fake Wi-Fi access point with the same name (SSID) as a legitimate network. Users connect to the attacker's hotspot thinking it's real. All their internet traffic flows through the attacker's device.
How it works:
- Attacker sets up a hotspot named "Heathrow Airport Free WiFi" at an airport
- Victims' devices connect automatically or users select it thinking it's legitimate
- Attacker intercepts all traffic: login credentials, session cookies, browsing history, banking data
Example 10.1: Evil Twin Access Point
2024 — Australian Federal Police: A man was charged after using a portable Evil Twin device on multiple domestic flights, capturing passenger credentials. He used a laptop and a portable wireless device to create fake "Free Inflight WiFi" networks.
10.2 WPS PIN Attack¶
Wi-Fi Protected Setup (WPS) was designed to make router configuration easy — users could connect new devices via an 8-digit PIN. A critical design flaw allows the PIN to be tested in two separate parts (the first four digits, then the next three, since the eighth digit is only a checksum), reducing the search space from 100 million combinations to just 11,000.
Impact: Any WPA2 router with WPS enabled can be cracked in approximately 4 hours, regardless of how complex the WPA2 password is.
Defence tip
Disable WPS completely on your router. The convenience is not worth the security risk.
10.3 WPA2 Handshake Capture and Cracking¶
When any device connects to a WPA2 network, a "4-way handshake" authentication exchange occurs. An attacker captures this handshake (either by waiting, or by sending deauthentication packets to force devices to reconnect), then performs an offline brute-force or dictionary attack against the captured data.
- Step 1: Send deauthentication packets to force a client to reconnect
- Step 2: Capture the 4-way handshake from the reconnection
- Step 3: Run Hashcat with GPU acceleration and wordlists against the captured handshake
Weak passwords like "password123" or "ourwifi2024" can be cracked against a captured handshake in seconds using GPU-accelerated tools.
Defence tip
Use WPA3 (uses SAE protocol — Simultaneous Authentication of Equals — which is resistant to offline dictionary attacks). Use a complex, random Wi-Fi password of 20+ characters.
10.4 Deauthentication Attack¶
The 802.11 Wi-Fi standard includes management frames for controlling connections. An attacker sends spoofed deauthentication frames (in the original standard, these are unauthenticated) that tell clients they have been disconnected from the access point, forcibly kicking them off the network.
- Used to capture WPA2 handshakes (as above)
- Used as a standalone DoS attack — continuously kicking users off the network
Defence tip
WPA3 implements Protected Management Frames (PMF), which cryptographically authenticate deauthentication packets, making this attack ineffective.
10.5 Bluetooth Attacks¶
BlueSnarfing: Unauthorised access to a Bluetooth-enabled device to steal data: contacts, calendar entries, messages, photos.
BlueJacking: Sending unsolicited messages to nearby Bluetooth devices (more of an annoyance than a security threat).
BlueBorne: A critical set of Bluetooth vulnerabilities (2017) allowing Remote Code Execution (RCE) on affected devices with NO pairing required and NO user interaction needed.
Example 10.5: Bluetooth Attacks
BlueBorne (2017): Affected 8.2 billion devices running Android, iOS, Windows, and Linux. An attacker within Bluetooth range could silently take complete control of vulnerable devices without any user action, prompt, or pairing request.
Defence tip
Keep Bluetooth turned off when not actively using it. Apply security patches to all devices promptly — Bluetooth patches are among the most critical.
10.6 RFID / NFC Cloning¶
RFID (Radio-Frequency Identification) and NFC (Near-Field Communication) are used in hotel key cards, corporate access badges, transit cards, passports, and contactless payment cards. Attackers use inexpensive, commercially available hardware to silently clone these cards.
Layman analogy
An attacker walks past you in a lift or in a queue carrying a concealed reader. In the time it takes to ride two floors, they've read and cloned your access badge. They now have a perfect copy that grants them access to the same areas as you.
Example 10.6: RFID / NFC Cloning
2014: Security researchers demonstrated cloning corporate RFID access badges from 3 feet away using $20 worth of off-the-shelf components — showing the attack is trivially accessible to any motivated attacker.
Defence tip
Use RFID-blocking wallets or card sleeves for your access badges and contactless payment cards. Organisations should upgrade to cryptographically secure card systems (MIFARE DESFire EV2 or later).
10.7 Tools and defences at a glance¶
As in the previous chapter, the tools are used both by attackers and by defenders testing their own networks.
| Attack | Tools seen in the literature | Typical defence |
|---|---|---|
| Evil twin access point | airbase-ng, WiFi Pineapple | VPN; do not trust open networks |
| WPS PIN attack | Reaver, Bully | Disable WPS |
| WPA2 handshake cracking | aircrack-ng, Hashcat, hcxdumptool | WPA3; long random passphrase |
| Deauthentication | aireplay-ng, MDK3, mdk4 | WPA3 protected management frames |
| Bluetooth attacks | BlueZ, hciconfig, bettercap | Turn Bluetooth off; patch |
| RFID and NFC cloning | Proxmark3, Flipper Zero, ACR122U | Blocking sleeves; secure card systems |
10.8 Defence tips¶
- Disable WPS on your home and office routers immediately
- Use WPA3 if supported by all your devices and router
- Never use public Wi-Fi without a VPN — always
- Turn Bluetooth off when not in active use
- Regularly check which devices are connected to your Wi-Fi network and remove unknown ones
- Use RFID-blocking wallets for contactless access cards and payment cards
10.9 Summary¶
- Wireless signals can be heard by anyone in range, so attackers need no physical access.
- Evil twin hotspots intercept traffic; WPS PIN attacks reduce 100 million combinations to 11,000; handshake capture allows offline cracking; deauthentication knocks clients off.
- Bluetooth attacks include BlueSnarfing, BlueJacking and BlueBorne; RFID and NFC cards can be cloned with cheap hardware.
- Defences: disable WPS, use WPA3 (SAE and protected management frames), use a VPN, turn Bluetooth off when unused and upgrade to cryptographically secure cards.
10.10 Exercises¶
-
A WPS PIN has 8 digits, but the last is a checksum. The router confirms the first four digits and the next three separately. How many guesses are needed in the worst case, compared with \(10^8\)?
Answer
The first part has \(10^4=10{,}000\) possibilities and the second has \(10^3=1{,}000\), so at most \(11{,}000\) guesses instead of 100 million, about 9,000 times fewer.
-
How does WPA3 help against handshake cracking and deauthentication?
Answer
WPA3 uses SAE (Simultaneous Authentication of Equals), which resists offline dictionary attacks against a captured handshake. It also implements Protected Management Frames, which authenticate deauthentication frames and make spoofed ones ineffective.
-
You are asked to join "Heathrow Airport Free WiFi". How might it be an evil twin, and what should you do?
Answer
An attacker can create a hotspot with the same name, and devices that connect automatically or by choice send all their traffic through the attacker. Confirm the network name with airport staff, avoid sensitive logins on public Wi-Fi, and always use a VPN.
-
Why is cloning an RFID access badge so easy, and what is the remedy?
Answer
Older cards respond to any reader with a fixed identifier that cheap hardware can read and copy from a short distance. Remedies: RFID-blocking sleeves for the cards, and for organisations an upgrade to cryptographically secure card systems.
-
Name three good practices for Bluetooth.
Answer
Turn Bluetooth off when you are not using it, apply security patches promptly (BlueBorne needed no pairing and no user action), and do not accept unexpected pairing requests.