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 9 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-priorityMove salt_root functions to HALby cedwies · d0db51a2 · Dec 18, 2025 · 3 filesMessage 90 · StrongInformational 12Details
Commit message · cedwies

Move salt_root functions to HAL

Centralizes salt root access behind the HAL abstraction,
enabling full test isolation without C memory dependencies.

TestingHal initializes with a default salt root to preserve
existing test behavior without manual setup in each test.

The 2 rust_salt_hash_data tests keep using mock_memory() +
C-backed salt root because the extern "C" shim internally
constructs BitBox02Hal—these tests verify the FFI path works.

90/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode✓ Mentions testing or verification
AI analysis · Informational 12/100

This commit is a straightforward internal refactoring: it moves access to a device secret called the 'salt root' behind an existing hardware-abstraction layer so that automated tests can use a fake memory instead of real device memory. There is no user-facing change, no bug fix, and no security vulnerability visible in the diff.

Lower-priorityMoves "unlock_attempts" functions to HALby cedwies · 1266caf5 · Dec 18, 2025 · 6 filesMessage 45 · ThinInformational 15Details
Commit message · cedwies

Moves "unlock_attempts" functions to HAL

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 internal code reorganization. It moves the functions that track failed device-unlock attempts from one part of the code into the hardware abstraction layer (HAL). The actual security behavior—how many wrong password attempts are allowed before the device resets—does not change. The value stays at 10, and the same hardware-backed counter is still used. There is no indication this fixes or introduces a security bug.

Security candidaterust: update toolchain to 1.92by Marko Bencun · a2fd5f58 · Dec 18, 2025 · 372 filesMessage 80 · StrongLow 25Details
Commit message · Marko Bencun

rust: update toolchain to 1.92

There is a breaking change about abort_immediate_panic, see
CMakeLists.txt.

Also called `cargo update --precise 0.2.177 libc` in src/rust to align
the libc we use with the one in stdlib, to avoid a duplicate dep.

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
seed or entropy pathauthentication path
AI analysis · Low 25/100

This commit updates the Rust compiler toolchain from an unspecified earlier version to Rust 1.92 for the BitBox02 hardware wallet firmware. It also refreshes many vendored third-party Rust libraries (such as libc, hashbrown, getopts) and build tools (cbindgen, bindgen). The stated reason is compatibility with the new toolchain, including a breaking change around panic handling. There is no direct evidence in the commit that this fixes a known security vulnerability, but toolchain and dependency updates can affect security-relevant behavior such as memory safety, panic handling, and type definitions used in cryptographic code.

Lower-priorityoptiga: add _reset_counter util functionby Marko Bencun · aceb1613 · Dec 16, 2025 · 1 fileMessage 45 · ThinInformational 15Details
Commit message · Marko Bencun

optiga: add _reset_counter util function

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 simple code cleanup: it replaces three separate places that reset a hardware security counter with one shared helper function. The actual behavior of the firmware does not change. There is no security bug being fixed here.

Lower-priorityoptiga: add initial optiga_test.cby benma's agent · 93c97b49 · Dec 16, 2025 · 7 filesMessage 78 · AdequateInformational 15Details
Commit message · benma's agent

optiga: add initial optiga_test.c

The optiga sync ops functions are moved to a new file so they can be
faked in the unit test.

Some defines are moved from optiga.c to optiga.h to make them
available to the unit tests.

The unit test file itself fakes the optiga ops functions to a useful
degree.

The goal is to unit test the stretching algo based on fixtures, so we
can catch regressions.

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 code reorganization and addition of unit tests for the BitBox02's OPTIGA secure-chip driver. It moves synchronous OPTIGA wrapper functions into a new file (optiga_ops.c/h) and adds a test file (test_optiga.c) with fake implementations so the password-stretching algorithm can be tested against known test vectors. There is no security vulnerability here; it is purely a maintainability and test-coverage change.

Lower-priorityoptiga: remove unused hal_delay.h includeby benma's agent · 49a8ba6a · Dec 16, 2025 · 1 fileMessage 45 · ThinInformational 15Details
Commit message · benma's agent

optiga: remove unused hal_delay.h include

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

This commit simply removes an unused header file include from one source file. It does not change any program behavior or fix any security issue.

Security candidaterust/util: add unit tests for rust_hmac_sha256/rust_hmac_sha512by benma's agent · 3e2eb99a · Dec 16, 2025 · 3 filesMessage 83 · StrongInformational 15Details
Commit message · benma's agent

