TZ
← All projectsTrezor

Trezor firmware

Firmware monorepo for Trezor One, Model T, and Safe devices.

BitcoinHardware walletsNormal
Repository coverage

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

1328security candidates435second-pass queue3191AI analyses
201commits · 30 days
450commits · 60 days
1754commits · 180 days
2832commits · 365 days
Backfill bands
Aug 5 → Feb 61298 seen115 candidatesComplete
Feb 6 → Jun 6775 seen58 candidatesComplete
Jun 6 → Jul 6217 seen13 candidatesComplete
Jul 6 → Aug 5360 seen54 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.

68/100 average clarity
841Strong · 80–100
1731Adequate · 60–79
1189Thin · 40–59
7Opaque · 0–39
1security candidate 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.
tychovrahe394164355667
Jakub Janků1023067681
Roman Zeyde721230639372
obrusvit333135281364
cepetr301111228259
PrisionMike153101149271
Andrew Kozlik893885267
Petr Susil1159286
Martin Pastyřík291025175
M1nd3r292106248071
Ioan Bizău23076230059
Lukas Bielesch1067592066
Analysis record

Published AI watches

Last scanned 42 minutes ago

Informational 15 AI analysisMessage 90 · Strong
TZ TrezorTrezor firmware BitcoinHardware wallets

ci(core): reuse HW tests Slack webhook

This is a routine GitHub Actions workflow fix. It changes which Slack webhook secret is used for nightly test failure notifications and removes a now-unnecessary safety check. There is no security vulnerability in the change itself.

abfe74f9by Michal Kazda+1−51 file
No security note in commit
Informational 15 AI analysisMessage 90 · Strong
TZ TrezorTrezor firmware BitcoinHardware wallets

test(clear_signing): name the skipped cases

This commit only improves a test report for Trezor's clear-signing feature. It changes how skipped test cases are listed in a nightly summary, showing each skipped case's source file and calldata size instead of just counting them by reaso…

98deb5b0by PrisionMike+25−92 files
No security note in commit
Informational 15 AI analysisMessage 95 · Strong
TZ TrezorTrezor firmware BitcoinHardware wallets

test(clear_signing): run the cases without display format

This commit only changes test scripts and documentation for the Trezor firmware clear-signing test suite. It makes the tests run more registry cases—specifically those where the developer definitions do not yet have a display format—so the…

05c1f4efby PrisionMike+63−225 files
No security note in commit
Informational 15 AI analysisMessage 72 · Adequate
TZ TrezorTrezor firmware BitcoinHardware wallets

fix(translations): fix failing tutorial test in FR and small update to PT

