TZ
← All projectsTrezor

Trezor firmware

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

BitcoinHardware walletsNormal
Repository coverage

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

1370security candidates439second-pass queue3237AI analyses
183commits · 30 days
449commits · 60 days
1775commits · 180 days
2886commits · 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
872Strong · 80–100
1756Adequate · 60–79
1202Thin · 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.
tychovrahe397165356667
Jakub Janků1083371681
Roman Zeyde722231640372
obrusvit336138284364
cepetr310114232259
PrisionMike161108156271
Andrew Kozlik893885267
Petr Susil1159286
Martin Pastyřík291025175
M1nd3r296108250071
Lukas Bielesch1168097065
Ioan Bizău23076230059
Analysis record

Published AI watches

Last scanned 15 minutes ago

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

chore: bump versions

This commit only changes version numbers and translation metadata across Trezor firmware components. There are no code logic changes, bug fixes, or security-related modifications in the diff. It is a routine release bookkeeping step.

332283eaby Jakub Janků+16−1613 files
No security note in commit
Informational 17 AI analysisMessage 57 · Thin
TZ TrezorTrezor firmware BitcoinHardware wallets

chore(legacy): handle AppError failure type

This commit adds a missing human-readable error message for a new failure type called 'AppError' in the older Trezor (legacy) firmware. Without this change, if the device encountered an AppError it would fall through to a generic 'Firmware…

Missing enum case in failure-reporting pathPotential misclassification of runtime errors to usersNo memory safety, cryptographic, or authorization changes
b7aef814by Lukas Bielesch+3−01 file
No security note in commit
Moderate 59 AI analysisMessage 62 · Adequate
TZ TrezorTrezor firmware BitcoinHardware wallets

fix(core): attribute user MLSPERR to unprivileged task

This commit fixes a bug in the Trezor firmware's task scheduler where a specific hardware memory fault (related to lazy floating-point register saving) was being blamed on the wrong task. Previously, the kernel/privileged code could be inc…

Incorrect fault attribution between privileged kernel and unprivileged taskPotential wrong task termination/killing due to misattributed memory faultLazy floating-point state preservation (FP lazy stacking) edge case
b3e499f5by cepetr+50−51 file
No security note in commit
Moderate 65 AI analysisMessage 57 · Thin
TZ TrezorTrezor firmware BitcoinHardware wallets

fix(core): validate unprivileged task psp

This commit adds a safety check inside the Trezor hardware wallet's core task scheduler. Before saving a task's state during a context switch, the operating system now verifies that the task's stack pointer points to a valid location withi…

Kernel writes to user-controlled pointer without bounds validation (pre-patch)Privilege escalation / memory corruption via forged PSP in unprivileged taskAddition of explicit PSP range validation before context save
8097a4a5by cepetr+42−21 file
No security note in commit
Informational 15 AI analysisMessage 88 · Strong
TZ TrezorTrezor firmware BitcoinHardware wallets

fix(core/delizia): remove stale Pad::clear() call

This is a tiny build-fix patch, not a security change. A previous code cleanup removed a function called Pad::clear(), but a new screen in the passphrase input still tried to call it, causing the T3T1 hardware wallet firmware build to fail…

57b35a8fby Jakub Janků+0−11 file
No security note in commit
Informational 12 AI analysisMessage 62 · Adequate
TZ TrezorTrezor firmware BitcoinHardware wallets

feat(core/rust/crypto): add ECDSA public key uncompression

This commit adds a new internal helper function that converts compressed ECDSA public keys into their uncompressed form. It is a feature addition with no visible security bug: the code validates the key prefix, uses the correct buffer size…

be9504b9by Lukas Bielesch+57−02 files
No security note in commit
Informational 15 AI analysisMessage 62 · Adequate
TZ TrezorTrezor firmware BitcoinHardware wallets

refactor(sdk): replace get_xpub and get_public_key with get_public_node

This commit is a routine internal code cleanup in the Trezor firmware SDK. It renames and consolidates two ways of reading a public key into a single function, and adds a helper to decompress ECDSA public keys. There is no indication of a …

