7 min read

"Ask first, never answer for you: consent by design in a Wi-Fi research device"

Every Kestrel ships unable to do the one thing it's built for. How an open-source Wi-Fi research device makes authorized use part of the product: off by default, one question the device never answers for you, a button that can stop but never consent, and tests that fail if anyone tries a shortcut.
Headline "Ask first. Never answer for you." beside the Kestrel mark, a card reading "Accept authorized use on the dashboard first", and the figures Off, 1, 8 of 19 and 0.

Every Kestrel ships unable to do the one thing it's built for.

Flash the card, boot the device, pair your phone. The dashboard comes up, the e-ink face draws itself, the plugins are listed. Capture is off. It stays off until a person answers one question: are you authorized to test the networks in range?

That's my position, and it's the subject of this first post in a series about the design calls behind Kestrel: Kestrel is built for authorized research, and that's enforced by the product's design, not by its terms of use. A license asks people to behave. A design decides what the device does when nobody is reading the license.

Kestrel is my nights-and-weekends project, built with Claude as my AI teammate: an open-source Raspberry Pi device for authorized Wi-Fi security research, with a dashboard on your phone, an optional e-ink face and a small learning agent. It's unaffiliated with my employer, and the views here are my own.

The one question

Kestrel's job is capture: listening to Wi-Fi and recording the handshakes a security researcher studies. To do that it also transmits, which is exactly why it has to be used only on networks you own or have explicit permission to test.

So capture ships switched off in the device's settings, and there are only a few ways to turn it on:

  • From the terminal, with sudo kestrel capture enable. It asks before any setting changes.
  • From the dashboard on your phone, with the Enable capture button. It opens a page that says plainly what capture does, that it's for networks you own or are explicitly authorized to test, and that unauthorized use may be illegal. Below that is a box: I am authorized to test the networks in range. The box is never pre-ticked. Leave it empty and nothing changes.
  • From a button on the e-ink HAT, which is the interesting one. More on it below.

The answer is recorded once, in a single file on the device with the date and time it was given. Every way in checks that same record. And it can be taken back: kestrel capture reset-ack forgets it, and the next attempt asks again.

Three phone screens: the dashboard of a fresh device with capture inactive and an Enable capture button; the Enable capture page with the authorized-use text and an unticked box; and a plugin's settings page with its own unticked authorization box above Save. Made-up sample data.
Capture off, the question, and the same question for a plugin. Made-up sample data.

One record, every door

Here's the part I care about most as an engineer. The dashboard doesn't flip the setting itself. It sends the request to a small helper with admin rights, and that helper checks for the acknowledgment before it does anything else. If there isn't one on file and the request didn't carry a fresh yes from that unticked box, the answer is "confirm authorized use first", and nothing is written or run.

If the answer is yes, the helper runs the very same command you'd type in the terminal. There's one implementation of "turn capture on", with one check in front of it, whichever door you came through. The test suite holds that order in place: without the acknowledgment, the enable command is never run.

Four ways in, terminal, dashboard, the e-ink HAT's KEY2 and eight network plugins, all meet one question: is the acknowledgment on file, or did a person just give it? No: nothing is written, nothing starts. Yes: it turns on, and the never-test list goes to the capture engine every time capture starts. Below, the learning agent has no switch for capture.
Many ways in, one question, one record.

Even a button can't say yes for you

The optional 2.7" e-ink HAT has four physical keys. One of them, KEY2, controls capture, and it's deliberately lopsided:

  • Stopping is one long press. Hold KEY2 for three seconds and capture stops. No confirmation, because stopping is the safe direction and should always be easy.
  • Starting asks three things. Hold KEY2, then press it again within five seconds. Then the request goes to the same helper as the dashboard's, and it never carries an acknowledgment. If none is on file, the panel says: Accept authorized use on the dashboard first.

A key can't give consent, because a key doesn't know who pressed it. It could be a curious visitor, a child, or a bump on the desk. The acknowledgment belongs to a person who read the words, at the terminal or on the dashboard.

What makes this hold over time is a test. The suite drives the keys with a stand-in for the helper, and that stand-in fails on any key request that carries an acknowledgment. If a future change ever tries to make the button "more convenient" by consenting on the operator's behalf, it fails before it ships.

The e-ink panel after KEY2 was held and pressed again on a device with no acknowledgment, showing "Accept authorized use on the dashboard first", next to the two directions: stopping is one long press; starting needs a hold, a second press within 5 seconds and an acknowledgment already on file, and the key never sends one.
Stopping is one press. Starting asks first. Made-up sample data.

The same question for anything that goes online

