BB
← All projectsBitBox

BitBox02 firmware

Firmware and bootloader for BitBox02 signing devices.

BitcoinHardware walletsNormal
Repository coverage

939 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 candidates186second-pass queue827AI analyses
89commits · 30 days
145commits · 60 days
337commits · 180 days
723commits · 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
382Thin · 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 Dusenlund17251144057
Cedric Wiese24919051
NickeZ Agent1669077
cedwies12512063
Sebastian Sutter655060
Tomas Vrba12410068
Yasser Aziza333070
Jad14210060
benma312069
Niklas211054
Analysis record

Published AI watches

Last scanned 20 minutes ago

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
Informational 15 AI analysisMessage 45 · Thin
BB BitBoxBitBox02 firmware BitcoinHardware wallets

Merge branch 'translate-passphrase-on-host'

This commit is a localization (translation) update for the BitBox02 hardware wallet. It replaces hard-coded English text strings in the passphrase unlock feature with calls to the device's internationalization system, so the same messages …

4dfa26b4by Marko Bencun+33−103 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-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.

Lower-prioritybluetooth: use hex literal for the allowed Bluetooth FW hashby Marko Bencun · a54cfd65 · Oct 12, 2025 · 2 filesMessage 50 · ThinInformational 18Details
Commit message · Marko Bencun

bluetooth: use hex literal for the allowed Bluetooth FW hash

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

This commit is a minor code cleanup in the BitBox02 firmware. It changes how a hardcoded Bluetooth firmware hash is written in the source code, switching from a raw byte string to a more readable hexadecimal literal. The actual hash value and the security check that uses it remain unchanged. There is no indication this fixes a security vulnerability.

AI review queuedrust: add hex_lit depby Marko Bencun · b54f4214 · Oct 12, 2025 · 5 filesMessage 73 · AdequateInformational 15Details
Commit message · Marko Bencun

rust: add hex_lit dep

It's already in our vendor dir, and useful in tests to avoid
encoding/decoding hex at runtime, or to use ugly `b"\x..\x..\x.."`
literals. This commit changes a few instances for demo, but the idea
is that future tests can make use of it readily.

73/100 · AdequateMessage clarity
✓ Subject identifies a change✓ Provides detailed explanatory context✓ Explains rationale or failure mode✓ Mentions testing or verification
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Informational 15/100

This commit only adds a new Rust helper library (hex_lit) to make test code easier to read. It replaces runtime hex decoding and ugly byte-string literals with compile-time hex macros in unit tests. There is no change to production firmware behavior, no security fix, and no vulnerability introduced.

Security candidaterust/keystore: make bip39 unlocking asyncby Marko Bencun · 1bd474ef · Oct 10, 2025 · 130 filesMessage 80 · StrongInformational 18Details
Commit message · Marko Bencun

rust/keystore: make bip39 unlocking async

This uses `to_seed_normalized_async(...).await` over
`to_seed_normalized(...)` in bip39 unlocking, propagating the
async/await keywords up the stack.

This commit by itself is not functional yet, as the unlock animation
is still timer-interrupt based, which leads to chaos. The next commit
converts the animation into an async task of its own, not depending on
interrupts.

The bip39 unlock loop is made to yield to the executor in each of the
2048 PBKDF2 stretch rounds. In the simulator however, we don't yield
and finish the computation in a blocking fashion like before, due to a
limitation of the simulator: it does not busy-loop the
mainloop (otherwise CPU would be at 100%), but only when there is an
incoming USB packet, so yielding in BIP39 would make unlocking in the
simulator *very* slow. Running the mainloop quicker in the simulator
does not work well: either CPU load is too high, or unlock is too slow.

80/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode
Why it was queued
secret or key materialauthentication path
AI analysis · Informational 18/100

