AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Low 29 Bitcoin

lightning-hsmtool: fix dumponchaindescriptors for mnemonic hsm_secrets.

Public commit record

What the developer wrote

Authored by Rusty Russell

73/100 · Adequate
lightning-hsmtool: fix dumponchaindescriptors for mnemonic hsm_secrets.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Fixed: `lightning-hsmtool`: handle mnemonic hsm_secret files (nodes created >= v25.12).
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit fixes a bug in the lightning-hsmtool utility's 'dumponchaindescriptors' command. For newer Core Lightning nodes created with a mnemonic seed (version 25.12 and later), the tool was deriving the wrong Bitcoin wallet descriptors, which would not match the actual on-chain addresses the node uses. The fix makes the tool follow the correct key derivation path for mnemonic-based secrets. It is a correctness/reliability bug rather than a remote-exploitable vulnerability, but it could cause users to generate incorrect backup descriptors and fail to recover or monitor funds.

Recommended action

Users who created nodes with mnemonic hsm_secret files (Core Lightning >= v25.12) and used 'lightning-hsmtool dumponchaindescriptors' for backup or recovery should re-run the command after upgrading and verify the generated descriptors match on-chain addresses. Node operators relying on descriptor-based monitoring or recovery should confirm the corrected descriptors against the node's actual UTXOs.

Security signals we found

01

Incorrect key derivation in a backup/recovery tool

02

Wallet descriptor mismatch could prevent fund recovery

03

Fix gated on seed format detection (use_bip86_derivation)

04

Test vector updated to reflect corrected output

Risk score

Why this scored 29/100

Our methodology →
Potential impact 8/30
Exploitability 3/25
Stealth signal 2/15
Affected reach 5/15
Confidence 7/10
Evidence quality 4/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.