Quantum key distribution side channel attack detection method based on federal deep learning

By using federated deep learning technology in the quantum key distribution system to identify and classify complex side-channel attacks, it solves the problem of insufficient detection capabilities in the existing technology, achieves efficient and real-time attack identification and data privacy protection, and enhances the system adaptability and robustness.

CN118784204AInactive Publication Date: 2024-10-15HEFEI ARCTIC BULL TECHNICAL SERVICE CO LTD
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202410813986.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-10-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing technologies face problems such as attack diversity, limited data processing capabilities, insufficient real-time detection capabilities, data privacy and security issues, and insufficient system adaptability and robustness when detecting and defending against side-channel attacks, especially in distributed quantum cryptography. in the key distribution system.

Method used

Adopting a method based on federated deep learning, by collecting side channel data on multiple quantum key distribution nodes, initializing and training the deep learning model, and using the federated learning protocol to share model parameter updates instead of original data to achieve complex side channel attacks identification and classification, and detection in real-time environments.

Benefits of technology

It significantly improves the efficiency and accuracy of side-channel attack detection, protects data privacy and security, enables rapid adaptation and response to new attack modes, reduces the response time to security events, and enhances the robustness of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118784204A_ABST
    Figure CN118784204A_ABST
Patent Text Reader

Abstract

The invention discloses a quantum key distribution side channel attack detection method based on federal deep learning. The method comprises the following steps: S1, collecting side channel data of a plurality of quantum key distribution nodes; s2, initializing a deep learning model for pattern recognition and anomaly detection on each node; s3, training a deep learning model on each node by using the collected side channel data to identify and classify a side channel attack mode in quantum key distribution; s4, sharing parameter update of the model among the nodes through a federated learning protocol, not sharing original data, and protecting data privacy and security through the protocol; s5, integrating and optimizing the received shared model parameters at each local node; and S6, running the optimized deep learning model in a real-time environment, and carrying out real-time detection on the side channel attack. The method has the advantages of high data privacy protection, high attack detection accuracy and high response speed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of quantum key distribution technology, and in particular to a quantum key distribution side channel attack detection method based on federated deep learning. Background Art

[0002] With the rapid development of quantum information technology, quantum key distribution (QKD) has become a cutting-edge technology to ensure communication security. QKD uses the principles of quantum mechanics to provide a theoretically absolutely secure key distribution method for both parties in communication. However, with the advancement of technology, side channel attacks, as an attack method that exploits the non-ideal characteristics of quantum communication systems, pose a severe challenge to the security of QKD systems.

[0003] A side channel attack is a method of obtaining key information by analyzing the physical implementation and environmental information of quantum communication equipment. This type of attack is diverse and highly concealed, and traditional security measures are difficult to effectively deal with. Side channel attacks may infer encryption operations by analyzing device power consumption patterns or electromagnetic leakage, thereby cracking the key. Therefore, improving the QKD system's ability to detect and protect against side channel attacks has become a key issue in ensuring the security of quantum communications.

[0004] In the prior art, the detection of side-channel attacks mainly relies on traditional data analysis and security strategies.

[0005] These methods usually face the following challenges and shortcomings:

[0006] 1. Attack diversity and complexity: Traditional methods are often designed based on specific attack patterns or features and lack the ability to effectively identify new or complex side-channel attacks.

[0007] 2. Limited data processing capabilities: Side channel data is usually high-dimensional and complex. Traditional data analysis methods are inefficient in processing such data and it is difficult to accurately extract attack features.

[0008] 3. Insufficient real-time detection capabilities: Side channel attacks often require rapid detection and response. However, existing technologies often have delays when processing large amounts of data, making it impossible to achieve real-time monitoring and immediate response.

[0009] 4. Data privacy and security issues: In multi-node QKD systems, traditional centralized data processing methods may cause sensitive data to be exposed during transmission and processing, increasing the risk of data leakage.

[0010] 5. Insufficient system adaptability and robustness: As the patterns and strategies of side-channel attacks continue to evolve, traditional static detection methods are difficult to adapt to such dynamic changes and lack the ability to continuously learn and adapt.

[0011] Therefore, how to effectively identify and defend against diverse and complex side-channel attacks, especially in distributed quantum key distribution systems, has become an urgent problem to be solved. Summary of the invention

[0012] One purpose of the present invention is to propose a method for detecting side channel attacks of quantum key distribution based on federated deep learning. The present invention combines federated learning and deep learning technologies, especially utilizing the advantages of deep learning models in pattern recognition and anomaly detection, so that the system can effectively identify and classify complex and hidden side channel attacks, learn attack features from a large amount of complex side channel data, and significantly improve the efficiency and accuracy of detection.

