International Association for Cryptologic Research

International Association
for Cryptologic Research

CryptoDB

Keep it Unsupervised: Horizontal Attacks Meet Deep Learning

Authors:
Guilherme Perin , Delft University of Technology, The Netherlands
Łukasz Chmielewski , Radboud University Nijmegen, The Netherlands; Riscure BV, The Netherlands
Lejla Batina , Radboud University Nijmegen, The Netherlands
Stjepan Picek , Delft University of Technology, The Netherlands
Download:
DOI: 10.46586/tches.v2021.i1.343-372
URL: https://tches.iacr.org/index.php/TCHES/article/view/8737
Search ePrint
Search Google
Abstract: To mitigate side-channel attacks, real-world implementations of public-key cryptosystems adopt state-of-the-art countermeasures based on randomization of the private or ephemeral keys. Usually, for each private key operation, a “scalar blinding” is performed using 32 or 64 randomly generated bits. Nevertheless, horizontal attacks based on a single trace still pose serious threats to protected ECC or RSA implementations. If the secrets learned through a single-trace attack contain too many wrong (or noisy) bits, the cryptanalysis methods for recovering remaining bits become impractical due to time and computational constraints. This paper proposes a deep learning-based framework to iteratively correct partially correct private keys resulting from a clustering-based horizontal attack. By testing the trained network on scalar multiplication (or exponentiation) traces, we demonstrate that a deep neural network can significantly reduce the number of wrong bits from randomized scalars (or exponents).When a simple horizontal attack can recover around 52% of attacked multiple private key bits, the proposed iterative framework improves the private key accuracy to above 90% on average and to 100% for at least one of the attacked keys. Our attack model remains fully unsupervised and excludes the need to know where the error or noisy bits are located in each separate randomized private key.
Video from TCHES 2020
BibTeX
@article{tches-2020-30770,
  title={Keep it Unsupervised: Horizontal Attacks Meet Deep Learning},
  journal={IACR Transactions on Cryptographic Hardware and Embedded Systems},
  publisher={Ruhr-Universität Bochum},
  volume={2021, Issue 1},
  pages={343-372},
  url={https://tches.iacr.org/index.php/TCHES/article/view/8737},
  doi={10.46586/tches.v2021.i1.343-372},
  author={Guilherme Perin and Łukasz Chmielewski and Lejla Batina and Stjepan Picek},
  year=2020
}