8c30110eby Lukas Bielesch+35−424 files
No security note in commit
Low 41 AI analysisMessage 85 · Strong
TZ TrezorTrezor firmware BitcoinHardware wallets

feat(core): handle bkpt instruction in unprivileged mode

This firmware update changes how the Trezor device handles a special ARM processor instruction called BKPT when it is executed by low-privilege code (unprivileged mode). Previously, such a breakpoint could escalate into a HardFault and reb…

Prevents unprivileged BKPT from escalating to HardFault/RSOD rebootAdds DebugMonitor exception handler that exits the faulting taskComment explicitly notes remaining RSOD behavior at RDP level 0 on Secure-Monitor devices
bcbcd7fbby cepetr+22−02 files
No security note in commit
Informational 15 AI analysisMessage 72 · Adequate
TZ TrezorTrezor firmware BitcoinHardware wallets

feat(core/caesar): use arrow in HtC anim

This commit is a user-interface polish change for the Trezor hardware wallet. It replaces the text label on the 'hold to confirm' button with a small arrow icon in one product variant (Caesar), and shortens the translated button text in se…

01422b74by obrusvit+6790−676712 files
No security note in commit
Informational 13 AI analysisMessage 93 · Strong
TZ TrezorTrezor firmware BitcoinHardware wallets

refactor(core): remove unused clearing-related API in `Pad`

This is a code cleanup change in the Trezor firmware's user-interface code. It removes an old 'clear' flag and related functions from a background-drawing helper called Pad, because that flag no longer did anything useful. The commit does …

ddbd3ca0by Roman Zeyde+44−15949 files
No security note in commit
Informational 15 AI analysisMessage 82 · Strong
TZ TrezorTrezor firmware BitcoinHardware wallets

fix(translations): fix failing ES test

This commit updates translation files for the Trezor hardware wallet. It corrects a typo in the Spanish translation ('Tiiempo' to 'Tiempo'), adjusts wording in several languages, and updates the digital signature that verifies the translat…

580f40f8by Michal Kazda+41−216 files
No security note in commit
Informational 15 AI analysisMessage 57 · Thin
TZ TrezorTrezor firmware BitcoinHardware wallets

fix(translations): add PT glyph `â`

This commit adds a single missing Portuguese character (â) to the font files used on Trezor hardware wallets. It is a routine translation/localization fix with no security relevance.

2bf28f83by Michal Kazda+562−325 files
No security note in commit
Informational 15 AI analysisMessage 85 · Strong
TZ TrezorTrezor firmware BitcoinHardware wallets

refactor(core): slide the eye hint and hidden characters in together

This commit is a cosmetic UI animation cleanup. It removes a 65-millisecond delay so that an eye icon and hidden password characters slide onto the screen at the same time, instead of starting at slightly different times. There is no secur…

faf18c8fby Anderson Guimaraes+5−233 files
No security note in commit
Informational 15 AI analysisMessage 85 · Strong
TZ TrezorTrezor firmware BitcoinHardware wallets

refactor(core): move Eckhart passphrase input event handling to a helper [no changelog]

This commit is a pure code cleanup (refactor) in the Trezor firmware's passphrase input screen. It moves the existing event-handling logic into a new helper method without changing what the code actually does. There is no security-relevant…

0ebda150by Anderson Guimaraes+44−401 file
No security note in commit
Informational 15 AI analysisMessage 85 · Strong
TZ TrezorTrezor firmware BitcoinHardware wallets

refactor(core): address review of the passphrase eye hint

This commit is a small internal cleanup of the passphrase-entry animation on Trezor hardware wallets. It renames timers, computes an animation value once instead of twice, and moves responsibility for redrawing to the caller. There is no i…

f97e8dd5by Anderson Guimaraes+53−493 files
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 synchronization of translated user-interface text strings from the Crowdin translation platform into the Trezor firmware. It only changes wording in Czech, German, Spanish, French, Indonesian, and Portuguese transl…

