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

btc: reject master xpub exports

Public commit record

What the developer wrote

Authored by benma's agent

73/100 · Adequate
btc: reject master xpub exports

The master xpub combined with a leaked private key on an entirely
unhardened path exposes the master private key. The single-xpub API
would release the master xpub after an unusual-keypath confirmation.

Reject the empty keypath before prompting. Hosts that need to identify
the wallet can use the dedicated root fingerprint request.
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Names security-relevant behavior explicitly
The short version

What changed, and why it matters

This commit closes a security gap in the BitBox02 hardware wallet's Bitcoin API. Previously, a host app could ask the device to export the 'master xpub' (the public key at the very top of the wallet, keypath m/). Combined with any leaked private key from an unhardened derivation path, that master xpub could let an attacker compute the wallet's master private key and steal all funds. The fix rejects empty keypath requests before showing any confirmation screen. The commit message itself describes the security relevance.

Recommended action

Ensure this fix is included in the next firmware release; verify no other API surface (e.g., legacy or multisig xpub exports) allows an empty keypath; review related keypath validation helpers for consistency.

Security signals we found

01

Master xpub export prevented

02

Private-key derivation risk described in commit message

03

Unhardened path key compromise scenario

04

Input validation added before user confirmation

05

Regression test for rejected root keypath

Risk score

Why this scored 72/100

Our methodology →
Potential impact 22/30
Exploitability 16/25
Stealth signal 10/15
Affected reach 12/15
Confidence 8/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.