BB
← All projectsBitBox

BitBox02 firmware

Firmware and bootloader for BitBox02 signing devices.

BitcoinHardware walletsNormal
Repository coverage

940 commits in the local evidence base

Every captured commit receives deterministic security triage and a separate communication-quality score. Security candidates and broader second-pass signals receive full-patch Ollama analysis.

314security candidates187second-pass queue828AI analyses
90commits · 30 days
143commits · 60 days
338commits · 180 days
724commits · 365 days
Backfill bands
Aug 5 → Feb 6335 seen28 candidatesComplete
Feb 6 → Jun 6265 seen19 candidatesComplete
Jun 6 → Jul 619 seen5 candidatesComplete
Jul 6 → Aug 526 seen3 candidatesComplete
Commit communication

Does the history explain itself?

Message quality measures whether a commit identifies its scope, purpose, rationale, testing, and supporting references. It does not change the security-severity score.

59/100 average clarity
86Strong · 80–100
381Adequate · 60–79
383Thin · 40–59
90Opaque · 0–39
27security candidates with opaque commit messaging
Read the scoring rubric →
Developer activity

Who is changing the project?

Public Git author strings; identities are not independently verified.

DeveloperCommitsCandidatesAnalyzedHigh riskMessage avg.
Marko Bencun504157459656
benma's agent15566140267
Niklas Dusenlund17351145057
Cedric Wiese24919051
NickeZ Agent1669077
cedwies12512063
Sebastian Sutter655060
Tomas Vrba12410068
Yasser Aziza333070
Jad14210060
benma312069
Niklas211054
Analysis record

Published AI watches

Last scanned 47 minutes ago

Low 47 AI analysisMessage 50 · Thin
BB BitBoxBitBox02 firmware BitcoinHardware wallets

Merge branch 'nickez-agent/zeroizing-labels-textarea'

This commit replaces several LVGL UI widgets (label, textarea, keyboard) with custom Rust reimplementations whose main goal is to automatically erase sensitive text from memory when it is no longer needed. It also disables unused LVGL widg…

Introduction of zeroize-backed text storage for UI labels/textareas/keyboardsReplacement of LVGL label/textarea/keyboard widgets with Rust reimplementationsDisabling of unused LVGL widgets in lv_conf.h to reduce attack surface
2a6ddf17by Niklas Dusenlund+1831−70328 files
Vendor flagged security relevance
Informational 12 AI analysisMessage 50 · Thin
BB BitBoxBitBox02 firmware BitcoinHardware wallets

Merge remote-tracking branch 'agent/benma-agent/remove-aes-hmac-c-exports'

This commit removes unused C-language export functions for AES encryption/HMAC from the BitBox02 firmware's Rust code. It is a cleanup change: the functions are deleted, the crate is no longer included in firmware builds, and simulators st…

Reduction of C FFI attack surface by removing no_mangle AES/HMAC exportsDependency cleanup: bitbox-aes no longer linked into firmware or simulatorsNo patch of an identified vulnerability in cryptographic logic
0b6365c6by Marko Bencun+2−5913 files
No security note in commit
Low 43 AI analysisMessage 50 · Thin
BB BitBoxBitBox02 firmware BitcoinHardware wallets

Merge remote-tracking branch 'agent/benma-agent/btc-root-xpub-m49'

This firmware update makes two changes to how the BitBox02 hardware wallet handles Bitcoin-related requests. First, it blocks apps from exporting the wallet's master public key (the 'root xpub') at the top-level path 'm/'. Second, it allow…

Root xpub export blocked at empty keypath (m/)Changelog describes root-xpub restriction as a security-relevant changeExternal service message signing expanded to m/49 unhardened purpose
5294645cby Marko Bencun+79−195 files
Vendor flagged security relevance
Informational 17 AI analysisMessage 78 · Adequate
BB BitBoxBitBox02 firmware BitcoinHardware wallets

cipher: remove unused AES-HMAC C exports

This commit removes two unused C-language bridge functions that wrapped an AES-HMAC encryption/decryption module. The functions themselves were not called from C code; the firmware now calls the same encryption logic directly from Rust. Re…

