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.
Install
One command, no Rust or Node needed (Linux and macOS, Intel and ARM):
|
It puts a single firewatch binary in ~/.local/bin, with the advisories, the LND release table and the dashboard built in. Each release also has plain archives and SHA-256 checksums on the releases page.
Then:
init finds LND in ~/.lnd (or $LND_DIR, or Umbrel's folder), Core Lightning in ~/.lightning, and Polar networks, then tests each connection before writing ~/.config/firewatch/firewatch.toml. LND needs nothing else: its readonly.macaroon already exists. Core Lightning needs one read-only rune, and creating a rune changes the node, which Firewatch never does, so init prints the command and asks you to paste the result.
For phone alerts, install Nostur (iPhone) or Amethyst (Android), give init your npub, and accept the first message request.
With Rust installed you can build it instead: cargo install --git https://github.com/Chibey-max/Firewatch firewatch (that build serves the API without the dashboard, unless dashboard/dist was built first).
Advisories are built into each release, so update Firewatch (run the installer again) to get new ones.
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.