Skip to content

Releases

Release 1.0.14-beta.7

Release 1.0.14-beta.7 Pre-release
Pre-release

Choose a tag to compare

@aluminum-ice aluminum-ice released this 18 Nov 14:36

Kestrel 1.0.14-beta.7

The whitelist and AP-less handshakes. AngryOxide answers phones that ask for a network they remember, which is how AP-less handshakes are captured. AngryOxide 0.9.5 and later check each of those answers against the whitelist's names. This image still ships AngryOxide 0.9.4, so from this beta on, the capture launcher turns those answers off whenever the whitelist has entries. A device with an empty whitelist captures exactly as before. Everything in 1.0.14-beta.6 is still here.

This is a beta: it's for testing, and it's offered only to devices with beta updates turned on (sudo kestrel plugins enable updates --set beta=true). Its on-device checklist is #206.

From 1.0.14-beta.6, beta.5, beta.4, beta.3, beta.2, beta.1 or 1.0.13, this is an in-place update. Apply it from the dashboard (Upgrade) or with sudo kestrel update apply. No reflash. Your settings, plugins, captures and trained models are kept, and if the new version doesn't come up cleanly, the device rolls itself back.

Capture

  • Rogue M2 follows the AngryOxide version. When the whitelist has entries, the launcher adds --disable-roguem2 unless the installed AngryOxide is 0.9.5 or later. It reads the version from angryoxide --version each time capture starts, so no setting is needed, and a device that later gets 0.9.5 turns those answers back on by itself.
  • What it costs. On a device with a whitelist, AP-less handshakes stop after this update, by design, until a release ships AngryOxide 0.9.5. That is planned for 1.0.15, which will need a reflash. Handshakes from access points are unaffected.
  • It says so. When capture starts with a whitelist on an older AngryOxide, the capture log says that rogue M2 stays off and why. Read it with sudo journalctl -u kestrel-capture | grep "rogue M2".
  • No repeated switches. If [capture.angryoxide] extra_args already passes --disable-roguem2 or --notransmit, the launcher doesn't add it a second time.
  • The update restarts capture, so the new launcher is the one running once the update finishes.

The guide

  • Prefer names. The whitelist section now recommends whitelisting your own networks by name. A phone asks for a network by name, and a name entry covers that network whether or not the device has heard its access point yet. In a name, *, ? and [...] work as wildcards: Cafe* covers every network whose name starts with "Cafe".
  • AP-less handshakes and the whitelist is a new part of the same section. It explains the above, and how to see which AngryOxide a device has (angryoxide --version).

Testing this beta

  • The checklist #206 lists what to check. The beta-check script attached there judges most of it, and the rest is by hand. The checks are cumulative, so this one run also covers beta 6's items and the earlier ones.
  • Run with capture on and a whitelist set. Section 2 checks the running AngryOxide for --disable-roguem2 and the capture log for the reason. If you can, also run once with an empty whitelist, where the switch should be absent.
  • Optional, by hand: with a whitelist, check that no new AP-less handshakes come in after the update.
  • The standing runs from beta 6 still apply: one on battery, one with face_pack set, one with transmit_modes = ["passive"] while the agent drives capture, and the dashboard used from your phone for a while before each run.

Install: app-layer — apply in place via the updates plugin.


Built from 6d7b7dc.

Mirrored from https://git.3ntropy.io/aluminum-ice/kestrel/releases/tag/1.0.14-beta.7.

Release 1.0.14-beta.6

Release 1.0.14-beta.6 Pre-release
Pre-release

Choose a tag to compare

@aluminum-ice aluminum-ice released this 17 Nov 10:59

Kestrel 1.0.14-beta.6

A dashboard that shows it's working. When a tap takes more than a moment, a bar now slides across the top of the page with a Working… label, and the auto-refresh no longer cancels what you tapped. This beta also applies the learning agent's transmit setting in more places, limits how much output the device keeps from backup and training hosts, and shows pictures in the guide and release notes as links. Everything in 1.0.14-beta.5 is still here.

This is a beta: it's for testing, and it's offered only to devices with beta updates turned on (sudo kestrel plugins enable updates --set beta=true). Its on-device checklist is #203.

From 1.0.14-beta.5, beta.4, beta.3, beta.2, beta.1 or 1.0.13, this is an in-place update. Apply it from the dashboard (Upgrade) or with sudo kestrel update apply. No reflash. Your settings, plugins, captures and trained models are kept, and if the new version doesn't come up cleanly, the device rolls itself back.