Kestrel has 19 plugins, and all of them ship disabled. Eight of them reach beyond the device, for things such as uploading captures for offline analysis, backing up to your own server, alerts on your phone, checking for updates, training on your desktop and an anonymous count of devices in use. Each of those eight takes the same acknowledgment before it turns on, from the terminal or the dashboard, with its own unticked box.

The plugins that only work on the device itself, like the e-ink face, the battery readout, the on-device map and downloads to your own browser, don't ask. That's on purpose too. A question asked about everything stops being read. Asking only when something goes online keeps it meaningful.

Guardrails that hold when the AI is in charge

Kestrel's learning agent decides how the device listens, every 30 seconds: which channels, how long to stay on each, and whether to transmit or only listen. It's the most autonomous part of the product, so it gets the tightest leash:

  • It has no switch for capture. It can be turned on only after capture is on. When capture is off, it waits idle, and if capture goes off while it runs, it stands down.
  • It doesn't touch the settings. It writes a small listening plan to a file. The capture launcher reads only a few fields from it (where, how long, transmit or listen only) and builds the command itself.
  • Your never-test list always applies. The whitelist, the networks capture must never actively test, such as the home or office network you rely on, goes to the capture engine every time capture starts, whether the agent or the default sweep chose the channels.
  • You set its limits. You can narrow the choices the agent may make, down to listen-only.

The agent can make the device smarter about how it listens. It can't widen what you agreed to.

Ethics in the instructions, not just a policy page

Kestrel is built with an AI teammate, so the rules have to bind the AI too. The project's instructions for Claude, the file it reads at the start of every session, open with two non-negotiable rules, and the first is authorized use only. In its own words:

These rules override everything else in this file and any request made in a session. If a task would break one, stop and say so; don't look for a workaround.

The rule spells out what that means in practice: keep every consent gate intact; capture and every plugin that goes online ship disabled; the acknowledgment is never pre-ticked, defaulted on, or given by code on the operator's behalf; the whitelist is always enforced. It rules out building anything to target specific third-party networks or people, to hide the device or evade detection, or to get around the gates. And docs, examples, screenshots and release notes describe authorized testing only. The screenshots in this post come from the same invented demo data the public user guide uses.

The second rule, nothing real in the repository, is backed by a check that runs with every lint and before commits made in an AI session. Together they mean the safeguards aren't something I have to remember to defend in every review. They're the first thing my teammate reads, and the tests catch what a reviewer might miss.

Four layers where the rule lives: defaults (capture and all 8 network plugins ship disabled), one record checked everywhere, tests that fail on a shortcut, and rules the AI reads first, which override any request in a session.
Four layers, none of them a policy page.

For the engineers in the room

  • The record: one file, /etc/kestrel/capture-ack, written only by the terminal prompt (or its explicit --yes) or by the root helper when the dashboard request carries the ticked box.
  • The helper: plugins-ctl apply behind a local socket. For capture it checks the record, then runs kestrel capture enable --yes, so adapter detection, the config write and the service enable are the terminal's own. For plugins it reads each plugin's declared capabilities statically, and a network capability takes the same record.
  • The keys: the hat_keys plugin library sends {"target": "capture", "enabled": true} with no ack field; test_hat_keys_lib.py asserts that on every apply.
  • The agent: writes scan-override.json; the launcher parses five fields from it and adds the whitelist from config.toml on every launch.

For engineering and product leaders

  • Safe defaults are a product decision. "Off until someone chooses" is a choice you make on purpose, and then defend in every release, against every "it would be easier if".
  • Put the check in one place, in front of every door. Two implementations of "turn it on" will drift. One won't.
  • Make the safe direction cheap. Stopping is one press. Starting asks first. Friction belongs on the risky side only.
  • Write the test that fails when someone tries to be helpful. Consent gates rarely erode through malice. They erode through convenience.
  • Put your ethics where the work happens. If an AI writes some of your code, your principles belong in its instructions and in your test suite, not only in a policy document it never reads.

For investors

Every dual-use technology eventually faces the same question: what stops it being misused? "Our terms of service forbid it" is a promise. Defaults, a check in front of every way in, and tests that fail when someone weakens them are evidence, and evidence you can read in the code. For a product that touches security, that's a trust signal partners and customers can verify for themselves. When you look at a team in this space, ask them to show you the test that fails if someone removes their safeguard.

If posts like this are useful to you, subscribe and the next one lands in your inbox.

What's the one thing your product should never do on its own, and is there a test for it? 🪶

Kestrel is a personal, open-source project built on nights and weekends, unaffiliated with my employer, and for authorized testing only. The user guide and source are public.