[0013] A method for detecting side channel attacks of quantum key distribution based on federated deep learning according to an embodiment of the present invention includes the following steps:

[0014] S1. Collect side channel data of multiple quantum key distribution nodes, including timing information, electromagnetic signals and power consumption data;

[0015] S2, initialize the deep learning model for pattern recognition and anomaly detection on each node;

[0016] S3. Use the collected side channel data to train a deep learning model on each node to identify and classify side channel attack patterns in quantum key distribution.

[0017] S4. Share the parameter updates of the model among the nodes through the federated learning protocol, without sharing the original data, and protect the privacy and security of the data through the protocol;

[0018] S5. Integrate and optimize the received shared model parameters at each local node to improve the ability to identify new side channel attacks;

[0019] S6. Run the optimized deep learning model in a real-time environment to perform real-time detection of side-channel attacks.

[0020] Optionally, the S1 specifically includes:

[0021] S11. Deploy side channel data collection modules on multiple quantum key distribution nodes;

[0022] S12, collecting timing information data T:

[0023] T={t1,t2,...,t n};

[0024] Among them, t i Represents the time series data at the i-th time point;

[0025] S13. Collect electromagnetic signal data E:

[0026] E = {e1, e2, ..., e n};

[0027] Among them, e i represents the electromagnetic signal strength at the i-th time point;

[0028] S14, record power consumption data P:

[0029] P = {p1, p2, ..., p n};

[0030] Among them, p i is the power consumption value at the i-th time point;

[0031] S15. Construct a side channel data set D based on the data obtained above:

[0032] D={(T, E, P) 1, (T, E, P) 2, ..., (T, E, P) m}.

[0033] Optionally, the S2 specifically includes:

[0034] S21. Deploy a convolutional neural network model initialization module on each quantum key distribution node;

[0035] S22, for the selected convolutional neural network, setting the input layer to adapt to the side channel data set D collected from step S1 comprises the following steps:

[0036] Perform data preprocessing to convert the time series information data T, electromagnetic signal data E, and power consumption data P from time series format into a multidimensional array format suitable for convolutional neural networks:

[0037]

[0038] Among them, t k 、e k 、p k Represent the values ​​of timing information, electromagnetic signal and power consumption at the kth time point, respectively. For each data point (T, E, P) i In the data set D, convert it into a three-dimensional array A i , A i Each dimension of corresponds to the time series data of T, E and P respectively.

[0039] Standardize the data in A array so that the convolutional neural network model can effectively process input values ​​of different ranges and scales. The standardization process can use Z-score normalization:

[0040]

[0041] Among them, μ and σ are A i The mean and standard deviation of all values ​​in .

[0042] The standardized array A′ i As the input layer data of the convolutional neural network model, the convolutional neural network model can receive and process side channel data from different quantum key distribution nodes;

[0043] S23. Configure multiple convolutional layers and pooling layers of the convolutional neural network to extract features of side channel data:

[0044] For the above standardized data A′ i , in each convolutional layer, a convolution operation is used to extract the spatial features of the data:

[0045]

[0046] Among them, C ij is the output after the convolution operation, the eigenvalue at position (i, j), K is the convolution kernel, size M×N; A′ is the input data, and b is the bias of the convolution layer;

[0047] The ReLU activation function is used to increase the nonlinearity of the model:

[0048] R(x)=max(0,x);

[0049] Where x is the output of the convolutional layer;

[0050] Use max pooling in the pooling layer to reduce the dimensionality and complexity of the data:

[0051]

[0052] Among them, P ij is the feature value at position (i, j) after the pooling operation, and M and N are the sizes of the pooling windows.

[0053] S24. Use the fully connected layer as the output layer of the convolutional neural network to map features to the side channel attack classification to achieve attack pattern recognition and classification:

[0054] Set each neuron in the fully connected layer to be connected to all neurons in the previous layer:

[0055]

[0056] Where F(x) is the output of the fully connected layer, σ is the softmax activation function, and w k is the weight, x k is the output of the previous layer, b is the bias, and K is the number of neurons in the previous layer.

[0057] S25. Set the key parameters of the convolutional neural network and initialize the weight W and bias b of the convolutional neural network.

[0058] Optionally, the S3 specifically includes:

[0059] S31. On each quantum key distribution node, the initialized convolutional neural network model is trained using the side channel data D to identify and classify side channel attacks.

