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

hww: add change password workflow

Public commit record

What the developer wrote

Authored by cedwies

73/100 · Adequate
hww: add change password workflow

Currently, changing the device password requires a full device reset
and restoration from a backup. This process is cumbersome and increases
the risk of user error or seed exposure during the restoration process.

This patch introduces a native "Change Password" workflow that allows
the user to rotate their device password without resetting the device.

The workflow:
1. Forces the user to re-enter the current password for security, even
if the device is already unlocked.
2. Prompts for the new password (entered twice).
3. Re-encrypts the stored seed and BIP39 entropy with the new password
using the Secure Chip for key stretching.

The implementation ensures that the wallet identity (Root Fingerprint
and BIP39 seed) is preserved, so the device remains paired and
functional with the same accounts (including passphrase) after the
password change.
✓ 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 adds a new 'Change Password' feature to the BitBox02 hardware wallet. Instead of resetting the device and restoring from a backup, users can now change their device password directly. The wallet re-encrypts the stored seed with the new password while keeping the same accounts and identity. The change is a normal product feature, not a security fix, but it touches sensitive crypto code that protects the user's funds.

Recommended action

Treat as a feature commit, not a vulnerability patch. If auditing, focus review on keystore::re_encrypt_seed to ensure the BIP39 seed and root fingerprint are safely retained and that no plaintext seed material is exposed during the rotation. Also verify that the new endpoint cannot be reached in a locked or uninitialized state and that the secure chip event-counter assumptions in tests match production behavior.

Security signals we found

01

New privileged API endpoint added to an existing oneof (protobuf tag 30)

02

Workflow requires old-password re-authentication before password rotation

03

Re-encryption of seed material via secure chip key stretching

04

BIP39 seed and root fingerprint are copied and restored across re-encryption to preserve wallet state

05

Endpoint is restricted to InitializedAndUnlocked device state

06

No input parameters in ChangePasswordRequest, so no attacker-controlled data is parsed

07

Extensive unit tests included for success, failure, and state-preservation cases

Risk score

Why this scored 36/100

Our methodology →
Potential impact 8/30
Exploitability 6/25
Stealth signal 4/15
Affected reach 7/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.