Side-Channel Analysis on Secure Elements
Electromagnetic side-channel attacks and what public research reveals about the limits of certified hardware.
สามารถอ่านบทความนี้ได้ในภาษาต่อไปนี้:
Most hardware security failures happen outside the chip: in firmware, supply chains, companion software, or user behavior. In the majority of documented incidents, the Secure Element is bypassed rather than broken. The earlier articles in this series made that case in detail.
However, the chip itself has been broken into, too. There are documented records of direct physical attacks against secure elements. These attacks target the chip's own cryptographic operations, extract secret keys, and succeed despite the hardware defenses the chip was specifically engineered to provide. This article covers the most significant documented cases involving electromagnetic side-channel research. At the end, we look at what they mean for a hardware wallet like Tangem, and where the real risks sit.
What is an electromagnetic side-channel attack?
An electromagnetic side-channel attack is a technique that monitors a chip's radio emissions during cryptographic operations to infer the secret keys it uses. It works because a physical chip performing cryptography leaks information through measurable signals (power consumption, timing variations, electromagnetic emissions), and those measurements correlate with the secret values being processed.
In a perfect constant-time cryptographic algorithm, every operation takes the same amount of time and draws the same power regardless of the input data. This is the standard defense against timing and power side-channels. The manufacturer has to make the signal uniform so there's nothing useful to observe. The catch is that achieving true constant-time behavior across a full cryptographic implementation is hard. Small deviations are easy to introduce and difficult to detect.
Cases of side-channel analysis on secure elements
Case 1: NXP A700X / Google Titan Security Key
ELECTROMAGNETIC SIDE-CHANNEL · NinjaLab · USENIX Security 2021 · CVE-2021-3011
The NXP A700X is a secure element from NXP Semiconductors' P5x family, a line of secure microcontrollers used in banking smart cards, identity documents, and hardware authentication tokens. The A700X is the chip inside the Google Titan Security Key, Google's hardware two-factor token for protecting Google accounts and FIDO U2F authentication. It was also found in Yubico's YubiKey NEO and in Feitian's authentication tokens.
The chip's job is to generate and store a private ECDSA key during device registration, then use that key to sign authentication challenges. The FIDO U2F protocol is explicitly designed so that the private key never leaves the device. There is no legitimate interface to export it.
How the attack was executed
To understand NXP's ECDSA implementation without source code, the researchers first used the NXP J3D081, an open JavaCard platform that runs the same cryptographic library as the A700X.
They reverse-engineered the algorithm's structure on the J3D081, which provided the reference data needed to identify the vulnerable computation on the target A700X chip.
Physical preparation: A hot-air gun and a scalpel were used to remove the Titan's plastic casing, exposing the NXP A700X. The EM probe was placed close to the chip surface. The device stayed fully functional throughout, because no permanent modification was needed.
Data collection: About 6,000 ECDSA signing operations were triggered by sending authentication challenges to the Titan. Each operation produced an EM trace. The full collection took about six hours.
Key recovery: The EM traces were processed offline using lattice-based key recovery algorithms, and the ECDSA private key was extracted. The researchers then used it to build a software clone capable of impersonating the physical Titan on any registered account.
Equipment used: Langer near-field EM probe, Thorlabs three-axis micro-manipulator, Pico Technology PicoScope oscilloscope. Total cost was about $13,000.
Physical access required: Several hours with the device. The Titan's casing has to be opened, which leaves visible signs of tampering. The device still works afterward and could be returned to the victim.
What this attack reveals
The NXP A700X attack is a direct, successful extraction of a private key from a chip designed to prevent exactly that. The FIDO U2F promise that the key never leaves the device was defeated by reading information leaking from the chip's physical implementation of the algorithm.
NXP's P5x family had received CC certification, with the last evaluation in 2015. The attack's relevance to current hardware is limited. Its relevance to understanding what CC certification can miss is not.
Case 2: Infineon SLE78 / EUCLEAK (YubiKey 5 Series)
ELECTROMAGNETIC SIDE-CHANNEL · NinjaLab · CHES 2024 · CVE-2024-45678
The Infineon SLE78 is one of the most widely deployed secure element families in the world. It's the chip inside the YubiKey 5 Series, the most popular hardware security key on the market. It also shows up across a broad range of security-critical uses:
- Electronic passports
- Banking smart cards
- Automotive key systems
- IoT authentication infrastructure
- Cryptocurrency hardware wallets
The SLE78 holds CC EAL6+ certification, the second-highest assurance level available and the standard for the most demanding commercial applications. It has passed about 80 separate CC evaluations across different product configurations.
Infineon's cryptographic library is proprietary. It's compiled into the chip's firmware and not publicly documented.
Finding the vulnerability: the open platform approach
Thomas Roche of NinjaLab built on the same method used in the 2021 Google Titan research. He started with a Feitian device, an open, programmable platform based on the same Infineon SLE78 chip as the YubiKey 5 and using the same cryptographic library.
The flaw lay in the modular inversion step of ECDSA signing, which Infineon's library implemented using a non-constant-time version of the Extended Euclidean Algorithm. With the vulnerability characterized on the open Feitian platform, Roche moved to the actual YubiKey 5Ci.
- Physical preparation: The YubiKey's outer casing was opened, and the EM probe was placed close to the SLE78's surface. The device kept working.
- Data collection: EM traces were collected during ECDSA signing, the same operation that runs every time the YubiKey is used to authenticate.
- Key recovery: Each trace captured the EM emissions during the modular inversion step. The ECDSA private key was recovered using lattice-based algorithms.
- Equipment cost: About €10,000, including the laptop used for offline processing.
- Physical access window: A few minutes with the device are enough to collect the EM measurements. Offline processing takes more time but requires no further physical access.
What this research reveals
The YubiKey could be cloned. An attacker with temporary physical access, a probe setup, and enough offline computing time could produce a software copy that generates valid authentication responses for any account the YubiKey was registered with.
Why didn't certification catch it? The evaluation may not have used EM measurement equipment sensitive enough to detect the leak, or the evaluators may have focused on different mathematical operations within the signing routine.
EUCLEAK is the clearest public evidence that CC EAL6+ certification means the chip was tested against known techniques and defined threat models. It doesn't mean the chip can't be broken.
What both side-channel cases establish
Taken together, the NXP A700X attack and EUCLEAK form a documented record of direct physical attacks against secure and secure-adjacent chips. Each targeted a different manufacturer with the same technique, and both succeeded.
| Chip | Technique | Year | Key finding |
|---|---|---|---|
| NXP P5x family (CC EAL4+) | EM side-channel (SCA) | 2021 | ECDSA private key extracted; FIDO token cloned without detection. Flaw in non-constant-time scalar multiplication in NXP's ECC library. |
| Infineon SLE78 (CC EAL6+) | EM side-channel (non-constant-time modular inversion via the Extended Euclidean Algorithm) | 2024 | ECDSA private key extracted from an EAL6+ certified chip. Vulnerability undetected across 14 years and ~80 CC evaluations. |
This is the core challenge of secure element design: correct cryptography is necessary but not enough. The implementation must also be constant-time, properly shielded, and resistant to side-channel analysis.
What this means for Tangem Wallet
Tangem Wallet is built around a secure element too, so it's fair to ask how these attacks apply. The short answer: the specific flaws above don't carry over, and the conditions that made them practical are much harder to recreate against a Tangem card. That's not the same as saying side-channel attacks are impossible.
Different chip, independently tested for side-channel resistance
Neither of the chips in this article is used in Tangem Wallet. Every Tangem card and ring runs on a Samsung secure element certified at CC EAL6+, so CVE-2021-3011 and CVE-2024-45678 don't apply to it.
As EUCLEAK shows, certification alone isn't the full story. That's why Tangem had the hardware tested separately. In 2023, the security lab Riscure assessed Tangem Wallet's hardware security, including its resistance to side-channel and fault injection attacks, and reported no vulnerabilities. Tangem's card firmware was also audited by Kudelski Security in 2018.
An attacker can't make the card sign on demand
Both attacks depended on getting the chip to sign repeatedly while a probe listened: about 6,000 signatures for the Titan and repeated signing for EUCLEAK. Security keys are designed to sign authentication challenges with little more than a touch, making it easy to collect those traces.
A Tangem card doesn't work that way. Signing requires the wallet's access code, which is checked inside the secure element. Without the code, a thief can't trigger the signing operations a side-channel attack needs to measure. Guessing the code isn't a shortcut either: after six wrong attempts, each new try adds a delay that can grow to 45 seconds, and the delay only resets once the correct code is entered.
The key is created on the chip and never leaves it
When you set up Tangem, the secure element generates the private key with its own True Random Number Generator. The key isn't shown to you, exported to the app, or sent to Tangem. The chip signs transactions internally and returns only the signature, so the only way to get at the key is to attack the chip itself, which brings us back to the access code barrier above.
Tamper sensors and no firmware to hijack
The chip has sensors for light, temperature, laser, and power fluctuations, which target the kinds of physical interference used in lab attacks. Tangem's card firmware is written at the factory and can't be updated afterward, so there's no update path for an attacker to abuse.
What still matters most
As with the attacks in this article, any lab attack on a Tangem card requires the card in hand, expensive equipment, and expert skills. For nearly everyone, the realistic threats are the ones covered in the next section. A strong access code, backup cards kept in separate places, and downloading the Tangem app only from official stores handle most of them.
Conclusions
Both attacks described in this article required the researcher to have the target device in hand for minutes or hours, specialized and expensive lab equipment (at least €10,000, or $13,000 at minimum), and expert knowledge of electromagnetic side-channel analysis and lattice-based cryptanalysis. Neither can be done remotely, and both involve opening the device's casing.
For the average hardware wallet user, the real enemy isn't a nation-state lab with a Langer probe and a signal-processing suite. It's phishing, social engineering, malicious software, and poorly stored seed phrases.
Keep your keys on a chip built to resist lab attacks
Tangem Wallet keeps your private keys on an EAL6+ secure element that's been independently tested against side-channel and fault injection attacks. No cables, no batteries, and no firmware updates to worry about. Just tap your card to your phone to sign.
Primary sources
Case 1 — NXP A700X / Google Titan:
- Full paper: ninjalab.io/a-side-journey-to-titan/ and eprint.iacr.org/2021/028
- USENIX Security 2021 presentation: usenix.org/conference/usenixsecurity21/presentation/roche
- CVE-2021-3011
Case 2 — Infineon SLE78 / EUCLEAK:
- Full paper and official research page: ninjalab.io/eucleak/
- Cryptology ePrint Archive: eprint.iacr.org/2024/1380
- Yubico security advisory: YSA-2024-03
- CVE-2024-45678 — NVD/NIST
- CHES 2024 presentation: hardwear.io/netherlands-2024/presentation/eucleak.pdf
Tangem:
- Is Tangem Safe? Security Audits and Certifications: https://tangem.com/en/learning-hub/post/is-tangem-safe/
- All About Access Code (Tangem Help Center): https://tangem.com/en/help-center/security/all-about-access-code/
Side-channel attacks on chips: FAQ
-
A chip doing cryptographic operations leaks information through physical effects (power consumption, timing variation, electromagnetic emissions) that correlate with the secret values being processed. By monitoring radio emissions during signing and processing the traces with lattice-based algorithms, researchers can reconstruct the private key.
-
NinjaLab researchers opened the Titan's casing, placed an electromagnetic probe over its NXP A700X chip, and collected traces from about 6,000 ECDSA signing operations over six hours. The extracted private key enabled them to build a software clone that could impersonate the physical Titan, using about $13,000 in equipment.
-
A 2024 attack by NinjaLab's Thomas Roche against the Infineon SLE78, the EAL6+ certified chip inside the YubiKey 5 Series. A few minutes of physical access were enough to collect the electromagnetic traces needed to recover the ECDSA private key, exposing a vulnerability that went undetected across 14 years and about 80 Common Criteria evaluations.
-
No. Certification means the chip was tested against known techniques and defined threat models at the time of evaluation. Both documented attacks defeated certified or certification-adjacent chips, possibly because evaluators didn't use sensitive enough equipment or didn't focus on the vulnerable mathematical operation.
-
Not realistically. These attacks require hours with the physical device, €10,000 to € 13,000 in lab equipment, and expert knowledge of electromagnetic analysis and cryptanalysis; they can't be done remotely. Your realistic enemies are phishing, social engineering, malware, and careless storage of seed phrases.
-
No. Tangem Wallet doesn't use the NXP A700X or Infineon SLE78 chips, so those vulnerabilities don't apply. It uses a Samsung secure element certified to EAL6+, and in 2023, the security lab Riscure tested Tangem Wallet's resistance to side-channel and fault-injection attacks and found no vulnerabilities. A Tangem card also won't sign anything without its access code, which makes it very hard for an attacker to collect the signing measurements these attacks rely on.