rust/util: add unit tests for rust_hmac_sha256/rust_hmac_sha512

And make sure overlaps are allowed explicitly, which we make use of
for example in atecc.c/optiga.c.

rust_sha256 code is also adjusted to be consistent in style (drop
`data` before using `out`).

83/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
Why it was queued
cryptography-sensitive path
AI analysis · Informational 15/100

This commit adds unit tests for two cryptographic helper functions and slightly reorders their internal steps so the output buffer is only written after the HMAC calculation is complete. The change makes it safe for the output buffer to overlap with the input or key buffers, and documents that overlap is allowed. There is no new vulnerability here; it is a defensive hardening and testing improvement.

Lower-priorityoptiga: move initialization code out of verify functionby Marko Bencun · 3c05aa03 · Dec 15, 2025 · 1 fileMessage 83 · StrongInformational 18Details
Commit message · Marko Bencun

optiga: move initialization code out of verify function

The verify_config function not only verified, but also set the
protection level and opened the util application.

This is part if moved out, so the verify function only verifies slot
metadata.

83/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
AI analysis · Informational 18/100

This is a small internal cleanup in the firmware that talks to the Optiga secure chip. A function that both initialized the chip and checked chip settings was split so that one part only does the settings check. The actual setup steps are now done in the main setup function instead. There is no direct evidence this fixes a security bug; it appears to be a code-quality refactor to make the verification function do only what its name says.

Lower-priorityadd initial AGENTS.mdby Marko Bencun · 2857b675 · Dec 11, 2025 · 1 fileMessage 51 · ThinInformational 15Details
Commit message · Marko Bencun

add initial AGENTS.md

To support agentic reviews and coding workflows.

It was generated using the codex init command, with some manual
modifications and extensions by myself.

Unsure if the docker instructions will work or are helpful, but we can
iterate this later.

51/100 · ThinMessage clarity
✓ Subject identifies a change✓ Provides detailed explanatory context
Why it was queued
documentation-only discount
AI analysis · Informational 15/100

This commit adds a single documentation file, AGENTS.md, that gives guidelines for AI coding agents working on the BitBox02 firmware repository. It contains no code, build script, or configuration changes, and nothing that alters how the firmware, bootloader, or wallet behaves. There is no security-relevant change in the diff itself.

Lower-priorityPrevent memory_reset_hww from masking flash write failuresby cedwies · 42b1a4c5 · Dec 11, 2025 · 1 fileMessage 73 · AdequateModerate 61Details
Commit message · cedwies

Prevent memory_reset_hww from masking flash write failures

memory_reset_hww combined the CHUNK_1 write result and the
shared BLE chunk write using |=, so a later successful
write could hide an earlier failure. Change both writes to
be checked individually and return false on the first
failure, making the function only report success when all
flash writes succeed.

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

This commit fixes a bug in how the BitBox02 hardware wallet reports whether it successfully erased and rewrote sensitive memory during a factory reset-style operation. Previously, if the first flash write failed but a later write succeeded, the function could incorrectly report overall success, potentially leaving old wallet data partially intact without the user or device realizing it. The fix checks each write separately and stops reporting success if any write fails.

Lower-prioritytests: remove C fake secure chip event counterby Marko Bencun · f058aecc · Dec 9, 2025 · 6 filesMessage 78 · AdequateInformational 15Details
Commit message · Marko Bencun

tests: remove C fake secure chip event counter

The events are counted in TestingHal now. The only check that is
removed is for root_fingerprint(), which does not use the HAL and so
is naturally not calling any securechip function.

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 routine cleanup of test-only code. It removes an old C-based fake counter that tracked how many times a mock secure chip was accessed during unit tests. The counting has already moved to a newer Rust test helper, so this change only deletes the obsolete duplicate. It does not change any real device behavior or fix a security bug.

Security candidatehal: add Memory HALby benma's agent · f174e0aa · Dec 8, 2025 · 18 filesMessage 38 · OpaqueInformational 18Details
Commit message · benma's agent

hal: add Memory HAL

With unit tests for `password::enter`

38/100 · OpaqueMessage clarity
✓ Subject identifies a change✓ Mentions testing or verification! No meaningful explanatory body! Opaque security-relevant change
Why it was queued
authentication path
AI analysis · Informational 18/100