Removal of C FFI wrappers that could panic on malformed inputsCommit message acknowledges potential panic conditions (invalid IV length, undersized output buffer)No functional change to the underlying AES-HMAC implementation
090a263fby benma's agent+2−5913 files
Vendor flagged security relevance
Low 34 AI analysisMessage 85 · Strong
BB BitBoxBitBox02 firmware BitcoinHardware wallets

u2f: bound DER signature component reads

This commit fixes a small but real bug in how U2F signature components are converted to DER format. The old code could strip too many leading zeros and then read past the end of a 32-byte signature piece, potentially producing an invalid o…

Out-of-bounds read at component boundary during DER encodingPotential malformed DER output for all-zero signature componentDefensive hardening in U2F signature handling
dd17bed7by benma's agent+21−43 files
Vendor flagged security relevance
Low 30 AI analysisMessage 78 · Adequate
BB BitBoxBitBox02 firmware BitcoinHardware wallets

btc: allow message signing under m/49

This commit expands the BitBox02 hardware wallet's Bitcoin message-signing feature to also accept key paths starting with the unhardened purpose 'm/49'. Previously only hardened m/45' and m/48' were treated as valid 'external service' keyp…

Relaxation of keypath allowlist for message signingUnhardened purpose m/49 added to external-service signing namespaceUser confirmation prompt still required ('External service key')
1f377f72by benma's agent+63−194 files
No security note in commit
High 72 AI analysisMessage 73 · Adequate
BB BitBoxBitBox02 firmware BitcoinHardware wallets

btc: reject master xpub exports

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 p…

Master xpub export preventedPrivate-key derivation risk described in commit messageUnhardened path key compromise scenario
c4524b15by benma's agent+16−02 files
Vendor flagged security relevance
Informational 15 AI analysisMessage 50 · Thin
BB BitBoxBitBox02 firmware BitcoinHardware wallets

Merge branch 'nickez-agent/configure-stage1-embedding'

This commit is a build-system refactor for the BitBox02 hardware wallet firmware. It replaces a set of separate 'bootloader upgrade' firmware images with a configurable option to embed the same bootloader update data into the normal firmwa…

70a32f5bby Niklas Dusenlund+152−33111 files
No security note in commit
High 70 AI analysisMessage 50 · Thin
BB BitBoxBitBox02 firmware BitcoinHardware wallets

Merge remote-tracking branch 'agent/benma-agent/merge-firmware-v9.29.0'

This firmware update hardens how the BitBox02 handles SwapKit-style cryptocurrency swaps and Bitcoin multisig addresses. It adds a new 'refund memo' to payment requests so the device can verify that any refund address belongs to the same w…

CHANGELOG labels prior changes as 'Bitcoin security fixes (multisig keypath and previous-transaction hash length validation)'CHANGELOG labels v9.29.0 as 'Require wallet-owned refund addresses for SwapKit'New RefundMemo protobuf message with address and optional derivation info
9b16af63by Marko Bencun+867−12411 files
Vendor flagged security relevance
Moderate 60 AI analysisMessage 50 · Thin
BB BitBoxBitBox02 firmware BitcoinHardware wallets

Merge remote-tracking branch 'agent/benma-agent/merge-bootloader-v1.2.3'

This commit hardens the BitBox02 bootloader's stored version-rollback protection data. It adds a SHA-256 checksum over the firmware and signing-key version 'floors' and a one-time migration marker, so the device can detect tampering or cor…

Adds integrity checksum (SHA-256) for anti-rollback version floors in bootloader flash dataIntroduces one-time migration marker to prevent repeated downgrade/migration windowsProduction bootloader now aborts on invalid bootdata instead of silently reinitializing it
a4ddb764by Marko Bencun+2124−3123 files
Vendor flagged security relevance
Informational 15 AI analysisMessage 50 · Thin
BB BitBoxBitBox02 firmware BitcoinHardware wallets

Merge remote-tracking branch 'agent/benma-agent/high-fee-wording-v9.27.2'

This commit only updates test data and test expectations to reflect that a wording change for high Bitcoin transaction fees was released in firmware version 9.27.2 instead of 9.28.0. It does not change any device firmware code, security lo…

