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

chore(core): raise exception for invalid ThpCreateNewSession messages [no changelog]

Public commit record

What the developer wrote

Authored by M1nd3r

77/100 · Adequate
chore(core): raise exception for invalid ThpCreateNewSession messages
[no changelog]
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides an explanatory body
The short version

What changed, and why it matters

This commit tightens how the Trezor hardware wallet handles passphrase-protected sessions. Previously, a host could supply a passphrase in a message even when the device was configured to require the passphrase only on the device. Now the firmware raises an error in that case, preventing the host from silently overriding the 'always on device' setting. The change also adds a debug-only warning when a session is created with a passphrase while passphrase protection is disabled on the device.

Recommended action

Review the THP (Trezor Host Protocol) session creation flow to confirm no other paths bypass the on-device passphrase requirement, and consider adding regression tests for the PASSPHRASE_ALWAYS_ON_DEVICE + host-supplied passphrase case. No urgent action is required unless this change is part of a larger security fix release.

Security signals we found

01

Input validation added for ThpCreateNewSession messages

02

Host-supplied passphrase now rejected when PASSPHRASE_ALWAYS_ON_DEVICE is enabled

03

Behavior change from silent acceptance to explicit DataError

04

Debug logging added for inconsistent passphrase configuration

Risk score

Why this scored 37/100

Our methodology →
Potential impact 8/30
Exploitability 7/25
Stealth signal 6/15
Affected reach 7/15
Confidence 6/10
Evidence quality 3/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.