International Association for Cryptologic Research

International Association
for Cryptologic Research

CryptoDB

Paper: Semi-Automatic Locating of Cryptographic Operations in Side-Channel Traces

Authors:
Jens Trautmann , Friedrich-Alexander-Universität Erlangen-Nürnberg, Cauerstraße 11, 91058 Erlangen, Germany
Arthur Beckers , imec-COSIC, KU Leuven, Kasteelpark Arenberg 10, B-3001 Leuven-Heverlee, Belgium
Lennert Wouters , imec-COSIC, KU Leuven, Kasteelpark Arenberg 10, B-3001 Leuven-Heverlee, Belgium
Stefan Wildermann , Friedrich-Alexander-Universität Erlangen-Nürnberg, Cauerstraße 11, 91058 Erlangen, Germany
Ingrid Verbauwhede , imec-COSIC, KU Leuven, Kasteelpark Arenberg 10, B-3001 Leuven-Heverlee, Belgium
Jürgen Teich , Friedrich-Alexander-Universität Erlangen-Nürnberg, Cauerstraße 11, 91058 Erlangen, Germany
Download:
DOI: 10.46586/tches.v2022.i1.345-366
URL: https://tches.iacr.org/index.php/TCHES/article/view/9300
Search ePrint
Search Google
Abstract: Locating a cryptographic operation in a side-channel trace, i.e. finding out where it is in the time domain, without having a template, can be a tedious task even for unprotected implementations. The sheer amount of data can be overwhelming. In a simple call to OpenSSL for AES-128 ECB encryption of a single data block, only 0.00028% of the trace relate to the actual AES-128 encryption. The rest is overhead. We introduce the (to our best knowledge) first method to locate a cryptographic operation in a side-channel trace in a largely automated fashion. The method exploits meta information about the cryptographic operation and requires an estimate of its implementation’s execution time.The method lends itself to parallelization and our implementation in a tool greatly benefits from GPU acceleration. The tool can be used offline for trace segmentation and for generating a template which can then be used online in real-time waveformmatching based triggering systems for trace acquisition or fault injection. We evaluate it in six scenarios involving hardware and software implementations of different cryptographic operations executed on diverse platforms. Two of these scenarios cover realistic protocol level use-cases and demonstrate the real-world applicability of our tool in scenarios where classical leakage-detection techniques would not work. The results highlight the usefulness of the tool because it reliably and efficiently automates the task and therefore frees up time of the analyst.The method does not work on traces of implementations protected by effective time randomization countermeasures, e.g. random delays and unstable clock frequency, but is not affected by masking, shuffling and similar countermeasures.
BibTeX
@article{tches-2021-31653,
  title={Semi-Automatic Locating of Cryptographic Operations in Side-Channel Traces},
  journal={IACR Transactions on Cryptographic Hardware and Embedded Systems},
  publisher={Ruhr-Universität Bochum},
  volume={2022, Issue 1},
  pages={345-366},
  url={https://tches.iacr.org/index.php/TCHES/article/view/9300},
  doi={10.46586/tches.v2022.i1.345-366},
  author={Jens Trautmann and Arthur Beckers and Lennert Wouters and Stefan Wildermann and Ingrid Verbauwhede and Jürgen Teich},
  year=2021
}