[0060] S32, marking the data set D into different attack categories, where each category corresponds to a specific side channel attack mode;

[0061] S33. The convolutional neural network model is trained using a supervised learning method, and the cross entropy loss function L is used to measure the difference between the model prediction results and the actual attack category:

[0062]

[0063] Where N is the number of training samples, C is the number of attack categories, and y ic is the true label of the i-th sample belonging to the c-th class, is the probability predicted by the model;

[0064] S34. Update the model parameters through the back propagation algorithm and gradient descent method to minimize the loss function L and improve the accuracy and generalization ability of the model in classifying side channel attacks;

[0065] S35. During the training process, the test set is regularly used to evaluate the classification performance of the model so that the model can accurately distinguish different types of side channel attacks.

[0066] Optionally, the S4 specifically includes:

[0067] S41. Establish a federated learning protocol F between nodes so that they can securely share the model parameter updates ΔW and Δb instead of sharing the original side channel data D, thereby protecting data privacy and security through the above method.

[0068] S42. On each quantum key distribution node, the locally trained convolutional neural network model CNN local Update the parameters and calculate the change ΔW of weight W and bias b local and Δb local :

[0069] ΔW local =W after -W before ;

[0070] Δblocal =b after -b before ;

[0071] Among them, W after and b after are the weights and biases after training, W before and b before are the weights and biases before training;

[0072] S43, through a secure communication method, update the parameter amount ΔW of each node local and Δb local Sent to the federated learning server F server ;

[0073] S44, on the federated learning server F server Aggregate the parameter updates of all participating nodes and calculate the average update ΔW of the global model parameters global and Δb global :

[0074]

[0075] Where N is the total number of nodes participating in federated learning, and are the weight and bias updates of the i-th node respectively;

[0076] S45, update the calculated global parameter ΔW global and Δb global Convolutional neural network model CNN sent to each node local middle;

[0077] S46, CNN of each node local Update ΔW according to the received global parameters global and Δb global , update the weight W and bias b of the local model to achieve continuous optimization of the model:

[0078] W updated =W before +ΔW global ;

[0079] b updated =b before +Δb global ;

[0080] Among them, W updated and b updated Represent the updated weights and biases respectively.

[0081] Optionally, the S5 specifically includes:

[0082] S51. On each quantum key distribution node, receive the server The global model parameter update ΔW global and Δb global ;

[0083] S52, Convolutional neural network model CNN at each node local In the above example, the received global parameters are updated by ΔW global and Δb global With the current parameters W of the local model local and b local Combined with:

[0084] W optimized =W local +α·ΔW global ;

[0085] b optimized =b local +α·Δb global ;

[0086] Among them, α is the learning rate, which is used to control the influence of global parameter updates on the local model, so that the model can be gradually optimized instead of drastically changed; W optimized and b optimized Respectively represent the weight and bias after federated learning optimization;

[0087] S53. At each node, the optimized model CNN local Conduct local testing to evaluate the accuracy and efficiency of the model in identifying and classifying side-channel attacks;

[0088] S54. Based on the local test results, the convolutional neural network model CNN on each node local Make fine adjustments;

[0089] S55, regularly optimize the model parameters W of each node optimized and b optimized Feedback to the federated learning server F server , achieving continuous learning across nodes and further optimization of the model.

[0090] Optionally, the S6 specifically includes the following steps:

[0091] S61. Run the convolutional neural network model CNN optimized by federated learning on each quantum key distribution node local Conduct real-time side-channel attack detection;

[0092] S62. Continuously collect real-time side channel data D real-time, and perform the same preprocessing steps as in S2 on these data to convert them into data suitable for CNN local The format of the input;

[0093] S63, the pre-processed real-time data D real-time Input to CNN local In the model, the attack prediction results are generated by forward propagation

[0094] S64, according to Determine whether there is a side channel attack. If the model prediction result exceeds the preset threshold θ, it is determined that a side channel attack has occurred:

[0095]

[0096] in, is the probability of the attack predicted by the model, and θ is the preset detection threshold;

[0097] S65. Once an attack is detected, the preset response measures are immediately triggered;

[0098] S66. Continuously monitor side channel data and continuously update CNN based on the latest data local state, making the model adaptable to new side-channel attack modes.

[0099] The beneficial effects of the present invention are:

[0100] (1) The present invention combines federated learning and deep learning technologies, especially utilizing the advantages of deep learning models in pattern recognition and anomaly detection, so that the system can effectively identify and classify complex and covert side channel attacks, and can learn attack features from a large amount of complex side channel data, thereby significantly improving the efficiency and accuracy of detection.