This commit is a code refactoring that introduces a new 'Memory' hardware abstraction layer (HAL) in the BitBox02 firmware. It moves direct memory access calls behind a trait interface so the code can be more easily tested with mock memory. There is no direct evidence in the commit of a security vulnerability being fixed; it appears to be a structural improvement that also adds unit tests for password entry behavior.

Lower-priorityhal: use u2f_counter_setby Marko Bencun · ba136d9a · Dec 8, 2025 · 2 filesMessage 43 · ThinInformational 16Details
Commit message · Marko Bencun

hal: use u2f_counter_set

Somehow was missed when it was added HAL.

43/100 · ThinMessage clarity
✓ Subject identifies a change✓ Provides an explanatory body
AI analysis · Informational 16/100

This is a small internal cleanup in the BitBox02 firmware. It changes two places that set the U2F security counter so they use a newer hardware-abstraction helper instead of calling the old low-level function directly. A test was also updated to match the new helper. There is no indication this fixes a security bug or changes device behavior for users.

Lower-priorityoptiga: fix wrong error valueby Marko Bencun · 4c1c0113 · Dec 6, 2025 · 1 fileMessage 68 · AdequateInformational 22Details
Commit message · Marko Bencun

optiga: fix wrong error value

The error can basically not happen (it can only happen when the salt root
unset, which is never the case when Optiga functions are used).

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

This commit fixes a minor error-handling bug in the BitBox02 firmware's Optiga secure-chip code. Two functions were returning a generic error code (1) when a salt-related failure occurred, instead of returning the specific salt-error code (SC_ERR_SALT). The commit message says the error path is essentially unreachable in normal use because the salt root is always set when Optiga functions are used. The change improves code correctness and diagnostics but does not appear to create or fix a directly exploitable security vulnerability.

Lower-prioritybitbox02/memory: add unit test coverageby benma's agent · a5e23273 · Dec 4, 2025 · 1 fileMessage 78 · AdequateInformational 15Details
Commit message · benma's agent

bitbox02/memory: add unit test coverage

We will be adding all of these to a Memory HAL, so they will not be
indirectly tested anymore by all the tests in bitbox02-rust. We add
unit tests for them here, which serve as unit tests for the BitBox02
C memory functions.

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 only adds new automated tests for existing device memory functions. It does not change any production code, so it cannot introduce a security vulnerability or fix one. The tests verify that settings like the device name, seed status, Bluetooth metadata, and encryption keys are stored and retrieved correctly.

AI review queuedport reset_reset to Rustby benma's agent · ea8c87d0 · Dec 4, 2025 · 15 filesMessage 28 · OpaqueInformational 12Details
Commit message · benma's agent

port reset_reset to Rust

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

This commit rewrites the device factory-reset routine from C to Rust. It is a straightforward language port: the same steps (lock keystore, reset secure-chip keys, reset U2F counter, wipe memory, disable SmartEEPROM, show a status screen, reboot) are preserved. The change also adds unit tests and makes the unlock function asynchronous so it can call the new async reset. Nothing in the diff introduces a new vulnerability or changes security-critical behavior in a suspicious way.

Lower-priorityscripts/dockerenv: fix docker images compatbilityby Marko Bencun · cf6cae85 · Dec 1, 2025 · 1 fileMessage 76 · AdequateInformational 15Details
Commit message · Marko Bencun

scripts/dockerenv: fix docker images compatbility

A new docker version defaults the output to some human readable
version that does not match the expected format, so the check always
fails in that case.

See also: https://github.com/docker/cli/issues/6650

76/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
AI analysis · Informational 15/100

This is a one-line build-script fix. A newer Docker version changed the default text output of the `docker images` command, which broke a simple check that looks for a locally available Docker image. The fix forces the old tabular output format so the existing grep check works again. There is no security issue here—just preventing a false 'image not found' error during development.

Lower-prioritypip: fix editable imports for pip >= 25by cedwies · e832c581 · Nov 27, 2025 · 3 filesMessage 68 · AdequateInformational 15Details
Commit message · cedwies

pip: fix editable imports for pip >= 25

Pip versions >=25 changed editable install behavior per PEP 660, causing
relative imports like "from .bitbox02 import common" to resolve to the outer
init.py instead of the inner subpackage, breaking dev workflows.
Re-exporting symbols from the nested bitbox02 module fixes this resolution
issue while preserving the existing package structure and API for downstream
users.
This ensures pip install -e . works reliably without flattening.

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 Python development workflow issue. Newer versions of pip (25+) changed how editable installs work, causing import statements inside the project's Python library to point to the wrong place. The fix re-exports symbols from the correct nested module so imports resolve correctly. It only affects local development setup and does not change the firmware or device behavior.

