Keep rogue M2 off with a whitelist on AngryOxide before 0.9.5 #204

Merged
aluminum-ice merged 1 commit from rogue-m2-whitelist-gate into main 2026-11-18 14:23:37 +00:00
Owner

What this PR does

The capture launcher keeps AngryOxide's rogue M2 off (--disable-roguem2) while the whitelist has entries, unless the installed AngryOxide is 0.9.5 or later, which checks every rogue M2 answer against the whitelist's names.

  • Launcher (capture-launch.sh):
    • ao_checks_whitelist_by_name reads angryoxide --version once at start. It succeeds only for a version it can read that is at least AO_WHITELIST_BY_NAME (0.9.5), so a missing, failing or odd answer counts as older.
    • With a non-empty whitelist on an older build, build_args adds --disable-roguem2, and the launcher logs once why.
    • extra_args no longer repeats --notransmit or --disable-roguem2 when the launcher already added it; AngryOxide refuses a repeated switch.
  • Tests (test_capture_launch.py): the version check for 0.9.4, 0.9.5, 0.10.0, 1.0.0, v0.9.5, a pre-release, garbage and a missing or failing binary. build_args with a name or address whitelist, an empty one, and with 0.9.5, plus the no-repeat rule.
  • Docs:
    • The guide's whitelist section and docs/user-guide/capture-whitelist.md advise whitelisting your own networks by name, explain the *, ? and [...] wildcards, and say AP-less handshakes stay off with a whitelist until a device runs AngryOxide 0.9.5.
    • CLAUDE.md notes the launcher rule.
    • deferred.md gains "Ship AngryOxide 0.9.5", for the next reflash-class release (the pin is in builder/config.yml).

Checklist

  • Lint passes: ansible-playbook isn't installed locally, so the Lint workflow is the check. bash -n and the real-data check pass locally.
  • Tests pass: 1833 passed and 14 skipped. 5 failed: the known test_web.py potfile-import tests, which fail on main too.
  • Nothing real: placeholders only (My Network, 00:00:5E:00:53:01).
  • Consent gates intact: this only removes a transmitting behaviour, never adds one. Capture still ships off and needs the acknowledgment.
  • Docs updated in the same PR: GUIDE_MD, docs/user-guide/capture-whitelist.md, CLAUDE.md and deferred.md.
  • Commit messages are short and imperative.

Release impact

  • App-layer-safe: capture-launch.sh is in the engine's LIB_SCRIPTS, and the rest is the kestrel_pi package (the guide and tests) and docs.
  • Reflash-class

Notes for review

  • On a device with a whitelist, AP-less handshakes stop after this update, until it is flashed with a release that ships AngryOxide 0.9.5. Devices with an empty whitelist are unchanged.
  • The AngryOxide 0.9.5 side is aluminum-ice/AngryOxide PR "Check the whitelist by SSID before every rogue M2 answer". Once a device runs it, this launcher turns rogue M2 back on by itself, with no Kestrel change.
  • For the next beta's checklist: with a whitelist, the AngryOxide command line has --disable-roguem2 (/proc/<pid>/cmdline), and the capture log says why once.

🤖 Generated with Claude Code

## What this PR does The capture launcher keeps AngryOxide's rogue M2 off (`--disable-roguem2`) while the whitelist has entries, unless the installed AngryOxide is 0.9.5 or later, which checks every rogue M2 answer against the whitelist's names. - **Launcher** (`capture-launch.sh`): - `ao_checks_whitelist_by_name` reads `angryoxide --version` once at start. It succeeds only for a version it can read that is at least `AO_WHITELIST_BY_NAME` (0.9.5), so a missing, failing or odd answer counts as older. - With a non-empty whitelist on an older build, `build_args` adds `--disable-roguem2`, and the launcher logs once why. - `extra_args` no longer repeats `--notransmit` or `--disable-roguem2` when the launcher already added it; AngryOxide refuses a repeated switch. - **Tests** (`test_capture_launch.py`): the version check for 0.9.4, 0.9.5, 0.10.0, 1.0.0, `v0.9.5`, a pre-release, garbage and a missing or failing binary. `build_args` with a name or address whitelist, an empty one, and with 0.9.5, plus the no-repeat rule. - **Docs:** - The guide's whitelist section and `docs/user-guide/capture-whitelist.md` advise whitelisting your own networks by name, explain the `*`, `?` and `[...]` wildcards, and say AP-less handshakes stay off with a whitelist until a device runs AngryOxide 0.9.5. - CLAUDE.md notes the launcher rule. - `deferred.md` gains "Ship AngryOxide 0.9.5", for the next reflash-class release (the pin is in `builder/config.yml`). ## Checklist - [x] **Lint passes**: `ansible-playbook` isn't installed locally, so the Lint workflow is the check. `bash -n` and the real-data check pass locally. - [x] **Tests pass**: 1833 passed and 14 skipped. 5 failed: the known `test_web.py` potfile-import tests, which fail on `main` too. - [x] **Nothing real**: placeholders only (`My Network`, `00:00:5E:00:53:01`). - [x] **Consent gates intact**: this only removes a transmitting behaviour, never adds one. Capture still ships off and needs the acknowledgment. - [x] **Docs updated in the same PR**: `GUIDE_MD`, `docs/user-guide/capture-whitelist.md`, CLAUDE.md and `deferred.md`. - [x] Commit messages are short and imperative. ## Release impact - [x] **App-layer-safe**: `capture-launch.sh` is in the engine's `LIB_SCRIPTS`, and the rest is the `kestrel_pi` package (the guide and tests) and docs. - [ ] **Reflash-class** ## Notes for review - On a device with a whitelist, AP-less handshakes stop after this update, until it is flashed with a release that ships AngryOxide 0.9.5. Devices with an empty whitelist are unchanged. - The AngryOxide 0.9.5 side is aluminum-ice/AngryOxide PR "Check the whitelist by SSID before every rogue M2 answer". Once a device runs it, this launcher turns rogue M2 back on by itself, with no Kestrel change. - For the next beta's checklist: with a whitelist, the AngryOxide command line has `--disable-roguem2` (`/proc/<pid>/cmdline`), and the capture log says why once. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Keep rogue M2 off with a whitelist on AngryOxide before 0.9.5
All checks were successful
Lint / lint (push) Successful in 31s
Test / test (push) Successful in 1m0s
Lint / lint (pull_request) Successful in 30s
Test / test (pull_request) Successful in 56s
c0007f85f1
The capture launcher reads `angryoxide --version` once at start. With a
whitelist that has entries and an AngryOxide older than 0.9.5 (which checks
every rogue M2 answer against the whitelist's names), it adds
--disable-roguem2 and logs why. A pass-through extra_args switch the launcher
already added (--notransmit, --disable-roguem2) isn't repeated.

The guide and the whitelist doc say so, and advise whitelisting by name; the
AngryOxide 0.9.5 pin is deferred to the next reflash-class release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
aluminum-ice deleted branch rogue-m2-whitelist-gate 2026-11-18 14:23:37 +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!204
No description provided.