Phantom Timing Leaks on Cortex-M4: A Pre-registered Evaluation of ML-KEM Decapsulation
Pre-registered dudect-style timing test of PQM4 ML-KEM decapsulation on Cortex-M4 finds apparent leaks that a matched control and A/A test show come largely from the measurement harness.
Schemes: ML-KEM, Kyber, KyberSlash, PQM4
Findings (quotes checked against the source text)
-
With invalid ciphertexts no timing difference is detected in 18 of 18 campaigns, while the positive control is detected every time.
With invalid ciphertexts (random bytes, or one modified byte), no difference is detected in 18 of 18 campaigns, and both classes always have exactly the same cycle count, while the control is detected every time (|t| up to 1,877).
-
With fresh valid ciphertexts all nine implementations are flagged, but a matched control removes the difference for seven of nine.
A matched control, in which both classes run the same code before the measured call, removes the difference for seven of the nine.
-
An A/A test where both classes decapsulate the same bytes still yields a large t-value for one implementation, indicating harness-induced leakage.
An A/A test, in which both classes decapsulate the same bytes, still yields |t| = 12,864 for one implementation.
-
Per-trial correctness checks exposed a functional bug in PQM4's ML-KEM-1024 m4fstack producing wrong shared secrets.
They exposed a functional bug in PQM4's ML-KEM-1024 m4fstack (220 wrong shared secrets out of 49,830), which upstream had fixed shortly before.
Numbers (as extracted, not quote-checked)
- Trials per campaign: 100,000
- Campaigns used in analysis: 44
- Fresh-ciphertext per-implementation cycle difference: 4 to 15 cycles
- Wrong shared secrets in ML-KEM-1024 m4fstack: 220 out of 49,830
For builders
Treat dudect-style timing results on microcontrollers as suspect unless a matched control and A/A test are run, and keep per-trial correctness checks in any KEM benchmark harness.
Limits
Single platform (STM32F411 Cortex-M4) and PQM4 implementations only; the abstract is the sole text available, so details come from the abstract alone.
Topics: implementation-sidechannel kem benchmarks cryptanalysis