DeFi Intel

Hardware Wallet Side-Channel Attacks: Power and EM Risks

Quick answerHardware wallet side-channel attacks exploit power consumption and electromagnetic emissions to recover secret keys. Simple (SPA) and differential (DPA) power analysis, along with EM monitoring, can extract PINs, seeds, or signing keys. Defense requires shielded hardware, masked algorithms, and constant-time execution.

Hardware wallet side-channel attacks represent a sophisticated threat that bypasses conventional security by analyzing physical emissions—specifically power consumption and electromagnetic radiation—during cryptographic operations. Unlike brute-force or malware-based attacks, these side-channel techniques do not require breaking encryption mathematically; instead, they monitor the device's physical behavior to infer secret data such as private keys, PINs, or seed phrases. For advanced users managing significant crypto assets, understanding how power analysis and EM attacks work is essential to selecting and configuring hardware wallets with robust countermeasures.

Power analysis and electromagnetic emission attacks are particularly dangerous because they can be performed with relatively affordable equipment (e.g., an oscilloscope, near-field probe, and software) and do not leave traces on the device. Researchers have demonstrated successful key recovery from popular hardware wallets like Trezor and Ledger by capturing power traces during ECDSA signing or AES encryption. While manufacturers have implemented defenses—secure elements, masking, shuffling, and Faraday shielding—the efficacy varies widely. This guide provides an in-depth technical examination of the threat model, real-world attack examples, and actionable evaluation criteria for advanced users.

Key takeaways
  • Hardware wallet side-channel attacks can recover private keys by analyzing power consumption or EM emissions during crypto operations.
  • SPA, DPA/CPA, and EM analysis are the main threat vectors, each with different cost, complexity, and countermeasure requirements.
  • Secure elements with hardware-level masking, constant-time logic, and physical shielding are the most effective defenses available today.
  • Real-world attacks have been demonstrated on popular wallets like Trezor, Ledger, KeepKey, and Coldcard, proving the threat is practical.
  • Users must combine hardware selection (certified SE), physical security (Faraday enclosure), and operational discipline (firmware updates, offline signing) to mitigate risks.
  • Mitigations are an arms race: deep learning–based attacks can circumvent traditional masking, spurring research into PUFs and clock jitter.

Understanding Side-Channel Attacks on Hardware Wallets

A side-channel attack exploits unintentional information leakage from a physical system. In hardware wallets, the two most prominent channels are power consumption and electromagnetic (EM) emissions. Every cryptographic operation—whether it's hashing a seed, deriving a key, or signing a transaction—causes characteristic fluctuations in current draw and radiated EM fields. By precisely measuring these signals, an attacker can deduce intermediate values, and eventually, the secret key itself.

Key concepts include:

“Side-channel attacks are non-invasive or semi-invasive—they require no physical alteration of the device, making them stealthy and repeatable.”

Power Analysis: The Core Threat

Power analysis is the most studied side-channel technique for hardware wallets. It relies on the fact that CMOS logic gates draw current only when switching, and the amount of current depends on the data being processed. Two main variants exist: Simple Power Analysis (SPA) and Differential Power Analysis (DPA).

SPA involves visually inspecting a single power trace to identify operation sequences. For example, during RSA exponentiation, the square-and-multiply pattern reveals whether a key bit is 0 or 1. In ECDSA, the nonce generation loop’s timing and power profile can leak bits of the ephemeral key. DPA, pioneered by Kocher et al., uses statistical methods over many traces to extract small biases correlated with fixed secret data. Here’s a comparison of the two:

AttributeSimple Power Analysis (SPA)Differential Power Analysis (DPA)
Number of traces required1–10010,000–1,000,000+
Information obtainedOperation sequence, rough key scheduleExact secret key bytes
Visibility to countermeasuresDefeated by hiding (e.g., dual-rail logic)Defeated by masking
Real-world exampleIdentifying RSA exponentiation on a secure elementRecovering AES-128 key from a microcontroller

Simple Power Analysis (SPA) – Pattern Recognition

In SPA, the attacker directly interprets power trace features. For instance, the squaring and multiplication steps in RSA modular exponentiation produce distinct power patterns: squaring is often more power-hungry than multiplication. If the multiplication is executed only when the key bit is ‘1’, an attacker can read the entire private key from a single trace. Similarly, in ECDSA, the double-and-add loop is targetable. Many older hardware wallets without SPA countermeasures are vulnerable to this kind of low-cost attack.

Concrete example: security researchers have shown power side-channel weaknesses on older Trezor One devices, which lack a dedicated secure element and run cryptographic operations on a general-purpose microcontroller. In response, Trezor firmware added countermeasures such as random delays and operation shuffling to mitigate SPA-style leakage.

Differential Power Analysis (DPA) – Statistical Extraction

DPA goes a step further by statistically correlating many traces with a hypothesized key model. The attacker guesses a small subkey (e.g., one byte of AES key), divides traces into two sets based on a predicted bit (e.g., the LSB of the output after S-box), and computes the difference-of-means. If the guess is correct, the difference trace shows a sharp spike at the time the S-box output was processed. Correlation Power Analysis (CPA) is a refined version that uses Pearson correlation coefficients for higher efficiency.

Hardware wallets that lack proper masking are vulnerable to DPA/CPA. Implementations that perform ECDSA nonce handling on a general-purpose microcontroller without hardware-level masking are especially exposed, because repeated signing operations can supply an attacker with the large number of traces DPA requires. This is a key reason vendors like Ledger rely on dedicated secure elements with certified side-channel resistance (e.g., the ST33 series with masking and constant-time execution).

