Firewatch
Firewatch tells a Lightning node operator, within minutes, whether a published security flaw actually affects their node and exactly what to do about it.
It is read-only by design: it holds no credential that can change or spend from a node, it never upgrades or shuts anything down, and it quotes the developers' own fix instead of writing one.
Getting started
Six steps, about ten minutes. Firewatch only ever reads your node: nothing in this guide gives it a credential that can spend or change settings.
What you need
- Linux or macOS, on Intel or ARM (a Raspberry Pi works). Run Firewatch on the node's machine, or on one that can reach the node's REST API.
- The node's REST API turned on:
- LND: on by default, at
https://127.0.0.1:8080. - Core Lightning:
clnrestis off until it has a port. Addclnrest-port=3010to the node's config file (usually~/.lightning/config) and restart the node. It serves HTTPS with a self-signed certificate by default; Firewatch pins that certificate, andfirewatch initsets it up.
- LND: on by default, at
- Umbrel or Start9: SSH into the box first (for example
ssh umbrel@umbrel.local) and run every command below there. - For phone alerts (optional): a Nostr app that shows NIP-17 private messages. On iPhone use Nostur; on Android, Amethyst or 0xchat. Damus doesn't show these messages. Step 2 walks through it.
1. Install
Option A: the installer. No Rust or Node.js needed.
|
It downloads one firewatch binary into ~/.local/bin, with the advisories, the LND release table and the dashboard built in. If your shell then says firewatch: command not found, open a new terminal, or run source ~/.local/bin/env.
Once v0.1.0 is out, the same command with releases/latest/download/ in place of releases/download/v0.1.0-rc.3/ always installs the newest release. Every release also has plain archives and SHA-256 checksums on the releases page.
Option B: from crates.io. For people who already use Rust. It compiles for a few minutes.
- Install Rust with rustup, if you haven't:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh - Make sure there's a C compiler:
sudo apt install build-essentialon Ubuntu or Debian,xcode-select --installon macOS. - Install:
--versionis needed while the release is a pre-release.--lockedbuilds with the exact dependency versions we tested.
Either way, check it worked:
2. Set up your phone for alerts (optional)
Firewatch sends alerts as encrypted Nostr direct messages (NIP-17). Nostr has no accounts or passwords: your identity is a pair of keys that your phone app creates for you.
| Key | Looks like | What it's for |
|---|---|---|
| Public key (npub) | npub1… |
Your address. Give it to Firewatch: alerts are encrypted to it. Safe to share. |
| Private key (nsec) | nsec1… |
Opens your messages and proves you're you. Never share it, not with Firewatch, a teammate or a website. |
a. Install an app that shows NIP-17 messages
| Phone | App | |
|---|---|---|
| iPhone | Nostur (App Store) | Tested with Firewatch. |
| Android | Amethyst (Play Store) or 0xchat |
Damus doesn't show these messages, so alerts never appear there. Check you have the right app: it talks about Nostr, and it never asks for a phone number or password.
b. Create your keys
Open the app and choose create a new account (the wording varies by app). It generates your keys on the phone. A fresh account just for alerts is a good idea: it keeps node alerts separate from anything social.
c. Back up the private key
The app shows or lets you export your nsec1… key, usually under your profile, account or keys settings. Save it in a password manager. If you lose the phone without it, you lose the account, and you'd set up a new one and run firewatch init --force with the new npub.
d. Copy your public key
Open your profile. Your npub1… is shown there, usually with a copy button or a share or QR option. Copy the whole string.
e. Give it to Firewatch
Paste the npub when firewatch init asks (step 3). To change it later, edit recipient in ~/.config/firewatch/firewatch.toml.
f. Accept the first message
After firewatch test-alert (step 4), the message arrives under message requests, because the app doesn't know the sender yet:
- Open it and tap Accept message request.
- Follow the sender. That's Firewatch's own key, which it created on first run in
~/.config/firewatch/firewatch.nsec, andtest-alertprints it. - Optionally rename the contact to "Firewatch", so alerts are easy to spot.
From then on, alerts land in your normal inbox.
Relays. Messages travel through Nostr relays. Firewatch sends to relay.damus.io, nos.lol and relay.primal.net, and also to any DM relays your app has published for your key. Most apps use some of these by default. If test-alert succeeds but nothing arrives, add wss://relay.damus.io and wss://nos.lol in the app's relay settings and reopen your messages.
One recipient per config. Firewatch sends to one npub. For a team, share one alerts account between the phones that need it, or run one Firewatch config per person.
3. Set up with firewatch init
It looks for your node in the usual places: LND in ~/.lnd (or $LND_DIR, or Umbrel's folder), Core Lightning in ~/.lightning, and Polar networks. For each node it finds, it asks whether to watch it, then tests the connection:
- LND: answer yes. Nothing else to do: LND already has a
readonly.macaroon, andinituses it and LND'stls.cert. Confirm the REST address if yours isn'thttps://127.0.0.1:8080. - Core Lightning: Firewatch needs a rune that can only read. Creating a rune is a change to the node, which Firewatch never makes, so
initprints the command:
Run it in another terminal and paste therunevalue it prints.initwon't show the rune back on screen. - A node it didn't find, or one on another machine: answer yes to "Add a node by hand?" and give the address and credential paths.
Then paste your npub, or press Enter to skip alerts.
init writes ~/.config/firewatch/firewatch.toml, readable only by you, since it holds runes. Run firewatch init --force to start over, or edit the file: firewatch.example.toml shows every option.
4. Check it works
Each node gets one of three answers: Affected, Can't tell (with what to check by hand), or Not affected (with the reason). It exits with 0 when nothing applies, 2 when something can't be told, 3 when a node is affected, and 1 on error.
If you gave an npub:
The first message lands in your app's message requests. Tap Accept message request, and follow the sender so later alerts go straight to your inbox (step 2f).
5. Keep it running
It checks every 30 seconds, sends one alert per node when something turns red or amber, and another when it's fixed. Open the dashboard at http://127.0.0.1:7070. Alerts only come while watch runs, so on a node that's always on, run it as a background service.
Linux (systemd):
If you installed with cargo install, use %h/.cargo/bin/firewatch in ExecStart. Read its log with journalctl --user -u firewatch -f.
The dashboard only answers on the machine itself, because the report says which nodes are vulnerable. To see it from your laptop when Firewatch runs on the node, tunnel the port: ssh -L 7070:127.0.0.1:7070 you@your-node, then open http://127.0.0.1:7070.
6. Update and uninstall
Advisories are built into each release, so update Firewatch to get new ones: run the installer again, or cargo install firewatch --locked --force (add --version while releases are pre-releases). Your config stays.
To uninstall: rm ~/.local/bin/firewatch (installer) or cargo uninstall firewatch. Then remove the config with rm -r ~/.config/firewatch, and the service, if you made one, with systemctl --user disable --now firewatch and rm ~/.config/systemd/user/firewatch.service.
Troubleshooting
| You see | Do this |
|---|---|
firewatch: command not found |
Open a new terminal, or source ~/.local/bin/env (installer) or source ~/.cargo/env (cargo). |
no config at … |
Run firewatch init. |
Can't connect to …; is the node running? |
Start the node. For Core Lightning, check clnrest-port is set. Check the port in the config matches the node's REST port. |
TLS certificate not trusted |
tls_cert must point at the node's own certificate: LND's tls.cert, or Core Lightning's server.pem in its network folder (e.g. ~/.lightning/bitcoin/server.pem). |
Credential rejected by the node |
The rune or macaroon belongs to another node. Make a new one on this node and run firewatch init --force. |
Credential is not read-only |
Firewatch refuses credentials that can do more than read. Use LND's readonly.macaroon, or a rune made with the restrictions above. |
| No message on the phone | Use Nostur, Amethyst or 0xchat (not Damus), look in message requests, and make sure this machine has internet. firewatch test-alert prints which relays took the message. |
Working on Firewatch
Add --include-unverified to check or watch to also run advisories not yet verified against an official source.
watch listens on localhost only. It refuses any other listen address unless you pass --allow-remote, because the report says which nodes are vulnerable. --dashboard <dir> serves a built dashboard at /.
A web page open in your browser can reach localhost too, so watch also turns away what a hostile site could send: a request whose Host isn't localhost, 127.0.0.1 or [::1] (DNS rebinding), and a request whose Origin is another site (reading the report, or a cross-site POST /api/check). With --allow-remote, open the dashboard by the machine's IP address; names other than localhost are still refused.
check exits with 0 when nothing applies, 2 when something can't be told, 3 when a node is affected, and 1 on error.
Configuration
Copy firewatch.example.toml to firewatch.toml (git-ignored) and add your nodes.
Core Lightning is read over clnrest with a rune restricted to getinfo and listconfigs:
LND is read over REST with readonly.macaroon. LND's self-signed tls.cert is pinned: Firewatch accepts exactly that certificate and nothing else.
[[]]
= "lnd"
= "lnd-old"
= "https://127.0.0.1:8085" # Polar's REST port for the node
= "/home/you/.polar/networks/2/volumes/lnd/lnd-old/data/chain/bitcoin/regtest/readonly.macaroon"
= "/home/you/.polar/networks/2/volumes/lnd/lnd-old/tls.cert"
Use absolute paths; ~ isn't expanded. Add lnd_conf = "/path/to/lnd.conf" to also check where LND's APIs listen (see Exposure): LND doesn't report it over RPC.
Firewatch probes every credential before trusting it and refuses one that can do more than read: a rune that can call listfunds, or a macaroon that can sign messages.
When a node can't be read, the report says why in plain words: the node isn't running, the request timed out, the TLS certificate isn't the pinned one, the url points at the wrong port or scheme, or the node rejected the credential. docs/API.md lists every message. That node is Can't tell, never green, and the other nodes are still checked.
Exposure
Each node also gets an exposure list: whether its REST and gRPC APIs listen beyond this machine. A leaked rune or macaroon only works for someone who can reach the API. In August 2026 a BTCPay Server flaw let attackers obtain LND macaroons, and funds were stolen; the BTCPay Server 2.4.2 advisory says: "Do not leave an affected LND deployment accessible from the internet."
- Core Lightning:
clnrest-host/clnrest-portandgrpc-host/grpc-port, read withlistconfigsthrough the same restricted rune. - LND:
restlistenandrpclistenfromlnd.conf, whenlnd_confis set, read the way LND reads them: quoted values,tcp://andunix://forms, a bare port meaning localhost, and LND's default ports (8080, 10009). Flags on LND's command line override the file and can't be seen, so an option the file doesn't set isunknown, not LND's localhost default. Pointlnd_confat the file LND actually loads (lnd.confin itslnddir, or its--configfile): Firewatch can't tell which file LND read.
An API on 0.0.0.0, :: or a bare :port is exposed, with a hand check for the port. It's not an advisory verdict, so it never changes a node's red, amber or green. On Polar, Core Lightning nodes show exposed (Polar binds their APIs to 0.0.0.0 inside Docker), and LND nodes show unknown (Polar sets their listen addresses as command-line flags).
Build check
A version number is only text a binary prints. LND also reports the commit it was built from, so Firewatch compares it with the commit the official release tag points to, from releases/lnd.toml. Core Lightning reports no commit, only what git describe adds to its version when it isn't built as a release:
build_check |
Meaning |
|---|---|
match |
The binary is the official release its version claims. Verdicts are normal. |
mismatch |
Same version number, but a different commit, or the official commit built with changes (LND's commit= says -dirty or isn't an official tag). The version can't be trusted, so every finding on the node becomes Can't tell. |
unreleased |
Core Lightning built from a commit after a release tag (v26.06.7-12-gabc1234). It may hold changes or fixes the release doesn't, so every finding becomes Can't tell. |
modified |
Core Lightning built from a release tag with local changes (v26.06.7-modded). A clean source build often gets -modded too, when the build only regenerates files (ElementsProject/lightning#7152), so red findings stay red, and Not affected becomes Can't tell: never green when unsure. |
unknown_release |
The version isn't in the table, for example a release newer than it. Verdicts are normal. |
not_checked |
Core Lightning released as tagged (v26.06.9), or LND without a commit or table. |
Refresh the table with scripts/lnd-releases.sh; it only replaces the file when the fetch succeeds. --releases <file> points at another one. The table is required: Firewatch stops if it's missing, rather than giving an unofficial build normal verdicts.
Alerts are NIP-17 encrypted Nostr DMs to the operator's key. Set recipient to your npub under [alerts.nostr]. Firewatch creates its own key in secret_key_file on first run and delivers to your NIP-17 inbox relays (kind 10050) as well as the relays listed. Any NIP-17 client can read them, for example 0xchat, Amethyst or Primal. To read them in a terminal:
watch alerts when a finding turns red or amber, when it turns green again, and when a node has been unreachable for 3 checks in a row. A node restarting for an upgrade does not trigger an alert.
Dashboard API
watch serves the latest report on http://127.0.0.1:7070. See docs/API.md for the endpoints and the JSON format.
Dashboard
dashboard/ is the web page the operator watches: every node in one list, worst first, and the selected node's action, the developers' quoted fixes with links, what to check by hand and what a condition ruled out. Light by default, with a dark theme for dim rooms; it animates every change of verdict, and a lost or recovered connection arrives as a toast.
&& &&
For the demo, scripts/demo-up.sh builds it and serves it from watch at http://127.0.0.1:7070 (by hand: npm run build, then watch --dashboard dashboard/dist). Without a node network, dashboard/dev/sim.sh runs watch against simulated Core Lightning nodes, and ?fixture=demo shows recorded sample data. See dashboard/README.md.
Demo
The demo runs on a Polar regtest network named Firewatch-demo: an old Core Lightning (old-cln, 26.06.7), a current one (current-cln, 26.06.9), and three LND nodes (alice on 0.20.0-beta, lnd-old on 0.18.5-beta, and lnd-unofficial, a 0.20.0-beta built from an unofficial commit). What to do is in docs/DEMO.md; what to say is in docs/PITCH.md.
Polar's built-in Core Lightning list stops at 25.12. Build Polar-compatible images of the demo versions, then add them in Polar under Manage Images → Custom Nodes:
for; do
done
During the demo, upgrade the vulnerable node as an operator would, and reset it afterwards for the next run:
Core Lightning migrates its database on upgrade and cannot downgrade, which is why reset.sh restores a snapshot instead of swapping the image back.
For the build check, demo/polar/Dockerfile.lnd-unofficial builds LND 0.20.0-beta from the official tag plus one empty commit: it reports the official version number but not the official commit. Add it in Polar as a custom LND node named lnd-unofficial.
Verdicts
| Verdict | When |
|---|---|
| Affected | The version is in the affected range and every condition is confirmed true |
| Can't tell | The version is in range but a condition can't be read over RPC, the version can't be parsed, the node can't be read, or its build isn't the official release |
| Not affected | The version is outside the range, or a condition is confirmed false |
Firewatch never shows green when it is unsure.
Layout
| Path | What it is |
|---|---|
crates/firewatch-core |
Shared types (Advisory, NodeInfo, Verdict, Report), version parsing, the matching engine, the build check and change detection. Pure: no network, no credentials. |
crates/firewatch-connectors |
Read-only Core Lightning and LND connectors. |
crates/firewatch-alerts |
NIP-17 Nostr DM alerts. |
crates/firewatch-cli |
The firewatch binary: check, watch (loop and API), test-alert, validate. |
dashboard/ |
The operator's web dashboard (React, TypeScript, Vite, Tailwind), its fixtures, the live sim and the backup-video recorder. |
advisories/ |
One TOML file per advisory. Only verified = true advisories run by default. |
docs/sources/ |
The evidence for each Lightning Labs advisory: what was copied from where, and the audit. |
releases/ |
Official release commits for the build check. |
scripts/ |
demo-up.sh, verify-demo.py, audit-quotes.py, lnd-releases.sh. |
demo/ |
Polar images, the upgrade and reset scripts, and the expected verdicts. |
examples/nodes.json |
Node snapshots for working without a live network. |
.github/workflows/ci.yml |
CI: Rust fmt, clippy and tests, and the dashboard's lint, format check, tests and build. |
Docs
| File | What it is |
|---|---|
| docs/PITCH.md | The 3-minute pitch, deck outline and judge Q&A. |
| docs/DEMO.md | The demo runbook: setup, each beat, recovery. |
| docs/API.md | The dashboard API and JSON contract. |
| docs/sources/ | Evidence for each Lightning Labs advisory, with the quote audit. |
| docs/upstream-issue.md | Draft proposal for the community advisory list (not filed yet). |
| docs/event-rules.md | What the organizers confirmed. |
docs/Firewatch-Project-Brief.pdf, docs/Firewatch-Task-List.pdf |
The original plan (Oct 20–22). The code has moved past parts of it; this README and the docs above are current. |
Advisory format
= "FW-2026-003"
= "cln" # cln | lnd | ldk
= "Vulnerabilities fixed in 26.06.8"
= "< 26.06.8" # ">= 0.18.0, < 0.21.0"; "||" for alternatives
= "26.06.8" # one per release line: "0.20.2, 0.21.1"; omit if no fix yet
= "critical" # critical | high | medium | low
= true
= "https://github.com/ElementsProject/lightning/releases/tag/v26.06.8"
= "Dave"
= true
[[]] # every condition must hold for Affected
= "version_range" # version_range | config_enabled | feature_bit | network | manual
[]
= "upgrade" # upgrade | offline | disable_feature
= "We strongly recommend upgrading to this release." # quoted from the source
Other condition kinds:
[[]]
= "config_enabled" # CLN listconfigs
= "experimental-splicing"
[[]]
= "feature_bit" # LND GetInfo; either bit of the even/odd pair
= 62
[[]]
= "network" # mainnet (CLN: bitcoin), testnet, signet, regtest
= ["mainnet"]
[[]]
= "manual" # always Can't tell
= "What the operator should check by hand, and how."
A file that fails to parse or validate stops the load, so a broken advisory is never silently skipped. Adding an advisory means adding its test in crates/firewatch-core/tests/advisories.rs.
Limitations
- Firewatch covers only the advisories in its database; it does not discover new vulnerabilities.
- Conditions that depend on
lnd.confoptions not exposed over RPC return Can't tell, not a verdict. - For Core Lightning, the build check only sees what the version string admits (
-<n>-g<hash>,-modded): it reports no commit, so a build that claims a clean tag can't be verified. - It serves self-hosted node operators, not users of custodial or LSP-managed phone wallets.
- The advisory database is maintained by people; a missed advisory is a missed alert.