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

feat(core): send lock&unlock notifications when hard-locking

Public commit record

What the developer wrote

Authored by tychovrahe

62/100 · Adequate
feat(core): send lock&unlock notifications when hard-locking

[no changelog]
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
The short version

What changed, and why it matters

This commit adds a notification system so the Trezor device can tell the connected computer when it becomes 'unlocked' (ready to accept commands) and 'locked' (hard-locked). It also exposes a way for the device's Python code to send these notifications. There is no obvious security bug in the change itself, but the new MicroPython binding does not validate that the event number is one of the defined values, so a bug or compromised app running inside the device could pass an out-of-range value to the underlying C notification function.

Recommended action

Review the implementation of notify_send() to confirm it safely ignores or clamps out-of-range event values. Consider adding an upper-bound check in mod_trezorutils_notify_send() so only NOTIFY_BOOT, NOTIFY_UNLOCK, and NOTIFY_LOCK can be sent from Python. Treat this commit as a feature addition rather than a vulnerability unless further review shows the notification channel can be abused.

Security signals we found

01

New host notification channel added for lock/unlock state

02

MicroPython binding exposes notify_send() to Python code with only a negative-value check

03

No range validation against the notification_event_t enum in the Python binding

04

Bootloader workflows now send NOTIFY_UNLOCK/NOTIFY_LOCK around USB/message interfaces

Risk score

Why this scored 22/100

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