← Lab /Crypto & theory

Masked Kyber768 vulnerable to second-order CPA, key recovered with ~200 traces

First-order masking does not prevent a second-order correlation power analysis and that the secret key can be recovered with about 200 traces.

Crypto & theory Ledger Donjon 26 Jun 2026 Attack Real-world evidence

Published as “A Second-Order Side-Channel Attack on Masked Kyber768”

Why it matters

Second-order side-channel attacks can break first-order masked post-quantum cryptography, indicating that additional countermeasures such as shuffling or desynchronization are needed.

Summary

The researchers captured electromagnetic traces from a Cortex-M4 board running a first-order masked Kyber768 implementation (mkm4). They showed that first-order analysis yields flat SNR, confirming the mask hides single-sample leakage. By combining one sample from each share window with a centered cross-product and using a mask-averaged covariance leakage model, they performed a second-order CPA that recovered the correct secret coefficient, ranking it first after roughly 200 traces. The evidence is based on actual hardware measurements and demonstrates that masking alone is insufficient against higher-order attacks.

What they found 2

  1. Key coefficient recovered after ~200 traces using second-order CPA.

    “the true key reaches rank 0 after about 200 traces.”

  2. First-order SNR is flat, indicating masking removes single-sample leakage.

    “The result is exactly what masking should deliver: flat noise.”

Caveats 4

  • The attack requires knowledge of the joint point of interest and a specific covariance leakage model; a naive Hamming-weight model fails.
  • Masking still raises the attacker's effort, as the authors note it “buys meaningful complexity” and is “not a wall.”
  • The attack assumes the attacker can isolate the two share windows and knows the correct joint point of interest.
  • Success depends on using the mask-averaged covariance model; other models (e.g., Hamming-weight) do not work.

What’s new here 4

  • Demonstrates a practical second-order CPA against a first-order masked Kyber768 implementation.
  • Introduces a mask-averaged covariance model that predicts the centered cross-product leakage.
  • Shows key recovery with only ~200 EM traces on real hardware.
  • Confirms first-order masking eliminates single-sample leakage but not joint leakage.