00f9eb22by Marko Bencun+65−1123 files
No security note in commit
Informational 15 AI analysisMessage 68 · Adequate
BB BitBoxBitBox02 firmware BitcoinHardware wallets

btc: fix high-fee wording cutoff in vectors

This commit only updates test data and test expectations for the BitBox02 firmware. It changes which firmware versions are expected to show an old versus new high-fee warning message, because the real firmware already started showing the n…

dc5702d0by benma's agent+65−1123 files
No security note in commit
High 77 AI analysisMessage 50 · Thin
BB BitBoxBitBox02 firmware BitcoinHardware wallets

Merge remote-tracking branch 'agent/benma-agent/stage0-reject-zero-signatures'

This update hardens the BitBox02 hardware wallet's bootloader so it refuses to accept a firmware update signed with an all-zero signature. Previously, the cryptographic verification routine could treat a zero-filled signature as valid unde…

Rejects all-zero ECDSA signatures that may verify as validAdds volatile signature read to mitigate LTO-based read eliminationORs all signature bytes without early exit to ensure full-byte inspection
aec4595dby Marko Bencun+81−22 files
No security note in commit
Low 35 AI analysisMessage 50 · Thin
BB BitBoxBitBox02 firmware BitcoinHardware wallets

Merge remote-tracking branch 'agent/benma-agent/stage1-pairing-lifecycle'

This update fixes a Bluetooth pairing bug in the BitBox02 Nova hardware wallet. When the device switched from Bluetooth back to USB mode, it could keep an old pairing request active. The fix clears that stale pairing state so the device do…

Clearing of stale Bluetooth pairing state on mode switchPairing code/request flag left set across BLE->USB transition before fixBluetooth pairing lifecycle change in bootloader startup path
1047430dby Marko Bencun+7−65 files
Vendor flagged security relevance
Low 47 AI analysisMessage 50 · Thin
BB BitBoxBitBox02 firmware BitcoinHardware wallets

Merge remote-tracking branch 'agent/benma-agent/silent-payment-constant-time-ecdh'

This commit changes how the BitBox02 hardware wallet computes a secret value used in Bitcoin silent payments. Previously, the device used a function that could leak timing information about the secret key through how long the calculation t…

Constant-time cryptographic operation addedVariable-time secret-key multiplication removedSide-channel hardening for silent payments
c1590222by Marko Bencun+21−122 files
No security note in commit
Moderate 59 AI analysisMessage 68 · Adequate
BB BitBoxBitBox02 firmware BitcoinHardware wallets

btc: use constant-time ECDH for silent payments

This commit hardens the BitBox02 hardware wallet's silent-payments feature against a side-channel attack. Previously, the device multiplied a secret key with a public key using a routine whose execution time could leak information about th…

Constant-time cryptographic operation introduced to replace variable-time secret-key multiplicationVariable-time scalar multiplication retained only on public operandsSilent payments private input key material (a_sum) no longer used in variable-time path
7e741cfdby benma's agent+21−122 files
Vendor flagged security relevance
Informational 15 AI analysisMessage 50 · Thin
BB BitBoxBitBox02 firmware BitcoinHardware wallets

Merge branch 'nickez-agent/pin-protobuf-generators'

This commit is a build-system and developer-environment change. It pins the protobuf compiler and related Python tools to specific versions via a project-managed Python virtual environment, instead of relying on whatever version a develope…

Pinning build tools to exact versions reduces non-determinism in generated codeMoves protobuf compiler from system/Docker-installed binary to a version-locked Python wheelNo changes to firmware, cryptography, authentication, or device protocol logic
d072b0f9by Niklas Dusenlund+107−6411 files
No security note in commit
Informational 15 AI analysisMessage 92 · Strong
BB BitBoxBitBox02 firmware BitcoinHardware wallets

build: prefer local protoc for Rust bindings

This commit changes the build script that generates Rust code from protobuf definitions. It makes the build prefer a specific local copy of the protobuf compiler (protoc) installed in the repository's virtual environment, rather than relyi…

de8be632by NickeZ Agent+4−01 file
No security note in commit
Informational 15 AI analysisMessage 80 · Strong
BB BitBoxBitBox02 firmware BitcoinHardware wallets