[0101] (2) The present invention effectively protects data privacy and security and reduces the risk of transmission and exposure of sensitive data by performing local model training on different nodes of the QKD system and sharing model updates rather than original data through a federated learning protocol.

[0102] (3) The present invention utilizes the fast execution capability of the deep learning model after training, making the system suitable for real-time side-channel attack detection. In addition, the real-time update and optimization of the model ensures rapid adaptation and response to new attack patterns, greatly reducing the response time of security incidents.

[0103] (4) The federated learning framework of the present invention enables the system to continuously train and optimize models on data from different nodes, thereby enabling the system to adapt to new attack patterns and strategies. The continuous learning and adaptation process increases the system's robustness against dynamic and evolving threats. BRIEF DESCRIPTION OF THE DRAWINGS

[0104] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0105] Figure 1 This is an overall flow chart of a quantum key distribution side channel attack detection method based on federated deep learning proposed by the present invention;

[0106] Figure 2 A diagram of the side channel data collection process of a quantum key distribution side channel attack detection method based on federated deep learning proposed by the present invention;

[0107] Figure 3 Schematic diagram of the system architecture of a quantum key distribution side channel attack detection method based on federated deep learning proposed in the present invention. DETAILED DESCRIPTION

[0108] The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic diagrams, which only illustrate the basic structure of the present invention in a schematic manner, and therefore only show the components related to the present invention.

[0109] refer to Figure 1-Figure 3 , a quantum key distribution side channel attack detection method based on federated deep learning, comprising the following steps:

[0110] S1. Collect side channel data of multiple quantum key distribution nodes, including timing information, electromagnetic signals and power consumption data;

[0111] S2, initialize the deep learning model for pattern recognition and anomaly detection on each node;

[0112] S3. Use the collected side channel data to train a deep learning model on each node to identify and classify side channel attack patterns in quantum key distribution.

[0113] S4. Share the parameter updates of the model among the nodes through the federated learning protocol, without sharing the original data, and protect the privacy and security of the data through the protocol;

[0114] S5. Integrate and optimize the received shared model parameters at each local node to improve the ability to identify new side channel attacks;

[0115] S6. Run the optimized deep learning model in a real-time environment to perform real-time detection of side-channel attacks.

[0116] In this implementation, S1 specifically includes:

[0117] S11. Deploy side channel data collection modules on multiple quantum key distribution nodes;

[0118] S12, collecting timing information data T:

[0119] T={t1,t2,...,t n};

[0120] Among them, t i Represents the time series data at the i-th time point;

[0121] S13. Collect electromagnetic signal data E:

[0122] E = {e1, e2, ..., e n};

[0123] Among them, e i represents the electromagnetic signal strength at the i-th time point;

[0124] S14, record power consumption data P:

[0125] P = {p1, p2, ..., p n};

[0126] Among them, p i is the power consumption value at the i-th time point;

[0127] S15. Construct a side channel data set D based on the data obtained above:

[0128] D={(T, E, P) 1, (T, E, P) 2, ..., (T, E, P) m}.

[0129] In this implementation, S2 specifically includes:

[0130] S21. Deploy a convolutional neural network model initialization module on each quantum key distribution node;

[0131] S22, for the selected convolutional neural network, setting the input layer to adapt to the side channel data set D collected from step S1 comprises the following steps:

[0132] Perform data preprocessing to convert the time series information data T, electromagnetic signal data E, and power consumption data P from time series format into a multidimensional array format suitable for convolutional neural networks:

[0133]

[0134] Among them, t k 、e k 、p k Represent the values ​​of timing information, electromagnetic signal and power consumption at the kth time point, respectively. For each data point (T, E, P)i In the data set D, convert it into a three-dimensional array A i , A i Each dimension of corresponds to the time series data of T, E and P respectively.

[0135] StandardizationA i The data in the array enables the convolutional neural network model to effectively process input values ​​of different ranges and scales. The standardization process can use Z-score normalization:

[0136]

[0137] Among them, μ and σ are A i The mean and standard deviation of all values ​​in .

[0138] The normalized array A i ′ is used as the input layer data of the convolutional neural network model, so that the convolutional neural network model can receive and process side channel data from different quantum key distribution nodes;

[0139] S23. Configure multiple convolutional layers and pooling layers of the convolutional neural network to extract features of side channel data:

