WPS

Also known as: Wi-Fi Protected Setup

On this page 7

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.

MethodHow the user starts itSecurity exposure
Push-button configurationPress a button on router and deviceOpen window of about two minutes
PIN on the enrolleeType the device PIN into the routerModerate, depends on PIN handling
PIN on the access pointType the router label PIN into the deviceHigh, vulnerable to brute force
Near field communicationTap the device against an NFC tagLow, requires physical proximity
USB flash driveCopy settings via removable mediaDeprecated in later versions
WPS registration methods and their characteristics

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 propertyApparent strengthActual strength
First half, four digitsPart of 10^8 combinations10,000 guesses, verified in M4 to M5
Second half, three digitsPart of 10^8 combinations1,000 guesses, verified in M6 to M7
Final checksum digitOne more random digitComputed, adds no entropy
Total worst case100,000,000 attemptsAbout 11,000 attempts
Why the WPS PIN offers far less protection than it appears

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.

MethodAuthentication basisMain limitation
WPS PINEight-digit shared PINBrute force and offline attacks
WPS push buttonShort time windowAny nearby device may join
Manual passphrase entryPre-shared key typed by the userInconvenient on devices without keyboards
Wi-Fi Easy ConnectPublic keys exchanged via QR code or NFCLimited support on older devices
Enterprise 802.1XPer-user credentials or certificatesRequires a RADIUS server
WPS and its alternatives for device onboarding

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.