build: use IPv4 for container downloads

This change forces the build system to use IPv4 instead of IPv6 when downloading tools and software packages during Docker image creation. It is a build reliability fix for GitHub Actions CI runners that lack IPv6 connectivity, not a secur…

bc434dcfby NickeZ Agent+6−41 file
No security note in commit
Informational 15 AI analysisMessage 80 · Strong
BB BitBoxBitBox02 firmware BitcoinHardware wallets

build: check regenerated protobuf bindings

This change improves a build/CI script that checks whether automatically generated protobuf binding files are up to date. It now also checks Python bindings and deletes old generated files before regenerating them, so stale files cannot hi…

No security-relevant code changeBuild/CI hardening onlyNo vulnerability fix or exploit mitigation present in diff
ff3f7474by NickeZ Agent+13−22 files
No security note in commit
Repository ledger

Explore captured commits

Expand any commit for its author, full message, clarity score, changed files, triage signals, analysis, and source link.

Lower-prioritytest: remove unused mock_memory.cby Marko Bencun · cfa4c4d0 · Oct 18, 2025 · 2 filesMessage 67 · AdequateInformational 15Details
Commit message · Marko Bencun

test: remove unused mock_memory.c

67/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Mentions testing or verification! No meaningful explanatory body
AI analysis · Informational 15/100

This commit simply deletes an unused test helper file (mock_memory.c) and removes it from the test build list. It is a routine cleanup of dead test code and does not change any firmware behavior or fix any security issue.

Lower-priorityRemove C salt unit test now covered by Rustby benma's agent · 76079fba · Oct 18, 2025 · 2 filesMessage 55 · ThinInformational 15Details
Commit message · benma's agent

Remove C salt unit test now covered by Rust

55/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Mentions testing or verification! No meaningful explanatory body
AI analysis · Informational 15/100

This commit simply deletes an old C-language unit test for a salt-hashing function because the same behavior is now tested in Rust. It does not change any production firmware code, cryptographic logic, or how devices operate. There is no security issue here.

Lower-priorityport salt.c to Rustby benma's agent · c3aad65b · Oct 18, 2025 · 3 filesMessage 71 · AdequateInformational 12Details
Commit message · benma's agent

port salt.c to Rust

test_salt.c unit tests is replicated in Rust. The C function body
calls the Rust function so we can also verify the C unit tests still
pass (to be removed in the next commit).

71/100 · AdequateMessage clarity
✓ Subject identifies a change✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
AI analysis · Informational 12/100

This commit rewrites a small cryptographic helper from C to Rust. It does not change the behavior visible to the rest of the firmware; the C function now simply calls the new Rust implementation. There is no indication this fixes or introduces a security bug.

Lower-priorityrust: expose memory_get_salt_root to Rustby benma's agent · 00cf5233 · Oct 18, 2025 · 4 filesMessage 45 · ThinInformational 15Details
Commit message · benma's agent

rust: expose memory_get_salt_root to Rust

45/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI analysis · Informational 15/100

This commit is a routine plumbing change: it makes an existing C function called memory_get_salt_root callable from Rust code. It does not change how the salt root is generated, stored, or used, and it does not add any new user-facing behavior. The change is accompanied by unit tests that verify the new Rust wrapper reads and writes the value correctly.

Lower-prioritytest: remove unused fake_memory_set_salt_rootby Marko Bencun · d240d725 · Oct 17, 2025 · 2 filesMessage 57 · ThinInformational 15Details
Commit message · Marko Bencun

test: remove unused fake_memory_set_salt_root

57/100 · ThinMessage clarity
✓ Descriptive subject✓ Uses a recognizable type or scope✓ Mentions testing or verification! No meaningful explanatory body
AI analysis · Informational 15/100

This commit removes an unused test helper function that set a fake cryptographic salt root during automated testing. It is a routine code cleanup with no effect on the real device firmware or user security.

Lower-priorityfixup! u2f: Do not turn off BLE when U2F is used over USBby Niklas Dusenlund · 471dc30a · Oct 16, 2025 · 1 fileMessage 50 · ThinLow 26Details
Commit message · Niklas Dusenlund