[0140] For the above standardized data A i ′, in each convolutional layer, a convolution operation is used to extract the spatial features of the data:

[0141]

[0142] Among them, C ij is the output after the convolution operation, the eigenvalue at position (i, j), K is the convolution kernel, size M×N; A′ is the input data, and b is the bias of the convolution layer;

[0143] The ReLU activation function is used to increase the nonlinearity of the model:

[0144] R(x)=max(0,x);

[0145] Where x is the output of the convolutional layer;

[0146] Use max pooling in the pooling layer to reduce the dimensionality and complexity of the data:

[0147]

[0148] Among them, P ij is the feature value at position (i, j) after the pooling operation, and M and N are the sizes of the pooling windows.

[0149] S24. Use the fully connected layer as the output layer of the convolutional neural network to map features to the side channel attack classification to achieve attack pattern recognition and classification:

[0150] Set each neuron in the fully connected layer to be connected to all neurons in the previous layer:

[0151]

[0152] Where F(x) is the output of the fully connected layer, σ is the softmax activation function, and w k is the weight, x k is the output of the previous layer, b is the bias, and K is the number of neurons in the previous layer.

[0153] S25. Set the key parameters of the convolutional neural network and initialize the weight W and bias b of the convolutional neural network.

[0154] In this implementation, S3 specifically includes:

[0155] S31. On each quantum key distribution node, the initialized convolutional neural network model is trained using the side channel data D to identify and classify side channel attacks.

[0156] S32, marking the data set D into different attack categories, where each category corresponds to a specific side channel attack mode;

[0157] S33. The convolutional neural network model is trained using a supervised learning method, and the cross entropy loss function L is used to measure the difference between the model prediction results and the actual attack category:

[0158]

[0159] Where N is the number of training samples, C is the number of attack categories, and y ic is the true label of the i-th sample belonging to the c-th class, is the probability predicted by the model;

[0160] S34. Update the model parameters through the back propagation algorithm and gradient descent method to minimize the loss function L and improve the accuracy and generalization ability of the model in classifying side channel attacks;

[0161] S35. During the training process, the test set is regularly used to evaluate the classification performance of the model so that the model can accurately distinguish different types of side channel attacks.

[0162] In this implementation manner, the S4 specifically includes:

[0163] S41. Establish a federated learning protocol F between nodes so that they can securely share the model parameter updates ΔW and Δb instead of sharing the original side channel data D, thereby protecting data privacy and security through the above method.

[0164] S42. On each quantum key distribution node, the locally trained convolutional neural network model CNN local Update the parameters and calculate the change ΔW of weight W and bias b local and Δb local :

[0165] ΔW local =W after -W before ;

[0166] Δb local =b after -b before ;

[0167] Among them, W after and b after are the weights and biases after training, W before and b before are the weights and biases before training;

[0168] S43, through a secure communication method, update the parameter amount ΔW of each node local and Δb local Sent to the federated learning server F server ;

[0169] S44, on the federated learning server F server Aggregate the parameter updates of all participating nodes and calculate the average update ΔW of the global model parameters global and Δb global :

[0170]

[0171] Where N is the total number of nodes participating in federated learning, and are the weight and bias updates of the i-th node respectively;

[0172] S45, update the calculated global parameter ΔW global and Δb global Convolutional neural network model CNN sent to each node local middle;

[0173] S46, CNN of each node local Update ΔW according to the received global parameters global and Δb global, update the weight W and bias b of the local model to achieve continuous optimization of the model:

[0174] W updated =W before +ΔW global ;

[0175] b updated =b before +Δb global ;

[0176] Among them, W updated and b updated Represent the updated weights and biases respectively.

[0177] In this implementation manner, S5 specifically includes:

[0178] S51. On each quantum key distribution node, receive the server The global model parameter update ΔW global and Δb global ;

[0179] S52, Convolutional neural network model CNN at each node local In the above example, the received global parameters are updated by ΔW global and Δb global With the current parameters W of the local model local and b local Combined with:

[0180] W optimized =W local +α·ΔW global ;

[0181] b optimized =b local +α·Δb global ;

[0182] Among them, α is the learning rate, which is used to control the influence of global parameter updates on the local model, so that the model can be gradually optimized instead of drastically changed; W optimized and b optimized Respectively represent the weight and bias after federated learning optimization;

[0183] S53. At each node, the optimized model CNN local Conduct local testing to evaluate the accuracy and efficiency of the model in identifying and classifying side-channel attacks;

[0184] S54. Based on the local test results, the convolutional neural network model CNN on each node local Make fine adjustments;

