Cryptology ePrint Archive: Report 2017/699

Runtime Code Polymorphism as a Protection Against Side Channel Attacks

Damien Couroussé and Thierno Barry and Bruno Robisson and Philippe Jaillon and Olivier Potin and Jean-Louis Lanet

Abstract: We present a generic framework for runtime code polymorphism, applicable to a broad range of computing platforms including embedded systems with low computing resources (e.g. microcontrollers with few kilo-bytes of memory). Code polymorphism is defined as the ability to change the observable behaviour of a software component without changing its functional properties. In this paper we present the implementation of code polymorphism with runtime code generation, which offers many code transformation possibilities: we describe the use of random register allocation, random instruction selection, instruction shuffling and insertion of noise instructions. We evaluate the effectiveness of our framework against correlation power analysis: as compared to an unprotected implementation of AES where the secret key could be recovered in less than 50 traces in average, in our protected implementation, we increased the number of traces necessary to achieve the same attack by more than 20000x. With regards to the state of the art, our implementation shows a moderate impact in terms of performance overhead.

Category / Keywords: implementation / AES, side-channel attacks, polymorphism, runtime code generation, power analysis

Original Publication (in the same form): 10th WISTP International Conference on Information Security Theory and Practice (WISTP’2016), 2016, pp. 136–152.

Date: received 14 Jul 2017, last revised 14 Jul 2017

Contact author: damien courousse at cea fr

Available format(s): PDF | BibTeX Citation

Version: 20170721:152159 (All versions of this report)

Short URL:

Discussion forum: Show discussion | Start new discussion

[ Cryptology ePrint archive ]