Skip to main content
QUICK REVIEW

[Paper Review] An Enhanced Convolutional Neural Network in Side-Channel Attacks and Its Visualization

Minhui Jin, Mengce Zheng|arXiv (Cornell University)|Sep 18, 2020
Cryptographic Implementations and SecurityComputer Science35 references13 citations
TL;DR

This paper proposes an enhanced convolutional neural network (CNN) for side-channel attacks by integrating the Convolutional Block Attention Module (CBAM) to improve focus on informative leakage points in power traces. The method outperforms the ASCAD network across four public datasets, with a new visualization technique, Class Gradient Visualization (CGV), explaining the model's superior performance by highlighting attention to relevant leakage regions over noise.

ABSTRACT

In recent years, the convolutional neural networks (CNNs) have received a lot of interest in the side-channel community. The previous work has shown that CNNs have the potential of breaking the cryptographic algorithm protected with masking or desynchronization. Before, several CNN models have been exploited, reaching the same or even better level of performance compared to the traditional side-channel attack (SCA). In this paper, we investigate the architecture of Residual Network and build a new CNN model called attention network. To enhance the power of the attention network, we introduce an attention mechanism - Convolutional Block Attention Module (CBAM) and incorporate CBAM into the CNN architecture. CBAM points out the informative points of the input traces and makes the attention network focus on the relevant leakages of the measurements. It is able to improve the performance of the CNNs. Because the irrelevant points will introduce the extra noises and cause a worse performance of attacks. We compare our attention network with the one designed for the masking AES implementation called ASCAD network in this paper. We show that the attention network has a better performance than the ASCAD network. Finally, a new visualization method, named Class Gradient Visualization (CGV) is proposed to recognize which points of the input traces have a positive influence on the predicted result of the neural networks. In another aspect, it can explain why the attention network is superior to the ASCAD network. We validate the attention network through extensive experiments on four public datasets and demonstrate that the attention network is efficient in different AES implementations.

Motivation & Objective

  • To enhance CNN-based side-channel attack performance by integrating attention mechanisms that prioritize informative leakage points in power traces.
  • To address the issue of noise from irrelevant trace points that degrade attack accuracy in traditional CNN models.
  • To develop a visualization method that explains which input trace points contribute most to the model's predictions.
  • To compare the proposed attention network against the state-of-the-art ASCAD network across multiple AES implementations.
  • To validate the effectiveness of the attention mechanism in masked and noisy side-channel scenarios.

Proposed method

  • Proposes a residual network-based CNN architecture enhanced with the Convolutional Block Attention Module (CBAM) to dynamically emphasize informative regions in power traces.
  • Integrates CBAM as a lightweight, learnable module that applies channel and spatial attention to suppress irrelevant trace points and reduce noise impact.
  • Employs a new visualization technique called Class Gradient Visualization (CGV) to identify input trace points that most influence the model’s prediction via gradient-based saliency mapping.
  • Trains the attention network end-to-end on four public side-channel datasets: DPAcontest v4, AES_RD, AES_HD, and ASCAD.
  • Uses CPA analysis as a baseline to validate the relevance of regions highlighted by CGV and attention weights.
  • Compares attack success rates and attention patterns between the proposed attention network and the ASCAD network across all datasets.

Experimental results

Research questions

  • RQ1Can the integration of CBAM into a CNN architecture improve side-channel attack performance on masked and noisy AES implementations?
  • RQ2How does the attention mechanism in the proposed model differ from that of the ASCAD network in focusing on leakage points?
  • RQ3To what extent does the Class Gradient Visualization (CGV) method reveal the model's attention to relevant leakage regions compared to traditional methods?
  • RQ4Does the attention network maintain superior performance under countermeasures like masking and random delay?
  • RQ5Can CGV explain why the attention network outperforms the ASCAD network in terms of key recovery accuracy?

Key findings

  • The attention network achieves higher key recovery success rates than the ASCAD network across all four datasets, including masked and noisy implementations.
  • In AES_HD, where noise is high, the attention network's focus on the correct leakage region (samples 980–1000) leads to significantly better performance than ASCAD, which attends to irrelevant areas.
  • For AES_RD with random delay, the attention network correctly identifies the leakage region (3000–3500), while the ASCAD network attends to non-leaky areas, reducing its effectiveness.
  • Class Gradient Visualization (CGV) confirms that the attention network focuses on regions with high correlation in CPA analysis, while ASCAD learns both informative and noisy regions.
  • In the ASCAD dataset with masking, the attention network isolates three key leakage regions (50–400, 350–400, 600), corresponding to mask and S-box output leaks, whereas ASCAD spreads attention across the entire trace.
  • The visualization results demonstrate that suppressing noise through attention leads to improved attack performance, especially in high-noise environments like AES_HD.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.