Imbalanced Data Problems in Deep Learning-Based Side-Channel Attacks: Analysis and Solution
Open Access
- 24 June 2021
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Information Forensics and Security
- Vol. 16 (15566013) , 3790-3802
Abstract
In recent years, the threat of profiling attacks using deep learning has emerged. Successful attacks have been demonstrated against various types of cryptographic modules. However, the application of deep learning to side-channel attacks (SCAs) is often not adequately assessed because the labels that are widely used in SCAs, such as the Hamming weight (HW) and Hamming distance (HD), follow an imbalanced distribution. This study analyzes and solves the problems caused by dataset imbalance during training and inference. First, we state the reasons for the negative effect of data imbalance in classification for deep-learning-based SCAs and introduce the Kullback-Leibler (KL) divergence as a metric to measure this effect. Using the KL divergence, we demonstrate through analysis how the recently reported cross-entropy ratio loss function can solve the problem of imbalanced data. We further propose a method to solve dataset imbalance at the inference phase, which utilizes a likelihood function based on the key value instead of the HW/HD. The proposed method can be easily applied in deep-learning-based SCAs because it only needs an extra multiplication of the inverted binomial coefficients and inference results (i.e., the output probabilities) from the conventionally trained model. The proposed solution corresponds to data-augmentation techniques at the training phase, and furthermore, it better estimates the keys because the probability distributions of the training and test data are preserved. We demonstrate the validity of our analysis and the effectiveness of our solution through extensive experiments on two public databases.Keywords
Funding Information
- Japan Society for the Promotion of Science (JSPS) Kakenhi (20K19765)
- JSPS Research Fellow (20J12887)
- Japan Science and Technology Agency (JST) Core Research for Evolutional Science and Technology (CREST), Japan (JPMJCR19K5)
This publication has 19 references indexed in Scilit:
- Applications of machine learning techniques in side-channel attacks: a surveyJournal of Cryptographic Engineering, 2019
- Convolutional Neural Networks with Data Augmentation Against Jitter-Based Countermeasures2017
- Enhancing Dimensionality Reduction Methods for Side-Channel AttacksLecture Notes in Computer Science, 2016
- Optimization of Power Analysis Using Neural Network2014
- Efficient Template Attacks2014
- An Efficient Method for Random Delay Generation in Embedded Software2009
- Using Subspace-Based Template Attacks to Compare and Combine Power and Electromagnetic Information Leakages2008
- Template Attacks in Principal Subspaces2006
- SMOTE: Synthetic Minority Over-sampling TechniqueJournal of Artificial Intelligence Research, 2002
- Timing Attacks on Implementations of Diffie-Hellman, RSA, DSS, and Other Systems1996