[0185] S55, regularly optimize the model parameters W of each node optimized and b optimized Feedback to the federated learning server F server , achieving continuous learning across nodes and further optimization of the model.

[0186] In this implementation manner, the S6 specifically includes the following steps:

[0187] S61. Run the convolutional neural network model CNN optimized by federated learning on each quantum key distribution node local Conduct real-time side-channel attack detection;

[0188] S62. Continuously collect real-time side channel data D real-time , and perform the same preprocessing steps as in S2 on these data to convert them into data suitable for CNN local The format of the input;

[0189] S63, the pre-processed real-time data D real-time Input to CNN local In the model, the attack prediction results are generated by forward propagation

[0190] S64, according to Determine whether there is a side channel attack. If the model prediction result exceeds the preset threshold θ, it is determined that a side channel attack has occurred:

[0191]

[0192] in, is the probability of the attack predicted by the model, and θ is the preset detection threshold;

[0193] S65. Once an attack is detected, the preset response measures are immediately triggered;

[0194] S66. Continuously monitor side channel data and continuously update CNN based on the latest data local state, making the model adaptable to new side-channel attack modes.

[0195] Embodiment 1:

[0196] In the global communication network of a large multinational company B, network security is particularly critical, especially for the part involving quantum communication and key distribution. Recently, the security team of company B observed some unusual side channel signal fluctuations in its quantum key distribution system, which was suspected to be a sign of side channel attack. In order to effectively deal with this potential threat, company B decided to deploy the quantum key distribution side channel attack detection method based on federated deep learning proposed in this invention.

[0197] First, Company B deployed side-channel data collection modules at its QKD nodes around the world to monitor and collect timing information, electromagnetic signals, and power consumption data in real time. These data were used as the basis for training and testing deep learning models.

[0198] The security team then initialized convolutional neural network models on each node and trained them locally using the collected side channel data. These models were trained to identify and classify side channel attack patterns, such as timing analysis anomalies and electromagnetic leakage patterns.

[0199] Through the federated learning protocol, the nodes of Company B can securely share updates to model parameters without sharing the original side channel data, thereby protecting data privacy and security. For example, model updates from the Tokyo node are transmitted to the New York and London nodes via an encrypted communication protocol, and vice versa.

[0200] After deploying the model optimized by federated learning, the security team of Company B began to monitor side channel attacks in real time. When the model detects potential attack behavior, the system immediately triggers the preset response measures, such as issuing an alarm or adjusting the key distribution strategy.

[0201] During the three months from October to December 2023, Company B conducted a field test on this new system. The test results show that the specific data is shown in Table 1 below:

[0202] Table 1 The performance differences of the present invention in various indicators before and after deployment

[0203] index Before deployment Post-deployment Side channel attack detection accuracy - 97% Real-time detection response time A few minutes A few seconds Sensitive data leakage incident Undocumented 0 times Number of side channel attack attempts (per month) 32 times Average 2 times System false alarm rate Undocumented Less than 2%

[0204] As can be seen from Table 1 above, in the embodiment, accuracy and efficiency: Compared with the traditional side channel attack detection method, the method of the present invention improves the accuracy of side channel attack detection by about 50%, reaching an accuracy of 97%. The real-time detection response time is reduced from several minutes to several seconds.

[0205] Data privacy and security: Through the federated learning protocol, Company B successfully protected the privacy and security of its side channel data. No sensitive data leakage occurred during the test.

[0206] Adaptability and robustness: During testing, the CNN model of each node was able to quickly adapt to new side-channel attack patterns. For example, when the London node was subjected to an unknown power analysis attack, the model was adjusted and successfully identified the attack through federated learning within 48 hours.

[0207] According to the security team, before the deployment of the method of the present invention, Company B's QKD system was subjected to an average of about 32 suspected side channel attack attempts per month. After deployment, this number dropped significantly to an average of 2 times per month. In addition, the system successfully blocked a complex electromagnetic signal analysis attack in one specific incident, which was intended to steal key information. The system's false alarm rate remained below 2% throughout the test period.

[0208] The present invention combines federated learning and deep learning technologies, especially utilizing the advantages of deep learning models in pattern recognition and anomaly detection, so that the system can effectively identify and classify complex and covert side channel attacks, and can learn attack features from a large amount of complex side channel data, significantly improving the efficiency and accuracy of detection.

[0209] The present invention effectively protects data privacy and security and reduces the transmission and exposure risks of sensitive data by performing local model training on different nodes of the QKD system and sharing model updates rather than original data through a federated learning protocol.