fixup! u2f: Do not turn off BLE when U2F is used over USB

50/100 · ThinMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI analysis · Low 26/100

This is a tiny one-line fix in the BitBox02 hardware wallet's USB message handling. It changes a 'return false' to a 'break' so that after ignoring a malformed or duplicate USB frame, the code continues to a later cleanup step instead of exiting early. The commit title suggests this is a follow-up fix to keep Bluetooth Low Energy (BLE) from being accidentally disabled when U2F (a web security key protocol) is used over USB. On its own, the change is a bug fix that prevents an early return from skipping state cleanup, but the diff is too small to confirm any direct security consequence.

Lower-priorityU2F: remove option to cancel u2f flowsby Niklas Dusenlund · a5fb700a · Oct 16, 2025 · 1 fileMessage 80 · StrongLow 29Details
Commit message · Niklas Dusenlund

U2F: remove option to cancel u2f flows

In the U2F architecture it isn't possible for the device to "cancel" a
user presence check because the browser can always just ask again. The
only way to cancel it is from the OS/browser.

80/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode
AI analysis · Low 29/100

This commit removes the ability for a user to cancel a U2F (Universal 2nd Factor) security-key confirmation prompt on the BitBox02 hardware wallet. Previously, the device likely showed an 'accept or cancel' prompt during U2F login operations; now it only allows 'accept'. The change is described as an architectural fix because web browsers can simply re-request authentication if the user cancels, so a device-side cancel button did not meaningfully stop the process and could confuse users.

Security candidateu2f: Do not turn off BLE when U2F is used over USBby Niklas Dusenlund · d6f22d77 · Oct 16, 2025 · 4 filesMessage 85 · StrongInformational 21Details
Commit message · Niklas Dusenlund

u2f: Do not turn off BLE when U2F is used over USB

iOS devices support u2f over USB, so no need to disable BLE when only
u2f is used.

iOS devices also send one packet of garbage when waking up, 64 null
bytes, which also is ignored, so that the bitbox still can connect to
the iOS device when it is awakened.

85/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode
Why it was queued
boot or update path
AI analysis · Informational 21/100

This firmware update fixes a bug where using U2F security-key features over USB accidentally turned off Bluetooth Low Energy (BLE). Because iPhones and iPads can use U2F over USB, disabling BLE meant the device could not reconnect wirelessly after the iOS device woke up. The patch also makes the firmware ignore a harmless 64-byte 'wake-up' packet sent by iOS. There is no direct evidence this is an exploitable security vulnerability; it appears to be a connectivity/availability bug.

Security candidatereleases: add v9.24.0by Marko Bencun · cf9db97e · Oct 15, 2025 · 4 filesMessage 38 · OpaqueInformational 15Details
Commit message · Marko Bencun

releases: add v9.24.0

38/100 · OpaqueMessage clarity
✓ Subject identifies a change✓ Names a concrete action or component! No meaningful explanatory body! Opaque security-relevant change
Why it was queued
boot or update path
AI analysis · Informational 15/100

This commit adds release artifacts for BitBox02 firmware version 9.24.0. It contains two signed statements (assertions) confirming that building the source code at a specific git tag produces a firmware binary with a known SHA-256 hash. There is no code change, no bug fix, and no security-related content in the commit itself.

Lower-prioritygestures: Simplify some repetitive codeby Niklas Dusenlund · ffd238b0 · Oct 14, 2025 · 2 filesMessage 45 · ThinInformational 15Details
Commit message · Niklas Dusenlund

gestures: Simplify some repetitive code

45/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI analysis · Informational 15/100

This commit is a straightforward code cleanup in the touch gesture handling of the BitBox02 hardware wallet. It replaces five nearly identical two-line functions with a small lookup table and a loop. The order of one gesture event constant was moved in the enum so the loop can iterate over all event types. There is no security-relevant change: the same checks are performed in the same order and the same events are emitted under the same conditions.

Security candidatereleases: add v9.23.3by Marko Bencun · 4ab640b9 · Oct 13, 2025 · 4 filesMessage 38 · OpaqueInformational 15Details
Commit message · Marko Bencun