Electromagnetic (EM) Side-Channel Attacks

EM attacks exploit the magnetic field fluctuations radiated by current flowing through wires and chip internals. Unlike power analysis, EM probes can be placed near specific parts of the chip (e.g., the I/O bus, the crypto core) to isolate leakage from a single component, reducing noise. Attackers often use a near-field probe (e.g., Langer RF-R 3-2) connected to a low-noise amplifier and an oscilloscope with bandwidth up to 1–2 GHz. The capture setup is more finicky but can achieve signal-to-noise ratios superior to power analysis.

EM side-channel attacks are especially relevant for hardware wallets because the device may be operational while the user enters their PIN or during transaction signing. In 2019, the Ledger Donjon team published a side-channel attack on the Trezor One that recovered the device PIN by capturing power and electromagnetic traces during PIN verification. An attacker with physical possession of a stolen device could reconstruct the full PIN within minutes; Trezor mitigated it in a March 2019 firmware update. The research highlighted that even without permanently opening the device, an attacker with physical access could extract sensitive data.

“EM attacks are often the preferred vector for advanced adversaries because they can be performed through some enclosures and allow spatial resolution of individual chip blocks.”

Real-World Attack Examples and Research

Several high-profile studies have shown the practicality of side-channel attacks on hardware wallets:

These examples underscore that no hardware wallet is immune; the degree of vulnerability depends on the specific chip, firmware version, and implementation of countermeasures.

Countermeasures – How Hardware Wallets Defend

Modern hardware wallets employ a layered set of defenses against side-channel attacks:

Users should verify that their wallet’s secure element is certified against side-channel attacks (e.g., Common Criteria EAL5+ or FIPS 140-2 Level 3).

Comparative Analysis of Attack Vectors

Attack VectorEase of ExecutionEquipment CostTrace RequirementCountermeasure Strength
Simple Power Analysis (SPA)Low$500–$2,0001–100Low (mitigated by shuffling, constant-time)
Differential Power Analysis (DPA/CPA)Medium$2,000–$10,00010k–1MMedium (requires masking, SE)
Electromagnetic Analysis (EMA)High (requires near-field probe, amplifier)$3,000–$20,000100–100kHigh (shielding, SE)
Template Attack (Profile-based)Very High (needs identical device to build template)$5,000–$30,0001k–10k (training)Very High (needs designer-level defenses)

This table illustrates that while powerful, side-channel attacks are not trivial. The cost and complexity increase with advanced methods, but even low-cost SPA poses a risk to poorly protected wallets.

Best Practices for Advanced Users

To minimize exposure to hardware wallet side-channel attacks, consider the following:

Future Directions in Side-Channel Security

As hardware wallets evolve, so do attack techniques. Deep learning–based side-channel analysis (DL-SCA) has shown that neural networks can automatically extract features from traces, often bypassing traditional countermeasures like masking. Researchers have successfully applied CNNs to recover AES keys from masked implementations with only a few thousand traces.

In response, wallet manufacturers are exploring physical unclonable functions (PUFs) that generate keys from unique chip variations, making power traces non-replicable. Another promising approach is randomizing the clock frequency (clock jitter) to desynchronize trace alignment, a known bane of statistical attacks. The tension between usability (fast signing) and side-channel resistance (random delays) will continue to shape the market. Advanced users should stay informed by following academic conferences like CHES and securing their digital assets with multiple layers of defense.

Common mistakes to avoid

Frequently asked questions

Can hardware wallet side-channel attacks be performed remotely over the internet?

Standard side-channel attacks require physical proximity to measure power or EM emissions. However, remote attacks may become possible if the wallet has wireless interfaces (e.g., Bluetooth, Wi-Fi) that leak information via radio frequency emissions. Good electromagnetic shielding can defeat most remote EM attacks.

How many power traces are needed to recover a Bitcoin private key from a hardware wallet?

It depends on the wallet’s countermeasures. For an unprotected implementation, a few hundred thousand traces may suffice for DPA/CPA. With strong masking and noise injection, millions of traces may be required, making the attack impractical for typical adversaries.

Are Ledger or Trezor wallets safe against power analysis attacks?

Both have improved significantly. Ledger uses certified secure elements (ST33 series) with side-channel resistance. Trezor Model T has firmware-level countermeasures like random delays and operation shuffling. Older models without these protections are more vulnerable. Always keep firmware updated.

What equipment do I need to perform a side-channel attack on a hardware wallet?

For power analysis: a digital oscilloscope (≥500 MS/s), a shunt resistor or current probe, and a PC with signal processing software (e.g., ChipWhisperer). For EM analysis: a near-field magnetic probe, low-noise amplifier, and oscilloscope. Total cost ranges from $500 to $10,000+.

Can using a passphrase (BIP39) protect against side-channel attacks?

A passphrase adds an extra layer of entropy that makes key recovery harder, but it does not prevent side-channel leakage of the wallet's master seed or derived keys. If the attacker recovers the seed (or the passphrase-protected seed), the passphrase becomes irrelevant. Side-channel attacks target the signing operation, not the seed directly, but can eventually lead to it.

Track the entities behind the concepts

DeFi Intel maps 11,000+ protocols, tokens and companies to a typed knowledge graph — with live data, incidents and regulation.

Entities mentioned