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

Merge remote-tracking branch 'agent/benma-agent/bootloader-sighash'

Public commit record

What the developer wrote

Authored by Marko Bencun

50/100 · Thin
Merge remote-tracking branch 'agent/benma-agent/bootloader-sighash'
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
The short version

What changed, and why it matters

This commit updates the BitBox02 bootloader and signing tools to use a new, versioned signature hash format. A one-byte version prefix (0x01) is added to the data that gets signed for both firmware and stage1 bootloader updates. This is a defensive hardening change: by versioning the signed message format, the device can distinguish old signatures from new ones and avoid cross-version signature confusion. The patch also speeds up the check for an empty firmware slot by reading flash erase state directly instead of computing a hash. There is no direct evidence in the commit of an active vulnerability being fixed, but the change prevents a class of future downgrade/replay-style attacks where a signature for one firmware version could be misused for another.

Recommended action

Treat this as a security-hardening change that should be included in release notes. Users should ensure they upgrade the bootloader to a version that understands the new sighash format before installing firmware that uses it, and should verify firmware hashes with the updated host tools. Developers should confirm that all signing infrastructure produces the 0x01-prefixed prehash for new releases and that downgrade to old firmware still works via the legacy fallback paths.

Security signals we found

01

New one-byte sighash version prefix (0x01) added to firmware and stage1 signature preimages

02

Host-side Python tools updated to compute the new prehash for monotonic firmware version >= 57 and stage1 monotonic version >= 2

03

Bootloader versioned-sighash threshold added at v1.2.3 / firmware version 57

04

Stage0 stage1 signature check now requires the 0x01 prefix

05

Legacy (non-prefixed) digest explicitly rejected in new unit test

06

Empty firmware detection changed from cryptographic hash comparison to direct erased-flash check

07

CHANGELOG describes the change as a security-relevant verification improvement

Risk score

Why this scored 47/100

Our methodology →
Potential impact 12/30
Exploitability 8/25
Stealth signal 6/15
Affected reach 10/15
Confidence 7/10
Evidence quality 4/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.