What is Power analysis attack?

A side-channel attack inferring secrets from a chip's power consumption traces. Differential power analysis (DPA), which processes many traces statistically, is especially powerful.

Field: Hardware Security

Japanese name: 電力解析攻撃

Why power leaks information

The power a CMOS circuit draws depends on how many bits switch between 0 and 1 at that moment. In cryptographic processing the circuit handles intermediate values that mix the key with the input data. The power trace therefore shows slight differences that depend on those intermediate values. A power analysis attack measures these differences to try to extract information about the key.

Simple and differential power analysis

Simple power analysis looks directly at one or a few traces and reads off differences in the processing. If different calculations are performed depending on the key bits, the key can be read from the shape of the trace. Differential power analysis collects many traces while varying the input. Part of the key is hypothesized, an intermediate value is predicted from it, and the prediction is tested for a statistical relationship with the traces. The relationship appears only for the correct hypothesis. Because the key can be examined one byte at a time, even a 128-bit key needs only 256 × 16, or 4096, hypotheses. Noise fades as many traces are averaged.

Countermeasures

A typical countermeasure is masking, which splits secret values into several shares with random numbers before computing. The intermediate values change randomly every time, so the relationship between traces and the secret disappears. There are also circuits that keep power as constant as possible, methods that add noise, and methods that change the order of operations each time. Limiting how many times one key is used, which reduces the number of traces that can be collected, is also effective. This matters most for smart cards, payment terminals and IoT devices, which an attacker can hold and measure.

Try it: questions about Power analysis attack

Among power analysis attacks on chips performing cryptography, what characterizes differential power analysis (DPA)?

  1. AIt collects many power traces and processes them statistically to extract small key-dependent differences invisible in a single trace
  2. BA single power trace viewed by eye reveals the whole key
  3. CIt cuts the chip's power to extract the key
Show answer and explanation

Answer: A. It collects many power traces and processes them statistically to extract small key-dependent differences invisible in a single trace

CMOS circuits consume power when signals switch, so power varies slightly with the data processed. Simple power analysis reads the flow of processing from the shape of a single trace, whereas DPA collects traces from thousands of cryptographic operations and, for each key guess, checks statistically (by difference of means or correlation) whether the predicted intermediate values match the traces, to find the right key. Its hallmark is extracting small differences buried in noise through statistics.

FAQ

How does it differ from attacks using electromagnetic emissions?

The idea is the same. Instead of the supply current, the electromagnetic emissions from the chip are measured with a small antenna. The difference is that a specific part of the chip can be targeted.

Can software alone counter it?

Masking can be implemented in software. Implementing it correctly is difficult, however, and traces have to be measured to confirm that nothing leaks.

Books on Hardware Security Ad

As an Amazon Associate I earn from qualifying purchases.

This page was drafted with AI and fact-checked by a separate AI review before publication. Our Editorial policy explains how we write and check content. If you spot an error, please tell us on our Contact page.

Back to the glossary