WPS, short for Wi-Fi Protected Setup, is a network provisioning standard from the Wi-Fi Alliance that lets a device join a WPA2-protected Wi-Fi network without the user typing the passphrase. Instead, the user presses a button, enters a short PIN or taps an NFC tag, and the access point delivers the network credentials automatically over an encrypted exchange.
Introduced in 2007 to make home wireless security easier to adopt, WPS became standard on consumer routers, printers and media devices. Its PIN method was later shown to be fundamentally weak, so current security guidance treats WPS as a convenience feature with real risk that should be disabled on most networks.
How WPS delivers Wi-Fi credentials
WPS works by running a registration protocol between two roles: the enrollee, which is the device that wants to join, and the registrar, which holds the network credentials. The registrar is usually built into the access point, although an external registrar such as a smartphone app can also take this role.
The exchange runs as EAP-WSC messages carried over EAPOL before the device has any network access. It consists of eight messages, M1 to M8, which perform a Diffie-Hellman key exchange, authenticate both sides with the shared PIN or button session, and finally transfer an encrypted configuration containing the SSID, security mode and passphrase.
Once the enrollee receives these settings, the WPS session ends and the device reconnects normally using WPA2-Personal. WPS therefore does not replace Wi-Fi security; it only automates the distribution of the key. Everything that follows depends on the strength of the passphrase that WPS handed over.
WPS configuration methods
The specification defines several ways to start registration, each with a different balance between convenience and exposure. The table summarizes the methods that appeared in real products.
| Method | How the user starts it | Security exposure |
|---|---|---|
| Push-button configuration | Press a button on router and device | Open window of about two minutes |
| PIN on the enrollee | Type the device PIN into the router | Moderate, depends on PIN handling |
| PIN on the access point | Type the router label PIN into the device | High, vulnerable to brute force |
| Near field communication | Tap the device against an NFC tag | Low, requires physical proximity |
| USB flash drive | Copy settings via removable media | Deprecated in later versions |
Push-button configuration (PBC) opens a walk time of 120 seconds during which any enrollee pressing its own button can register. To reduce the risk of the wrong device joining, the standard includes session overlap detection: if two devices try PBC at the same time, the registrar aborts the attempt.
The PIN brute-force weakness
The external registrar PIN attack, published in 2011, exposed a design flaw rather than an implementation bug. The eight-digit PIN looks like it offers 100 million combinations, yet the protocol confirms each half of the PIN separately, and the last digit is only a checksum.
| PIN property | Apparent strength | Actual strength |
|---|---|---|
| First half, four digits | Part of 10^8 combinations | 10,000 guesses, verified in M4 to M5 |
| Second half, three digits | Part of 10^8 combinations | 1,000 guesses, verified in M6 to M7 |
| Final checksum digit | One more random digit | Computed, adds no entropy |
| Total worst case | 100,000,000 attempts | About 11,000 attempts |
With roughly 11,000 attempts at most, an attacker within radio range could recover the PIN in hours, then obtain the passphrase directly. Because the PIN is often printed on the router and fixed, changing the Wi-Fi password does not help: the attacker simply runs WPS again.
A second technique, the Pixie Dust attack from 2014, exploits weak random number generation in some chipsets. It recovers the PIN offline from a single exchange, which bypasses rate limiting and lockout entirely on affected hardware.
WPS compared with newer onboarding methods
WPS belongs to the WPA2 generation, and the WPA3 certification program does not use it. The Wi-Fi Alliance instead promotes Wi-Fi Easy Connect, based on the Device Provisioning Protocol, which uses public-key cryptography and QR codes.
| Method | Authentication basis | Main limitation |
|---|---|---|
| WPS PIN | Eight-digit shared PIN | Brute force and offline attacks |
| WPS push button | Short time window | Any nearby device may join |
| Manual passphrase entry | Pre-shared key typed by the user | Inconvenient on devices without keyboards |
| Wi-Fi Easy Connect | Public keys exchanged via QR code or NFC | Limited support on older devices |
| Enterprise 802.1X | Per-user credentials or certificates | Requires a RADIUS server |
The comparison shows why WPS persisted: for headless devices such as printers and streaming boxes, typing a long passphrase is impractical. Easy Connect addresses the same problem with far stronger cryptographic assurance, but adoption remains uneven.
Practical recommendations and common mistakes
The safest default is to disable WPS entirely in the router administration interface, then confirm the result with a wireless scanner, because some firmware has been found to keep WPS active even when the menu shows it as off.
- Disable the access point PIN method first; it carries the greatest risk.
- Prefer push-button mode if WPS must stay enabled, and use it only when adding a device.
- Verify lockout behavior after failed PIN attempts; WPS 2.0 made rate limiting mandatory.
- Never rely on WPS in offices or shared buildings, where attackers can remain in range for hours.
- Plan migration to WPA3 and Wi-Fi Easy Connect when replacing equipment.
A frequent misconception is that a strong passphrase protects a network with WPS enabled. It does not, because a successful WPS attack reveals the passphrase itself, whatever its length.
A non-technical view
Joining a Wi-Fi network normally means typing a long password. WPS was invented as a shortcut: press a button on the router and a button on the new device, and the router passes the password over by itself.
The idea is like a doorman who lets in anyone holding a short code. The problem is that the code proved easy to guess, so a stranger outside could learn it and then receive the real password. That is why experts usually advise switching WPS off and typing the password once instead.
A concrete example
A small accounting office uses a consumer router with WPS PIN enabled by default. During a security assessment, a tester sitting in the parking lot runs a WPS attack tool against the access point. The router has no effective lockout, and the PIN is recovered in under five hours, followed immediately by the 20-character WPA2 passphrase.
The tester reports that the strong password gave no protection. The office disables WPS, verifies with a scan that the access point no longer advertises it, changes the passphrase and schedules a router replacement with WPA3 support. A retest the following week finds no WPS exposure.