7c7bb52cby Thalarion+334−2597 files
No security note in commit
Informational 15 AI analysisMessage 85 · Strong
TZ TrezorTrezor firmware BitcoinHardware wallets

refactor(core): extract the firmware's embedded image updates

This commit is a straightforward code cleanup: it moves the existing bootloader and nRF firmware update logic into a new helper function without changing what the code actually does. There is no security-relevant change visible in the diff.

5fec68edby tychovrahe+38−261 file
No security note in commit
Moderate 50 AI analysisMessage 100 · Strong
TZ TrezorTrezor firmware BitcoinHardware wallets

fix(solana): accept sysvars loaded from ALTs

This update fixes a bug in Trezor's Solana transaction handling. Some Solana transactions use a feature called 'address lookup tables' to save space, and Trezor was incorrectly rejecting valid transactions when a special system account (a …

Change relaxes a previously strict validation rule (sysvar account identity verification) for some instruction typesRelaxation is scoped per-instruction via a new `allow_alt_sysvars` booleanStake program instructions retain strict rejection to prevent account-role shifting attacks
76114596by Jakub Janků+100−67 files
No security note in commit
Informational 15 AI analysisMessage 62 · Adequate
TZ TrezorTrezor firmware BitcoinHardware wallets

chore(clear_signing): generated code changes for uint216 parser

This commit only regenerates code bindings for a new Ethereum ABI type called ABI_UINT216. It adds the new numeric value 50 to several auto-generated enum files in Python and Rust. There is no actual parser logic, security fix, or vulnerab…

a669d909by PrisionMike+59−504 files
No security note in commit
Informational 20 AI analysisMessage 57 · Thin
TZ TrezorTrezor firmware BitcoinHardware wallets

feat(clear_signing): add uint216 support

This commit adds support for a new Ethereum data type, uint216, to Trezor's clear signing feature. It is a small, additive feature change with no obvious security problem. There is no indication in the commit that this fixes a vulnerabilit…

bbd7a797by PrisionMike+3−02 files
No security note in commit
Repository ledger

Explore captured commits

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

Lower-prioritytest(core): improve UI layout coverage by sending button/click eventby Roman Zeyde · 581f979a · Jul 7, 2026 · 2 filesMessage 87 · StrongInformational 15Details
Commit message · Roman Zeyde

test(core): improve UI layout coverage by sending button/click event

Note that `DebugButton.INFO` is bypassing the active layout.

[no changelog]

87/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides an explanatory body✓ Mentions testing or verification
AI analysis · Informational 15/100

This commit is a test-only change. It updates the automated UI testing helper so that, when a menu is detected on the newer 'Caesar' device layout, the test sends a right-button press or a screen click instead of using an older debug command that bypasses the active layout. The large diff is almost entirely updated screenshot hash values in the test fixtures file, reflecting the changed button events used during tests. There is no change to the actual Trezor firmware security logic or user-facing behavior.

Security candidatechore(core/caesar): shorten `confirm_summary()` text if possibleby Roman Zeyde · bee67ca2 · Jul 7, 2026 · 2 filesMessage 77 · AdequateInformational 15Details
Commit message · Roman Zeyde

chore(core/caesar): shorten `confirm_summary()` text if possible

No need to add a newline if `amount` or `amount_label` are empty.

