A Refined Simple Power Analysis Attack on ECC with Countermeasures

Lihui Wang, Qing Li, Zhimin Zhang, Weijun Shan, David-Wei ZhangAdvances 2015

Abstract

Elliptic Curve Cryptography (ECC) is becoming widely deployed in embedded cryptographic devices. However, simple power analysis (SPA) attacks may retrieve secret keys by exploiting the power consumption of ECC devices. To resist the SPA attack there appear a number of countermeasures and the most widely used methods are Montgomery ladder and double-and-add-always algorithm. This paper proposes a refined simple power analysis attack to these countermeasures. Experimental results on smart cards demonstrate that this attack method can retrieve secret keys by distinguishing the power consumption of different jump instructions if the implementation of ECC's countermeasure is not carefully designed. The experiments also demonstrate that the proposed countermeasure in this paper can resist this kind of SPA attack.

Introduction

Elliptic Curve Cryptography (ECC) is a cornerstone of modern secure communication, offering high security with relatively small key sizes. However, physical implementations of ECC on devices like smart cards are often vulnerable to side-channel attacks, specifically Simple Power Analysis (SPA). In a standard SPA attack, an adversary monitors power consumption during scalar multiplication ($dP$). If a '0' bit triggers only a point doubling while a '1' bit triggers both doubling and addition, the resulting power trace directly leaks the secret key.

To mitigate this, developers employ countermeasures such as the "double-and-add-always" algorithm, which ensures a uniform number of operations regardless of the key bit. This paper identifies a critical vulnerability: even when the algorithm is mathematically balanced, the software implementation—specifically conditional "if-else" jumps—can still leak information through physical power fluctuations.

The Refined SPA Attack

The proposed refined SPA attack targets the conditional jump instructions used to manage "real" versus "dummy" operations in ECC countermeasures. Because these jumps involve different execution flows and hardware components within a microcontroller, they produce distinct power signatures.

The attack utilizes signal processing techniques, primarily Pearson correlation coefficient analysis, to distinguish between these execution paths. By comparing the power trace of a target operation against a known reference, an attacker can determine which branch was taken.

Experimental Results and Analysis

The researchers validated the attack using a smart card equipped with a PAE coprocessor. A private key "A6" (binary: 10100110) was used for testing. Power traces were captured using a LeCroy oscilloscope.

The core of the attack lies in identifying a correlation threshold. The researchers found that identical operations (taking the same jump path) yielded correlation coefficients greater than 0.98.

High correlation (0.98) between power traces of identical jump instructions.

Conversely, different operations (taking different jump paths) resulted in coefficients below 0.93. By setting a threshold of 0.96, the researchers could successfully distinguish between key bits. A correlation above 0.96 indicated a match with the reference path, while a correlation below 0.96 revealed a different internal state, effectively leaking the secret bit.

Low correlation (0.91) between power traces of different jump instructions.

Using this method, the full secret key was recovered from a standard "double-and-add-always" implementation in less than one second.

Proposed Countermeasure: Branchless Implementation

To address this vulnerability, the authors propose a "branchless" implementation. Instead of using if-else logic to decide between operations, they use a mathematical formula to calculate RAM addresses and command types as a function of the key bit $d_i$. This approach removes conditional jumps entirely, ensuring that the exact same sequence of instructions is executed regardless of the key bit.

After implementing this branchless countermeasure, experimental results showed that correlation coefficients for all operations rose above 0.97. This uniformity makes it impossible for an SPA attack to distinguish between true and false point additions, effectively neutralizing the refined attack.

Conclusion

This research highlights that mathematical security does not guarantee physical security. Software implementations must be "indistinguishable" at the hardware level to resist refined SPA attacks. While this study focused on software-controlled jumps in ECC, the principles of branchless programming are broadly applicable to other cryptographic algorithms like ECDSA. Future work should continue to explore physical-level indistinguishability as SPA techniques become increasingly sophisticated.

Summary updated

BibTeX
@inproceedings{wang2015refined,
  author = {Lihui Wang and Qing Li and Zhimin Zhang and Weijun Shan and David-Wei Zhang},
  title = {{A Refined Simple Power Analysis Attack on ECC with Countermeasures}},
  booktitle = {Advances},
  year = {2015},
  doi = {10.2991/iset-15.2015.29},
}
Figure