Cybersecurity/Taiwan
The post-quantum standard holds. The chip running it leaked the message in one trace
Deep-learning side-channel analysis recovered the full message from an unprotected ML-KEM implementation on a Cortex-M4 from a single power trace.
A Taiwanese team evaluated NIST's standardised post-quantum key encapsulation mechanism, ML-KEM, running on an ARM Cortex-M4 under deep-learning side-channel analysis. A single power trace recovered the 32-byte message with 99.98 percent accuracy, and cross-device testing across three chips exceeded 99 percent.
What happened
Researchers at the Department of Information Engineering and Computer Science, Feng Chia University, with the Department of Computer Science and Information Engineering at National Taipei University of Technology, evaluated the resistance of a standardised post-quantum cryptographic scheme to deep-learning side-channel analysis on embedded hardware. Published in PLOS ONE.
The background is a migration already underway. Quantum computers, if built at sufficient scale, would break RSA and elliptic-curve cryptography – the public-key algorithms securing nearly everything. In August 2024, the US National Institute of Standards and Technology standardised the Module Lattice Key Encapsulation Mechanism, ML-KEM, as a core post-quantum scheme. Organisations are now replacing their key exchange with it.
This paper does not question that migration. It examines what happens when the new algorithm runs on cheap hardware without protection.
The test
The platform: an ARM Cortex-M4 microcontroller – among the most widely deployed embedded processors in existence, found in meters, sensors, automotive modules, payment devices and industrial controllers.
The method: deep-learning-based side-channel analysis. Side-channel analysis exploits the fact that a processor’s power consumption varies with the data it is manipulating. Machine learning models trained on that relationship can recover secret values from power measurements.
What was measured:
– Single-trace message recovery from one power measurement – Cross-device transfer across three physically separate chips
The numbers
| Measure | Result |
|---|---|
| Single-trace 32-byte message recovery | 99.98% accuracy |
| Cross-device testing across three chips | over 99% accuracy |
| Target platform | ARM Cortex-M4 |
| Scheme | ML-KEM, NIST-standardised August 2024 |
| Implementation protection | none – the tested implementation was unprotected |
The result
Two findings, and the second is the one that makes this more than an academic exercise.
One trace is enough. 99.98 percent accuracy recovering the 32-byte message from a single power measurement.
Single-trace matters because of which defences it invalidates. A great deal of practical security engineering assumes an attacker must accumulate many measurements: rate-limit the operation, rotate keys frequently, randomise timing between runs, and the attacker runs out of opportunity before they have enough data. All of that rests on needing many traces. If one suffices, none of it applies, and the protection has to live inside the implementation itself.
The attack transfers across chips. Over 99 percent accuracy across three separate devices. That is the practically significant finding, because side-channel models are often accused of learning the quirks of the specific chip they were trained on – profile one device, and the model works only on that device, which is a far weaker threat. Transferring across three physical chips of the same type indicates the model learned the implementation’s leakage behaviour rather than one chip’s idiosyncrasies.
Now the framing that matters most, because this result is easy to misreport.
This does not break ML-KEM. The lattice problem the scheme’s security rests on is untouched. What leaked is an unprotected implementation running on a microcontroller whose power consumption correlates with the data it handles. The algorithm is sound; this way of running it is not.
The defences are known and predate this result. Masking splits secret-dependent values into randomised shares, so that power consumption no longer correlates with the secret. Shuffling randomises the order of operations. Both exist specifically to defeat this class of analysis. Both cost performance – masking in particular can multiply execution time substantially – which is exactly why reference implementations without them get deployed on constrained hardware.
That is the real content of this paper for anyone shipping post-quantum cryptography on embedded devices: the performance saving from an unmasked implementation is not available to you.
The threat model should also be stated plainly. This requires physical access and the ability to measure power consumption. It is a real threat to smart cards, meters, vehicle modules, payment terminals and IoT endpoints – devices an attacker can hold. It is not a threat to a server in a datacentre.
How this compares to what came before
Side-channel analysis of cryptographic implementations is a mature field dating to the late 1990s, and every widely deployed algorithm has been attacked this way. The pattern is consistent: the mathematics holds, the implementation leaks, masked implementations are developed, and the cost of masking becomes part of the engineering budget.
Post-quantum schemes are at an earlier point on that curve than RSA or AES, having been standardised in 2024, and lattice-based schemes have characteristics – polynomial arithmetic, decoding steps, rejection sampling – that create leakage surfaces classical schemes did not have. The deep-learning approach is also more capable than the statistical methods used historically, which is why single-trace results are now achievable where they once were not.
Within this batch’s cybersecurity cluster, this paper stands apart in kind. The others evaluate intrusion detection on public benchmark datasets: a Saudi team reporting macro-F1 above 0.85 that an untrained encoder of the same architecture matched, an Indian team reporting 98.50 and 99.56 percent F1 on benchmarks that have saturated, a Chinese team reporting 99.39 percent accuracy on a 2017 dataset, a Chinese and Saudi pair reporting open-set performance of 68 and 77 percent.
This paper measures physical hardware and reports a result that transfers across devices. A German industrial study in the same cluster measured what cryptographic overhead costs a fieldbus. Those two are the cluster’s measurements; the rest are benchmark evaluations.
What it means
For anyone deploying post-quantum cryptography on embedded devices, the instruction is direct: use a masked implementation, and budget the performance cost. The reference implementation is for correctness, not for deployment on hardware an attacker can touch.
For procurement, this becomes a question to ask vendors of any device claiming post-quantum readiness: is the implementation masked, and has it been evaluated against single-trace analysis. A device that is post-quantum in algorithm and unprotected in implementation has not solved the problem it claims to.
For the standards and certification community, the finding reinforces that algorithm selection and implementation security are separate problems. ML-KEM being standardised says nothing about whether a given product’s ML-KEM leaks.
Business ideas from this paper
Masked post-quantum implementations for constrained hardware. Masking ML-KEM efficiently on a Cortex-M4 is a hard optimisation problem with a defined and growing customer base – everyone migrating embedded devices to post-quantum cryptography. The performance cost is the product differentiator.
Side-channel evaluation as a certification service. Device makers claiming post-quantum readiness need evidence their implementation resists this class of analysis. Independent evaluation against single-trace deep-learning attacks is a service with a regulatory tailwind as post-quantum mandates arrive.
Leakage-resistant microcontrollers. If the leakage is a property of the processor’s power behaviour, hardware countermeasures – current flattening, dual-rail logic, integrated noise – address it at the platform level rather than per-algorithm. That is a silicon differentiator for embedded vendors selling into security applications.
Migration auditing. Organisations replacing RSA with ML-KEM across embedded fleets need to know which devices are physically accessible and therefore need masked implementations. That triage – threat model by device class – is consulting work the migration will require at scale.
What could be wrong with it
The attack requires physical access and power measurement capability, so it does not apply to server-side deployments.
The target was an unprotected implementation. Masked and shuffled implementations exist specifically to defeat this analysis and were not the subject of the evaluation, so the paper does not establish whether protected implementations resist it.
Cross-device transfer was tested across three chips of the same type, which is a meaningful check and narrower than transfer across vendors, process nodes or device families.
One microcontroller family. Other architectures have different leakage characteristics.
The record does not state how many traces were required for the profiling phase, which affects how practical the attack is to mount against a target device.
No public trace or model repository identified in the indexed record, so the result cannot be independently reproduced from the published materials.
How sure can you be?
Confident in the reported recovery accuracy against an unprotected implementation on this platform, because it is a physical measurement on real hardware and the method is well established.
Confident that the result transfers across devices of this type, since it was tested on three separate chips – which is the check that distinguishes a practical attack model from an artefact of one chip.
Confident that this does not weaken ML-KEM as an algorithm, which is a statement about what was and was not attacked.
Not confident about protected implementations, which were not evaluated.
Not confident about other processor families or about the practicality of the profiling phase, neither of which the record covers.
Our rubric places this in the upper part of its range: a peer-reviewed physical measurement from two institutions, with cross-device validation on three chips, and no public reproduction materials.
Do this today
If you ship post-quantum cryptography on a device someone can physically hold, use a masked implementation and verify it. Reference implementations are not deployment implementations.
If you are buying devices advertised as post-quantum ready, ask whether the implementation is masked and whether it has been evaluated against single-trace analysis. Algorithm compliance and implementation security are different claims.
If you are planning a post-quantum migration, triage your estate by physical accessibility first. The devices an attacker can hold need a different implementation from the ones in your datacentre.
Source: Deep-learning side-channel analysis of embedded ML-KEM: Single-trace message recovery, PLOS ONE, 2026. PMID 42981314 · doi.org ().
Just Out Tech explains new research in plain language. This article was drafted with AI assistance and checked by a human against the original source.
- NIST standardised the Module Lattice Key Encapsulation Mechanism, ML-KEM, as a core post-quantum scheme in August 2024; this study evaluates it on an ARM Cortex-M4 microcontroller.
- Under deep-learning-based side-channel analysis, a single power trace enabled 32-byte message recovery with 99.98% accuracy.
- Cross-device testing across three chips achieved over 99% accuracy, indicating the attack model transfers between physical devices of the same type.
- The authors frame the result as highlighting critical deep-learning-driven threats, indicating that unprotected implementations on this class of microcontroller require countermeasures.
ML-KEM is a standardised scheme in active adoption, and the Cortex-M4 is one of the most widely deployed embedded platforms; this is a measurement on shipping technology.
Questions people ask
Does this break post-quantum cryptography?
No. The mathematical problem ML-KEM relies on is untouched. What leaked is the implementation: an unprotected version running on a microcontroller whose power consumption varies with the data it handles. The algorithm is sound and this particular way of running it is not, which is a distinction that matters enormously for what to do about it.
What does an attacker need for this?
Physical access to the device and the ability to record its power consumption while it operates. That is a realistic threat for smart cards, utility meters, vehicle modules, payment terminals and IoT endpoints - anything an attacker can hold. It is not a threat to a server in a locked datacentre, which is why the finding is about embedded deployment specifically.
Why does single-trace matter so much?
Because defences that rely on an attacker needing many measurements stop working. Randomising execution between runs, rate-limiting operations, or rotating keys frequently all assume the attacker must accumulate traces. If one trace suffices, those defences do not apply and the countermeasure has to be inside the implementation.
What should implementers actually do?
Use masked and shuffled implementations rather than reference code. Masking splits secret-dependent values into randomised shares so that power consumption no longer correlates with the secret; shuffling randomises operation order. Both exist specifically to defeat this class of analysis, both cost performance, and neither was present in what was tested here.