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

fix(core/rust): discard low-order keys in THP handshake

Public commit record

What the developer wrote

Authored by M1nd3r

62/100 · Adequate
fix(core/rust): discard low-order keys in THP handshake

[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 fixes a cryptographic edge case in Trezor's THP (Trezor Host Protocol) handshake. It now rejects Curve25519 public keys that are all zeros or that produce an all-zero shared secret. A zero public key can cause the Diffie-Hellman exchange to collapse to a predictable value, which could let an attacker on the USB/bus learn or manipulate session keys. The patch also makes the handshake fail more gracefully for that single channel instead of aborting all channels.

Recommended action

Treat as a security fix. Verify the THP handshake specification requires rejecting low-order Curve25519 points and that the is_zero check covers all relevant small-subgroup points for Curve25519. Consider adding explicit test vectors for low-order points and ensure host-side code performs equivalent validation.

Security signals we found

01

Curve25519 zero/low-order public key rejection added to DH

02

Zero shared-secret output rejected after scalar multiplication

03

Handshake state machine now transitions to Failed on initiation-response error

04

Per-channel failure isolation instead of aborting all opening channels

Risk score

Why this scored 67/100

Our methodology →
Potential impact 22/30
Exploitability 14/25
Stealth signal 10/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.