The dashboard

  • A "working" indicator on every page. Tap a link to another dashboard page or send a form, and if the answer takes more than a moment, a bar slides across the top with Working…. Screen readers hear it too, and with reduced motion turned on the bar stays still. It clears when the page arrives, when you come back with the back button, and after a minute in any case.
  • A tap is no longer lost to the auto-refresh. The dashboard reloads itself every 30 seconds. Before, a reload that landed while a page you tapped was still loading replaced it, so the tap seemed to be ignored. Now the reload waits its turn. The Agent page's start-up reload does the same.
  • No double sends. While a form is on its way, a second tap on it is ignored, so a change is never applied twice.
  • Left alone: downloads, links that open a new tab or leave the device, jumps within a page, and the map's drag and pinch work exactly as before. Without scripts, every page works as it always did.
  • Slow answers are logged. Any dashboard answer that takes 2 seconds or more is logged as web: slow response: <method> <page> took <N> s. Only the page's route is logged, never the full address you typed. Read them with sudo journalctl -u kestrel-daemon | grep "slow response". From this beta on, every beta's check counts them per page, so slow spots can be found and fixed one by one.

The learning agent

  • transmit_modes is applied by the capture launcher as well. [agent.action] transmit_modes in /etc/kestrel/config.toml limits which scans the agent runs. The capture launcher now reads it too, and runs an agent window passive whenever the setting doesn't allow transmitting, whatever the agent's plan says. transmit_modes = ["passive"] keeps every agent window passive.
  • One rule, read the same way everywhere. A window transmits only when transmit_modes is left out (the default allows both) or names "active". Case and stray spaces don't matter, and a single string counts as a one-entry list. An empty list, a misspelling or any other value means passive only.
  • Each limit stands on its own. If postures or dwell_buckets names nothing the agent knows, that one falls back to the sweep's choice, while the other limits still apply. At start-up the agent logs a warning naming any [agent.action] setting it couldn't read.
  • Model import from the boot partition now copies models and episodes into the agent's folder as the device user, the account that owns it. Each model is copied under a temporary name and then renamed, so the agent never reads a half-copied file. If something else sits where the episodes folder should be, the episode archive stays on the card, and the models still import.

Backup and remote training

  • What a host sends back is held to a size. backup and remote-train now run every ssh, rsync and scp through a new shared plugin library, hostrun. It keeps up to 64 KB of each command's output. Past that, it stops the command and everything it started, and the plugin reports "the host sent more output than expected". Ordinary status lines and error messages are far below that.
  • Remote-train pulls exactly one file at a time. A model is limited to 256 MB and its sidecar to 64 KB, and anything that isn't a plain file is skipped.
  • Nothing changes in how you set either plugin up.

