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

keystore: fewer securechip calls when checking password

Public commit record

What the developer wrote

Authored by Marko Bencun

78/100 · Adequate
keystore: fewer securechip calls when checking password

The sanity check to see if the seed has changed does not need a
securechip operation, it can use the retained seed hash instead, same
as `unlock_bip39()`. This reduces the number of securechip operations
needed to do a password check, which reduces the risk of running into
the Optiga throttling security mechanism.
✓ Specific, 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 is a hardening improvement, not a fix for an active vulnerability. It reduces how often the BitBox02 hardware wallet talks to its secure chip (the Optiga) when checking a password. Previously, an extra secure-chip call was made to fetch and compare the seed; now the device compares a locally retained hash instead. This lowers the chance of hitting the secure chip's throttling/lockout counter during normal use, which could otherwise make the device temporarily unusable or even require reset. The change does not introduce a known exploit path.

Recommended action

Treat as a defensive hardening commit. Review that _check_retained_seed() cannot be called before _retained_seed_hash is initialized, and that the hash is cleared on lock to prevent stale comparisons. No urgent patch or incident response is indicated, but firmware should include this change to improve availability and reduce secure-chip wear.

Security signals we found

01

Avoids unnecessary secure-chip (Optiga) operations during password verification

02

Reduces exposure to secure-chip throttling/lockout mechanism

03

Uses retained in-memory seed hash instead of re-deriving/copying seed for sanity check

04

Unit tests updated to reflect reduced secure-chip event count

05

No change to cryptographic primitives or trust boundaries

Risk score

Why this scored 25/100

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