LRW

Writing

A passive WiFi survey from a hospital bed

Six and a half minutes of passive capture from a hospital bed: 154 access points, 23 SSIDs, 222 Bluetooth addresses, and one open SSID paired with an encrypted one on the same five radios.

5 min readCopy Markdown
  • wireless
  • security
  • measurement
  • privacy

I was in a hospital bed with a laptop and nothing to do, so I ran nightrider and left it for six minutes. It recorded 154 access points, 23 SSIDs and 222 Bluetooth addresses. I did not join a network, request an address, or send a frame.

Most of that is inventory. One item was not: five access points broadcast an open SSID alongside an encrypted SSID with the same name.

The scan

A full scan needs CAP_NET_ADMIN:

$ iw dev wlan0 scan
command failed: Operation not permitted (-1)

The cached form does not:

$ iw dev wlan0 scan dump | grep -c '^BSS'
61

scan dump reads the kernel BSS list, which NetworkManager keeps warm with its own scans. It works as an ordinary user, and it reports real per-AP dBm rather than the 0 to 100 integer nmcli exposes.

The cache expires unevenly. In one case it collapsed to a single entry while still being non-empty, and the tool accepted any non-empty result as a successful scan. The code path that refreshes it never ran. Measured on the same radio, seconds apart:

pathaccess points
first non-empty dump62
after a forced rescan104

The fix asks NetworkManager for a sweep, then polls until the count holds across two samples:

$ nmcli dev wifi rescan ifname wlan0
$ sleep 4
$ iw dev wlan0 scan dump | grep -c '^BSS'
104

Four seconds of waiting turned a 40% shortfall into a complete scan. On a walk that sets the sampling interval, the same four seconds set the distance between samples.

What came back

The session file is ~/.wardriver/scans/session_20261117_134859.csv: 6 minutes 32 seconds, one radio, no movement.

measurecount
BSSIDs154
SSIDs23
WiFi rows863
Bluetooth addresses222
rows per BSSID5.6
Cisco138 of 154

138 of the 154 radios were Cisco, which is what an enterprise deployment looks like from inside it. Four were Ubiquiti, one Netgear, and the rest a mix of consumer and embedded vendors.

Seventy-seven BSSIDs were seen on 2.4 GHz channels, 86 on 5 GHz, and nine on both. The nine are an artefact of the output, not a radio: a single MAC was logged under two SSIDs on two different channels, and one radio cannot be on two channels at once. The 2.4 GHz side used channels 1 and 6, plus one access point on 9. The 5 GHz side used ten channels, including DFS.

The open SSID

Five rows, AP 1 to AP 5. Each pairs a WPA2 SSID with an open SSID on the same channel, offset minus four or plus four addresses in the last BSSID byte. Channels are 100, 1, 100, 6 and 52. A note reads: open beacon capability 0x1501, no RSN, no WPA, no WPS.
Five access points, each advertising an encrypted SSID and an open variant. The open BSSID sits four addresses from its encrypted pair in the same allocation block, on the same channel. Source: iw dev wlan0 scan dump.

Five access points broadcast two SSIDs each. One is WPA2. The other is the same name with a suffix, and it is open. The BSSIDs are allocated in adjacent pairs, four apart:

AP 1:  ...:4C  WPA2     ...:48  open
AP 2:  ...:A3  WPA2     ...:A7  open
AP 3:  ...:6C  WPA2     ...:68  open
AP 4:  ...:A3  WPA2     ...:A7  open
AP 5:  ...:AC  WPA2     ...:A8  open

The beacon capability field for the open SSID reads 0x1501:

capability: ESS SpectrumMgmt ShortSlotTime RadioMeasure (0x1501)

The Privacy bit is clear. There is no RSN information element, no WPA element, and no WPS. At the link layer the network is unauthenticated and unencrypted. The open BSSIDs sit on channels 1, 6, 52 and 100 with a signal of -92 to -81 dBm.

The pairing is what makes it deliberate rather than a rogue access point. An access point someone plugged in would not share a provisioning block and a channel plan with the encrypted SSID of the same name. This is a parallel SSID, configured on purpose, most likely because the equipment behind it cannot do 802.1X.

What a beacon cannot tell you is whether that matters. Whether the SSID sits in an isolated device VLAN, whether network access control or MAC filtering applies, and which devices are attached are all invisible from outside.

Joining the network would not have answered any of it. It would have produced a DHCP lease and maybe a gateway address, and nothing about VLAN boundaries. It would also have been unauthorised access under Part 10.7 of the Criminal Code, on a hospital network. I left it alone.

Bluetooth

222 addresses in six minutes, from devices that were mostly not trying to be found:

address typecount
non-resolvable private96
resolvable private76
static random45
public IEEE5

172 of the 222 rotate. Resolvable private addresses change every fifteen minutes or so. Non-resolvable ones change on every advertisement. Static random ones are randomised once and kept across reboots, and public addresses are burned in at the factory.

This is the address behaviour in the Bluetooth Core Specification, Volume 6, Part B, Section 1.3, and it has not changed. A sweep counts addresses, not devices. The same speaker appears as fifty different devices across an afternoon, and the five public addresses are the only ones that persist.

What survives is the payload, and even that is thin: the local name of a dashcam, a helmet intercom, a portable speaker. Useful for a site survey. Useless for counting.

The file

863 rows for 154 access points is a factor of 5.6. The rows are deduplicated per MAC at roughly one metre, and a stationary GPS fix jitters by more than that between samples, so the same access point reappears at a slightly different position.

That matters before an upload. WiGLE takes a CSV with one preamble line, a fixed column set, and one row per observation:

WigleWifi-1.4,appRelease=...,model=...,release=...,device=...,display=...,board=...,brand=
MAC,SSID,AuthMode,FirstSeen,Channel,RSSI,CurrentLatitude,CurrentLongitude,AltitudeMeters,AccuracyMeters,Type

Two rules keep the file honest. Drop rows with no fix rather than writing 0,0, which puts a network in the Gulf of Guinea. Flush and fsync after each batch, because a session that dies at the end of a walk should not lose the walk.

Scope

This is one location, one radio, six minutes, and a laptop in a bed. It is enough to inventory the estate and to spot a provisioning decision that was made deliberately. It is not enough to say whether that decision is safe.

The difference between a moderate finding and a serious one is one configuration question, and only the operator can answer it.