Cryptology ePrint Archive: Report 2020/881

Deep Learning Side-Channel Analysis on Large-Scale Traces - A Case Study on a Polymorphic AES

Lo´c Masure and Nicolas Belleville and Eleonora Cagli and Marie-Angela Cornelie and Damien CouroussÚ and CÚcile Dumas and Laurent Maingault

Abstract: Code polymorphism is a way to efficiently address the challenge of automatically applying the hiding of sensitive information leakage, as a way to protect cryptographic primitives against side-channel attacks (SCA) involving layman adversaries. Yet, recent improvements in SCA, involving more powerful threat models, e.g., using deep learning, emphasized the weaknesses of some hiding counter-measures. This raises two questions. On the one hand, the security of code polymorphism against more powerful attackers, which has never been addressed so far, might be affected. On the other hand, using deep learning SCA on code polymorphism would require to scale the state-of-the-art models to much larger traces than considered so far in the literature. Such a case typically occurs with code polymorphism due to the unknown precise location of the leakage from one execution to another. We tackle those questions through the evaluation of two polymorphic implementations of AES, similar to the ones used in a recent paper published in TACO 2019 [6]. We show on our analysis how to efficiently adapt deep learning models used in SCA to scale on traces 32 folds larger than what has been done so far in the literature. Our results show that the targeted polymorphic implementations are broken within 20 queries with the most powerful threat models involving deep learning, whereas 100,000 queries would not be sufficient to succeed the attacks previously investigated against code polymorphism. As a consequence, this paper pushes towards the search of new polymorphic implementations secured against state-of-the-art attacks, which currently remains to be found.

Category / Keywords: implementation / AES; side-channel analysis; deep learning; code polymorphism; counter-measure; CNN

Original Publication (in the same form): ESORICS 2020

Date: received 13 Jul 2020

Contact author: loic masure at cea fr

Available format(s): PDF | BibTeX Citation

Version: 20200716:132901 (All versions of this report)

Short URL:

[ Cryptology ePrint archive ]