[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
Why it was queued
cryptography-sensitive pathboot or update path
AI analysis · Informational 15/100

This is a minor user-interface polish change for the Trezor hardware wallet's Caesar layout. It removes an unnecessary blank line from transaction summary screens when either the amount label or the amount value is empty. There is no security relevance: it does not change what the device signs, how it signs, or any cryptographic behavior. The large diff is mostly updated test screenshot hashes reflecting the slightly different screen layout.

Security candidatetest(core/caesar): visit menu only on last pageby Roman Zeyde · 7fa4a20f · Jul 7, 2026 · 2 filesMessage 67 · AdequateInformational 17Details
Commit message · Roman Zeyde

test(core/caesar): visit menu only on last page

[no changelog]

67/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Mentions testing or verification! No meaningful explanatory body
Why it was queued
cryptography-sensitive path
AI analysis · Informational 17/100

This commit is a small test-only UI adjustment for the Trezor hardware wallet's Caesar layout. It changes when a menu icon is reported as visible in automated UI snapshots, limiting it to the last page of a multi-page flow. The code change only affects test fixtures and snapshot hashes, not user-facing security behavior. There is no indication this fixes a security vulnerability.

Security candidatefix(core): scope allocation of clear signing definitionsby Roman Zeyde · 1dde2fa8 · Jul 7, 2026 · 2 filesMessage 89 · StrongLow 27Details
Commit message · Roman Zeyde

fix(core): scope allocation of clear signing definitions

Otherwise, they will not be garbage-collected.

[no changelog]

89/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides an explanatory body✓ Explains rationale or failure mode
Why it was queued
signing boundarysigning or wallet path
AI analysis · Low 27/100

This commit changes how Trezor's Ethereum 'clear signing' helper data is loaded in memory. Previously, all definitions were stored in a permanent module-level list that MicroPython's garbage collector could not reclaim. The patch wraps them in a generator function so they are created on demand and can be freed afterward. The stated goal is to avoid memory pressure, not to fix a security bug. There is no direct evidence of an exploitable vulnerability in the diff itself.

AI review queuedchore(core): inline `SC_FUNC_APPROVE_REVOKE_AMOUNT` constant definitionby Roman Zeyde · fe564511 · Jul 7, 2026 · 2 filesMessage 62 · AdequateInformational 15Details
Commit message · Roman Zeyde

chore(core): inline `SC_FUNC_APPROVE_REVOKE_AMOUNT` constant definition

[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
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Informational 15/100

This commit is a minor code cleanup: it replaces a named constant with the literal number 0 in one place and removes the constant definition. There is no functional change, no bug fix, and no security relevance visible in the diff.

Lower-priorityfix(core): make rotation_index optionalby Martin Pastyřík · 01aa1bff · Jul 7, 2026 · 4 filesMessage 80 · StrongInformational 23Details
Commit message · Martin Pastyřík

fix(core): make rotation_index optional

fix compatibility issue by making the new rotation_index field in Evolu's EvoluRegistrationRequest optional

[no changelog]

80/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context
AI analysis · Informational 23/100

This commit loosens a data-format rule for a Trezor feature called Evolu. It changes the `rotation_index` field in an 'EvoluRegistrationRequest' message from 'must be provided' to 'may be omitted'. The stated reason is to fix a compatibility issue so older or differently configured callers can still use the feature. There is no direct evidence in the commit that this fixes an exploitable vulnerability; it appears to be a backward-compatibility fix.

Lower-priorityrefactor(rust/trezor-thp): minor tweaksby Martin Milata · 751b66fd · Jul 6, 2026 · 6 filesMessage 90 · StrongInformational 15Details
Commit message · Martin Milata

refactor(rust/trezor-thp): minor tweaks

- channel_id() part of ChannelIO
- derive Debug for enums when testing
- logging off by default in tests
- export control_byte module

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
AI analysis · Informational 15/100

This is a small internal code cleanup in the Trezor hardware wallet's Rust transport-handshake-pairing (THP) library. It moves a helper method (channel_id) into a shared trait, adds a read-only packet_len accessor, turns off noisy test logging by default, derives Debug for some enums in test builds, and makes the control_byte module public. None of these changes fix a vulnerability or change security behavior.

Lower-prioritychore(rust/trezor-thp): use trezor-noise-protocol from crates.io instead of gitby Martin Milata · f2efc7ff · Jul 6, 2026 · 1 fileMessage 62 · AdequateInformational 15Details
Commit message · Martin Milata

chore(rust/trezor-thp): use trezor-noise-protocol from crates.io instead of git

62/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
AI analysis · Informational 15/100

This is a routine dependency housekeeping change. The project switched from loading a small cryptography helper library directly from a Git repository to using the published version on crates.io, and bumped the version from 0.2.0 to 0.2.1. There is no code behavior change visible in this commit and no security issue is indicated.

Lower-prioritychore(core): cargo-vet audits for trezor-thp dependenciesby Martin Milata · 993cf8db · Jul 6, 2026 · 2 filesMessage 62 · AdequateInformational 13Details
Commit message · Martin Milata

chore(core): cargo-vet audits for trezor-thp dependencies

[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
AI analysis · Informational 13/100

This commit only updates supply-chain audit records for two Rust dependencies used by Trezor hardware wallets. It adds signed-off statements that the code is safe to deploy, but does not change any actual firmware, cryptographic, or application code. There is no indication of a security bug or fix.

Lower-prioritychore(core): update fixturesby Martin Milata · c9bce09d · Jul 6, 2026 · 1 fileMessage 47 · ThinInformational 15Details
Commit message · Martin Milata

chore(core): update fixtures

[no changelog]

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

This commit only adds new expected test result hashes (called 'fixtures') for on-screen UI tests. It does not change any firmware code, wallet logic, or security behavior. There is no indication of a security fix or vulnerability.

Lower-priorityfix(core): unallocated THP session lookupby Martin Milata · bed87470 · Jul 6, 2026 · 2 filesMessage 57 · ThinLow 45Details
Commit message · Martin Milata

fix(core): unallocated THP session lookup

[no changelog]

57/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
AI analysis · Low 45/100

This commit fixes a bug in how the Trezor hardware wallet looks up unused secure sessions. Previously, the code checked whether a session slot was 'empty' by comparing the whole slot object to a placeholder. After a code change, that comparison no longer worked correctly, so a slot could be mistaken for empty when it actually contained another user's session data. The fix makes the code explicitly read the session-state field to decide if a slot is truly unallocated. The risk is that a new session could overwrite an active session, potentially mixing up or leaking cached secrets between sessions. The commit message does not call this a security fix, and no public advisory was supplied.

Lower-priorityfix(core): loop.mailbox exception handlingby Martin Milata · cbb5281b · Jul 6, 2026 · 1 fileMessage 57 · ThinLow 41Details
Commit message · Martin Milata

fix(core): loop.mailbox exception handling

[no changelog]

57/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
AI analysis · Low 41/100

This commit fixes how a low-level task mailbox in the Trezor firmware handles stored values. Previously, if another task placed an exception into the mailbox, the waiting task would receive that exception as if it were a normal value instead of having it raised. The patch makes the mailbox re-raise stored exceptions so they propagate correctly through the async loop. This is a correctness fix in the firmware's task scheduler; it is not obviously exploitable as a security vulnerability on its own, but mishandled exceptions could in theory mask errors or alter control flow in security-critical code paths.

Lower-priorityfix(python): ignore packets with mismatched THP channelby Martin Milata · e20ea1b9 · Jul 6, 2026 · 1 fileMessage 62 · AdequateLow 46Details
Commit message · Martin Milata

fix(python): ignore packets with mismatched THP channel

[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
AI analysis · Low 46/100

This commit fixes the Trezor Python host library so it ignores USB packets whose channel ID does not match the current session. Previously, packets from other channels (or broadcast packets at the wrong time) could be accepted and processed, which could confuse the host-side state machine during the encrypted Trezor-Host Protocol (THP). The fix adds a check that drops mismatched packets unless they are explicitly allowed as broadcast packets.

Lower-prioritytest(core): allow logging from rust unit testsby Martin Milata · a9bc6e5a · Jul 6, 2026 · 3 filesMessage 67 · AdequateInformational 15Details
Commit message · Martin Milata

test(core): allow logging from rust unit tests

[no changelog]

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

This commit only changes how Rust unit tests inside the Trezor firmware project can print diagnostic messages. It enables a debug console feature for test builds, reads an optional RUST_LOG environment variable, and increases the maximum log message length from 128 to 512 bytes during tests. It also improves handling when a log message is too long by adding a clear '(message truncated)' note. There is nothing here that affects real device security or user funds.

Lower-priorityrefactor(rust/trezor-thp): buffer size hint in PacketInResult::Routeby Martin Milata · 55270d31 · Jul 6, 2026 · 6 filesMessage 62 · AdequateInformational 16Details
Commit message · Martin Milata

refactor(rust/trezor-thp): buffer size hint in PacketInResult::Route

62/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
AI analysis · Informational 16/100

This commit is a code cleanup in Trezor's Rust transport layer. It changes how incoming packets are inspected before being forwarded to the right channel, adding a buffer-size hint so the caller can allocate a large enough receive buffer. The change also tightens validation: codec v1 packets are now explicitly ignored on the host side, and payload lengths are checked against maximum and minimum limits. There is no direct evidence in the commit that this fixes an active security bug, but it removes a small class of potential issues where a caller might receive a packet without knowing how much buffer space is needed.

Lower-prioritytest(rust/trezor-thp): crc32 vectors from test_trezor.wire.thp.checksumby Martin Milata · fb53052d · Jul 6, 2026 · 1 fileMessage 72 · AdequateInformational 15Details
Commit message · Martin Milata

test(rust/trezor-thp): crc32 vectors from test_trezor.wire.thp.checksum

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
AI analysis · Informational 15/100

This commit only adds more test cases and removes two unused helper functions for verifying CRC32 checksums. It does not change the actual CRC32 calculation logic, nor does it fix any security issue. There is nothing here that would allow an attacker to exploit a Trezor device.

Lower-priorityrefactor(core/rust): allow defining new micropython exceptionsby Martin Milata · cdb36b37 · Jul 6, 2026 · 5 filesMessage 62 · AdequateInformational 12Details
Commit message · Martin Milata

refactor(core/rust): allow defining new micropython exceptions

[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
AI analysis · Informational 12/100

This commit is a code cleanup in the Trezor firmware's Rust layer. It introduces a dedicated helper module for creating MicroPython exceptions and refactors existing error handling to use those helpers. There is no direct evidence in the commit that it fixes a security vulnerability; it appears to be a maintainability refactor that also enables future custom exception types.

Lower-priorityrefactor(core/rust): add TryFrom<Option<T>> for Objby Martin Milata · 6301a688 · Jul 6, 2026 · 4 filesMessage 62 · AdequateInformational 18Details
Commit message · Martin Milata

refactor(core/rust): add TryFrom<Option<T>> for Obj

[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
AI analysis · Informational 18/100

This is a small internal code cleanup in the Trezor firmware's Rust code. It replaces a custom helper function with a standard Rust conversion trait so that optional values can be converted to MicroPython objects in a more idiomatic way. The change itself does not fix a known bug or add a security feature; it is a refactoring that may make future errors slightly harder to miss.

Lower-priorityrefactor(rust/trezor-thp): export more constantsby Martin Milata · 8c9c1b1f · Jul 6, 2026 · 2 filesMessage 57 · ThinInformational 15Details
Commit message · Martin Milata

refactor(rust/trezor-thp): export more constants

57/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
AI analysis · Informational 15/100

This commit is a straightforward internal code cleanup in the Rust implementation of Trezor's transport protocol (THP). It moves several constants from inside a trait or function to the module level and makes them public so other parts of the code can use them directly. The actual numeric values and behavior do not change. There is no indication this fixes a security bug or changes how the device protects data.

Lower-priorityrefactor(rust/trezor-thp): keep device_properties in Muxby Martin Milata · ef4cb485 · Jul 6, 2026 · 3 filesMessage 62 · AdequateInformational 13Details
Commit message · Martin Milata

refactor(rust/trezor-thp): keep device_properties in Mux

62/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
AI analysis · Informational 13/100

This commit is a straightforward internal code refactor in Trezor's Rust firmware. It moves the storage of 'device_properties' from the credential verifier object into the communication multiplexer (Mux). The actual data being sent during device pairing remains the same; only which internal component holds the data changes. There is no indication this fixes a security bug or introduces a vulnerability.

Security candidaterefactor(core/rust): trezor-crypto backend glue for noise-protocolby Martin Milata · bc97a6b2 · Jul 6, 2026 · 9 filesMessage 62 · AdequateLow 35Details
Commit message · Martin Milata

refactor(core/rust): trezor-crypto backend glue for noise-protocol

[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
Why it was queued
cryptography-sensitive path
AI analysis · Low 35/100

This commit refactors the cryptographic glue code that connects Trezor's embedded firmware to a Rust-based Noise protocol implementation used for secure device communication. The most notable security-relevant change is the addition of a constant-time comparison function for checking AES-GCM authentication tags, which helps prevent timing-based attacks that could leak information about the tag. The commit also splits AES-GCM into separate encrypt and decrypt types, adds a non-pinned SHA-256 wrapper, and introduces wrappers for Curve25519 and AES-GCM to satisfy the Noise protocol backend interface. There is no explicit vendor statement that this fixes a security vulnerability, and no independent researcher is credited.

Security candidaterefactor(rust/trezor-thp): keep track if channel finished pairing/credentialsby Martin Milata · 496f4b1b · Jul 6, 2026 · 4 filesMessage 62 · AdequateInformational 12Details
Commit message · Martin Milata

refactor(rust/trezor-thp): keep track if channel finished pairing/credentials

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 state
AI analysis · Informational 12/100

This commit is a straightforward internal code refactor in the Trezor hardware wallet's Rust transport-handshake protocol (THP) library. It replaces a simple pairing-state field with a richer 'phase' enum that tracks whether the channel is still in the pairing/credential setup stage or has moved to encrypted application messaging. The change adds helper methods so the application can explicitly mark pairing as finished. There is no direct security fix here; it is a structural improvement that makes state tracking clearer and less error-prone for callers.

Security candidatefeat(core): switch from Python THP implementation to Rust-based oneby Martin Milata · 00ec9a7f · Jul 6, 2026 · 43 filesMessage 62 · AdequateLow 36Details
Commit message · Martin Milata

feat(core): switch from Python THP implementation to Rust-based one

[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
Why it was queued
cryptography-sensitive pathboot or update pathparser or protocol path
AI analysis · Low 36/100

This commit replaces the Python implementation of Trezor's THP (Trezor Host Protocol) with a Rust-based one. It is a large refactoring that moves channel state management, encryption, packet handling, and handshake logic from Python into a Rust module exposed as `trezorthp`. The change also adjusts how credentials are validated, how sessions are cached, and how the event loop handles reads, writes, and retransmissions. There is no explicit security bug in the diff, but the scope of the rewrite and the removal of several safety checks (for example around buffer allocation and unexpected-message handling) create a non-trivial risk of introducing memory-management, concurrency, or protocol-edge-case bugs. The vendor does not describe this as a security fix.

Security candidatefeat(core): add Rust-based THP implementationby Martin Milata · acb6c376 · Jul 6, 2026 · 19 filesMessage 57 · ThinLow 39Details
Commit message · Martin Milata

feat(core): add Rust-based THP implementation

[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
boot or update path
AI analysis · Low 39/100

This commit adds a new Rust implementation of the Trezor Host Protocol (THP), which is the secure communication layer between a Trezor hardware wallet and a host computer/phone. It introduces encryption, channel management, pairing, and credential verification. Because this is a large new cryptographic and network-facing subsystem, any bugs here could affect device security, but the commit itself is a feature addition rather than a documented fix for a known vulnerability.

Security candidaterefactor(core/rust): use ZeroizeOnDropby Martin Milata · fdb58ef8 · Jul 6, 2026 · 7 filesMessage 57 · ThinInformational 18Details
Commit message · Martin Milata

refactor(core/rust): use ZeroizeOnDrop

[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
memory safetycryptography-sensitive path
AI analysis · Informational 18/100

This commit is a code cleanup in the Trezor firmware's Rust cryptography code. It replaces hand-written memory-clearing code with a standard library feature called ZeroizeOnDrop. The goal is the same: erase sensitive cryptographic data from memory when objects are destroyed. There is no evidence this commit fixes an active security bug; it is a defensive hardening and refactoring change.