[0210] The present invention utilizes the fast execution capability of the deep learning model after training is completed, making the system suitable for real-time side-channel attack detection. In addition, the real-time update and optimization of the model ensures rapid adaptation and response to new attack patterns, greatly reducing the response time of security incidents.

[0211] The federated learning framework of the present invention enables the system to continuously train and optimize models on data from different nodes, thereby enabling the system to adapt to new attack patterns and strategies. The continuous learning and adaptation process increases the system's robustness against dynamic and evolving threats.

[0212] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A method for detecting side channel attacks in quantum key distribution based on federated deep learning. It is characterized in that The steps include: S1. Collect side channel data of multiple quantum key distribution nodes, including timing information, electromagnetic signals and power consumption data; S2, initializing deep learning models for pattern recognition and anomaly detection on each quantum key distribution node; S3. Use the collected side channel data to train a deep learning model on each quantum key distribution node to identify and classify side channel attack patterns in quantum key distribution; S4. Share the parameter updates of the model among the quantum key distribution nodes through the federated learning protocol, without sharing the original data, and protect data privacy and security through the federated learning protocol; S5. Integrate and optimize the received shared model parameters at each local quantum key distribution node; S6. Run the optimized deep learning model in a real-time environment to perform real-time detection of side-channel attacks.

2. According to claim 1, a method for detecting side channel attacks in quantum key distribution based on federated deep learning, It is characterized in that The S1 specifically includes: S11. Deploy side channel data collection modules on multiple quantum key distribution nodes; S12, collecting timing information data T: T={t 1 ,t 2 ,…,t n }; Among them, t i Represents the time series data at the i-th time point; S13. Collect electromagnetic signal data E: And={and 1 ,And 2 ,…,And n }; Among them, e i represents the electromagnetic signal strength at the i-th time point; S14, record power consumption data P: P={p 1 ,p 2 ,…,p n }; Among them, p i is the power consumption value at the i-th time point; S15. Construct a side channel data set D based on the data obtained above: D={(T,E,P) 1 ,(T,E,P) 2 ,…,(T,E,P) m }。 3. According to claim 2, a method for detecting side channel attacks in quantum key distribution based on federated deep learning, It is characterized in that The S2 specifically includes: S21. Deploy a convolutional neural network model initialization module on each quantum key distribution node; S22, for the selected convolutional neural network, setting the input layer to adapt to the side channel data set D collected from step S1 comprises the following steps: Perform data preprocessing to convert the time series information data T, electromagnetic signal data E, and power consumption data P from time series format into a multidimensional array format suitable for convolutional neural networks: Among them, t k 、e k 、p k Represent the values ​​of timing information, electromagnetic signal and power consumption at the kth time point, respectively. For each data point (T, E, P) i In the data set D, convert it into a three-dimensional array A i , A i Each dimension of corresponds to the time series data of T, E and P respectively. StandardizationA i The data in the array enables the convolutional neural network model to handle input values ​​of different ranges and scales. The standardization process uses Z-score normalization: Among them, μ and σ are A i The mean and standard deviation of all values ​​in . The standardized array A′ i As the input layer data of the convolutional neural network model, the convolutional neural network model receives and processes the side channel data from different quantum key distribution nodes; S23. Configure multiple convolutional layers and pooling layers of the convolutional neural network to extract features of side channel data: For the standardized data A′ i , in each convolutional layer, convolution operation is used to extract the spatial features of the data: Among them, C ij is the output after the convolution operation, the eigenvalue at position (i, j), K is the convolution kernel, size M×N, A′ is the input data, and b is the bias of the convolution layer; The ReLU activation function is used to increase the nonlinearity of the model: R(x)=max(0,x); Where x is the output of the convolutional layer; Use max pooling in the pooling layer to reduce the dimensionality and complexity of the data: Among them, P ij is the feature value at position (i, j) after the pooling operation, and M and N are the sizes of the pooling windows. S24. Use the fully connected layer as the output layer of the convolutional neural network to map features to the side channel attack classification to achieve attack pattern recognition and classification: Set each neuron in the fully connected layer to be connected to all neurons in the previous layer: Where F(x) is the output of the fully connected layer, σ is the softmax activation function, and w k is the weight, x k is the output of the previous layer, b is the bias, and K is the number of neurons in the previous layer; S25. Set the key parameters of the convolutional neural network and initialize the weight W and bias b of the convolutional neural network.