releases: add v9.23.3

38/100 · OpaqueMessage clarity
✓ Subject identifies a change✓ Names a concrete action or component! No meaningful explanatory body! Opaque security-relevant change
Why it was queued
boot or update path
AI analysis · Informational 15/100

This commit adds release artifacts for firmware version 9.23.3 of the BitBox02 hardware wallet. It contains two signed text files (assertions) confirming the expected SHA-256 hash of the compiled firmware binary for both the standard and Bitcoin-only editions. There is no code change and no security issue visible in the diff.

Lower-priorityui/waiting: start with logo, not lockscreenby Marko Bencun · 3d5ed1f2 · Oct 13, 2025 · 5 filesMessage 68 · AdequateInformational 15Details
Commit message · Marko Bencun

ui/waiting: start with logo, not lockscreen

40d150132797a2c5185fbbb9bf1926b24571780d refactored and introduced a
bug:

old behavior (before above commit)

logo -> lockscreen -> host connects -> logo

above commit changed to this by accident, skipping the logo at the start:

lockscreen -> host connects -> logo

This commit restores the original behavior.

68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Informational 15/100

This commit fixes a UI bug in the BitBox02 hardware wallet where the device showed the lockscreen instead of the company logo when first powered on. It restores the intended startup sequence: logo appears first, then switches to the lockscreen once the orientation/setup timer finishes and USB starts. There is no security issue here—only a visual display-order correction.

AI review queuedCHANGELOG: mark v9.24.0by Marko Bencun · 6b9aed4f · Oct 13, 2025 · 1 fileMessage 38 · OpaqueInformational 15Details
Commit message · Marko Bencun

CHANGELOG: mark v9.24.0

38/100 · OpaqueMessage clarity
✓ Subject identifies a change✓ Names a concrete action or component! No meaningful explanatory body
Why it was queued
documentation-only discountsecond-pass: opaque commit message
AI analysis · Informational 15/100

This commit only updates the CHANGELOG.md file to add a new version heading (v9.24.0). It contains no code changes, no bug fixes, and no security-related content. It is a routine documentation/release-management edit.

Lower-prioritybump version vo v9.23.3 and add CHANGELOG entryby Marko Bencun · 3554c267 · Oct 13, 2025 · 1 fileMessage 45 · ThinInformational 15Details
Commit message · Marko Bencun

bump version vo v9.23.3 and add CHANGELOG entry

45/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
Why it was queued
documentation-only discount
AI analysis · Informational 15/100

This commit only adds a changelog entry and bumps the firmware version number. It contains no code changes, so it cannot by itself introduce, fix, or enable any security vulnerability.

Security candidatemake unlock-animation slower again like it used to beby Marko Bencun · a5811a57 · Oct 13, 2025 · 3 filesMessage 78 · AdequateLow 25Details
Commit message · Marko Bencun

make unlock-animation slower again like it used to be

When we switched from libwally to rust-bip39, bip39 unlock became
twice as fast. It feels too fast now.

The animation speed is based on the frame render rate, which is
not fixed. If the animation goes longer than the actual bip39 unlock
computation, the animation afterwards is significantly faster as there
is less work performed per mainloop iteration. In absence of fixed
render frame rates, we just perform the bip39 unlock twice to maintain
the same frame rate. Conincidentally, this results in an unlock speed
which is basically the same as before with libwally, and we get a
security check for free (repeat and double check the bip39 seed).

78/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Names security-relevant behavior explicitly
Why it was queued
secret or key material
AI analysis · Low 25/100

This commit deliberately runs the wallet-unlock calculation twice instead of once, purely to keep the on-screen unlock animation from finishing too quickly after a performance improvement. The second run is used as a consistency check: if the two results don't match, the device reports a memory error. The change is framed as a user-experience fix that happens to add a safety double-check, not as a response to a known security bug.

Lower-priorityconfirm-gesture: extend active durationby Niklas Dusenlund · b586290f · Oct 13, 2025 · 1 fileMessage 80 · StrongLow 37Details
Commit message · Niklas Dusenlund

confirm-gesture: extend active duration

