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

feat(core/prodtest): Require Tropic to be locked before otp-variant-write.

Public commit record

What the developer wrote

Authored by Andrew Kozlik

62/100 · Adequate
feat(core/prodtest): Require Tropic to be locked before otp-variant-write.

[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 tightens a factory/production testing tool in Trezor firmware so that it refuses to permanently write a device variant code into one-time programmable memory unless the Tropic secure chip is already locked. Previously, the variant could be written before the chip was locked, which could let a misconfigured or tampered device pass through production with an incorrect or attacker-chosen variant setting. The change also improves the lock-check command so it can return an explicit error state instead of silently answering 'NO'.

Recommended action

Treat as a hardening/improvement commit in production tooling. Review whether the stale comment referencing get_optiga_locked_status() should be corrected. Verify that the new TROPIC_LOCKED_ERROR paths in prodtest_otp_variant_write() halt execution as intended and do not leave the CLI in an inconsistent state.

Security signals we found

01

Enforces a security precondition (Tropic locked) before an irreversible OTP write

02

Refactors lock-check logic into a reusable API with explicit error state

03

Prevents production tooling from writing device variant before secure element is paired/locked

04

Comment typo suggests the change may have been copied from an Optiga-based implementation

Risk score

Why this scored 42/100

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