This commit updates French and Portuguese translation strings in the Trezor firmware and refreshes the translation signature metadata. The changes are purely wording adjustments (for example, replacing abbreviations like 'nº' with the full…

29cbc419by Michal Kazda+19−193 files
No security note in commit
Informational 10 AI analysisMessage 95 · Strong
TZ TrezorTrezor firmware BitcoinHardware wallets

chore(core/rust): reduce coverage map size

This commit changes a code-coverage tracking map inside the Trezor firmware from a claimed capacity of 1,048,576 entries down to 65,536 entries. The commit message says the old capacity was never truly that large because the heapless libra…

No cryptographic or secret-handling code changedNo input parsing, deserialization, or memory allocator changesChange is in a debug/test instrumentation module (coverage)
9bf2fc3aby M1nd3r+1−11 file
No security note in commit
Informational 15 AI analysisMessage 57 · Thin
TZ TrezorTrezor firmware BitcoinHardware wallets

chore(translations): sync Crowdin translations

This commit is a routine update of translated user-interface text strings for the Trezor hardware wallet. It adds new translations (for example, warnings about exporting public keys and Solana blind-signing prompts), updates existing wordi…

b2e8b5e6by Thalarion+141−1837 files
No security note in commit
Informational 12 AI analysisMessage 67 · Adequate
TZ TrezorTrezor firmware BitcoinHardware wallets

test(clear_signing): edge cases for arrays

This commit only adds new test cases for Ethereum clear-signing array parsing. It does not change any production code, so it cannot introduce a new security vulnerability on its own. The tests verify that malformed arrays (out-of-bounds of…

test-only changeno production code modifiedadds defensive test coverage for ABI decoding edge cases
dcdf3068by PrisionMike+169−01 file
No security note in commit
High 70 AI analysisMessage 62 · Adequate
TZ TrezorTrezor firmware BitcoinHardware wallets

refactor(core): harden task switching against fault injections

This commit hardens the Trezor firmware's task scheduler against fault-injection attacks. These attacks use physical techniques like voltage glitches or laser pulses to trick the device into executing code with higher privileges than inten…

Fault-injection hardening (FIH) explicitly mentioned in commit title and code commentsPrivilege-level transition split into multiple guarded stepsAdded runtime invariant check that only the kernel task may run privileged
2f159c6bby cepetr+16−51 file
Vendor flagged security relevance
Informational 15 AI analysisMessage 67 · Adequate
TZ TrezorTrezor firmware BitcoinHardware wallets

fix(tests): removed unused is_dynamic

This commit only removes an unused parameter called `is_dynamic` from test helper functions and from test data in three test files. It does not change any production firmware code, wallet behavior, or security logic. It is a cleanup of the…

2ada2691by PrisionMike+6−323 files
No security note in commit
Informational 21 AI analysisMessage 62 · Adequate
TZ TrezorTrezor firmware BitcoinHardware wallets

feat(clear_signing): update proto defs for features to be supported.

This commit updates the data-format definitions used by Trezor devices for Ethereum 'clear signing' (showing human-readable details of smart-contract interactions). It adds support for more numeric types, new path-step structures, and extr…

Schema expansion increases attack surface for future clear-signing parser logic, but no new parser logic is present in this commit.Replacement of NotImplementedError with InvalidFormatDefinition is a defensive change that turns unimplemented paths into a handled error rather than a crash/DoS vector.New optional fields and deprecated old fields (is_dynamic, lookup_address) are backward-compatible changes.
84cb6a4bby PrisionMike+1207−979 files
No security note in commit
Informational 19 AI analysisMessage 62 · Adequate
TZ TrezorTrezor firmware BitcoinHardware wallets

chore(python): fix protocol_v1 probe for bridge transport

This is a bug-fix patch in the Python Trezor client library. It changes how the software probes whether a connected device uses the older protocol v1. Previously, the probe tried to read and throw away leftover data, but that read could ac…

No security-relevant signal in commit message or diffFix is described as a connectivity/functional bug, not a vulnerabilityNo mention of CVE, researcher credit, or security advisory
46492ba4by M1nd3r+18−124 files
No security note in commit
Informational 15 AI analysisMessage 80 · Strong
TZ TrezorTrezor firmware BitcoinHardware wallets

feat(core): show language name in change confirm

This commit is a user-interface improvement, not a security fix. It changes the language-change confirmation prompt on Trezor devices so that it shows a human-readable language name (for example, 'French') instead of a raw code like 'fr-FR…

5ff5cba0by Michal Kazda+295−67 files
No security note in commit
Informational 15 AI analysisMessage 67 · Adequate
TZ TrezorTrezor firmware BitcoinHardware wallets

fix(translations): fix failing tests in ES and FR

This commit updates Spanish and French translation strings in the Trezor firmware and refreshes the translation signature file. The changes are purely textual wording adjustments (for example, changing 'Mostrar palab.' to 'Mostrar palabras…

9a12ab12by Michal Kazda+15−103 files
No security note in commit
Low 47 AI analysisMessage 85 · Strong
TZ TrezorTrezor firmware BitcoinHardware wallets

chore(crypto): hardening against potential side-channel leakage

This commit hardens cryptographic code in Trezor firmware against two potential side-channel leaks. First, it simplifies how a secret condition value is checked inside an assert statement so the compiler produces only one branch instead of…

Side-channel hardening in constant-time cryptographic primitivesReplacement of double-evaluation volatile assert with single-branch assertElimination of secret-dependent memory access in elliptic-curve scalar multiplication
7829d7c7by M1nd3r+27−93 files
Vendor flagged security relevance
Informational 15 AI analysisMessage 72 · Adequate
TZ TrezorTrezor firmware BitcoinHardware wallets

feat(ci, clear_signing): add clear signing device tests as a nightly run.

This commit adds a new nightly automated testing workflow for Ethereum 'clear signing' on Trezor hardware wallets. It does not change any wallet firmware code that users run; it only adds test scripts, CI configuration, documentation, and …

fea125baby PrisionMike+2986−2117 files
No security note in commit
Informational 15 AI analysisMessage 57 · Thin
TZ TrezorTrezor firmware BitcoinHardware wallets

chore(core): move `keccak_32` to unittests

This commit is a routine code cleanup. It removes a small helper function called keccak_32 from a shared crypto utility file and places an equivalent helper directly inside the only test file that still uses it. There is no change to how t…

f3225451by Roman Zeyde+8−122 files
No security note in commit
Informational 15 AI analysisMessage 63 · Adequate
TZ TrezorTrezor firmware BitcoinHardware wallets

chore: remove SmartCash

This commit removes support for a cryptocurrency called SmartCash from Trezor hardware wallets. It deletes coin definitions, support entries, and a custom cryptographic curve used only by SmartCash. There is no security vulnerability being…

No security-relevant signals detectedPure feature removal / code cleanup
b6d65c00by Roman Zeyde+5−52916 files
No security note in commit
Informational 15 AI analysisMessage 77 · Adequate
TZ TrezorTrezor firmware BitcoinHardware wallets

chore(common,core,legacy,crypto): remove Groestlcoin

This commit removes all support for the Groestlcoin cryptocurrency from Trezor firmware. It deletes coin definitions, the custom Groestl hash algorithm code, related address/transaction handling, and tests. There is no security vulnerabili…

No security-relevant change: pure feature removalNo new attack surface introducedNo vulnerability patched or created
e22d597dby Roman Zeyde+41−446845 files
No security note in commit
Informational 15 AI analysisMessage 47 · Thin
TZ TrezorTrezor firmware BitcoinHardware wallets

chore(core): remove Tezos

This commit removes all support for the Tezos cryptocurrency from Trezor firmware, software libraries, and documentation. It is a feature-removal change, not a security fix or vulnerability patch. There is no indication in the commit that …

433075c0by obrusvit+9531−1751964 files
No security note in commit
Informational 24 AI analysisMessage 85 · Strong
TZ TrezorTrezor firmware BitcoinHardware wallets

fix(legacy): lower maximum auto-lock delay to 149 hours

This update reduces the longest allowed screen-lock timeout on older Trezor devices from about 6 days down to 149 hours (just over 6 days). It makes the legacy firmware behave the same as newer Trezor firmware and prevents users from setti…

Bounds enforcement added for a configurable security-relevant timeoutAlignment of security policy between legacy and core firmware variantsTest coverage added for boundary values above and below new maximum
c108f275by Ondřej Vejpustek+16−64 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-prioritychore(deps): update virtualenv and filelockby M1nd3r · 82729a12 · Oct 7, 2026 · 2 filesMessage 72 · AdequateTriage 0Details
Commit message · M1nd3r

chore(deps): update virtualenv and filelock

- Updated filelock v3.20.3 -> 3.32.5.
- Updated virtualenv v20.36.1 -> 21.14.5.

72/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides an explanatory body
AI review queuedtest(solana): add v1 device testsby Jakub Janků · 68ce2a9b · Oct 7, 2026 · 3 filesMessage 90 · StrongInformational 15Details
Commit message · Jakub Janků

test(solana): add v1 device tests

Adds a serialization function for v1 transactions and fixtures for the
v1-specific parts: the config, ignored ComputeBudget instructions, and a
4096-byte transaction. The serialized transactions were checked against
solana-sdk (solders 0.29).

[no changelog]

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

90/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context✓ 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 new automated tests for Solana v1 transaction signing in the Trezor firmware test suite. It does not change any firmware code that runs on the device, nor does it alter how transactions are validated or signed. There is no security issue visible in the diff.

AI review queuedfeat(solana): support v1 transactionsby Jakub Janků · 9dfe60c9 · Oct 7, 2026 · 4 filesMessage 98 · StrongInformational 12Details
Commit message · Jakub Janků

feat(solana): support v1 transactions

Parses the v1 transaction format (SIMD-0385): fixed-size counts, a
config mask with values replacing ComputeBudget instructions,
instruction headers followed by their payloads, and no lookup tables.
The priority fee of v1 transactions is taken from the config.

Unit tests are extended accordingly.

Fixes: https://github.com/trezor/trezor-firmware/issues/7865

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

98/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Informational 12/100

This commit adds support for a new Solana transaction format (version 1) to the Trezor hardware wallet firmware. It is a feature addition, not a security fix. The code parses the new transaction layout, extracts a priority fee from a config field, and adds unit tests. There is no indication in the commit or supplied references that this resolves a known security vulnerability.

Lower-priorityfix(core): make sure ipc message is freed if upy allocation failsby matejcik · 8ab319b5 · Oct 7, 2026 · 2 filesMessage 62 · AdequateTriage 0Details
Commit message · matejcik

fix(core): make sure ipc message is freed if upy allocation fails

62/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
AI review queuedtest(solana): add v0 transaction unit testsby Jakub Janků · 630741b9 · Oct 7, 2026 · 1 fileMessage 90 · StrongInformational 15Details
Commit message · Jakub Janků

test(solana): add v0 transaction unit tests

Extends the unit test serialization helpers with the v0 format and
covers address lookup table parsing.

[no changelog]

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

90/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context✓ 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 new unit tests for Solana v0 transaction parsing in the Trezor firmware. It does not change any production code, so it cannot introduce a security vulnerability or fix one directly. The tests verify that address lookup tables are parsed correctly and that malformed inputs are rejected.

AI review queuedfix(solana): instruction data misalignmentby Jakub Janků · 12176043 · Oct 7, 2026 · 3 filesMessage 80 · StrongModerate 61Details
Commit message · Jakub Janků

fix(solana): instruction data misalignment

When an instruction's data was shorter than its program's instruction
id (1-3 bytes for System and Stake), the data was left unread and parsed
as the next instruction. The parser now reads the whole data, and the
instruction id is split off when the instructions are created, where
the program is known. Such an instruction is shown as unsupported.

[no changelog]

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

80/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Moderate 61/100

This commit fixes a bug in how Trezor's Solana app read transaction instructions. Previously, if an instruction's data was shorter than its expected ID header, the parser skipped reading the data entirely and treated leftover bytes as the next instruction. That could misalign the whole instruction stream and potentially trick the device into showing or signing a different transaction than the user expects. The fix reads the full data first and only splits off the instruction ID later, marking too-short data as unsupported so it requires blind signing.

AI review queuedfix(solana): make compact-u16 parsing strictby Jakub Janků · f7076438 · Oct 7, 2026 · 2 filesMessage 80 · StrongModerate 61Details
Commit message · Jakub Janků

fix(solana): make compact-u16 parsing strict

parse_var_int returned a partial value (or 0) on truncated input and
accepted non-canonical and overlong encodings, e.g. a v0 transaction
missing its lookup table count parsed as having no tables. It now
mirrors solana-sdk's short_vec decoding.

[no changelog]

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

80/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Moderate 61/100

This commit fixes the way Trezor's Solana app reads compact (variable-length) integer counts from transaction data. Previously, the parser would silently accept malformed or truncated numbers, which could make a transaction with missing data appear valid. The fix now rejects non-standard encodings, truncated inputs, and values that are too large, matching the behavior of Solana's official SDK.

Lower-prioritychore(tools): share cargo-vet audits across projectsby Lukas Bielesch · 4e711313 · Oct 7, 2026 · 4 filesMessage 62 · AdequateTriage 0Details
Commit message · Lukas Bielesch

chore(tools): share cargo-vet audits across projects

[no changelog]

62/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
Lower-priorityrefactor(core/sys): split IPC fn to service+messageby matejcik · 019c1b24 · Oct 6, 2026 · 9 filesMessage 62 · AdequateTriage 0Details
Commit message · matejcik

refactor(core/sys): split IPC fn to service+message

62/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
Lower-prioritychore(core): static_assertsby matejcik · 7092229d · Oct 6, 2026 · 2 filesMessage 62 · AdequateTriage 0Details
Commit message · matejcik

chore(core): static_asserts

not specifying a reason is a C23 extension

62/100 · AdequateMessage clarity
✓ Descriptive subject✓ Uses a recognizable type or scope✓ Provides an explanatory body
Security candidatefeat(core): implement WARD serviceby Jakub Janků · 7f877e38 · Oct 6, 2026 · 5 filesMessage 80 · StrongLow 28Details
Commit message · Jakub Janků

feat(core): implement WARD service

- derive the wallet id from the passphrase-dependent seed via SLIP-21
- leave obtaining the user's approval before replacing or deleting
a record to the caller
- let handlers narrow the store to a subscope (e.g. a coin or a network);
subscopes are separate namespaces
- iterate over the records one record at a time

[no changelog]

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

80/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context
Why it was queued
access control
AI analysis · Low 28/100

This commit adds a new internal storage service called WARD to the Trezor firmware. It lets apps store small pieces of data tied to a specific passphrase wallet. The change is a feature implementation, not a fix for a known security bug. There is no evidence in the commit or supplied references that this is a security patch or that it addresses a disclosed vulnerability.

Lower-prioritybuild(core): export `secmon_api.o` to artifacts directoryby Roman Zeyde · eb094e51 · Oct 6, 2026 · 1 fileMessage 62 · AdequateTriage 0Details
Commit message · Roman Zeyde

build(core): export `secmon_api.o` to artifacts directory

[no changelog]

62/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
Lower-priorityfeat(core/sys): improve ergonomics of sysevent::pollby matejcik · 66cb5036 · Oct 6, 2026 · 2 filesMessage 62 · AdequateTriage 0Details
Commit message · matejcik

feat(core/sys): improve ergonomics of sysevent::poll

62/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
Lower-priorityfeat(core/sys): TaskId wrapperby matejcik · 3f29c169 · Oct 6, 2026 · 3 filesMessage 57 · ThinTriage 0Details
Commit message · matejcik

feat(core/sys): TaskId wrapper

57/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
Lower-prioritychore(core): drop unused `bitcoin__simple_send_of` stringby Roman Zeyde · 865bc0f8 · Oct 6, 2026 · 4 filesMessage 77 · AdequateTriage 0Details
Commit message · Roman Zeyde

chore(core): drop unused `bitcoin__simple_send_of` string

It was previously used by Omni parser.

[no changelog]

77/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides an explanatory body
Lower-priorityfeat(core/sys): Timeout typeby matejcik · 579a77d9 · Oct 5, 2026 · 4 filesMessage 80 · StrongTriage 0Details
Commit message · matejcik

feat(core/sys): Timeout type

a Timeout is a Duration that can be infallibly converted into a
deadline.

useful as an argument to any timeout/deadline accepting calls into the
kernel, such as sysevent.poll

80/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context
Lower-priorityfix(core): don't confuse CBOR break with int 255by Martin Pastyřík · bc098f96 · Oct 5, 2026 · 2 filesMessage 90 · StrongTriage 5Details
Commit message · Martin Pastyřík

fix(core): don't confuse CBOR break with int 255

Detect the end of indefinite-length arrays and maps by the raw break byte, and reject a break byte anywhere else.

Add test vectors for the integer 255 inside indefinite-length containers and for misplaced breaks.

[no changelog]

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

90/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context✓ Mentions testing or verification
Why it was queued
fuzzing or regression evidence
Security candidateci: hw: run the permission debugging script even if uhubctl failsby Martin Milata · 78184de0 · Oct 5, 2026 · 1 fileMessage 62 · AdequateInformational 15Details
Commit message · Martin Milata

ci: hw: run the permission debugging script even if uhubctl fails

62/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
Why it was queued
credential or privilege statedocumentation-only discount
AI analysis · Informational 15/100

This change only affects Trezor's internal continuous-integration (CI) hardware-testing workflow. It tells the CI runner to keep going even if the 'uhubctl' USB power-control tool fails, so a follow-up permission-debugging script still runs. It does not change the firmware, wallet application, or any code that end users run, and it does not create a security vulnerability.

Security candidatefix(core/bootloader): reject changed headers on block-0 retryby tychovrahe · a71f3c3a · Oct 5, 2026 · 3 filesMessage 97 · StrongModerate 68Details
Commit message · tychovrahe

fix(core/bootloader): reject changed headers on block-0 retry

`on_headers` runs once, on the first IMAGE_INIT_CHUNK_SIZE prefetch: it
validates the vendor and image headers and their signatures, decides whether
the storage has to be wiped, and caches the header for the per-block hash
checks. Those checks cover only the code, starting at `headers_offset` -- the
header bytes are trusted because they were already validated.

Since the block-0 retry was fixed to re-fetch the whole block from its start,
that block carries the header bytes again, but `headers_parsed` is already set,
so nothing revalidates them. A host could fail block 0 deliberately and answer
the retry with a different image: its headers go to flash unchecked, and with a
shorter vendor header its code shifts into the part of the block that the
cached hash does not cover. The wipe decision is kept from the first image, so
a vendor change no longer erases the seed.

Record a digest of the prefetch exactly as `on_headers` accepted it, and
require block 0 to still match it before `on_chunk` sees it or it is written.
Different headers are not a transfer error a retry could fix, so this aborts
the upload instead of spending a retry.

The bug was never released.

[no changelog]

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

97/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context✓ Explains rationale or failure mode
Why it was queued
signing boundaryupdate trustdefensive validationboot or update path
AI analysis · Moderate 68/100

This commit fixes a bug in the Trezor bootloader's firmware update process. When installing new firmware, the device first checks and approves the image's header (which includes things like the vendor identity and whether the storage should be wiped). Because of how retries work, a malicious or buggy host computer could have sent one approved header first, then on a retry of the very first data block sent a different image with a different header. The second header would be written to the device without being re-checked, potentially changing which vendor signed the firmware and skipping the security wipe of the user's secrets. The fix records a cryptographic fingerprint of the originally approved header and aborts the update if the retried block's header does not match exactly.

Lower-prioritytest(core): allow filtering Rust unit tests using `xtask test --filter`by Roman Zeyde · 472ad751 · Oct 3, 2026 · 2 filesMessage 72 · AdequateTriage 0Details
Commit message · Roman Zeyde

test(core): allow filtering Rust unit tests using `xtask test --filter`

[no changelog]

72/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Mentions testing or verification! No meaningful explanatory body
Lower-prioritybuild(core): add `miniscript` feature to unit test configurationby Roman Zeyde · fac0a664 · Oct 3, 2026 · 1 fileMessage 72 · AdequateTriage 0Details
Commit message · Roman Zeyde

build(core): add `miniscript` feature to unit test configuration

[no changelog]

72/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Mentions testing or verification! No meaningful explanatory body
Security candidatechore(core): expose SHA-256/512 hazard guardsby Lukas Bielesch · 64a478ab · Oct 2, 2026 · 2 filesMessage 57 · ThinInformational 15Details
Commit message · Lukas Bielesch

chore(core): expose SHA-256/512 hazard guards

[no changelog]

57/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
Why it was queued
cryptography-sensitive path
AI analysis · Informational 15/100

This commit is a routine code cleanup with no security relevance. It simply renames an internal Rust type alias to make the SHA-256 and SHA-512 'hazard guard' wrappers easier to use elsewhere, and adds extra unit tests. There is no bug fix, no vulnerability patch, and no change to cryptographic behavior.

Security candidatechore(core): expose the SHA-3 hazard guard APIby Lukas Bielesch · 46c36597 · Oct 2, 2026 · 1 fileMessage 57 · ThinInformational 12Details
Commit message · Lukas Bielesch

chore(core): expose the SHA-3 hazard guard API

[no changelog]

57/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
Why it was queued
cryptography-sensitive path
AI analysis · Informational 12/100

This commit is a routine code cleanup that exposes an existing internal SHA-3/Keccak hashing helper API so other parts of the firmware can reuse it safely. It adds buffer-size checks and tests, but does not fix any reported bug or vulnerability.

Security candidatefeat(core): add HMAC-SHA512, expose HMAC guardsby Lukas Bielesch · 40441ad4 · Oct 2, 2026 · 2 filesMessage 57 · ThinInformational 15Details
Commit message · Lukas Bielesch

feat(core): add HMAC-SHA512, expose HMAC guards

[no changelog]

57/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
Why it was queued
cryptography-sensitive path
AI analysis · Informational 15/100

This commit adds a new HMAC-SHA512 cryptographic primitive to the Trezor firmware's Rust crypto wrapper and makes the existing HMAC-SHA256 guard methods public. It is a feature addition with no visible security bug or fix. The code follows the same safe patterns already used for HMAC-SHA256, including memory-zeroing guards and test vectors from RFC 4231.

Security candidatefeat(core): expose cosi::combine_publickeysby Lukas Bielesch · 56504f7d · Oct 2, 2026 · 1 fileMessage 57 · ThinInformational 18Details
Commit message · Lukas Bielesch

feat(core): expose cosi::combine_publickeys

[no changelog]

57/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
Why it was queued
cryptography-sensitive path
AI analysis · Informational 18/100

This commit makes an internal cryptographic helper function public and adds a safety check so it no longer crashes when given an empty list of public keys. It also adds many unit tests. There is no direct evidence this fixes an active security vulnerability; it appears to be a code-quality and test-coverage improvement.