Back To The Basics: Seamless Integration of Side-Channel Pre-processing in Deep Neural Networks

Yoo-Seung Won, Xiaolu Hou, Dirmanto Jap, Jakub Breier, Shivam Bhasin

Abstract

This paper presents a modular framework for Side-Channel Analysis (SCA) that integrates classical signal pre-processing techniques directly into Deep Neural Network (DNN) architectures. By utilizing Multi-scale Convolutional Neural Networks (MCNN) with parallel branches for raw and transformed data, the proposed approach overcomes the limitations of manual hyperparameter tuning and the potential information loss associated with standalone pre-processing. Evaluations across diverse datasets, including masked and desynchronized implementations, demonstrate that this integrated approach achieves superior generalization and faster convergence compared to standard base networks.

Introduction

Side-Channel Analysis (SCA) leverages physical leakages such as power consumption or electromagnetic emissions to extract secret keys from cryptographic hardware. While Deep Learning (DL) has proven effective in bypassing countermeasures like jitter and masking, a gap remains between modern neural architectures and decades of established classical signal processing. Current research often focuses on optimizing specific architectures for individual datasets, potentially ignoring the benefits of signal alignment or dimensionality reduction. This work addresses the challenge of seamlessly combining classical pre-processing with the feature extraction capabilities of deep learning.

Methodology

The proposed framework employs a Multi-scale Convolutional Neural Network (MCNN) architecture featuring Plug-in Branch Components (PBCs). This modular design allows for the parallel processing of data through three distinct branches:

  1. Identity Branch: Processes the raw side-channel traces.
  2. Moving Average Branch: Functions as a low-pass filter to mitigate high-frequency noise and temporal jitter.
  3. Transformation Branch: A flexible slot for integrating classical techniques such as Principal Component Analysis (PCA), Phase-Only Correlation (POC), or Elastic Alignment (EA).
Conceptual architecture of the Multi-scale Convolutional Neural Network (MCNN) framework.

Each branch undergoes a "local convolution stage" to extract domain-specific features. These features are then concatenated and passed through a "full convolution stage" followed by a multi-layer perceptron (MLP) for final classification. This structure enables the network to "co-learn" complementary features across different scales and transformations simultaneously.

Detailed visualization of the MCNN with specific Plug-in Branch Components (PBCs) for moving average and PCA.

Experimental Setup

The framework was validated on several benchmark datasets, covering both software and hardware implementations:

  • ASCAD (desync=50, 100): Masked AES on an 8-bit AVR microcontroller with artificial timing jitter.
  • AES_RD: Software AES implementation protected by random delay interrupts.
  • AES_HD: An unprotected hardware AES implementation on an FPGA.
  • AES_HD_MM: A challenging hardware implementation featuring multiplicative masking on an FPGA.

Results and Discussion

The MCNN framework demonstrated significant advantages over traditional single-input architectures:

  • Dataset Agnosticism: Unlike base networks optimized for specific datasets, the MCNN performed consistently well across all benchmarks without extensive re-tuning.
  • Synergistic Learning: Results indicated that training on both raw and pre-processed data simultaneously outperformed models trained on either alone. The parallel branches provide complementary information that enhances the model's robustness.
  • Enhanced Convergence: On the challenging AES_HD_MM dataset, the MCNN achieved a Guessing Entropy of zero significantly faster than standard models. It also showed superior performance in high-jitter scenarios (ASCAD desync=100).

Conclusion

Integrating classical pre-processing as modular components within a deep learning framework reduces the burden of manual architectural design and improves attack efficiency. While the choice of PBC still benefits from domain expertise, the MCNN provides a robust, flexible platform for side-channel analysis. Future work will explore the integration of recurrent layers, unsupervised autoencoders for denoising, and automated neural architecture search to further optimize PBC selection.

Summary updated

BibTeX
@article{won2021back,
  author = {Yoo-Seung Won and Xiaolu Hou and Dirmanto Jap and Jakub Breier and Shivam Bhasin},
  title = {{Back To The Basics: Seamless Integration of Side-Channel Pre-processing in Deep Neural Networks}},
  journal = {IEEE Trans. Inf. Forensics Secur.},
  year = {2021},
  doi = {10.1109/tifs.2021.3076928},
}
Figure