This commit is a large internal refactoring of the BitBox02 firmware's BIP39 wallet-unlocking code. It converts the slow PBKDF2 key-stretching loop from a blocking (synchronous) operation into an asynchronous one, so the device can briefly pause each round to handle other tasks such as USB messages and screen animations. The commit also vendors the futures-core, futures-lite, and pin-project-lite Rust crates so the firmware can use async/await. The change is explicitly described by the authors as not yet fully functional on its own; a follow-up commit is needed to make the unlock animation work with the new async model. There is no direct evidence in the commit that this fixes or introduces a security vulnerability; it is primarily an architectural/performance change.

Security candidatevendor: add rust-bip39 depby Marko Bencun · dc6934fb · Oct 10, 2025 · 7 filesMessage 80 · StrongInformational 17Details
Commit message · Marko Bencun

vendor: add rust-bip39 dep

We use our fork that has two custom patches:
- fix bitcoin_hashes transitive dep version to avoid duplicates
- add async version of the function to derive a bip39 seed

This will be used to convert our BIP39 unlock to be an async
operation, not blocking the mainloop.

80/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode
Why it was queued
secret or key materialcryptography-sensitive path
AI analysis · Informational 17/100

This commit updates the BitBox02 firmware's vendored copy of a Rust library (rust-bip39) used to turn a recovery phrase into a cryptographic seed. The main change is adding an async (cooperative multitasking) version of the seed-derivation function so the device can briefly pause between heavy PBKDF2 rounds instead of blocking the main loop. It also moves the dependency from a personal fork to the BitBoxSwiss organization fork and adjusts a transitive dependency version. There is no direct security fix or vulnerability patch visible in this commit; it is a dependency/vendor refresh and async API addition.

Lower-priorityrust: Apply -Werror if -Dwarningsby Niklas Dusenlund · 62667d73 · Oct 9, 2025 · 1 fileMessage 60 · AdequateInformational 15Details
Commit message · Niklas Dusenlund

rust: Apply -Werror if -Dwarnings

If user enables -Dwarnings via RUSTFLAGS also enable -Werror for C code
compiled by cargo/build.rs.

60/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
AI analysis · Informational 15/100

This commit changes the firmware's Rust build script so that when a developer turns on Rust's strict 'treat warnings as errors' mode, the same strictness is also applied to C code compiled during the build. It is purely a build tooling/CI hardening change and does not affect device behavior, user data, or runtime security.

Lower-prioritycmake: Read RUSTFLAGS from environment and propagate correctlyby Niklas Dusenlund · 579a2ebd · Oct 9, 2025 · 3 filesMessage 50 · ThinInformational 20Details
Commit message · Niklas Dusenlund

cmake: Read RUSTFLAGS from environment and propagate correctly

50/100 · ThinMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
Why it was queued
documentation-only discount
AI analysis · Informational 20/100

This commit changes how build flags for the Rust parts of the BitBox02 firmware are handled. Previously, the project always overwrote RUSTFLAGS with its own internal settings, which meant any RUSTFLAGS set in the environment were silently ignored. The fix reads RUSTFLAGS from the environment first and then appends the project's required flags. This is a build-hygiene improvement; it does not directly fix a vulnerability, but it prevents a class of mistakes where important compiler warnings or hardening flags could be accidentally dropped during compilation.

Lower-prioritymock: Move wrap function to mocks from fakesby Niklas Dusenlund · 8d25a7e9 · Oct 9, 2025 · 3 filesMessage 45 · ThinInformational 15Details
Commit message · Niklas Dusenlund

mock: Move wrap function to mocks from fakes

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

This commit only reorganizes test helper code. It moves a wrapper function from one test-only file to another and adds a small accessor function so the test fake can share its internal salt value. There is no change to the actual device firmware or to how real user data is handled, so it has no security relevance for end users.

Security candidatekeystore: fewer securechip calls when checking passwordby Marko Bencun · a4d8f413 · Oct 9, 2025 · 3 filesMessage 78 · AdequateLow 25Details
Commit message · Marko Bencun

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.

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 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.

Lower-prioritysimulator: shutdown connectionby Niklas Dusenlund · 4b8838a2 · Oct 8, 2025 · 2 filesMessage 70 · AdequateInformational 20Details
Commit message · Niklas Dusenlund

