Don't count AP-less captures' rogue addresses as access points #162

Merged
aluminum-ice merged 1 commit from rogue-not-an-ap into main 2026-11-03 05:49:57 +00:00
Owner

What this PR does

Stops counting an AP-less capture's rogue address as an access point. Builds on #161; merge that first (until then this diff includes #161's commit).

AngryOxide files every AP-less handshake (a phone answering it for a network the phone remembers) under one random rogue address per capture run. That address isn't an access point, but it was counted and drawn as one: in the "access points" totals (dashboard, Captured networks page, e-ink AP counter), in each network's access-point count, and, when the gps plugin tagged it, as a location for every name it collected and a marker on the map.

  • CaptureInterface: apless_addresses() gives the addresses that hold only AP-less handshakes, from the existing cached parse. capture_counts()'s access_points and each network's bssids in captured_networks() leave them out; captured_access_points() marks their entries apless; ap_bssids() skips AP-less handshakes. Handshake totals are unchanged.
  • Captured networks page: a rogue address keeps its row in the by-AP view, marked Not an access point: phones that answered the capture tool for networks they remember, with the mobile card label "rogue address". It doesn't count in "N access point(s) captured" and never shows a location, in either view.
  • Dashboard: "located N of M" leaves rogue addresses out, like "recovered N of M" after #161.
  • Map: a rogue address isn't drawn. Its tagged location is where the device was, not where any network is.
  • Docs: the operator guide (GUIDE_MD), Working with your captures, and the plugin developer guide (captured_access_points()'s apless, apless_addresses()).

This is thanks to a community member who sent in a patch for the recovered-passphrase problem following CONTRIBUTING.md; reviewing it turned up these related counts.

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: 1671 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 and placeholder names only.
  • Consent gates intact. Display only; capture, the acknowledgment and the whitelist are unchanged.
  • Docs updated in the same PR.
  • Commit messages are short and imperative.

Release impact

  • App-layer-safe — the kestrel_pi package and plugins/map.py only.
  • Reflash-class

Notes for review

  • New tests: a store with a rogue address and a real AP (counts, rows, per-network counts, ap_bssids()), the by-AP row's label and headline count, no location for a rogue address in either view, the dashboard total, and no map marker.
  • The learning agent's per-window coverage signal (agent/env.py, _distinct_bssids) also counts a rogue address as a distinct AP. It's left alone here: changing it changes the training signal, so it needs its own decision.
  • For 1.0.13-beta.3, with #161.

🤖 Generated with Claude Code

## What this PR does Stops counting an AP-less capture's rogue address as an access point. **Builds on #161; merge that first** (until then this diff includes #161's commit). AngryOxide files every AP-less handshake (a phone answering it for a network the phone remembers) under one random rogue address per capture run. That address isn't an access point, but it was counted and drawn as one: in the "access points" totals (dashboard, Captured networks page, e-ink `AP` counter), in each network's access-point count, and, when the `gps` plugin tagged it, as a location for every name it collected and a marker on the map. - **`CaptureInterface`**: `apless_addresses()` gives the addresses that hold only AP-less handshakes, from the existing cached parse. `capture_counts()`'s `access_points` and each network's `bssids` in `captured_networks()` leave them out; `captured_access_points()` marks their entries `apless`; `ap_bssids()` skips AP-less handshakes. Handshake totals are unchanged. - **Captured networks page**: a rogue address keeps its row in the by-AP view, marked *Not an access point: phones that answered the capture tool for networks they remember*, with the mobile card label "rogue address". It doesn't count in "N access point(s) captured" and never shows a location, in either view. - **Dashboard**: "located N of M" leaves rogue addresses out, like "recovered N of M" after #161. - **Map**: a rogue address isn't drawn. Its tagged location is where the device was, not where any network is. - **Docs**: the operator guide (`GUIDE_MD`), *Working with your captures*, and the plugin developer guide (`captured_access_points()`'s `apless`, `apless_addresses()`). This is thanks to a community member who sent in a patch for the recovered-passphrase problem following CONTRIBUTING.md; reviewing it turned up these related counts. ## 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`: 1671 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 and placeholder names only. - [x] **Consent gates intact.** Display only; capture, the acknowledgment and the whitelist are unchanged. - [x] **Docs updated in the same PR.** - [x] Commit messages are short and imperative. ## Release impact - [x] **App-layer-safe** — the `kestrel_pi` package and `plugins/map.py` only. - [ ] **Reflash-class** ## Notes for review - New tests: a store with a rogue address and a real AP (counts, rows, per-network counts, `ap_bssids()`), the by-AP row's label and headline count, no location for a rogue address in either view, the dashboard total, and no map marker. - The learning agent's per-window coverage signal (`agent/env.py`, `_distinct_bssids`) also counts a rogue address as a distinct AP. It's left alone here: changing it changes the training signal, so it needs its own decision. - 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>
Don't count AP-less captures' rogue addresses as access points
All checks were successful
Lint / lint (pull_request) Successful in 33s
Test / test (pull_request) Successful in 32s
Lint / lint (push) Successful in 32s
Test / test (push) Successful in 27s
a1bc8563b8
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
aluminum-ice deleted branch rogue-not-an-ap 2026-11-03 05:49:57 +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!162
No description provided.