Extend the duration for when the confirm gesture is active so that
involuntary bottom taps are not triggered and so that the confirm
gesture triangle isn't rendered blended into the keyboard.

80/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode
AI analysis · Low 37/100

This commit changes the BitBox02 hardware wallet's on-screen confirmation gesture. Previously, the 'confirm' gesture was considered active only while the user was touching the top of the screen. After the change, it also stays active while a bottom-arrow animation is still sliding in. The stated goal is to prevent accidental bottom-tap confirmations and to avoid a visual glitch where the confirm triangle blends into the keyboard. The change is a one-line UI timing/behavior fix, not a cryptographic or memory-safety patch.

Lower-priorityavoid flicker when changing from lockscreen to waiting screenby Marko Bencun · 40d15013 · Oct 13, 2025 · 9 filesMessage 73 · AdequateInformational 15Details
Commit message · Marko Bencun

avoid flicker when changing from lockscreen to waiting screen

The BitBox shows the lockscreen ("See the BitBoxApp") first, and when
the noise connection is initiazed, switches to the BitBox logo, which
stays there as the waiting/default screen until reconnected.

The noise connection is initiated by the host after unlock finishes,
so in between, "See the BitBoxApp" flashes for a split second.

This commit solves this by

1) not pushing the lockscreen as an extra component to be popped, but
folding it into the top/default component

2) updating that screen when the app initiates the connection if the
device is not initialized

3) if initialized, updating the screen on OP_UNLOCK (see comment in code)

This prevents flashing/flickering if the device is initialized. There
is still a small flicker when the device is uninitialized, as the
screen is updated before the pairing confirmation appears. This was
the case before this commit too.

73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Informational 15/100

This commit is a user-interface polish fix. It removes a brief screen flicker when the BitBox02 hardware wallet switches from the lockscreen message ('See the BitBoxApp') to the waiting logo screen. The change folds the lockscreen into the main waiting component and updates it at the right moment when the host computer connects. There is no security-relevant behavior change.

Lower-prioritykeystore: reduce secure chip operations when unlockingby Marko Bencun · e6d8560b · Oct 13, 2025 · 6 filesMessage 78 · AdequateInformational 19Details
Commit message · Marko Bencun

keystore: reduce secure chip operations when unlocking

Every call to `keystore::unlock` is followed by `copy_seed()`. The latter
uses a secure chip operation. We can remove that by returning the seed
from unlock and re-using it.

This reduces the number of securechip operations by 1 when:

- when unlocking the device
- showing mnemonic on initialized device
- creating backu on initialized device

This is to reduce the risk of running into Optiga's throttling
security mechanism.

78/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Names security-relevant behavior explicitly
AI analysis · Informational 19/100

This commit is a performance and reliability improvement, not a security vulnerability fix. It changes how the BitBox02 hardware wallet retrieves the wallet seed when unlocking: instead of making a separate secure-chip operation to copy the seed after unlocking, the seed is now returned directly from the unlock function. This reduces the number of secure-chip operations by one during common tasks (unlocking, showing the recovery words, and creating a backup). The stated goal is to lower the chance of hitting the Optiga secure chip's throttling/security mechanism. The change itself does not appear to introduce a security flaw, and the seed is still handled with zeroization in the Rust wrapper.

Lower-priorityworkflow/unlock: add unit testby Marko Bencun · 17ceae13 · Oct 13, 2025 · 1 fileMessage 55 · ThinInformational 15Details
Commit message · Marko Bencun

workflow/unlock: add unit test

55/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Mentions testing or verification! No meaningful explanatory body
AI analysis · Informational 15/100

This commit only adds a new automated test for the device-unlock workflow. It does not change any production code, user-facing behavior, or security logic. There is no indication of a security fix or vulnerability.

Lower-priorityapi/backup: add unit test for creating a new backup when initialzedby Marko Bencun · 93771f63 · Oct 13, 2025 · 3 filesMessage 60 · AdequateInformational 15Details
Commit message · Marko Bencun

api/backup: add unit test for creating a new backup when initialzed

60/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Mentions testing or verification! No meaningful explanatory body
AI analysis · Informational 15/100

