Deauthentication Attacks, Explained
If you are reading this, you have probably seen "deauth attack" in Wi-Fi security courses and tool lists, and you want to know what the attack does, why a stranger can kick a device off a network they are not even on, and how modern Wi-Fi fixes it.
By the end you will be able to explain what deauthentication is, why forging it was easy, list the real uses (denial of service, handshake capture, evil twins), know the legal risk, tell what protected management frames fix and what they do not, and describe how defenders detect it. It builds on Spoofing, Evil Twin and the Wi-Fi section of Handshakes.
1. Wi-Fi in two kinds of frames
Wi-Fi (IEEE 802.11) sends its traffic in frames. Besides frames that carry your data, there are management frames that run the network itself: announcing the network, joining, leaving. The Wireshark project explains that management frames "are used by peer WLAN controllers to maintain a WLAN network" and that most drivers hide them from normal packet captures; you need monitor mode to see them.
Two of these management frames matter here:
| Frame | Normal meaning |
|---|---|
| Deauthentication | "You are no longer authenticated with this access point. Disconnect." It is sent by an access point to a device, or by a device to an access point |
| Disassociation | "You are no longer associated." A similar, slightly weaker, termination |
These have legitimate uses. For example, an access point sends one when it gets frames from a station that has not authenticated. Cisco Meraki's packet-capture guide lists such cases, including rogue access point containment, a feature in some wireless security products (the FCC case in section 5 involved exactly that).
2. What a deauthentication attack is
A deauthentication (deauth) attack is when an attacker sends forged deauthentication or disassociation frames that look as if they come from the access point (or from the client), so the target device disconnects.
The aircrack-ng documentation, which is the standard reference for the tools used, describes the attack in plain terms: it "sends disassociate packets to one or more clients which are currently associated with a particular access point", and for a targeted attack it sends 64 packets to the access point and 64 to the client for each deauthentication requested.
The attacker does not need the Wi-Fi password, does not need to join the network, and does not break any encryption. They only need to be within radio range and able to transmit frames.
Why it works
Before protected management frames, management frames were sent unencrypted and unauthenticated. Wikipedia's article on IEEE 802.11w states that the standard protects deauthentication, disassociation and certain action frames; before that standard, a receiver had no way to tell whether such a frame was genuine. A device that receives a deauth frame that appears to come from its access point simply obeys it, because the 802.11 design assumes only the access point would send such a frame.
It is the same weakness as in Spoofing: a protocol that believes the sender address it is given.
3. What attackers use it for
| Purpose | How deauth helps | Source |
|---|---|---|
| Denial of service | Repeated deauth frames keep a device (or everyone on the network) from staying connected | NIST SP 800-153 lists DoS as a Wi-Fi attack class, and notes that "a large number of events involving the termination of WLAN sessions can indicate a DoS attack" |
| Capturing the WPA/WPA2 handshake | Forcing a client to reconnect makes it perform the four-way handshake again while the attacker listens. A recorded handshake lets an attacker guess the passphrase offline (see Handshakes) | Aircrack-ng: "Capturing WPA/WPA2 handshakes by forcing clients to reauthenticate" |
| Recovering a hidden network name | A client reconnecting reveals the name that is otherwise not broadcast | Aircrack-ng: "recovering hidden ESSIDs" |
| Pushing devices toward a fake access point | Disconnect clients from the real network so they rejoin whichever access point is strongest. Wikipedia notes attackers may deny service to the legitimate access point to push clients to the fake one | Evil Twin |
| Generating traffic for older attacks | The same documentation mentions generating ARP requests, which matters for the obsolete WEP protocol | Aircrack-ng |
A deauth attack does not decrypt anything by itself. It is a door-opener for other attacks. What follows depends on the network's other protections.
What the attacker does not get from deauth alone
- The Wi-Fi password. A captured handshake still has to be attacked by guessing, and the aircrack-ng documentation is blunt that only plain brute-force techniques work against WPA/WPA2, so the passphrase must be in the word list being tried.
- The contents of your traffic. That is protected by the encryption, and by HTTPS on top.
4. How the fix works: protected management frames (802.11w)
IEEE 802.11w adds protected management frames (PMF). Wikipedia's summary: it protects certain management frames after the encryption keys have been established, namely disassociation and deauthentication frames, and several action frames. Replay protection uses counters already in 802.11 encryption.
The Wi-Fi Alliance says PMF "extends security protections to unicast (protection from eavesdropping and forging) and multicast (protection from forging) management action frames", that PMF is required for all new certified devices, and that WPA3 networks require PMF. WPA3 itself is mandatory for Wi-Fi CERTIFIED devices.
In practice: a client and access point that use PMF discard a deauth frame that does not carry the right cryptographic protection, so a forged one does nothing.
What PMF does not cover
| Limit | Explanation |
|---|---|
| Frames sent before keys exist | Wikipedia lists beacons, probe requests and responses, and authentication and association frames as unprotected, because they must be readable before keys are established |
| Devices or networks without PMF | Older devices, and networks configured not to use it, remain open to forged frames. WPA3 requires it, WPA2 networks may or may not use it |
| Radio interference (jamming) | PMF concerns forged frames. Deliberately blocking the radio channel is a different, and illegal, activity (the FCC advisory below notes that federal law prohibits operating, marketing or selling jamming equipment) |
| Mixed environments | A network that accepts both protected and unprotected clients protects only the clients that use PMF |
5. The law: the Marriott case
Because deauthentication feels like a software trick, people assume it is harmless. The FCC has shown otherwise.
On 3 October 2014 the FCC announced that Marriott International and its subsidiary would pay $600,000 to resolve an investigation into the Gaylord Opryland Hotel and Convention Center in Nashville. The FCC Enforcement Bureau found that Marriott employees had used the containment features of a Wi-Fi monitoring system to "contain and/or de-authenticate guest-created Wi-Fi hotspot access points in the conference facilities". In some cases, employees "sent de-authentication packets to the targeted access points, which would dissociate consumers' devices from their own Wi-Fi hotspot access points". At the same time Marriott charged exhibitors and attendees from $250 to $1,000 per device for its own Wi-Fi service. The FCC said this violated Section 333 of the Communications Act, which prohibits willful or malicious interference. Marriott agreed to a three-year compliance plan.
In January 2015 the FCC's Enforcement Bureau issued an advisory titled "WARNING: Wi-Fi Blocking is Prohibited". It says "willful or malicious interference with Wi-Fi hot spots is illegal", that no hotel, convention center or other commercial establishment, or network operator, may "intentionally block or disrupt personal Wi-Fi hot spots on such premises", and that it had seen "a disturbing trend" of such blocking. It also notes that Marriott admitted the customers it blocked "did not pose a security threat to the Marriott network."
Takeaways:
- Using deauthentication against other people's devices can be illegal even when you are the venue operator. This case concerned the United States. Laws differ elsewhere, but unauthorised interference with others' networks is unlawful in many places.
- Only test on your own equipment in a controlled lab, with your own router and your own devices.
- A security feature (containment) became an offence when used to block ordinary users.
6. Detecting deauth attacks
| Signal | Where |
|---|---|
| A burst of deauthentication or disassociation frames for one client, one access point or the whole network | Wireless intrusion detection (WIDS/WIPS) and packet captures |
| Many sessions terminating in a short time, with clients immediately re-joining | NIST SP 800-153 says this pattern can indicate a DoS attack |
| Repeated reconnect and handshake events | Controller logs. A burst of handshakes can mean someone is capturing them |
| Frames sent from outside the building, or from addresses that are not your access points | WIDS can detect spoofed identities |
| Devices dropping off together with no loss of signal strength | Users' reports |
Seeing the frames yourself, safely
On a network you own, with an adapter and driver that support monitor mode (the Wireshark wiki notes support varies by operating system, adapter and driver, and is very limited on Windows), you can capture frames and filter them in Wireshark:
| Filter | Shows |
|---|---|
wlan.fc.type_subtype == 0x0c |
Deauthentication frames |
wlan.fc.type_subtype == 0x0a |
Disassociation frames |
(These filters are given in Cisco Meraki's documentation on analysing wireless captures.) Seeing a lot of these frames from a normal network is itself unusual. Legitimate ones appear occasionally, for example when a device leaves.
NIST SP 800-153 recommends that organizations with wireless networks run continuous monitoring that detects, among other things, DoS attacks and conditions, unauthorized devices including rogue access points, and impersonation and man-in-the-middle attacks, and that they can locate a detected threat physically by triangulation.
7. Defences
Personal and small office
| Do this | Why |
|---|---|
| Use WPA3 where available | It requires PMF |
| Turn on PMF ("management frame protection") on WPA2 routers that offer it | Protects deauth and disassociation frames for devices that support it |
| Use a long, random passphrase | Even if someone captures a handshake after a forced reconnect, a strong passphrase makes guessing impractical (see Handshakes) |
| Keep router firmware and device Wi-Fi drivers updated | PMF support depends on them |
| Use HTTPS and a VPN on untrusted networks | A deauth that pushes you onto a fake network still cannot read protected traffic (Evil Twin) |
| Be suspicious of repeated disconnects followed by a login page | A common pattern for an evil twin |
Organizations
| Do this | Source |
|---|---|
| Require PMF on WPA3 and, where possible, on WPA2 networks | Wi-Fi Alliance, IEEE 802.11w |
| Deploy WIDS/WIPS and review its alerts | NIST SP 800-153 |
| Prefer 802.1X (Enterprise) with certificate validation | Raises the cost of impersonating your network (see Evil Twin) |
| Do not use deauthentication to block people's own devices | FCC Enforcement Advisory 2015-01 (US) |
| Review the "containment" settings of any wireless monitoring product | The Marriott case turned on such a feature |
| Run regular wireless assessments | NIST: at least annually, quarterly if monitoring is incomplete |
8. Common mistakes
| Myth | The facts |
|---|---|
| "A deauth attack steals the Wi-Fi password" | It does not. It disconnects devices. Passphrase recovery needs a captured handshake and guessing |
| "You must be on the network to do it" | No. Anyone within radio range can transmit forged frames |
| "Hiding the SSID protects me" | A reconnecting client reveals the hidden name (aircrack-ng lists this as a use) |
| "WPA2 is immune" | WPA2 does not require PMF. Whether it is on depends on the devices and settings |
| "WPA3 makes Wi-Fi immune to disruption" | PMF protects deauth and disassociation frames, not the early, unprotected frames or the radio channel |
| "Blocking people's hotspots is a fair security measure" | In the US, the FCC treats it as illegal interference, and fined Marriott $600,000 |
| "It is harmless to test on the café's Wi-Fi" | It is interference with other people's service and can break the law |
| "Detecting it is impossible" | Bursts of deauth frames and sudden mass disconnects are detectable with WIDS or a monitor-mode capture |
Closing
A deauthentication attack disconnects Wi-Fi devices by forging management frames that older Wi-Fi never authenticated. It needs no password and no access to the network, only radio range. It is mostly a door-opener: for denial of service, for capturing the handshake so that a weak passphrase can be guessed, and for pushing devices toward an evil twin. Protected management frames (802.11w), required by WPA3, fix the forging problem for the frames they cover. Use WPA3, turn on PMF, use strong passphrases, monitor for bursts of deauth frames, and never use deauthentication against devices that are not yours, because the FCC fined Marriott $600,000 for doing so.
Keep these points:
- Deauth = forged "you are disconnected" frames. No password or network access needed.
- Uses: denial of service, handshake capture, hidden-name discovery, pushing clients toward an evil twin.
- It disconnects; it does not decrypt.
- PMF (802.11w) protects deauth and disassociation frames after keys exist. WPA3 requires it.
- PMF does not protect early frames or stop radio jamming.
- Detect bursts of deauth frames and mass session terminations with WIDS.
- It can be illegal (FCC, Section 333). Test only on your own equipment.