International Association for Cryptologic Research

International Association
for Cryptologic Research

CryptoDB

Analysis and Improvement of Differential Computation Attacks against Internally-Encoded White-Box Implementations

Authors:
Matthieu Rivain , CryptoExperts
Junwei Wang , CryptoExperts; University of Luxembourg; University Paris 8
Download:
DOI: 10.13154/tches.v2019.i2.225-255
URL: https://tches.iacr.org/index.php/TCHES/article/view/7391
Search ePrint
Search Google
Presentation: Slides
Abstract: White-box cryptography is the last security barrier for a cryptographic software implementation deployed in an untrusted environment. The principle of internal encodings is a commonly used white-box technique to protect block cipher implementations. It consists in representing an implementation as a network of look-up tables which are then encoded using randomly generated bijections (the internal encodings). When this approach is implemented based on nibble (i.e. 4-bit wide) encodings, the protected implementation has been shown to be vulnerable to differential computation analysis (DCA). The latter is essentially an adaptation of differential power analysis techniques to computation traces consisting of runtime information, e.g., memory accesses, of the target software. In order to thwart DCA, it has then been suggested to use wider encodings, and in particular byte encodings, at least to protect the outer rounds of the block cipher which are the prime targets of DCA.In this work, we provide an in-depth analysis of when and why DCA works. We pinpoint the properties of the target variables and the encodings that make the attack (in)feasible. In particular, we show that DCA can break encodings wider than 4-bit, such as byte encodings. Additionally, we propose new DCA-like attacks inspired from side-channel analysis techniques. Specifically, we describe a collision attack particularly effective against the internal encoding countermeasure. We also investigate mutual information analysis (MIA) which naturally applies in this context. Compared to the original DCA, these attacks are also passive and they require very limited knowledge of the attacked implementation, but they achieve significant improvements in terms of trace complexity. All the analyses of our work are experimentally backed up with various attack simulation results. We also verified the practicability of our analyses and attack techniques against a publicly available white-box AES implementation protected with byte encodings –which DCA has failed to break before– and against a “masked” white-box AES implementation –which intends to resist DCA.
Video from TCHES 2019
BibTeX
@article{tches-2019-29259,
  title={Analysis and Improvement of Differential Computation Attacks against Internally-Encoded White-Box Implementations},
  journal={IACR Transactions on Cryptographic Hardware and Embedded Systems},
  publisher={Ruhr-Universität Bochum},
  volume={2019, Issue 2},
  pages={225-255},
  url={https://tches.iacr.org/index.php/TCHES/article/view/7391},
  doi={10.13154/tches.v2019.i2.225-255},
  author={Matthieu Rivain and Junwei Wang},
  year=2019
}