Skip to content

Conversation

@TychoVrahe
Copy link
Contributor

@TychoVrahe TychoVrahe commented Dec 10, 2025

This PR introduces basic telemetry for trezor devices.

Telemetry data is stored in backup ram, so with caveat that total battery loss or disconnection causes data loss, which is deemed acceptable.

To prevent unauthorized modification of the data, we limit kernel access to backup ram to only allow modification of specified records. Other records, like telemetry, can only be modified through designated smcalls.

Prodtest is modified to not contain functions for modifying backup ram data directly (in production=1 setting).

Finally, to prevent unauthorized modification through downgrading the FW, secmon downgrade protection is introduced, and monotonic versions are bumped so that no downgrades below this version is possible.

@TychoVrahe TychoVrahe self-assigned this Dec 10, 2025
@github-project-automation github-project-automation bot moved this to 🔎 Needs review in Firmware Dec 10, 2025
@github-actions
Copy link

github-actions bot commented Dec 10, 2025

en main(all)

model device_test click_test persistence_test
T2T1 test(all) main(all) test(all) main(all) test(all) main(all)
T3B1 test(all) main(all) test(all) main(all) test(all) main(all)
T3T1 test(all) main(all) test(all) main(all) test(all) main(all)
T3W1 test(all) main(all) test(all) main(all) test(all) main(all)

Latest CI run: 20717942922

@TychoVrahe TychoVrahe force-pushed the tychovrahe/logging/temp branch from 2359f1f to facc4c0 Compare December 10, 2025 11:54
@TychoVrahe TychoVrahe force-pushed the tychovrahe/logging/temp branch from facc4c0 to 1919856 Compare January 5, 2026 14:08
@TychoVrahe TychoVrahe marked this pull request as ready for review January 5, 2026 14:14
@TychoVrahe TychoVrahe requested review from cepetr and kopecdav and removed request for matejcik, obrusvit and romanz January 5, 2026 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🔎 Needs review

Development

Successfully merging this pull request may close these issues.

2 participants