simulator: shutdown connection

TCP is fun. If the server initiates the closing of the TCP connection
the socket needs to stay alive for some time according to the protocol
so that out-of-order and delayed packets have a chance to arrive. When
the simulator gets shut down those packets doesn't matter. Luckily there
is a way around, by setting SO_LINGER on the socket the connection is
closed with a "RESET" instead and the socket is immediately released in
the OS.

This commit also switches from signal(2) to sigaction(2) so that we can
avoid setting SA_RESTART so that signals interrupt blocking syscalls
like read.

It also introduces support for "SIGHUP" that can be used to simply
disconnect the client.

70/100 · AdequateMessage clarity
✓ Descriptive subject✓ Provides detailed explanatory context✓ Explains rationale or failure mode
AI analysis · Informational 20/100

This change only affects the BitBox02 simulator, a local testing tool, not the real hardware wallet firmware. It makes the simulator shut down its TCP connection more cleanly when stopped with Ctrl-C or a terminate signal, and adds a way to disconnect a connected client with SIGHUP. There is no direct security vulnerability being fixed; it is a robustness improvement for developers running tests.

Security candidatejlink-scripts: reset before loadby Niklas Dusenlund · eb00f569 · Oct 7, 2025 · 2 filesMessage 68 · AdequateInformational 15Details
Commit message · Niklas Dusenlund

jlink-scripts: reset before load

When using the watchdog it became clear that one must reset the CPU
before loading a new FW. It behaved very strange with the old order of
things.

68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Why it was queued
boot or update path
AI analysis · Informational 15/100

This commit changes the order of operations in two developer-only GDB scripts used with J-Link debuggers. Previously the scripts loaded new firmware onto the device and then reset the CPU; now they reset the CPU first and then load the firmware. The change is described as a reliability fix for odd behavior seen when the device's watchdog timer is enabled. It only affects how engineers flash firmware during development/debugging and does not change any firmware code, cryptography, or user-facing behavior.

AI review queuedui: Remove noopby Niklas Dusenlund · 0a9be883 · Oct 6, 2025 · 15 filesMessage 28 · OpaqueInformational 15Details
Commit message · Niklas Dusenlund

ui: Remove noop

`.on_event` is allowed to be NULL

28/100 · OpaqueMessage clarity
✓ Subject identifies a change! No meaningful explanatory body
Why it was queued
second-pass: opaque commit message
AI analysis · Informational 15/100

This commit is a routine code cleanup. It removes a placeholder 'do nothing' function called ui_util_on_event_noop and replaces its uses with NULL, because the user-interface system already allows the on_event handler to be NULL. There is no security-relevant change.

Lower-priorityapi/show_mnemonic: add unit testsby Marko Bencun · dc22ee52 · Oct 4, 2025 · 2 filesMessage 70 · AdequateInformational 15Details
Commit message · Marko Bencun

api/show_mnemonic: add unit tests

This also allows us to keep track of the number of secure chip
operations in all the scenarios.

70/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body✓ Mentions testing or verification
AI analysis · Informational 15/100

This commit only adds unit tests and a small test helper for the 'show mnemonic' feature. It does not change any production code or fix any security issue. The tests verify that the device behaves correctly when showing recovery words during wallet setup or after entering a password.

Lower-priorityhal: add show_and_confirm_mnemonic to HALby Marko Bencun · d7cfe68c · Oct 4, 2025 · 5 filesMessage 78 · AdequateInformational 15Details
Commit message · Marko Bencun

hal: add show_and_confirm_mnemonic to HAL

The default implementation is in terms of other HAL/UI functions. For
unit tests (e.g. in show_mnemonic.rs or bip85.rs), it is useful to be
able to skip over the implementation details, so the tests don't have
to mock selecting the right words in the quiz.

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

This commit is a straightforward internal code refactor. It moves the 'show and confirm mnemonic' feature into a hardware abstraction layer (HAL) so that unit tests can mock it more easily. There is no change to user-facing behavior, no fix for a bug, and no security-relevant change visible in the code.