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

feat(core): introduce runtime TRNG use checks

Public commit record

What the developer wrote

Authored by cepetr

57/100 · Thin
feat(core): introduce runtime TRNG use checks

[no changelog]
✓ 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 runtime bookkeeping so the firmware can verify that every strong random-number generation actually used all available hardware random sources (the main chip, and optional Optiga/Tropic chips). It also fixes a small edge case in how Optiga random data is requested. The change is defensive: it makes the device deliberately fail if an expected entropy source was somehow skipped, reducing the risk that a bug or tampered code path silently weakens randomness used for secrets.

Recommended action

Treat as a hardening/defensive commit rather than an active vulnerability fix. Review that `rng_fill_buffer_strong()` is invoked for every security-critical random draw and that the new `ensure_true()` assertions cannot be bypassed by fault injection. Verify the Optiga chunking fix against the peripheral's minimum-size requirements in production tests.

Security signals we found

01

Adds runtime assertions that all configured hardware entropy sources contributed to strong random output

02

Prevents emulator/mock PRNG from claiming real TRNG use via compile-time and runtime guards

03

Fixes an off-by-one/edge-case bug in Optiga random buffer chunking

04

Uses fatal `ensure_true()` checks, so a missing entropy source halts the device rather than silently proceeding

05

No changelog entry and no explicit security framing in commit message

Risk score

Why this scored 32/100

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