This commit only adds and updates unit tests for the BitBox02 firmware. It does not change any production code, cryptographic operations, or user-facing behavior. There is no security issue here.

Lower-prioritykeystore: add timeout reset in keystore_encrypt_and_store_seedby Marko Bencun · c27afb79 · Oct 12, 2025 · 1 fileMessage 73 · AdequateInformational 24Details
Commit message · Marko Bencun

keystore: add timeout reset in keystore_encrypt_and_store_seed

The duration of this function can go over the 500ms timeout duration,
so we give more time so the create/restore API calls don't timeout.

73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Informational 24/100

This commit fixes a timeout issue during wallet creation or seed restoration on the BitBox02 hardware wallet. The operation of encrypting and storing a new seed could take longer than the default 500 millisecond USB communication timeout, causing the host software to think the device had stopped responding. The fix extends the allowed time for this specific operation. It is a reliability/usability fix rather than a security vulnerability in the cryptographic handling of the seed.

Lower-priorityapi/backup: yield to avoid timeoutby Marko Bencun · 89a8a6df · Oct 12, 2025 · 1 fileMessage 72 · AdequateInformational 18Details
Commit message · Marko Bencun

api/backup: yield to avoid timeout

Maybe not strictly needed, but to reduce the chance of comms timeout,
we yield after copy_seed.

72/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body✓ Explains rationale or failure mode
AI analysis · Informational 18/100

This is a small hardening change in the BitBox02 hardware wallet firmware. After copying the wallet seed during a backup operation, the code now briefly pauses to let the device handle USB/Bluetooth communication. The stated goal is to reduce the chance of a communication timeout, not to fix a security vulnerability.

AI review queuedsd: speedup sd_card_insertedby Marko Bencun · 396a4062 · Oct 12, 2025 · 1 fileMessage 35 · OpaqueInformational 12Details
Commit message · Marko Bencun

sd: speedup sd_card_inserted

Don't sleep as long.

35/100 · OpaqueMessage clarity
✓ Descriptive subject! No meaningful explanatory body
Why it was queued
second-pass: opaque commit message
AI analysis · Informational 12/100

This commit is a minor performance tweak to the function that checks whether an SD card is inserted. It reduces the wait time between status checks from 100 milliseconds to 5 milliseconds, while increasing the number of checks so the total maximum wait remains about one second. There is no security-relevant change here.

Lower-priorityhal: make SD functions async and yieldingby Marko Bencun · f3eae636 · Oct 12, 2025 · 6 filesMessage 68 · AdequateInformational 23Details
Commit message · Marko Bencun

hal: make SD functions async and yielding

An SD operation resume clock, mount, does the operation, unmounts,
stops clock. This is a bit slow. In API calls like backup creation,
this happens 10+ times in a row, which can cause communication
timeouts.

We make all SD functions async. Instead of making all of them properly
async, for now we make all of them yield to the executor afterwards,
so the communication processing gets a chance to run and not cause a
timeout. In the future we could then swap the sdcard functions with
proper async ones.

68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Informational 23/100

This commit changes how the BitBox02 hardware wallet talks to its SD card. The operations themselves stay the same, but each SD card call now briefly pauses (yields) so the device can keep answering USB/app messages while a long backup or restore runs. The goal is to prevent the app from giving up (timing out) during backups that touch the SD card many times in a row. It is a reliability/usability fix, not a patch for a memory-corruption or cryptographic bug.

Lower-prioritycmake: CMake variable handling is a black boxby Niklas Dusenlund · ad17158f · Oct 12, 2025 · 2 filesMessage 45 · ThinInformational 16Details
Commit message · Niklas Dusenlund

cmake: CMake variable handling is a black box

45/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
Why it was queued
documentation-only discount
AI analysis · Informational 16/100

This commit fixes how the build system handles RUSTFLAGS, a set of flags passed to the Rust compiler. Previously, if the environment variable RUSTFLAGS was not set, the CMake variable could be left undefined, causing later commands that append text to it to behave unpredictably. The change ensures RUSTFLAGS is always initialized to an empty string if not provided, and uses a safer method to combine multiple flags. This is primarily a build robustness and reproducibility fix, not a direct security vulnerability in the device firmware itself.