Skip AP-less handshakes in the wigle plugin #163

Merged
aluminum-ice merged 1 commit from wigle-skip-apless into main 2026-11-03 05:50:16 +00:00
Owner

What this PR does

The wigle plugin no longer records AP-less handshakes. Builds on #161 (it uses the new HandshakeEvent.apless); merge that first. Until then this diff includes #161's commit.

AngryOxide files an AP-less handshake (a phone answering it for a network the phone remembers) under its own random rogue address, with the name the phone asked for. The plugin recorded every handshake with a BSSID as an observation, so with a GPS fix it queued that rogue address and name for upload as if it were an access point at the device's location. Without a fix, with geolocate on, it queued the rogue address for a WiGLE lookup.

  • plugins/wigle.py: _record() returns early for an AP-less handshake, so it is neither uploaded nor looked up. It reads the flag with getattr, so an event without it (an older test double) behaves as before.
  • Docs: WiGLE upload setup ("Modes: what it will and won't upload") and the operator guide (GUIDE_MD) say AP-less captures are skipped.

This is thanks to a community member who sent in a patch for a related problem following CONTRIBUTING.md; reviewing it turned up this one.

Checklist

  • Lint passes — make lint (ansible --syntax-check, yamllint, shellcheck --severity=error, and the real-data check). The Lint workflow runs this on the PR.
  • Tests pass — make test: 1669 passed locally, with the two tests that only fail off a device deselected (test_main_ignores_sighup, test_gps_serial_reader_recovers_from_a_stalled_link). The Test workflow runs it on the PR.
  • Nothing real: no secrets, no personal information, no real data. RFC 7042 MACs, a placeholder name and generic coordinates.
  • Consent gates intact. The plugin still ships disabled behind the acknowledgment; it now sends less.
  • Docs updated in the same PR.
  • Commit messages are short and imperative.

Release impact

  • App-layer-safe — plugins/wigle.py and the kestrel_pi package's guide text only.
  • Reflash-class

Notes for review

  • New test test_wigle_skips_apless_handshakes: an AP-less line is neither recorded nor queued for a lookup, and the same line without the AP-less bit is still recorded.
  • Observations already queued on a device (.wigle-state.json) don't carry the flag, so a rogue address queued before the update still uploads once. Clearing the queue would also drop real observations, so it's left alone.
  • For 1.0.13-beta.3, with #161.

🤖 Generated with Claude Code

## What this PR does The `wigle` plugin no longer records AP-less handshakes. **Builds on #161 (it uses the new `HandshakeEvent.apless`); merge that first.** Until then this diff includes #161's commit. AngryOxide files an AP-less handshake (a phone answering it for a network the phone remembers) under its own random rogue address, with the name the phone asked for. The plugin recorded every handshake with a BSSID as an observation, so with a GPS fix it queued that rogue address and name for upload as if it were an access point at the device's location. Without a fix, with `geolocate` on, it queued the rogue address for a WiGLE lookup. - **`plugins/wigle.py`**: `_record()` returns early for an AP-less handshake, so it is neither uploaded nor looked up. It reads the flag with `getattr`, so an event without it (an older test double) behaves as before. - **Docs**: *WiGLE upload setup* ("Modes: what it will and won't upload") and the operator guide (`GUIDE_MD`) say AP-less captures are skipped. This is thanks to a community member who sent in a patch for a related problem following CONTRIBUTING.md; reviewing it turned up this one. ## Checklist - [x] **Lint passes** — `make lint` (ansible `--syntax-check`, `yamllint`, `shellcheck --severity=error`, and the real-data check). The **Lint** workflow runs this on the PR. - [x] **Tests pass** — `make test`: 1669 passed locally, with the two tests that only fail off a device deselected (`test_main_ignores_sighup`, `test_gps_serial_reader_recovers_from_a_stalled_link`). The **Test** workflow runs it on the PR. - [x] **Nothing real: no secrets, no personal information, no real data.** RFC 7042 MACs, a placeholder name and generic coordinates. - [x] **Consent gates intact.** The plugin still ships disabled behind the acknowledgment; it now sends less. - [x] **Docs updated in the same PR.** - [x] Commit messages are short and imperative. ## Release impact - [x] **App-layer-safe** — `plugins/wigle.py` and the `kestrel_pi` package's guide text only. - [ ] **Reflash-class** ## Notes for review - New test `test_wigle_skips_apless_handshakes`: an AP-less line is neither recorded nor queued for a lookup, and the same line without the AP-less bit is still recorded. - Observations already queued on a device (`.wigle-state.json`) don't carry the flag, so a rogue address queued before the update still uploads once. Clearing the queue would also drop real observations, so it's left alone. - For 1.0.13-beta.3, with #161. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Match recovered passphrases to networks, not addresses
All checks were successful
Test / test (pull_request) Successful in 33s
Lint / lint (pull_request) Successful in 34s
Lint / lint (push) Successful in 33s
Test / test (push) Successful in 32s
ad17791f7d
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Skip AP-less handshakes in the wigle plugin
All checks were successful
Lint / lint (push) Successful in 32s
Test / test (push) Successful in 32s
Lint / lint (pull_request) Successful in 32s
Test / test (pull_request) Successful in 28s
4095031ff3
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
aluminum-ice deleted branch wigle-skip-apless 2026-11-03 05:50:16 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
aluminum-ice/kestrel!163
No description provided.