4. According to claim 3, a method for detecting side channel attacks in quantum key distribution based on federated deep learning, It is characterized in that The S3 specifically includes: S31. On each quantum key distribution node, the initialized convolutional neural network model is trained using the side channel data D to identify and classify side channel attacks. S32, marking the data set D into different attack categories, where each category corresponds to a specific side channel attack mode; S33. The convolutional neural network model is trained using a supervised learning method, and the cross entropy loss function L is used to measure the difference between the model prediction results and the actual attack category: Where N is the number of training samples, C is the number of attack categories, and y ic is the true label of the i-th sample belonging to the c-th class, is the probability predicted by the model; S34, updating the model parameters by back propagation algorithm and gradient descent method to minimize the loss function L; S35. During the training process, the test set is regularly used to evaluate the classification performance of the model so that the model can accurately distinguish different types of side channel attacks.

5. According to claim 4, a method for detecting side channel attacks in quantum key distribution based on federated deep learning, It is characterized in that The S4 specifically includes: S41, establish a federated learning protocol F between the nodes to share the updates ΔW and Δb of the model parameters; S42. On each quantum key distribution node, the locally trained convolutional neural network model CNN is local Update the parameters and calculate the change ΔW of weight W and bias b local and Δb local : ΔW local =In after -IN before ; Δb local =b after -b before ; Among them, W after and b after are the weights and biases after training, W before and b before are the weights and biases before training; S43, through a secure communication method, update the parameter amount ΔW of each node local and Δb local Sent to the federated learning server F server ; S44, on the federated learning server F server Aggregate the parameter updates of all participating nodes and calculate the average update ΔW of the global model parameters global and Δb global : Where N is the total number of nodes participating in federated learning, and are the weight and bias updates of the i-th node respectively; S45, update the calculated global parameter ΔW global and Δb global Convolutional neural network model CNN sent to each node local middle; S46, CNN of each node local Update ΔW according to the received global parameters global and Δb global , update the weight W and bias b of the local model to achieve continuous optimization of the model: IN updated =In before +ΔW global ; b updated =b before +Δb global ; Among them, W updated and b updated Represent the updated weights and biases respectively.

6. According to claim 5, a method for detecting side channel attacks in quantum key distribution based on federated deep learning, It is characterized in that The S5 specifically includes: S51. On each quantum key distribution node, receive the server The global model parameter update ΔW global and Δb global ; S52, Convolutional neural network model CNN at each node local In the above example, the received global parameters are updated by ΔW global and Δv global With the current parameters W of the local model local and b local Combined with: IN optimized =In local +α ΔW global ; b optimized =b local +α·Δb global ; Among them, α is the learning rate, which is used to control the influence of global parameter updates on the local model, so that the model can be gradually optimized instead of drastically changed. optimized and b optimized Respectively represent the weight and bias after federated learning optimization; S53. At each node, the optimized model CNN local Conduct local testing to evaluate the accuracy and efficiency of the model in identifying and classifying side-channel attacks; S54. Based on the local test results, the convolutional neural network model CNN on each node local Make fine adjustments; S55, regularly optimize the model parameters W of each node optimized and b optimized Feedback to the federated learning server F server , achieving continuous learning across nodes and further optimization of the model.

7. According to claim 6, a method for detecting side channel attacks in quantum key distribution based on federated deep learning, It is characterized in that The S6 specifically comprises the following steps: S61. Run the convolutional neural network model CNN optimized by federated learning on each quantum key distribution node local Conduct real-time side-channel attack detection; S62. Continuously collect real-time side channel data D real-time , and perform the same preprocessing steps as in S2 on these data to convert them into data suitable for CNN local The format of the input; S63, the pre-processed real-time data D real-time Input to CNN local In the model, the attack prediction results are generated by forward propagation S64, according to Determine whether there is a side channel attack. If the model prediction result exceeds the preset threshold θ, it is determined that a side channel attack has occurred: in, is the probability of the attack predicted by the model, and θ is the preset detection threshold; S65. Once an attack is detected, the preset response measures are immediately triggered; S66. Continuously monitor side channel data and continuously update CNN based on the latest data local state, making the model adaptable to new side-channel attack modes.

Citation Information

Cited By

  • Intelligent potential safety hazard identification and early warning system based on Internet of Things

    CN120639469A

  • Fine-grained security tracking model modeling method and system facing side channel attack

    CN120688100A

  • Federal learning training method based on quantum key distribution

    CN122452820A

  • A federated learning training method based on quantum key distribution

    CN122452820B