Advanced Search
Turn off MathJax
Article Contents
XU Yang, LI Kaibin, HE Xingxing. Deep Side-Channel Attack Method Integrating Convolutional Block Attention Mechanism and Triplet Metric Learning[J]. Journal of Electronics & Information Technology. doi: 10.11999/JEIT260140
Citation: XU Yang, LI Kaibin, HE Xingxing. Deep Side-Channel Attack Method Integrating Convolutional Block Attention Mechanism and Triplet Metric Learning[J]. Journal of Electronics & Information Technology. doi: 10.11999/JEIT260140

Deep Side-Channel Attack Method Integrating Convolutional Block Attention Mechanism and Triplet Metric Learning

doi: 10.11999/JEIT260140 cstr: 32379.14.JEIT260140
Funds:  Central Government Guided Local Development Fund (2025ZYDF075), The Fundamental Research Funds for Central Universities (2682024ZTPY041, 2682025ZTPY009), The Science and Technology Planning Project of Sichuan Province (2024YFHZ0316), Chengdu Soft Science Research Project (2026-RK00-00028-ZF)
  • Accepted Date: 2026-07-01
  • Rev Recd Date: 2026-07-01
  • Available Online: 2026-07-13
  •   Objective  Side-channel attack (SCA) constitutes one of the primary threats to the physical security of cryptographic chips, and leveraging deep learning techniques for key recovery has emerged as a research hotspot in the field of side-channel attack. However, existing deep analysis methods lack the ability to focus on key leakage intervals during feature extraction, especially in long-waveform and high-dimensional noise scenarios. They are easily disturbed by irrelevant background noise, leading to low feature extraction efficiency and slow guessing entropy convergence. To address these issues, this study proposes a deep side-channel analysis method integrating the Convolutional Block Attention Module (CBAM) and triplet loss, aiming to enhance the model's ability to capture weak leakage features in complex noise environments and improve key recovery efficiency.  Methods  The proposed method introduces CBAM into the convolutional neural network (CNN) to construct an adaptive feature extraction network. CBAM includes two sub-modules: Channel Attention Module (CAM) and Spatial Attention Module (SAM). CAM adaptively adjusts the weights of different feature channels to emphasize channels containing high signal-to-noise ratio (SNR) leakage information, while SAM locates key Points of Interest (POI) in the time domain to suppress background noise in non-leakage intervals. After feature calibration by CBAM, triplet loss is adopted as the optimization objective to constrain the distribution of embedded features, forcing similar samples to form compact clusters and different samples to maintain sufficient separation in the feature space. Finally, a multivariate Gaussian template attack is implemented using the optimized embedded features to recover the key. The overall framework is shown in (Fig.2).  Results and Discussions  Experiments are conducted on two public benchmark datasets (ASCAD and AES_HD) with guessing entropy (GE) and the minimum number of traces required for GE convergence to 1 ($ {T}_{GE0} $) as evaluation metrics. On the ASCAD dataset: (1) In the ASCAD_f (HW) scenario, the proposed method only needs 144 traces to recover the key, reducing by 51.0% compared with the traditional CNN model; (2) In the ASCAD_f (ID) scenario, merely 61 traces are required, a reduction of 68.0% from the traditional CNN; (3) In the random key setting (ASCAD_r), the method achieves convergence with 176 (HW) and 137 (ID) traces respectively, outperforming mainstream methods such as RL-SCA and Metric Learning (Table 2, Fig.3). On the low-SNR AES_HD dataset, the method reduces to 1219 traces, which is lower than MHA and NLS, and the guessing entropy converges smoothly without obvious fluctuations (Table 2, Fig.4). Furthermore, the desynchronization experiments demonstrate that even under strong desynchronization noise interference, the proposed method can still adaptively lock onto effective leakage moments, exhibiting excellent robustness against time-domain jitter(Table 3). Ablation studies further confirm the positive synergistic effect of the proposed architecture and thoroughly validate the rationality of core components (Table 4).  Conclusions  This study proposes an effective deep side-channel analysis method by integrating the CBAM attention mechanism and metric learning. The CBAM module enables the network to actively focus on key leakage information, solving the problem of insufficient focusing ability in traditional CNN-based methods. The triplet loss optimizes the discriminability of embedded features, further improving the accuracy of template matching. Experimental results on ASCAD and AES_HD datasets demonstrate that the method significantly reduces the number of traces required for key recovery and accelerates the convergence of guessing entropy, outperforming existing mainstream methods in both fixed and random key scenarios, as well as in low-SNR environments. Future work will focus on improving the adaptability of the model in scenarios with more severe synchronization disturbances, and enhancing its generalization ability in small sample scenarios.
  • loading
  • [1]
    MANGARD S, OSWALD E, and POPP T. Power Analysis Attacks: Revealing the Secrets of Smart Cards[M]. New York: Springer, 2007.
    [2]
    CHARI S, RAO J R, and ROHATGI P. Template attacks[C]. 4th International Workshop on Cryptographic Hardware and Embedded Systems, Redwood Shores, USA, 2002: 13–28. doi: 10.1007/3-540-36400-5_3.
    [3]
    郑帅, 徐向荣, 肖利民, 等. 面向缓存侧信道攻击防护的快速刷写技术[J]. 电子与信息学报, 2025, 47(9): 3178–3186. doi: 10.11999/JEIT250471.

    ZHENG Shuai, XU Xiangrong, XIAO Limin, et al. Mitigating cache side-channel attacks via fast flushing mechanism[J]. Journal of Electronics & Information Technology, 2025, 47(9): 3178–3186. doi: 10.11999/JEIT250471.
    [4]
    LERMAN L, POUSSIER R, BONTEMPI G, et al. Template attacks vs. machine learning revisited (and the curse of dimensionality in side-channel analysis)[C]. 6th International Workshop on Constructive Side-Channel Analysis and Secure Design, Berlin, Germany, 2015: 20–33. doi: 10.1007/978-3-319-21476-4_2.
    [5]
    蒋玲腊, 陈文, 孙伟, 等. 融合动态可组合多头注意力的深度学习侧信道分析方法研究[J/OL]. 计算机科学, 2025: 1–15. https://link.cnki.net/urlid/50.1075.TP.20251129.1824.004, 2025.

    JIANG Lingla, CHEN Wen, SUN Wei, et al. Research on a deep learning-based side-channel analysis method with dynamically composable multi-head attention[J/OL]. Computer Science, 2025: 1–15 https://link.cnki.net/urlid/50.1075.TP.20251129.1824.004, 2025.
    [6]
    金诚斌, 高宜文, 高锐, 等. 嵌入式AI硬件单元的侧信道分析方法概述[J]. 密码学报(中英文), 2025, 12(4): 729–751. doi: 10.13868/j.cnki.jcr.000791.

    JIN Chengbin, GAO Yiwen, GAO Rui, et al. Systematic study on physical side-channel attack against embedded AI hardware units[J]. Journal of Cryptologic Research, 2025, 12(4): 729–751. doi: 10.13868/j.cnki.jcr.000791.
    [7]
    WU Lichao and PICEK S. Remove some noise: On pre-processing of side-channel measurements with autoencoders[J]. IACR Transactions on Cryptographic Hardware and Embedded Systems, 2020, 2020(4): 389–415. doi: 10.13154/tches.v2020.i4.389-415.
    [8]
    ZAID G, BOSSUET L, HABRARD A, et al. Methodology for efficient CNN architectures in profiling attacks[J]. IACR Transactions on Cryptographic Hardware and Embedded Systems, 2020, 2020(1): 1–36. doi: 10.13154/tches.v2020.i1.1-36.
    [9]
    LU Xiangjun, ZHANG Chi, CAO Pei, et al. Pay attention to raw traces: A deep learning architecture for end-to-end profiling attacks[J]. IACR Transactions on Cryptographic Hardware and Embedded Systems, 2021, 2021(3): 235–274. doi: 10.46586/tches.v2021.i3.235-274.
    [10]
    RIJSDIJK J, WU Lichao, PERIN G, et al. Reinforcement learning for hyperparameter tuning in deep learning-based side-channel analysis[J]. IACR Transactions on Cryptographic Hardware and Embedded Systems, 2021, 2021(4): 677–707. doi: 10.46586/tches.v2021.i3.677-707.
    [11]
    PERIN G, WU Lichao, and PICEK S. Exploring feature selection scenarios for deep learning-based side-channel analysis[J]. IACR Transactions on Cryptographic Hardware and Embedded Systems, 2022, 2022(4): 828–861. doi: 10.46586/tches.v2022.i4.828-861.
    [12]
    HE Pengfei, ZHANG Ying, GAN Han, et al. Side-channel attacks based on attention mechanism and multi-scale convolutional neural network[J]. Computers and Electrical Engineering, 2024, 119: 109515. doi: 10.1016/j.compeleceng.2024.109515.
    [13]
    张倩, 高宜文, 刘月君, 等. 基于循环展开结构的抗侧信道攻击SM4 IP核设计[J]. 密码学报(中英文), 2025, 12(3): 645–661. doi: 10.13868/j.cnki.jcr.000786.

    ZHANG Qian, GAO Yiwen, LIU Yuejun, et al. Design of SM4 IP cores against side-channel attacks based on loop unrolling architecture[J]. Journal of Cryptologic Research, 2025, 12(3): 645–661. doi: 10.13868/j.cnki.jcr.000786.
    [14]
    PICEK S, HEUSER A, JOVIC A, et al. Side-channel analysis and machine learning: A practical perspective[C]. 2017 International Joint Conference on Neural Networks (IJCNN), Anchorage, USA, 2017: 4095–4102. doi: 10.1109/IJCNN.2017.7966373.
    [15]
    罗玉玲, 徐海洋, 欧阳雪, 等. 高效侧信道分析: 从协同去噪到自适应B样条降维[J]. 电子与信息学报, 2026, 48(3): 1354–1365. doi: 10.11999/JEIT251047.

    LUO Yuling, XU Haiyang, OUYANG Xue, et al. High-efficiency side-channel analysis: From collaborative denoising to adaptive B-spline dimension reduction[J]. Journal of Electronics & Information Technology, 2026, 48(3): 1354–1365. doi: 10.11999/JEIT251047.
    [16]
    LI Kaibin, LIANG Yihuai, ZHOU Zhengchun, et al. HypSCA: A hyperbolic embedding method for enhanced side-channel attack[R]. Paper 2025/1199, 2025.
    [17]
    CAGLI E, DUMAS C, and PROUFF E. Convolutional neural networks with data augmentation against jitter-based countermeasures: Profiling attacks without pre-processing[C]. The 19th International Conference on Cryptographic Hardware and Embedded Systems, Taipei, China, 2017: 45–68. doi: 10.1007/978-3-319-66787-4_3.
    [18]
    KARAYALCIN S, KRČEK M, and PICEK S. SoK: Deep learning-based side-channel analysis trends and challenges[J/OL]. IACR Cryptology ePrint Archive, 2025(1309). (查阅网上资料, 未找到本条文献信息, 请确认).
    [19]
    KULKARNI P, VERNEUIL V, PICEK S, et al. Order vs. chaos: A language model approach for side-channel attacks[J]. IACR Transactions on Cryptographic Hardware and Embedded Systems, 2024, 2024(1): 1–32. (查阅网上资料, 未找到本条文献信息, 请确认).
    [20]
    HUANG Hai, WU Jinming, TANG Xinling, et al. Deep learning-based improved side-channel attacks using data denoising and feature fusion[J]. PLoS One, 2025, 20(4): e0315340. doi: 10.1371/journal.pone.0315340.
    [21]
    KARAYALCIN S, KRČEK M, and PICEK S. Interpreting emergent features in deep learning-based side-channel analysis[C]. The Thirty-ninth Annual Conference on Neural Information Processing Systems, San Diego, USA, 2025.
    [22]
    WU Lichao, PERIN G, and PICEK S. The best of two worlds: Deep learning-assisted template attack[J]. IACR Transactions on Cryptographic Hardware and Embedded Systems, 2022, 2022(3): 413–437. doi: 10.46586/tches.v2022.i3.413-437.
    [23]
    LI Kaibin, LIANG Yihuai, MENG Hua, et al. Deep metric learning-based side-channel analysis with improved robustness and efficiency[J]. Applied Intelligence, 2025, 55(10): 712. doi: 10.1007/s10489-025-06586-z.
    [24]
    谢豪, 田曦, 廖威, 等. 基于射频侧信道的密码芯片安全测评方法[J]. 密码学报(中英文), 2024, 11(3): 706–718. doi: 10.13868/j.cnki.jcr.000703.

    XIE Hao, TIAN Xi, LIAO Wei, et al. Cryptographic chip security evaluation method based on radio frequency side channel[J]. Journal of Cryptologic Research, 2024, 11(3): 706–718. doi: 10.13868/j.cnki.jcr.000703.
    [25]
    WOO S, PARK J, LEE J Y, et al. CBAM: Convolutional block attention module[C]. 15th European Conference on Computer Vision, Munich, Germany, 2018: 3–19. doi: 10.1007/978-3-030-01234-2_1.
    [26]
    LECUN Y, BOTTOU L, ORR G B, et al. Efficient backProp[M]. ORR G B and MÜLLER K R. Neural Networks: Tricks of the Trade. Berlin: Springer, 1998: 9–50. doi: 10.1007/3-540-49430-8_2.
    [27]
    BENADJILA R, PROUFF E, STRULLU R, et al. Deep learning for side-channel analysis and introduction to ASCAD database[J]. Journal of Cryptographic Engineering, 2020, 10(2): 163–188. doi: 10.1007/s13389-019-00220-8.
    [28]
    HAJRA S, ALAM M, SAHA S, et al. On the instability of softmax attention-based deep learning models in side-channel analysis[J]. IEEE Transactions on Information Forensics and Security, 2024, 19: 514–528. doi: 10.1109/TIFS.2023.3326667.
    [29]
    WU Lichao, PERIN G, and PICEK S. I choose you: Automated hyperparameter tuning for deep learning-based side-channel analysis[J]. IEEE Transactions on Emerging Topics in Computing, 2024, 12(2): 546–557. doi: 10.1109/TETC.2022.3218372.
    [30]
    PERIN G, CHMIELEWSKI Ł, and PICEK S. Strength in numbers: Improving generalization with ensembles in machine learning-based profiled side-channel analysis[J]. IACR Transactions on Cryptographic Hardware and Embedded Systems, 2020, 2020(4): 337–364. doi: 10.13154/tches.v2020.i4.337-364.
    [31]
    KERKHOF M, WU Lichao, PERIN G, et al. No (good) loss no gain: Systematic evaluation of loss functions in deep learning-based side-channel analysis[J]. Journal of Cryptographic Engineering, 2023, 13(3): 311–324. doi: 10.1007/s13389-023-00320-6.
    [32]
    YAP T, PICEK S, and BHASIN S. Beyond the last layer: Deep feature loss functions in side-channel analysis[C]. Proceedings of the 2023 Workshop on Attacks and Solutions in Hardware Security, Copenhagen, Denmark, 2023: 73–82. doi: 10.1145/3605769.3623996.
    [33]
    NI Lei, WANG Pengjun, ZHANG Yuejun, et al. Profiling side-channel attacks based on CNN model fusion[J]. Microelectronics Journal, 2023, 139: 105901. doi: 10.1016/j.mejo.2023.105901.
  • 加载中

Catalog

    通讯作者: 陈斌, bchen63@163.com
    • 1. 

      沈阳化工大学材料科学与工程学院 沈阳 110142

    1. 本站搜索
    2. 百度学术搜索
    3. 万方数据库搜索
    4. CNKI搜索

    Figures(4)  / Tables(4)

    Article Metrics

    Article views (42) PDF downloads(7) Cited by()
    Proportional views
    Related

    /

    DownLoad:  Full-Size Img  PowerPoint
    Return
    Return