EUCLEAK: EM side channel extracts ECDSA keys from YubiKey 5 (Infineon library, 14 years old)
NinjaLab's Thomas Roche found a non-constant-time modular inversion (extended Euclidean algorithm) in Infineon's ECDSA implementation, leaking the nonce through EM emanations. With physical access, opening the device and a few minutes of local EM acquisitions, an attacker can extract the ECDSA private key from YubiKey 5 Series (firmware < 5.7) and YubiHSM 2 (< 2.4), and the flaw extends to Infineon Optiga Trust M and Optiga TPM.
Broken implementation. The underlying math is not broken by this. The failure is in code, hardware, or how the primitive is used.
Background
The vulnerable code went unnoticed for 14 years and through about 80 top-level Common Criteria evaluations, which is the striking finding. Real-world risk is limited: the attacker needs the token, knowledge of the target account, a lab setup (on the order of $10k), and time to open and possibly reseal the device. Yubico's advisory (YSA-2024-03, CVE-2024-45678) rated it Moderate (CVSS 4.9) and also listed YubiKey Bio and Security Key series; YubiKey firmware cannot be updated by design, so affected keys can only be replaced.
It is a direct sequel to NinjaLab's 2021 Google Titan attack. ECDSA and FIDO remain sound; a secure element's library leaked.
Sources
- paperEUCLEAK (ePrint 2024/1380)IACR ePrint, eprint.iacr.org
- blogEUCLEAKNinjaLab, ninjalab.io
- announcementSecurity Advisory YSA-2024-03Yubico, yubico.com
- cveCVE-2024-45678NIST NVD, nvd.nist.gov