Lower-priorityadd securechip_model to securechip HALby benma's agent · fcb4f761 · Nov 27, 2025 · 2 filesMessage 45 · ThinInformational 15Details
Commit message · benma's agent

add securechip_model to securechip HAL

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 small internal code cleanup. It moves the way the firmware asks for the secure chip model from a direct function call into the hardware abstraction layer (HAL), so the same code can be tested more easily. There is no change to user-facing behavior, no bug fix, and no security improvement or weakening visible in the diff.

Security candidateadd attestation_sign to securechip HALby benma's agent · 28e8957b · Nov 27, 2025 · 3 filesMessage 45 · ThinInformational 15Details
Commit message · benma's agent

add attestation_sign to securechip HAL

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

This commit is a straightforward internal refactoring: it moves the device attestation signing function behind a hardware-abstraction-layer (HAL) interface so the code can be more easily tested. The actual cryptographic operation and the data it uses remain unchanged. There is no indication this fixes or introduces a security vulnerability.

Lower-priorityadd monotonic_increments_remaining to securechip HALby benma's agent · 64f15a2d · Nov 27, 2025 · 3 filesMessage 50 · ThinInformational 16Details
Commit message · benma's agent

add monotonic_increments_remaining to securechip HAL

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

This commit is a small internal refactoring: it adds a way to read the secure chip's remaining monotonic counter through the hardware abstraction layer (HAL), and updates the Device Info API to use that new HAL method instead of calling the secure chip directly. There is no obvious security bug introduced or fixed here; it is mostly a code-organization change.

Security candidateHAL/SecureChip: add kdf()by Marko Bencun · ef85ad35 · Nov 27, 2025 · 31 filesMessage 70 · AdequateLow 32Details
Commit message · Marko Bencun

HAL/SecureChip: add kdf()

Due to copy_seed and copy_bip39_seed needing kdf, a ton of functions
are infected by the HAL param, as so many of them transitively make
use of these functions.

70/100 · AdequateMessage clarity
✓ Descriptive subject✓ Provides detailed explanatory context✓ Explains rationale or failure mode
Why it was queued
secret or key materialsigning or wallet path
AI analysis · Low 32/100

This commit is a large internal refactoring of the BitBox02 firmware. It adds a new secure-chip key-derivation function (KDF) to the hardware abstraction layer (HAL) and threads that HAL through many existing functions so they can use it. The change touches 31 files and many tests, but it does not appear to introduce a new security vulnerability on its own. It is a structural change that prepares the code for using the secure chip's KDF more consistently.

Security candidatehww: add change password workflowby cedwies · f30b1203 · Nov 27, 2025 · 14 filesMessage 73 · AdequateLow 36Details
Commit message · cedwies

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.

73/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Names security-relevant behavior explicitly
Why it was queued
entropy or randomnesssecret or key materialaccess controlcryptography-sensitive path
AI analysis · Low 36/100

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.

Security candidateFirmware v9.24.0 verificationby Yasser Aziza · d969a6b2 · Nov 23, 2025 · 2 filesMessage 70 · AdequateInformational 15Details
Commit message · Yasser Aziza

Firmware v9.24.0 verification

Signed-off-by: Yasser Aziza <yasser@posteo.net>

70/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body✓ Mentions testing or verification
Why it was queued
defensive validationboot or update path
AI analysis · Informational 15/100

This commit adds two digital signature files for the BitBox02 firmware version 9.24.0. These signatures are used to publicly verify that the released firmware binaries are authentic and have not been tampered with. There is no code change and no indication of a security vulnerability.

Lower-priorityHAL: add stretch_password to SecureChip HALby Marko Bencun · b0a89534 · Nov 19, 2025 · 2 filesMessage 45 · ThinInformational 18Details
Commit message · Marko Bencun

HAL: add stretch_password to SecureChip HAL

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

This commit refactors how the BitBox02 firmware stretches user passwords into cryptographic secrets. It moves the password-stretching call behind a hardware-abstraction trait so the same Rust code can use either the real secure chip or a test mock. The change itself is a clean-up and does not appear to fix a security bug; it mainly makes the code easier to test and removes a direct dependency on a specific secure-chip module.