Wi-Fi WPABasic Wireless Pentest Checklist
- If WPS is enabled try to brute-force the PIN
- WPS PIN cannot be changed
Airodump-ng
airodump-ng <interface> --wps
Reaver
https://github.com/t6x/reaver-wps-fork-t6x
- Wash is a tool included in the reaver suite.
- The output will show WPS if it is in use
wash -i <interface>
-
If WPS is set to 2 it means WPS is not locked.
-
An AP with a locked WPS state cannot be attacked
-
Reaver can be used to brute-force the PIN
iw dev <interface> interface add mon0 type monitor
ifconfig mon0 up
reaver -i mon0 -c <channel> -b <BSSID MAC address>
Pixie Dust attack
- Targets Wi-Fi AP that use WPS with a weak or poorly implemented random nonce or predictable PIN generation.
- Instead of brute-forcing the 9-digit PIN, the WPS PIN is computed offline from caputured EAP messages.
Airgeddon
https://github.com/v1s1t0r1sh3r3/airgeddon
- Select the Wi-Fi card
- Put the Wi-Fi card into monitor mode
- Select WPS attacks menu
- Select Explore for targets
- Choose the network from the range
- Select Pixie Dust attack from the menu
- Set the timeout period
- Launch the attack
- Watch the next screen which will say PIN FOUND if successful
- Go back to the WPS attacks screen and select the (reaver) Custom PIN association item
- Enter the PIN
- Set the timeout period
- Another menu will open and will show the PSK if successful
Mitigations
- Disable WPS on the AP
- Ensure the firmware is up to date to patch against pixie dust flaws
- Use WPA2/WPA3 enterprise
- Monitor and alert based on WPS session attempts
Detections
- Look for WPS enrollment attempts
- Look for frequent EAP/WPS sessions
- Use Wireless IDS signatures for WPS attacks