Skip to main content

Grader: reading every nearby AP's security off its beacon

Updated 6 min readMarkdown
Part of seriesProjects
Grader: reading every nearby AP's security off its beacon

A payload for the Hak5 WiFi Pineapple Pager that listens to the air, parses the security information every access point broadcasts in its beacon, and grades each one in plain words — from TOUGH to OPEN. Nothing is transmitted. It's passive recon that grades the lock before you ever touch the door.

The problem

Walk into a room full of Wi-Fi and the question is always the same: which network is the soft target? WPA3 with management-frame protection and no WPS is a wall. WPA2 with WPS left unlocked is a Pixie-Dust away from falling over. Open and WEP are barely locked at all. You can work that out AP by AP with airodump and a trained eye — or you can have the Pager do it, in plain words, ranked worst-first, without sending a single packet.

Every AP answers the question itself, several times a second, in its beacon. Grader just has to listen and read.

Passive by construction

Grader captures beacons and probe responses and parses their information elements — the tagged fields that carry the RSN (WPA2/3), WPA1, WPS and RSNX capabilities. No deauth, no association, no probes: the radio only listens. That keeps the engagement footprint at zero and keeps the payload honest about what it is.

The parse is done entirely in busybox awk, from raw hex frames. For each beacon it pulls:

  • the RSN IE (tag 48): the AKM suites (PSK, SAE, FT-PSK, OWE, 802.1X), the pairwise cipher (CCMP, TKIP, GCMP), and the RSN capabilities bits that say whether management-frame protection is required, optional, or off;
  • the WPS vendor IE: whether WPS is present and, crucially, whether it's locked, plus the make / model / device name WPS cheerfully broadcasts in clear;
  • WPA1 and RSNX markers, and the privacy bit in the capability field for the open/WEP case.

The grade

The AKM, cipher, PMF and WPS state collapse into one word — the worst-sounding word is the worst posture:

grade what the beacon said
TOUGH WPA3-SAE, PMF required, no WPS — nothing practical
SOLID WPA3/WPA2 transition or enterprise, PMF required — needs an active attack
FAIR WPA2-PSK, PMF required, no WPS
WEAK WPA2-PSK with no PMF, or TKIP — deauth + capture is easy
FLIMSY WPS enabled and unlocked — Pixie-Dust / PIN can pop it
OPEN open or WEP — no real protection

Three flags ride alongside: TRANS for a WPA2/WPA3 transition network (downgradable), RSNX when the RSNX IE is present, and HASH — the one thing Grader borrows from its sibling.

The handshake it borrows from Crack Triage

Grader grades the lock on the door. Crack Triage knows which doors you already hold a key to. If Crack Triage's triage.tsv is on the device, Grader joins it by BSSID and flags the APs you already have a crackable handshake for with HASH — and floats them to the top of the list. A FAIR network you already captured is more actionable than a WEAK one you haven't, so the join only ever pushes a grade upward. The two payloads are independent; Grader runs fine on its own.

The bug that only appeared on hardware

The engine passed every synthetic test and produced correct grades on the device's own awk. Then I actually ran it near real APs and the screen filled with question marks: every SSID was ?, and the "BSSID" of one open network read 4c4c592e5445. Decode that as ASCII and it's LLY.TE — that's not a MAC address, it's the middle of an SSID string. The whole frame was shifted.

The cause was one flag. I was capturing with:

tcpdump -i wlan1mon -s 512 -x -nn 'type mgt and (subtype beacon or subtype probe-resp)'

On a monitor interface, tcpdump -x prints the packet minus the entire link-layer header — which throws away the radiotap header and the 24-byte 802.11 MAC header, where the BSSID lives. Each line of hex started at the beacon body (the timestamp), with no BSSID in it at all. My parser was reading body bytes as the BSSID and running off the end looking for the SSID.

The fix is -xx, which keeps the link-layer header. With it, the frame is whole: the radiotap length (0x11 = 17 bytes) comes first, the beacon's frame-control byte 0x80 sits at offset 17, the BSSID (addr3) lands at offset 33, and the body begins at 41 — all exactly where the parser's radiotap-skip logic expects. One x, and garbage became FRITZ!Box 7430 UT, Wu-Tang Wlan 5GHz, Free Public WiFi.

That is the kind of bug you simply cannot find off-device. Synthetic frames are built the way your parser expects; only a real radio tells you what tcpdump actually hands you.

A smaller one: 5 GHz channels

With real data in, two 5 GHz APs showed a blank channel. On 2.4 GHz the channel lives in the DS Parameter Set IE (tag 3); plenty of 5 GHz APs omit it and put the primary channel in the HT Operation IE (tag 61) instead. A three-line fallback — if tag 3 is absent, take the first byte of tag 61 — and REDACTED and REDACTED snapped to channel 44. Always good to have all the info.

The screen

Grader draws on the same shared scaffold as Crack Triage, in a warm amber instead of cyan so you know which bench you're at. The grades are a traffic light — green TOUGH through red OPEN — so the list reads at a glance: a LIST of every AP worst-first (grade, SSID, AKM, PMF, WPS, channel), a detail page with the full crypto breakdown, the WPS device info, and a plain-language why this grade / what to do, and a KEY legend. The output on disk is grades.tsv plus the raw frames.hex, so a capture can be re-graded offline without the radio.

Status

Firmware 2.1.0, verified on hardware: a live -xx capture on wlan1mon parses real beacons to the correct BSSID, SSID and grade on both bands, and the screen renders on the panel. Off-device tests run the parser against synthetic beacons, including a radiotap-wrapped one.

Authorized use only: your own networks, or an engagement where recon is in scope.

*Code: payloads/reconnaissance/grader.

About the author

  • 30 years in creative leadership (in the ad industry as a Creative Director) taught me one core skill: dissecting complex systems and finding the flaw before someone else does. My tech roots run back to 8-bit machine code on a C64 (yeah – 80s, baby!) Today, I’m combining that legacy hacker curiosity with modern threat detection and offensive security. BATTLE-TESTED LOGIC: Decades of high-pressure problem solving and systems analysis. HACKER MINDSET: I don't just follow playbooks; I reverse-engineer how the attack path actually works. CONTINOUS SKILL-UP: CompTIA Security+ certified (among other certs), building home labs, and constantly training for L1 ops to future Pentesting.

No comments yet. Be the first to comment.