QShift Labs
Sign in

Open source

Trezor firmware

github.com/trezor/trezor-firmware

D

Scanned 5 Dec 2026 at commit 335a9a464b: 2900 files, C/C++, JavaScript, Python, Rust, Server config, graded against CNSA 2.0, qshift 0.2.4.

3 weak today, 15 quantum-vulnerable, 2 below the profile, 1 ready.

How to raise the grade

The changes that move the grade most, in this order. Each step counts the places from the list below.

  1. Fix what is weak today: ECDSA P-256D to C

    3 places, most of them in core/tools/codegen/fido/. Move the key to a secret store, rotate it, and remove it from the history. If it is a test key, keep it under testdata/ or test/, which are skipped by default.

  2. Replace ECDSA/Schnorr secp256k1

    8 places, most of them in crypto/. No drop-in replacement on chain; follow your chain's post-quantum plans and use ML-DSA-87 for signatures outside the chain.

    If this is the signature on the chain's transactions, it changes only when the whole network agrees on a new one.

  3. Replace ECDSA P-256

    3 places, most of them in core/tools/codegen/fido/. Plan ML-DSA-87 (signatures) or ML-KEM-1024 (key exchange) once your software supports it; keep keys easy to rotate.

    If this is the signature on the chain's transactions, it changes only when the whole network agrees on a new one.

1. Fix now: weak today

Broken or too weak today, without any quantum computer. These hold the grade at D or F.

2. Protect data in transit

Key exchange and encryption a future quantum computer could break. Traffic recorded today could be decrypted later, so these come before signatures.

Quantum-vulnerableEdDSA/XDH 1 place

Ed25519 / Ed448 signatures or X25519 / X448 key agreement with the cryptography package

Fix: Use ML-DSA / ML-KEM from cryptography>=48.

Quantum-vulnerableECDSA/ECDH 1 place

Elliptic curve key generation (ECDSA / ECDH) with the cryptography package

Fix: Use ML-DSA / ML-KEM from cryptography>=48; during transition a hybrid (X25519MLKEM768 in TLS) protects key exchange.

3. Move signatures

Signatures and certificates a future quantum computer could forge. Nothing recorded today becomes readable through them, so they can follow the key exchange, ahead of the CNSA 2.0 and NIST dates.

4. Tidy up

Not broken, but below the strength the profile asks for. Worth doing when the code is changed anyway.

Below profilepycryptodome 3.23.0 1 place

Versions before 4.2.0 have no ML-KEM (ML-DSA came in 4.1.0, ML-KEM and hybrid KEMs in 4.2.0)

Fix: Require pycryptodome>=4.2 (or pycryptodomex>=4.2).

Already post-quantum or strong enough

Readycryptography 50.0.0 1 place

Has ML-KEM and ML-DSA (ML-DSA certificates from 50.0.0).

Fix: None needed.

This is what the qshift scanner found in the public code at the commit named, with test folders left out. A scanner reports what it finds; it cannot prove that no other cryptography is used. It is not an audit and says nothing about how the project is run.