[Paper Review] Adversarial Attack Based Countermeasures against Deep Learning Side-Channel Attacks
This paper proposes a novel countermeasure that leverages adversarial attacks to protect cryptographic devices from deep learning-based side-channel attacks. By strategically inserting noise instructions—identified via one-pixel attack techniques—into the cryptographic algorithm during compilation, the method disrupts both deep learning and classical side-channel attacks, achieving high security with minimal detectable side-channel leakage.
Numerous previous works have studied deep learning algorithms applied in the context of side-channel attacks, which demonstrated the ability to perform successful key recoveries. These studies show that modern cryptographic devices are increasingly threatened by side-channel attacks with the help of deep learning. However, the existing countermeasures are designed to resist classical side-channel attacks, and cannot protect cryptographic devices from deep learning based side-channel attacks. Thus, there arises a strong need for countermeasures against deep learning based side-channel attacks. Although deep learning has the high potential in solving complex problems, it is vulnerable to adversarial attacks in the form of subtle perturbations to inputs that lead a model to predict incorrectly. In this paper, we propose a kind of novel countermeasures based on adversarial attacks that is specifically designed against deep learning based side-channel attacks. We estimate several models commonly used in deep learning based side-channel attacks to evaluate the proposed countermeasures. It shows that our approach can effectively protect cryptographic devices from deep learning based side-channel attacks in practice. In addition, our experiments show that the new countermeasures can also resist classical side-channel attacks.
Motivation & Objective
- Address the growing threat of deep learning-based side-channel attacks (DL-SCA) on modern cryptographic devices.
- Overcome the limitations of classical countermeasures, which are ineffective against DL-SCA due to the robustness of deep learning models.
- Develop a new defense mechanism that leverages adversarial perturbations at the compilation level to obscure side-channel leakage.
- Ensure the countermeasure remains effective against both deep learning and classical side-channel attacks, such as template attacks.
Proposed method
- Identify vulnerable time samples in side-channel traces using one-pixel attack techniques to generate adversarial perturbations.
- Select noise instructions that are semantically benign but effective in disrupting model predictions, based on adversarial robustness analysis.
- Insert these noise instructions at precise, variable-length positions in the cryptographic code during compilation to disrupt trace alignment and correlation.
- Recompile the code at each execution to randomize instruction patterns and prevent detection via correlation analysis (e.g., HMMs).
- Use Multilayer Perceptron (MLP) and Convolutional Neural Network (CNN) models to evaluate the effectiveness of the countermeasure under DL-SCA.
- Validate resilience against classical template attacks (TA) using real power traces and key recovery rank analysis.
Experimental results
Research questions
- RQ1Can adversarial perturbations injected at the compilation level effectively disrupt deep learning models in side-channel attacks?
- RQ2Does inserting noise instructions that are semantically valid but adversarially chosen reduce the correlation between side-channel traces and secret keys?
- RQ3Can this method resist both deep learning-based side-channel attacks and classical template attacks?
- RQ4How does the dynamic recompilation of code with inserted noise affect execution overhead and trace detectability?
- RQ5To what extent does the method remain secure when adversaries use correlation-based techniques (e.g., HMMs) to filter out noise?
Key findings
- The proposed countermeasure successfully prevents key recovery using both MLP and CNN models under deep learning-based side-channel attacks, with no successful key recovery within 10,000 attack traces.
- Template attacks (TA) required only 560 traces to break unprotected AES, but failed to recover the key from the countermeasured AES within 10,000 traces.
- The method effectively disrupts trace alignment and reduces the correlation between power traces and secret keys by inserting variable-length noise instructions at high-correlation points.
- Execution time overhead increased from 5,482 cycles (unprotected) to an average of 16,418 cycles (one-pixel protection), primarily due to recompilation at each invocation.
- The countermeasure resists correlation-based analysis techniques (e.g., HMMs) because the noise instructions are indistinguishable from normal code and lack consistent headers or tails.
- The approach remains robust even when adversaries attempt to use dimensionality reduction or GAN-based adversarial sample generation, as the noise is embedded at the instruction level and not on input traces.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.