Cargando…

Model design and parameter optimization of CNN for side-channel cryptanalysis

BACKGROUND: The side-channel cryptanalysis method based on convolutional neural network (CNNSCA) can effectively carry out cryptographic attacks. The CNNSCA network models that achieve cryptanalysis mainly include CNNSCA based on the VGG variant (VGG-CNNSCA) and CNNSCA based on the Alexnet variant (...

Descripción completa

Detalles Bibliográficos
Autores principales: Liu, Yun Lin, Chen, Yan Kai, Li, Wei Xiong, Zhang, Yang
Formato: Online Artículo Texto
Lenguaje:English
Publicado: PeerJ Inc. 2022
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8771786/
https://www.ncbi.nlm.nih.gov/pubmed/35111917
http://dx.doi.org/10.7717/peerj-cs.829
_version_ 1784635690687922176
author Liu, Yun Lin
Chen, Yan Kai
Li, Wei Xiong
Zhang, Yang
author_facet Liu, Yun Lin
Chen, Yan Kai
Li, Wei Xiong
Zhang, Yang
author_sort Liu, Yun Lin
collection PubMed
description BACKGROUND: The side-channel cryptanalysis method based on convolutional neural network (CNNSCA) can effectively carry out cryptographic attacks. The CNNSCA network models that achieve cryptanalysis mainly include CNNSCA based on the VGG variant (VGG-CNNSCA) and CNNSCA based on the Alexnet variant (Alex-CNNSCA). The learning ability and cryptanalysis performance of these CNNSCA models are not optimal, and the trained model has low accuracy, too long training time, and takes up more computing resources. In order to improve the overall performance of CNNSCA, the paper will improve CNNSCA model design and hyperparameter optimization. METHODS: The paper first studied the CNN architecture composition in the SCA application scenario, and derives the calculation process of the CNN core algorithm for side-channel leakage of one-dimensional data. Secondly, a new basic model of CNNSCA was designed by comprehensively using the advantages of VGG-CNNSCA model classification and fitting efficiency and Alex-CNNSCA model occupying less computing resources, in order to better reduce the gradient dispersion problem of error back propagation in deep networks, the SE (Squeeze-and-Excitation) module is newly embedded in this basic model, this module is used for the first time in the CNNSCA model, which forms a new idea for the design of the CNNSCA model. Then apply this basic model to a known first-order masked dataset from the side-channel leak public database (ASCAD). In this application scenario, according to the model design rules and actual experimental results, exclude non-essential experimental parameters. Optimize the various hyperparameters of the basic model in the most objective experimental parameter interval to improve its cryptanalysis performance, which results in a hyper-parameter optimization scheme and a final benchmark for the determination of hyper-parameters. RESULTS: Finally, a new CNNSCA model optimized architecture for attacking unprotected encryption devices is obtained—CNNSCAnew. Through comparative experiments, CNNSCAnew’s guessing entropy evaluation results converged to 61. From model training to successful recovery of the key, the total time spent was shortened to about 30 min, and we obtained better performance than other CNNSCA models.
format Online
Article
Text
id pubmed-8771786
institution National Center for Biotechnology Information
language English
publishDate 2022
publisher PeerJ Inc.
record_format MEDLINE/PubMed
spelling pubmed-87717862022-02-01 Model design and parameter optimization of CNN for side-channel cryptanalysis Liu, Yun Lin Chen, Yan Kai Li, Wei Xiong Zhang, Yang PeerJ Comput Sci Algorithms and Analysis of Algorithms BACKGROUND: The side-channel cryptanalysis method based on convolutional neural network (CNNSCA) can effectively carry out cryptographic attacks. The CNNSCA network models that achieve cryptanalysis mainly include CNNSCA based on the VGG variant (VGG-CNNSCA) and CNNSCA based on the Alexnet variant (Alex-CNNSCA). The learning ability and cryptanalysis performance of these CNNSCA models are not optimal, and the trained model has low accuracy, too long training time, and takes up more computing resources. In order to improve the overall performance of CNNSCA, the paper will improve CNNSCA model design and hyperparameter optimization. METHODS: The paper first studied the CNN architecture composition in the SCA application scenario, and derives the calculation process of the CNN core algorithm for side-channel leakage of one-dimensional data. Secondly, a new basic model of CNNSCA was designed by comprehensively using the advantages of VGG-CNNSCA model classification and fitting efficiency and Alex-CNNSCA model occupying less computing resources, in order to better reduce the gradient dispersion problem of error back propagation in deep networks, the SE (Squeeze-and-Excitation) module is newly embedded in this basic model, this module is used for the first time in the CNNSCA model, which forms a new idea for the design of the CNNSCA model. Then apply this basic model to a known first-order masked dataset from the side-channel leak public database (ASCAD). In this application scenario, according to the model design rules and actual experimental results, exclude non-essential experimental parameters. Optimize the various hyperparameters of the basic model in the most objective experimental parameter interval to improve its cryptanalysis performance, which results in a hyper-parameter optimization scheme and a final benchmark for the determination of hyper-parameters. RESULTS: Finally, a new CNNSCA model optimized architecture for attacking unprotected encryption devices is obtained—CNNSCAnew. Through comparative experiments, CNNSCAnew’s guessing entropy evaluation results converged to 61. From model training to successful recovery of the key, the total time spent was shortened to about 30 min, and we obtained better performance than other CNNSCA models. PeerJ Inc. 2022-01-05 /pmc/articles/PMC8771786/ /pubmed/35111917 http://dx.doi.org/10.7717/peerj-cs.829 Text en © 2022 Liu et al. https://creativecommons.org/licenses/by/4.0/This is an open access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/) , which permits unrestricted use, distribution, reproduction and adaptation in any medium and for any purpose provided that it is properly attributed. For attribution, the original author(s), title, publication source (PeerJ Computer Science) and either DOI or URL of the article must be cited.
spellingShingle Algorithms and Analysis of Algorithms
Liu, Yun Lin
Chen, Yan Kai
Li, Wei Xiong
Zhang, Yang
Model design and parameter optimization of CNN for side-channel cryptanalysis
title Model design and parameter optimization of CNN for side-channel cryptanalysis
title_full Model design and parameter optimization of CNN for side-channel cryptanalysis
title_fullStr Model design and parameter optimization of CNN for side-channel cryptanalysis
title_full_unstemmed Model design and parameter optimization of CNN for side-channel cryptanalysis
title_short Model design and parameter optimization of CNN for side-channel cryptanalysis
title_sort model design and parameter optimization of cnn for side-channel cryptanalysis
topic Algorithms and Analysis of Algorithms
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8771786/
https://www.ncbi.nlm.nih.gov/pubmed/35111917
http://dx.doi.org/10.7717/peerj-cs.829
work_keys_str_mv AT liuyunlin modeldesignandparameteroptimizationofcnnforsidechannelcryptanalysis
AT chenyankai modeldesignandparameteroptimizationofcnnforsidechannelcryptanalysis
AT liweixiong modeldesignandparameteroptimizationofcnnforsidechannelcryptanalysis
AT zhangyang modeldesignandparameteroptimizationofcnnforsidechannelcryptanalysis