The guide and release notes

  • Pictures show as links. Release notes with pictures (beta 5's had two) used to show a stray "!" before a link. Now each picture is a link labelled Picture: … that opens it. The dashboard itself still never loads anything from off the device.
  • Links and pictures render in one pass, and any line, however long, renders quickly.

Testing this beta

  • The checklist #203 lists what to check. The beta-check script attached there judges most of it, and the rest is by hand. The checks are cumulative: earlier betas' items are repeated as regressions, so this one run covers them too.
  • Use the dashboard from your phone for a while before each run. The new standing item 1.6 counts this boot's slow answers per page. Note any page where Working… shows for long.
  • Transmit modes. Run one check with transmit_modes = ["passive"] set while the agent drives capture. The script checks that AngryOxide is running with --notransmit.
  • Backup and remote training. If you use them, let a backup and a remote training run complete as usual: nothing should look different.
  • The face packs and UPS card from betas 4 and 5 still want their checks: one run with face_pack set, and one on battery.

Install: app-layer — apply in place via the updates plugin.


Built from 2e71fee.

Mirrored from https://git.3ntropy.io/aluminum-ice/kestrel/releases/tag/1.0.14-beta.6.

Release 1.0.14-beta.5

Release 1.0.14-beta.5 Pre-release
Pre-release

Choose a tag to compare

@aluminum-ice aluminum-ice released this 14 Nov 16:17

Kestrel 1.0.14-beta.5

Face packs for the e-ink face. The e-ink face can now be drawn from a picture pack instead of the text emoticons, on both the 2.7" and the 2.13" HAT. Kestrel ships one pack, kestrel: the bird's own face, with the dark stripe a kestrel has under each eye and a small hooked beak, one picture for every mood. You can also install packs of your own. Everything in 1.0.14-beta.4 is still here.

This is a beta: it's for testing, and it's offered only to devices with beta updates turned on (sudo kestrel plugins enable updates --set beta=true). Its on-device checklist is #193.

From 1.0.14-beta.4, beta.3, beta.2, beta.1 or 1.0.13, this is an in-place update. Apply it from the dashboard (Upgrade) or with sudo kestrel update apply. No reflash. Your settings, plugins, captures and trained models are kept, and if the new version doesn't come up cleanly, the device rolls itself back.

Face packs

The 2.7" e-ink panel showing the kestrel face pack

  • The built-in pack. sudo kestrel plugins enable eink-ws27 --set face_pack=kestrel (or eink-ws213) draws the bird's face in place of the text face, with the voice beside it and every row below unchanged. The eyes follow the mood: wide, sleepy, star-struck, in sunglasses, hearts, crossed out. --set face_pack= goes back to text.
  • Your own pack. Put one PNG per mood, named after the mood (happy.png, cool.png and so on), in a folder under /etc/kestrel/faces/, and set face_pack to the folder's name. Pictures are scaled to fit the face area (about 3:1) and drawn in black and white, with transparency as white. A mood your pack doesn't have shows the text face. The Face packs section of the e-ink setup guide lists the moods, sizes and limits.
  • Set from the terminal only. The Plugins page shows face_pack but can't change it, and the folder can only be filled with admin rights, so the dashboard can never point the face at a file an admin didn't install. The plugin's card gains a Face pack row saying which pack is in use, or why none is.
  • Only the look changes. A pack changes how a mood looks, never which mood shows: the face still never claims a state the device isn't in.
  • Use pictures you have the right to use. Characters from films, games and shows belong to their owners; Kestrel ships only its own.

Every face in the built-in pack, one per mood:

Every face in the kestrel face pack, labelled by mood

Testing this beta

  • The checklist #193 lists what to check. The beta-check script attached there judges most of it, and the rest is by hand.
  • Face packs. With an e-ink plugin enabled, set face_pack=kestrel, look at the panel and the View mirror, and run the check once with it set. A pack of your own is an optional extra.
  • The UPS card from beta 4 still wants one check on battery: its current should read well under 3,000 mA.
  • Capture and the learning agent from the earlier betas are still worth watching: leave a device with policy = learned capturing for a few days and keep an eye on the Agent page's Exploring and Last contest rows.

Install: app-layer — apply in place via the updates plugin.


Built from 316a100.

Mirrored from https://git.3ntropy.io/aluminum-ice/kestrel/releases/tag/1.0.14-beta.5.

Release 1.0.14-beta.4

Release 1.0.14-beta.4 Pre-release
Pre-release

Choose a tag to compare

@aluminum-ice aluminum-ice released this 12 Nov 06:59

Kestrel 1.0.14-beta.4

The UPS HAT's battery card reads the right current and power. On a Waveshare UPS HAT or UPS HAT (B), the ups-ws card showed the current and power about ten times too high: an idle Pi 5 on battery read around 28 W instead of about 3 W. This beta reads the board the way Waveshare's own code does. It also documents PCIe Wi-Fi cards on the Pi 5, which a community member reported capturing with. Everything in 1.0.14-beta.3 is still here.

This is a beta: it's for testing, and it's offered only to devices with beta updates turned on (sudo kestrel plugins set updates beta=true). Its on-device checklist is #189.

From 1.0.14-beta.3, beta.2, beta.1 or 1.0.13, this is an in-place update. Apply it from the dashboard (Upgrade) or with sudo kestrel update apply. No reflash. Your settings, plugins, captures and trained models are kept, and if the new version doesn't come up cleanly, the device rolls itself back.

The UPS HAT card's current and power

  • What went wrong. ups-ws set up the board's current sensor (an INA219) for a 0.01 ohm sense resistor, but the UPS HAT and UPS HAT (B) carry the 0.1 ohm one Waveshare's demo code is written for. So the card's Current and Power read about ten times the real values, and above about 0.8 A of real draw the reading would also have hit its ceiling.
  • What changed. ups-ws 0.1.1 sets the sensor up as Waveshare's demo does (CAL_32V_2A). On battery, an idle Pi 5 should now read roughly 0.3-0.6 A and 2-5 W.
  • What didn't. The charge percent, Charging/Discharging and the low-battery auto-shutdown come from the pack's voltage and the current's direction, so they work as before. The UPS HAT (C), (D) and (E) plugins are unchanged.
  • Nothing to set. The new readings appear once the update is applied.

PCIe Wi-Fi cards on the Pi 5

  • Documented, not yet supported. The README's WiFi capture adapter section now describes an MT7922 M.2 card on a PCIe-to-M.2 HAT, which a community member reported capturing on a Pi 5. On today's base image it takes building the card's mt7921e driver yourself and the pcie-32bit-dma-pi5 overlay. Kestrel doesn't turn that overlay on by default, because it slows other PCIe devices such as NVMe drives.
  • A clearer message. With no capture adapter found, kestrel capture enable now says "plug one in, or name it with --interface" instead of assuming a USB dongle.

Testing this beta

  • The checklist #189 lists what to check. The beta-check script attached there judges most of it, and the rest is by hand.
  • The UPS card. With ups-ws enabled, run the check once on battery: the card's current should be well under 3,000 mA. By hand, compare it with the device idle and while it trains.
  • Capture and the learning agent from the earlier betas are still worth watching: leave a device with policy = learned capturing for a few days and keep an eye on the Agent page's Exploring and Last contest rows.

Install: app-layer — apply in place via the updates plugin.


Built from 3104b0d.

Mirrored from https://git.3ntropy.io/aluminum-ice/kestrel/releases/tag/1.0.14-beta.4.

Release 1.0.14-beta.3

Release 1.0.14-beta.3 Pre-release
Pre-release

Choose a tag to compare

@aluminum-ice aluminum-ice released this 11 Nov 07:54

Kestrel 1.0.14-beta.3

A fix for USB capture adapters that weren't being found. On some adapters, a tri-band MediaTek MT7921U among them, Kestrel could report adapter: none detected and refuse to start capture even though the adapter was plugged in and working. This beta fixes that, and the on-device user guide now opens by crediting pwnagotchi. Everything in 1.0.14-beta.2 is still here.

This is a beta: it's for testing, and it's offered only to devices with beta updates turned on (sudo kestrel plugins set updates beta=true). Its on-device checklist is #184.

From 1.0.14-beta.2, 1.0.14-beta.1 or 1.0.13, this is an in-place update. Apply it from the dashboard (Upgrade) or with sudo kestrel update apply. No reflash. Your settings, plugins, captures and trained models are kept, and if the new version doesn't come up cleanly, the device rolls itself back.

Capture finds more USB adapters

  • What went wrong. To pick the capture adapter, Kestrel asks each USB Wi-Fi adapter whether it supports monitor mode and looks for it in the answer. It stopped reading as soon as it found it, and on an adapter with a long answer (one that lists 2.4, 5 and 6 GHz channels, for example) the rest of the answer then failed, and that failure was taken as "no monitor mode". Whether it happened depended on timing, so an adapter could work one day and go missing the next.
  • What changed. Kestrel now reads the whole answer before looking at it, and the command-line tool does the same in the few other places it checks a command's answer.
  • Nothing to set. If kestrel capture status showed adapter: none detected with your adapter plugged in, it should now name it, and capture should turn on from the dashboard.

The user guide credits pwnagotchi

  • Where Kestrel comes from. The on-device guide (Documentation at the foot of every dashboard page, or /guide) now opens with a paragraph on pwnagotchi, the project Kestrel grew out of, and links to What Kestrel does that pwnagotchi doesn't. The README says the same.

Testing this beta

  • The checklist #184 lists what to check. The beta-check script attached there judges most of it, and the rest is by hand.
  • Your capture adapter. With a USB Wi-Fi adapter plugged in (a tri-band one if you have it), run sudo kestrel capture status: the adapter line should name it. Then turn capture on from the dashboard. If an adapter that supports monitor mode still isn't found, please say so on the checklist issue (with placeholders, never a network name or address).
  • The learning agent from beta 1 is still worth watching: leave a device with policy = learned capturing for a few days and keep an eye on the Agent page's Exploring and Last contest rows.

Install: app-layer — apply in place via the updates plugin.


Built from ee79e81.

Mirrored from https://git.3ntropy.io/aluminum-ice/kestrel/releases/tag/1.0.14-beta.3.

Release 1.0.14-beta.2

Release 1.0.14-beta.2 Pre-release
Pre-release

Choose a tag to compare

@aluminum-ice aluminum-ice released this 08 Nov 07:25

Kestrel 1.0.14-beta.2

A small follow-up to beta 1. The census now says which kind of Raspberry Pi each Kestrel runs on, and the learning agent's diagnostics script counts every training contest again. Everything in 1.0.14-beta.1 is still here, and the learning agent is unchanged: beta 1's exploring and from-scratch training ran as designed on the test device, and contests that can actually be won need more days of data, so that's what this beta keeps watching.

This is a beta: it's for testing, and it's offered only to devices with beta updates turned on (sudo kestrel plugins set updates beta=true). Its on-device checklist is #180.

From 1.0.14-beta.1 or 1.0.13, this is an in-place update. Apply it from the dashboard (Upgrade) or with sudo kestrel update apply. No reflash. Your settings, plugins, captures and trained models are kept, and if the new version doesn't come up cleanly, the device rolls itself back.

Census: which boards Kestrels run on

The census counts the Kestrels in use and how their learning agents are set up. It didn't say what hardware they run on, and the hardware decides a lot: training on the device needs about 4 GB of RAM (so never a Zero 2 W), a Pi 5 trains several times faster than a Pi 4, and some of the UPS and e-ink plugins are aimed at particular boards. Knowing the mix shows where testing and tuning pay off.

  • What's sent. The daily number in each census report now carries the board family: Zero 2 W, Pi 3 family, Pi 4 family (Pi 4, Pi 400, Compute Module 4) or Pi 5 family (Pi 5, Pi 500, Compute Module 5), or "another board". Only that family code leaves the device, never the exact model, its revision or a serial number. The rest of the number is still random and still changes every UTC day, so one day still can't be linked to the next.
  • A Boards card on the Census page (View on the census row of the Plugins page), after Releases: today's share of each family, then how training on the device did on each family this week, for example On-device training on the Pi 5 family won 2 of 9 (22%) this week (only families that ran a contest).
  • "What this device reports today" gains a Board: line, so you can see exactly what yours sends.
  • When it starts. A device keeps the number it started the UTC day with, so its board is sent from the next UTC midnight after the update. Until then the line reads not sent today (from the next UTC day).
  • Older devices are unaffected. The report is the same size and shape, so devices on 1.0.13 and beta 1 read, merge and count these reports as before. Their own reports show under not reported on the Boards card.
  • No new setting. The board goes wherever the report goes: with report off, nothing is sent, as before.

Learning-agent diagnostics

  • Every training contest is counted. pull-agent-diagnostics.sh, the desktop script that summarizes the learning agent, missed the contests of models trained from scratch (new in beta 1), because their journal line reads local (from scratch) candidate vs active. It now counts them, on their own local (from scratch) row in the contest results, so the number of local contests matches the number of training runs again. The script ships on the device in /usr/local/share/kestrel/scripts/; copy it to a computer and run it from there as before.

Testing this beta

  • The checklist #180 lists what to check. The beta-check script attached there judges most of it, and the rest is by hand.
  • The census board. With the census on and the phone's tether up, open the Census page after the next UTC midnight: What this device reports today should name your board's family, and the Boards card should count it.
  • The learning agent is still the main thing to watch from beta 1. Leave a device with policy = learned capturing for a few days: the Agent page's Exploring row should keep its tried count climbing, and the Last contest line should start showing new models that chose differently from the current one.
  • The diagnostics script. Run pull-agent-diagnostics.sh from a computer after a from-scratch run: it should list a local (from scratch) row.

Install: app-layer — apply in place via the updates plugin.


Built from f17857b.

Mirrored from https://git.3ntropy.io/aluminum-ice/kestrel/releases/tag/1.0.14-beta.2.

Release 1.0.14-beta.1

Release 1.0.14-beta.1 Pre-release
Pre-release

Choose a tag to compare

@aluminum-ice aluminum-ice released this 07 Nov 17:11

Kestrel 1.0.14-beta.1

The learning agent stops getting stuck. A learning agent that had settled on one way of scanning kept using it forever, and every new model it trained made exactly the same choices, so none could ever replace the old one. This beta teaches it to try other scans now and then, to start a model over from scratch from time to time, and not to bet on scans it has never tried. It also stops tagging captures with an out-of-date GPS location.

This is a beta: it's for testing, and it's offered only to devices with beta updates turned on (sudo kestrel plugins set updates beta=true). An on-device checklist issue will follow.

From 1.0.13 (or any 1.0.13 beta), this is an in-place update. Apply it from the dashboard (Upgrade) or with sudo kestrel update apply. No reflash. Your settings, plugins, captures and trained models are kept, and if the new version doesn't come up cleanly, the device rolls itself back.

The learning agent keeps learning

What was going wrong. Every 30 seconds the agent picks how to scan: which channels, how long to stay on each, and whether to send or only listen. With a trained model in charge, it always picks what it currently thinks is best. Once a model had settled on one scan, the device only ever found out how that scan did, so it had nothing to learn from. Training then started from the current model and came back with the same choices. Every contest between the new model and the old one was a tie, the Agent page said "not better than the active model (mean diff +0.0000)", and nothing improved, while training still used the processor every half hour.

Three changes fix that:

  • It tries other scans now and then. About 1 window in 20, the agent runs a different scan instead of its favourite and keeps it for two windows (a minute) to get a fair reading. It picks the scans it has tried least first. That's a few windows an hour.
    • The Agent page shows a new Exploring row: how often it explores, how many of the possible scans it has tried so far (for example 21 of 32), and how many windows it explored in the last hour. While one is running, the note says trying ….
    • Exploring windows are counted on their own exploring line, so the learned model's handshakes-per-hour stay its own.
    • It only explores while the trained model is in charge, never when you've chosen the scripted sweep (baseline).
  • It starts over from scratch now and then. Most training runs still fine-tune the current model. Every 4th run, or straight after 3 contests in a row where the new model changed nothing, the agent trains a brand-new model from a random start, with three times the usual training. A model built fresh can land somewhere the old one never would. It still has to win the same fair contest before it takes over.
    • The Model contests row adds how the from-scratch models have done (from scratch 1 of 3 won), and Last contest says how often the new model made the same choice as the current one.
    • To ask for one yourself: kestrel agent train-now --fresh.
  • No betting on scans nobody has tried. Until a scan has been tried for at least 8 windows, training and the contest assume it does no better than the weakest well-tried scan. A model can't win just by choosing scans the device knows nothing about; the exploring above is how those scans get tried.

What you'll notice. A few windows an hour running a different scan, the new rows on the Agent page, and, over the following days, contests that can actually be won. Exploring windows may catch a little less than the model's own choices; the separate exploring line shows exactly how much.

If your agent is on the scripted sweep. Exploring only happens while a trained model is in charge. To switch: sudo kestrel agent policy learned (it needs a trained or imported model).

Your scan limits now apply to every agent scan

The [agent.action] lists in /etc/kestrel/config.toml (postures, dwell_buckets and transmit_modes) now limit every scan the agent runs: the trained model's, the scripted sweep's and the new exploring ones. For example, transmit_modes = ["passive"] keeps every agent window listen-only. If a model asks for a scan outside your lists, the agent runs the closest one that's allowed. The shipped lists allow everything, so nothing changes unless you've narrowed them.

GPS

  • Captures are only tagged with a current location. When the GPS loses its fix, or the receiver stops sending (unplugged, powered off, a stalled USB link) for about half a minute, new handshakes are no longer tagged with the last known position, and wigle doesn't record them either. Tagging resumes with the next fix. Before, a capture made after the fix was lost could be filed at the place the device used to be.

Settings, for those who like to tune

All in the [agent] table of config.toml; they take effect the next time the agent starts (sudo systemctl restart kestrel-agent). The defaults suit most devices.

Setting Default What it does
explore_rate 0.05 Share of the trained model's windows that try another scan. 0 turns exploring off.
explore_windows 2 How many windows in a row an exploring scan runs.
fresh_every 4 Every Nth training run starts from scratch. 0 = only when stuck.
stuck_contests 3 Contests in a row with no changed choice before a from-scratch run. 0 = off.
fresh_timesteps 0 Training length for a from-scratch run. 0 = three times train_timesteps.

Testing this beta

  • The learning agent is the main thing to watch. Leave a device with policy = learned capturing for a day or two, then check the Agent page: the Exploring row should show the tried count climbing, and the journal (journalctl -u kestrel-agent) should show explore: trying … lines, a training from scratch run every few runs, and contest lines ending in same choice as the active model on N% of rows.

Install: app-layer — apply in place via the updates plugin.


Built from 2ab1525.

Mirrored from https://git.3ntropy.io/aluminum-ice/kestrel/releases/tag/1.0.14-beta.1.

Release 1.0.13

Choose a tag to compare

@aluminum-ice aluminum-ice released this 07 Nov 17:08

Kestrel 1.0.13

Recovered passphrases stay with the right network, and a hardening pass. This release fixes how the device matches recovered passphrases to your captures, stops counting the capture tool's made-up addresses as access points, and goes back over every place Kestrel signs you in, runs something as root or talks to the internet, making each one stricter. It also adds a Last 24 hours map filter and a clearer Census page.

From 1.0.12, 1.0.11 or any 1.0.13 beta, this is an in-place update. Apply it from the dashboard (Upgrade) or with sudo kestrel update apply. No reflash: the build changes in this release only affect how you build your own image, not what's on the card. Your settings, plugins and captures are kept, and if the new version doesn't come up cleanly, the device rolls itself back.

Recovered passphrases

Thanks to caltru1sm, who found this problem and sent in a patch for it.

  • The problem. Some handshakes come from a phone answering the capture tool for a network it remembers, with no access point involved. The capture tool files all of those from one capture run under one made-up address, each with the name the phone asked for. The device matched recovered passphrases by address alone, so once one of those was recovered, the same passphrase showed against every network name under that address, and the address counted as a recovered access point.
  • The fix. A passphrase is now matched by the access point's address and the network name. For a handshake from a phone answering the capture tool, it's matched by the phone as well, and shown with it: My Network · client 00:00:5E:00:53:01. Those never count toward recovered N of M access points or turn a map marker green.
  • Imports keep the client. kestrel recovered import and the dashboard's Import results now keep each line's client address instead of dropping it. Results you imported before still show for ordinary access points; for a result from a phone answering the capture tool, import the file again.

Access-point counts, the map and WiGLE

  • A made-up address isn't an access point. The address the capture tool answers phones from no longer counts in the access-point totals (the dashboard, the Captured networks page, the e-ink AP counter) or in a network's access-point count. On the Captured networks page it keeps its row in the by access point view, marked Not an access point, and its handshakes still count.
  • No location for it. Its location was only where the device was, so it no longer shows on the Captured networks page or as a marker on the map.
  • Only real access points go to WiGLE. The wigle plugin no longer records a handshake from a phone answering the capture tool, so the made-up address and the name the phone asked for are never uploaded or looked up.
  • "New networks / hour" counts only real access points. The learning agent's coverage figure leaves those handshakes out. It's for reading only, not part of the agent's reward or training, so models are unaffected.

Captured networks

  • Searching by name lists only that name. In the by access point view, the search also matches a pasted BSSID. It used to read any search as a possible BSSID, so a name like Home became "e" and matched nearly every access point. It now treats a search as a BSSID only when it looks like one (hex digits with :, - or ., or at least six digits), so AA:BB:CC still finds its radio and a name matches names only.

Map

  • A "Last 24 hours" filter. Beside Last 7 days, the map's filters now include Last 24 hours, showing only the locations recorded or estimated in the past day.
  • Reset view sits on the map. After you zoom in, ↺ Reset view appears in the map's top-left corner rather than in the filter bar, so the filters fit on a phone screen. It keeps the filter you chose.

Census

  • A clearer Status card. It shows whether the phone's tether is up and the census can be read and written right now, and the date and time this device last pushed its report and last read the census (both kept across restarts).
  • A fresh connection after the tether reconnects. When the phone's Bluetooth tether drops and comes back, the census notices, even between cycles, and opens a fresh connection on the tether before it sends anything more. The journal says census: the tether reconnected; opening a fresh socket when it does.
  • Bounded reads. A device keeps at most what one census slot can hold from each slot it reads, and at most a full census (12,544 reports) a day. A reply from the DHT that can't be read is set aside, and the rest of the read carries on.

Privileged helpers

Kestrel's dashboard and plugins run as the ordinary pi user; a few small helpers run as root to do what pi can't (start capture, apply an update, check a password). This release tightens what those helpers accept from pi:

  • Files root leaves for pi's processes are made by pi. The trigger files that ask the learning agent or remote training to start are created as pi, and never through a link. A model added with sudo kestrel agent import is written into place as pi too.
  • Settings root acts on are terminal-only. The updates plugin's beta, timeout and backup_timeout_seconds, and remote-train's agent_dir, can be changed only with sudo kestrel plugins set .... The Plugins page shows them read-only, and the update engine keeps its timeouts within sensible bounds whatever the file says.
  • Password checks are paced on the device itself. The root helper that checks the device password spaces out its answers after repeated failures, for every caller at once, and accepts only a normal user account, such as pi.

The dashboard

  • Every sign-in attempt counts. The sign-in page, scripts sending a username and password, and access tokens share one per-address backoff: after a few wrong attempts in a row, the dashboard asks you to wait. A login it verified in the last few minutes still gets straight in.
  • "Couldn't check" is not "wrong password". If the device is busy checking other sign-ins, the page says Couldn't check your password right now. Try again in a moment., and that doesn't count against you.
  • Size and connection limits. Requests over 64 KB are turned away before they're read (the potfile import keeps its own, larger limit). Each listener serves at most 64 connections, 16 from any one address (the device itself is exempt), and a request has 20 seconds to arrive.
  • A way back from every plugin page. Every page a plugin shows now opens with the same ← Plugins · Dashboard links, added by the dashboard itself.
  • "View" buttons. The census and wpa-sec row buttons on the Plugins page now read View, like the other plugins that open a page.
  • Text that renders, always. The renderer behind the guide and What's new treats a line starting with # that isn't a heading as ordinary text, and always finishes.

Updates

  • The update token stays with your release server. If you update from a private repository with a token, the device follows a redirect only to an https:// address, at most five times, and doesn't send the token once a redirect leaves your release server. The release clone itself follows no redirect when a token is set.
  • Clearer wording when an update was cut short. An update interrupted part-way, for example by a power loss, and rolled back at boot is described as interrupted, not as one that failed to start.
  • Beta opt-in has moved to the terminal. Turn beta updates on or off with sudo kestrel plugins set updates beta=true (or =false). A device that already had it on keeps it.

Building your own image

  • MY_PI_PASSWORD_HASH now reaches the image. Pass your hash in single quotes, sudo make image MY_PI_PASSWORD_HASH='$6$...'. The build stops if the value isn't a password hash, never prints it, and its log says only whether a custom hash or the default went in. If you built your own image with a custom hash before this release, set your password once with passwd to be sure it's the one you expect.

Hardware

  • Raspberry Pi 3B and 4B. Community reports suggest Kestrel works on both; they haven't been verified on hardware by the maintainer. The Pi 5 and Pi Zero 2 W remain the tested boards.

Tested in four betas

1.0.13-beta.1 through 1.0.13-beta.4 were each checked on a Pi 5 with the beta-check script; their checklists are #150, #158, #166 and #172.

Install: app-layer — apply in place via the updates plugin.


Built from ef51986.

Mirrored from https://git.3ntropy.io/aluminum-ice/kestrel/releases/tag/1.0.13.

Release 1.0.13-beta.4

Release 1.0.13-beta.4 Pre-release
Pre-release

Choose a tag to compare

@aluminum-ice aluminum-ice released this 07 Nov 17:05

Kestrel 1.0.13-beta.4

Two small fixes on top of beta 3: searching Captured networks by name works again in the by access point view, and the learning agent's coverage figure stops counting the capture tool's made-up addresses. Everything in 1.0.13-beta.3 is still here.

This is a beta: it's for testing, and it's offered only to devices with beta updates turned on (sudo kestrel plugins set updates beta=true). Its on-device checklist is #172.

From 1.0.13-beta.3, beta.2, beta.1 or 1.0.12, this is an in-place update. Apply it from the dashboard (Upgrade) or with sudo kestrel update apply. No reflash. Your settings, plugins and captures are kept, and if the new version doesn't come up cleanly, the device rolls itself back.

Captured networks

  • Searching by name lists only that name. In the by access point view, the search also matches a pasted BSSID. It used to read any search as a possible BSSID, keeping just its digits and letters a–f, so a name like Home became "e" and matched nearly every access point. It now treats a search as a BSSID only when it looks like one (hex digits with :, - or ., or at least six digits), so AA:BB:CC still finds its radio and a name matches names only.

Learning agent

  • "New networks / hour" counts only real access points. Handshakes from a phone answering the capture tool for a network it remembers are filed under the capture tool's made-up address; they no longer add to the agent's coverage figure. They still count as handshakes. The figure is for reading only: it isn't part of the agent's reward or training, so models and training are unaffected. This follows on from the beta 3 fixes that caltru1sm reported.

Testing this beta

  • The checklist #172 lists what to check. The beta-check script judges most of it, and the rest is by hand. By-hand items you've already done on beta 3 (#166) don't need repeating.

Install: app-layer — apply in place via the updates plugin.


Built from 65b0bd1.

Mirrored from https://git.3ntropy.io/aluminum-ice/kestrel/releases/tag/1.0.13-beta.4.

Release 1.0.13-beta.3

Release 1.0.13-beta.3 Pre-release
Pre-release

Choose a tag to compare

@aluminum-ice aluminum-ice released this 07 Nov 17:02

Kestrel 1.0.13-beta.3

Recovered passphrases now stay with the right network. This beta fixes how the Captured networks page, the dashboard and the map match recovered passphrases to your captures, and stops counting the capture tool's made-up addresses as access points. Everything in 1.0.13-beta.2 is still here.

This is a beta: it's for testing, and it's offered only to devices with beta updates turned on (sudo kestrel plugins set updates beta=true). Its on-device checklist is #166.

From 1.0.13-beta.2, 1.0.13-beta.1 or 1.0.12, this is an in-place update. Apply it from the dashboard (Upgrade) or with sudo kestrel update apply. No reflash. Your settings, plugins and captures are kept, and if the new version doesn't come up cleanly, the device rolls itself back.

Recovered passphrases

Thanks to caltru1sm, who found this problem and sent in a patch for it.

  • The problem. Some handshakes come from a phone answering the capture tool for a network it remembers, with no access point involved. The capture tool files all of those from one capture run under one made-up address, each with the name the phone asked for. The device matched recovered passphrases by address alone, so once one of those was recovered, the same passphrase showed against every network name under that address, and the address counted as a recovered access point.
  • The fix. A passphrase is now matched by the access point's address and the network name. For a handshake from a phone answering the capture tool, it's matched by the phone as well, and shown with it: My Network · client 00:00:5E:00:53:01. Those never count toward recovered N of M access points or turn a map marker green.
  • Imports keep the client. kestrel recovered import and the dashboard's Import results now keep each line's client address instead of dropping it. Results you imported before still show for ordinary access points; for a result from a phone answering the capture tool, import the file again.

Access-point counts and the map

  • A made-up address isn't an access point. The address the capture tool answers phones from no longer counts in the access-point totals (the dashboard, the Captured networks page, the e-ink AP counter) or in a network's access-point count. On the Captured networks page it keeps its row in the by access point view, marked Not an access point, and its handshakes still count.
  • No location for it. Its location was only where the device was, so it no longer shows on the Captured networks page or as a marker on the map.

WiGLE

  • Only real access points are uploaded. The wigle plugin no longer records a handshake from a phone answering the capture tool, so the made-up address and the name the phone asked for are never uploaded or looked up. One already queued before the update can still go out once.

Testing this beta

  • The checklist #166 lists what to check. The beta-check script judges most of it, and the rest is by hand.

Install: app-layer — apply in place via the updates plugin.


Built from 3cf6358.

Mirrored from https://git.3ntropy.io/aluminum-ice/kestrel/releases/tag/1.0.13-beta.3.