Fault injection attack method, device and equipment

The pre-trained deep learning neural network model is used to analyze the characteristics of fault ciphertext, which solves the problem of low efficiency of fault injection attacks in the existing technology and achieves more efficient key recovery and attack efficiency.

CN118709203APending Publication Date: 2024-09-27WUHAN UNIV
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410714535.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

In the existing technology, fault injection attacks rely on complex mathematical theories to construct fault analysis methods. The analysis process has low flexibility and cannot efficiently utilize the information leakage generated by the fault, resulting in low attack efficiency.

Method used

A pre-trained deep learning neural network model is used to inject fault information into the target cryptographic device, extract fault ciphertext features, and use the model to analyze the probability distribution of key candidate values ​​to achieve key recovery.

Benefits of technology

It significantly reduces the time overhead of fault analysis and the number of ciphertext requirements, and improves the efficiency of fault analysis attacks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118709203A
    Figure CN118709203A
Patent Text Reader

Abstract

The invention provides a fault injection attack method, device and equipment, and the method comprises the steps: injecting fault information into target password equipment in a preset mode, so as to enable the target password equipment to have a fault during operation; wherein the target password device is an attacked password device; in response to the obtained fault ciphertext output by the target password device, performing feature extraction on the fault ciphertext to obtain a fault feature matched with the fault ciphertext; inputting the fault features into a pre-training deep learning neural network model to obtain key candidate value probability distribution output by the pre-training deep learning neural network model; and based on the key candidate value probability distribution, executing key recovery to obtain a key for decoding the ciphertext output by the target cryptographic device. By using the fault injection attack method provided by the embodiment of the invention, the fault analysis time overhead and the ciphertext number demand can be reduced to a certain extent, so that the fault analysis attack efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of fault injection attack on hardware information security, and in particular to a fault injection attack method, device, electronic device, non-transitory computer-readable storage medium, and computer program product. Background Art

[0002] Fault Injection Attack (FIA) is a common active attack method in the field of hardware information security. It is widely used in contemporary cryptanalysis due to its powerful attack capability and excellent variability.

[0003] Fault injection attacks include two stages: fault injection and fault analysis. In the fault injection stage, the attacker injects faults into the cryptographic device running the cryptographic algorithm through software and hardware means to disrupt the operation flow or tamper with the memory value. Common fault injection methods may include clock glitches, electromagnetic pulses, and laser irradiation. In the fault analysis stage, the attacker uses the information leakage generated by the device failure to analyze it through mathematical theory and other methods to obtain security information such as the key used by the cryptographic algorithm.

[0004] In the prior art, fault injection attacks mostly rely on mathematical theories to construct fault analysis methods. The analysis process is complex, has low flexibility, and cannot efficiently utilize information leakage caused by faults. Summary of the invention

[0005] The present disclosure provides a fault injection attack method, apparatus, electronic device, non-transitory computer-readable storage medium, and computer program product to address deficiencies in the prior art.

[0006] The present disclosure provides a fault injection attack method, comprising:

[0007] Injecting fault information into a target cryptographic device in a preset manner so that the target cryptographic device fails during operation; wherein the target cryptographic device is the attacked cryptographic device;

[0008] In response to obtaining the fault ciphertext output by the target cryptographic device, extracting features of the fault ciphertext to obtain a fault feature matching the fault ciphertext;

[0009] Inputting the fault feature into a pre-trained deep learning neural network model to obtain a probability distribution of key candidate values ​​output by the pre-trained deep learning neural network model;

[0010] Based on the probability distribution of the key candidate values, key recovery is performed to obtain a key for deciphering the ciphertext output by the target cryptographic device.

[0011] The present disclosure also provides a fault injection attack device, comprising:

[0012] The fault injection module is configured to: inject fault information into a target cryptographic device in a preset manner, so that the target cryptographic device fails during operation; wherein the target cryptographic device is an attacked cryptographic device;

[0013] The feature extraction module is configured to: in response to obtaining the fault ciphertext output by the target cryptographic device, extract features from the fault ciphertext to obtain a fault feature matching the fault ciphertext;

[0014] The analysis and prediction module is configured to: input the fault feature into a pre-trained deep learning neural network model to obtain a probability distribution of key candidate values ​​output by the pre-trained deep learning neural network model;

[0015] The key recovery module is configured to: perform key recovery based on the probability distribution of the key candidate values ​​to obtain a key for deciphering the ciphertext output by the target cryptographic device.

[0016] The present disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the above-mentioned fault injection attack methods is implemented.

[0017] The present disclosure also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the fault injection attack method described in any one of the above is implemented.

[0018] The present disclosure also provides a computer program product, including a computer program, wherein when the computer program is executed by a processor, the fault injection attack method described above is implemented.

[0019] As described above, the fault injection attack method provided in the embodiment of the present disclosure performs key recovery on the target cryptographic device by pre-training a deep learning neural network model (the model is trained using the fault information generated by the cloned device), which can reduce the fault analysis time overhead and the ciphertext quantity required to a certain extent, thereby improving the efficiency of the fault analysis attack. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the present disclosure or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0021] Figure 1It is a flowchart of a fault injection attack method provided by an embodiment of the present disclosure;

[0022] Figure 2 is a schematic diagram of the probability distribution of ciphertext candidate values ​​provided by an embodiment of the present disclosure;

[0023] Figure 3 is a schematic diagram of the structure of the pre-trained deep learning neural network model provided in an embodiment of the present disclosure;

[0024] Figure 4 is a schematic diagram of the training data set provided by an embodiment of the present disclosure;

[0025] Figure 5 is a structural diagram of a fault injection attack device provided by an embodiment of the present disclosure;

[0026] Figure 6 It is a schematic diagram of the structure of an electronic device provided by the present disclosure. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solutions and advantages of the present disclosure clearer, the technical solutions in the present disclosure will be clearly and completely described below in conjunction with the drawings in the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0028] To solve the problems existing in the prior art, the inventors of the present disclosure have proposed a fault injection attack solution as described in the following embodiment after research.

[0029] Example:

[0030] The fault injection attack scheme disclosed in the present invention is described below in conjunction with the accompanying drawings.

[0031] Figure 1 FIG. 1 is a flow chart of a fault injection attack method provided by an exemplary embodiment of the present disclosure. This embodiment can be applied to electronic devices (eg, servers or cloud computing platforms), such as Figure 1 As shown, the fault injection attack method includes the following steps:

[0032] S110: Inject fault information into a target cryptographic device in a preset manner, so that the target cryptographic device fails during operation.

[0033] The target cryptographic device is the attacked cryptographic device.

[0034] The present disclosure does not limit the "preset method", which may include but is not limited to the use of laser, electromagnetic pulse and other means.

[0035] The failure of the target cryptographic device during operation may refer to "disrupting the operation flow or tampering with the memory value, etc." For example, taking the implementation of the Advanced Encryption Standard (AES) cryptographic algorithm as an example, the failure will cause the value of one of the 256 elements of the S-box in the target cryptographic device to be randomly changed to another element value, while the values ​​of the other elements remain unchanged.

[0036] S120 . In response to obtaining the fault ciphertext output by the target cryptographic device, extracting features of the fault ciphertext to obtain a fault feature matching the fault ciphertext.

[0037] Optionally, in step S120, the probability distribution of occurrence of each fault ciphertext candidate value may be calculated as the fault feature.

[0038] Taking the AES cryptographic algorithm implementation as an example, the probability distribution of each ciphertext candidate value extracted can be as follows: Figure 2 As shown, since the AES cryptographic algorithm implements ciphertext in bytes, there are 256 ciphertext candidate values ​​in total, so the fault feature can be composed of a probability distribution consisting of 256 values.

[0039] S130. Input the fault feature into a pre-trained deep learning neural network model to obtain a probability distribution of key candidate values ​​output by the pre-trained deep learning neural network model.

[0040] The pre-trained deep learning neural network model is trained using the fault information generated by the cloned device (after fault injection). The specific training steps and model structure will be described below and will not be repeated here.

[0041] S140. Based on the probability distribution of the key candidate values, perform key recovery to obtain a key for deciphering the ciphertext output by the target cryptographic device.

[0042] As an optional example, the key candidate value corresponding to the maximum probability in the key candidate value probability distribution may be selected as the key for deciphering the ciphertext output by the target cryptographic device.

[0043] As described above, the fault injection attack method provided in the embodiment of the present disclosure performs key recovery on the target cryptographic device by pre-training a deep learning neural network model (the model is trained using the fault information generated by the cloned device), which can reduce the fault analysis time overhead and the ciphertext quantity required to a certain extent, thereby improving the efficiency of the fault analysis attack.

[0044] exist Figure 1 , 2Based on the embodiment, as an optional implementation, the types of the pre-trained deep learning neural network models include convolutional neural networks, multi-layer perceptrons and recurrent neural networks.

[0045] As an alternative example, refer to Figure 3 , when the type of the pre-trained deep learning neural network model is a convolutional neural network, the pre-trained deep learning neural network model includes multiple convolutional layers, multiple pooling layers, at least one flattening layer and at least one fully connected layer.

[0046] Specifically, refer to Figure 3 , the multiple convolutional layers may include at least convolutional layer 1 and convolutional layer 2; the multiple pooling layers may include at least pooling layer 1 and pooling layer 2;

[0047] The input layer, convolution layer 1, pooling layer 1, convolution layer 2, pooling layer 2, flattening layer, fully connected layer and output layer are cascaded in sequence to form the structure of the pre-trained deep learning neural network model.

[0048] exist Figure 1 , 2 Based on the embodiment, as an optional implementation, the training process of the pre-trained deep learning neural network model may include:

[0049] Step 1) Create a training dataset.

[0050] The training data set includes multiple pieces of sample data, and each piece of sample data includes a group of sample feature values ​​and a group of sample key labels corresponding to the group of sample feature values.

[0051] Reference Figure 4 , the data set is the training data set, and the sample is a plurality of sample data (for example, Figure 4 The N items shown in FIG. 1 ), wherein the first sample data includes a set of sample feature values ​​1 (i.e. Figure 4 The characteristic value 1), and a set of sample key labels (i.e. Figure 4 The Nth sample data includes a set of sample feature values ​​N (i.e. Figure 4 The characteristic value N shown), and a set of sample key labels (i.e. Figure 4 Label N shown).

[0052] Among them, the sample characteristic value and the sample key label are determined according to the faulty clone device, and the faulty clone device has the same structure, parameters and functions as the target cryptographic device; the number of the set of sample characteristic values ​​is consistent with the number of the set of sample key labels.

[0053] As an optional example, step 1) may include the following steps:

[0054] Step 11) injecting fault information into the cloned device in a preset manner, so that the cloned device fails during operation.

[0055] It should be noted that the "preset method" here is the same as the "preset method" used when injecting faults into the target cryptographic device. The preset method may include but is not limited to using lasers, electromagnetic pulses and other means.

[0056] Step 12) In response to inputting a plurality of random plaintexts into the cloning device, a fault ciphertext output by the cloning device that matches each of the random plaintexts is obtained.

[0057] Step 13) For each faulty ciphertext, calculate the corresponding probability distribution of the key candidate value, which is recorded as a set of sample feature values.

[0058] Optionally, all search spaces M output by each faulty ciphertext are traversed, and C i represents the i-th candidate value of the faulty ciphertext output, and N represents the total number of faulty ciphertexts collected. Then the distribution of the i-th candidate value of the faulty ciphertext output is Pr(C i ) satisfies the following calculation formula (1):

[0059]

[0060] Step 14) For each fault ciphertext, determine the key used by the clone device when outputting the fault ciphertext, and record it as a set of sample key labels.

[0061] Among them, in the training data set, the sample key labels should involve all key candidates in the key search space.

[0062] Taking the AES cryptographic algorithm implementation as an example, the fault ciphertext and key are both in bytes, so a set of feature values ​​has 256 feature points and there are 256 possibilities for key labels. The training data set should make all key labels appear with equal probability as much as possible.

[0063] Step 2) inputting the plurality of sample data into the deep learning neural network model to be trained, and obtaining a probability distribution prediction value of the key candidate value output by the deep learning neural network model to be trained;

[0064] Step 3) Based on the predicted value of the probability distribution of the key candidate value, determine the guess entropy of the deep learning neural network model to be trained.

[0065] In step 3), optionally, firstly, based on the predicted value of the probability distribution of the key candidate value, all the key candidate values ​​k in the key search space K are determined; then, in the training data set Calculate all likelihood scores for the key candidate value k Then all likelihood scores are sorted; finally, the guess entropy can be determined using the following calculation formula (2).

[0066]

[0067] Wherein, GE represents the guess entropy; the representation meaning of calculation formula (2) is the correct key candidate value k * The smaller the guess entropy, the better the attack effect of the deep learning neural network model to be trained, and vice versa.

[0068] Step 4) Using a preset loss function, based on the guessed entropy, obtain a function value of the preset loss function.

[0069] Optionally, the preset loss function is characterized by: calculating the difference between the guessed entropy and the expected guessed entropy threshold.

[0070] Step 5) Based on the function value of the preset loss function, the deep learning neural network model to be trained is trained until the preset training completion condition is met, and the pre-trained deep learning neural network model is obtained from the deep learning neural network model to be trained.

[0071] Among them, the preset training completion condition is that the number of training iterations is greater than a preset iteration number threshold, or the guessed entropy is less than an expected guessed entropy threshold, that is, the function value of the preset loss function converges.

[0072] In step 5), the following steps may be included:

[0073] Step 51) transmitting the function value of the preset loss function back to the deep learning neural network model to be trained;

[0074] Step 52) the deep learning neural network model to be trained adjusts the network parameters of each network layer according to the function value of the preset loss function;

[0075] Step 53) Iterate the steps of obtaining the function value of the preset loss function (ie, step 4) to adjusting the network parameters of each network layer (ie, step 52) until the preset training completion condition is met.

[0076] exist Figure 1 , 2 Based on the embodiment, as an optional implementation method, the training data set can also be divided into a training subset and a validation subset, wherein the training subset can be used to adopt the above steps 1) to 5) to train the deep learning neural network model to be trained to obtain a preliminary model; and the validation subset can be used to further verify and optimize the preliminary model.

[0077] Specifically, the preliminary model can be verified based on the verification subset in accordance with the above steps 2) to 5); when it is determined that the preliminary model does not converge to the function value of the preset loss function on the verification subset, the step of obtaining the function value of the preset loss function (i.e., step 4) to the step of adjusting the network parameters of each network layer (i.e., step 52) are iteratively executed until the preset training completion conditions are met, thereby optimizing the preliminary model.

[0078] As described above, the fault injection attack method provided in the embodiment of the present disclosure performs key recovery on the target cryptographic device by pre-training a deep learning neural network model (the model is trained using the fault information generated by the cloned device), which can reduce the fault analysis time overhead and the ciphertext quantity required to a certain extent, thereby improving the efficiency of the fault analysis attack.

[0079] The fault injection attack device provided by the present disclosure is described below. The fault injection attack device described below and the fault injection attack method described above can be referenced to each other.

[0080] Figure 5 FIG. 1 is a schematic diagram of a fault injection attack device provided by an exemplary embodiment of the present disclosure. Figure 5 As shown, the fault injection attack device includes:

[0081] The fault injection module 510 is configured to: inject fault information into a target cryptographic device in a preset manner, so that the target cryptographic device fails during operation; wherein the target cryptographic device is an attacked cryptographic device;

[0082] The feature extraction module 520 is configured to: in response to obtaining the fault ciphertext output by the target cryptographic device, extract features from the fault ciphertext to obtain a fault feature matching the fault ciphertext;

[0083] The analysis and prediction module 530 is configured to: input the fault feature into a pre-trained deep learning neural network model to obtain a probability distribution of key candidate values ​​output by the pre-trained deep learning neural network model;

[0084] The key recovery module 540 is configured to: perform key recovery based on the probability distribution of the key candidate values ​​to obtain a key for deciphering the ciphertext output by the target cryptographic device.

[0085] Figure 6 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 6As shown, the electronic device may include: a processor 610, a communication interface 620, a memory 630 and a communication bus 640, wherein the processor 610, the communication interface 620 and the memory 630 communicate with each other through the communication bus 640. The processor 610 may call the logic instructions in the memory 630 to execute the fault injection attack method, which includes: injecting fault information into the target cryptographic device in a preset manner so that the target cryptographic device fails during operation; wherein the target cryptographic device is the attacked cryptographic device; in response to obtaining the fault ciphertext output by the target cryptographic device, extracting features from the fault ciphertext to obtain fault features matching the fault ciphertext; inputting the fault features into a pre-trained deep learning neural network model to obtain a probability distribution of a key candidate value output by the pre-trained deep learning neural network model; based on the key candidate value probability distribution, performing key recovery to obtain a key for deciphering the ciphertext output by the target cryptographic device.

[0086] In addition, the logic instructions in the above-mentioned memory 630 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present disclosure is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0087] On the other hand, the present disclosure also provides a computer program product, which includes a computer program, and the computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the fault injection attack method provided by the above methods, and the method includes: injecting fault information into a target cryptographic device in a preset manner so that the target cryptographic device fails during operation; wherein the target cryptographic device is the attacked cryptographic device; in response to obtaining a fault ciphertext output by the target cryptographic device, extracting features of the fault ciphertext to obtain a fault feature that matches the fault ciphertext; inputting the fault feature into a pre-trained deep learning neural network model to obtain a probability distribution of key candidate values ​​output by the pre-trained deep learning neural network model; based on the key candidate value probability distribution, performing key recovery to obtain a key for deciphering the ciphertext output by the target cryptographic device.

[0088] On the other hand, the present disclosure also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the fault injection attack method provided by the above-mentioned methods, the method comprising: injecting fault information into a target cryptographic device in a preset manner so that the target cryptographic device fails during operation; wherein the target cryptographic device is the attacked cryptographic device; in response to obtaining a fault ciphertext output by the target cryptographic device, performing feature extraction on the fault ciphertext to obtain a fault feature matching the fault ciphertext; inputting the fault feature into a pre-trained deep learning neural network model to obtain a probability distribution of key candidate values ​​output by the pre-trained deep learning neural network model; based on the key candidate value probability distribution, performing key recovery to obtain a key for deciphering the ciphertext output by the target cryptographic device.

[0089] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.

[0090] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0091] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present disclosure, rather than to limit them. Although the present disclosure has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present disclosure.

Claims

1. A fault injection attack method, include: Injecting fault information into a target cryptographic device in a preset manner so that the target cryptographic device fails during operation; wherein the target cryptographic device is the attacked cryptographic device; In response to obtaining the fault ciphertext output by the target cryptographic device, extracting features of the fault ciphertext to obtain a fault feature matching the fault ciphertext; Inputting the fault feature into a pre-trained deep learning neural network model to obtain a probability distribution of key candidate values ​​output by the pre-trained deep learning neural network model; Based on the probability distribution of the key candidate values, key recovery is performed to obtain a key for deciphering the ciphertext output by the target cryptographic device.

2. The fault injection attack method according to claim 1, It is characterized in that The types of pre-trained deep learning neural network models include convolutional neural networks, multi-layer perceptrons, and recurrent neural networks.

3. The fault injection attack method according to claim 2, It is characterized in that When the type of the pre-trained deep learning neural network model is a convolutional neural network, the pre-trained deep learning neural network model includes multiple convolutional layers, multiple pooling layers, at least one flattening layer and at least one fully connected layer.

4. The fault injection attack method according to claim 2 or 3, It is characterized in that The training process of the pre-trained deep learning neural network model includes: Step 1) Create a training data set; The training data set includes a plurality of sample data, each of which includes a set of sample feature values ​​and a set of sample key labels corresponding to the set of sample feature values; the sample feature values ​​and the sample key labels are determined according to a faulty clone device, and the faulty clone device has the same structure, parameters and functions as the target cryptographic device; the number of the set of sample feature values ​​is consistent with the number of the set of sample key labels; Step 2) inputting the plurality of sample data into the deep learning neural network model to be trained, and obtaining a probability distribution prediction value of the key candidate value output by the deep learning neural network model to be trained; Step 3) determining the guess entropy of the deep learning neural network model to be trained based on the predicted value of the probability distribution of the key candidate value; Step 4) using a preset loss function, based on the guessed entropy, to obtain a function value of the preset loss function; Step 5) Based on the function value of the preset loss function, the deep learning neural network model to be trained is trained until a preset training completion condition is met, and the pre-trained deep learning neural network model is obtained from the deep learning neural network model to be trained; The preset training completion condition is that the number of training iterations is greater than a preset iteration number threshold, or the guessed entropy is less than an expected guessed entropy threshold.

5. The fault injection attack method according to claim 4, It is characterized in that Based on the function value of the preset loss function, the deep learning neural network model to be trained is trained until a preset training completion condition is met, including: Passing back the function value of the preset loss function to the deep learning neural network model to be trained; The deep learning neural network model to be trained adjusts the network parameters of each network layer according to the function value of the preset loss function; Iterate the steps of obtaining the function value of the preset loss function to adjusting the network parameters of each network layer until a preset training completion condition is met.

6. The fault injection attack method according to claim 4, It is characterized in that The preset loss function is characterized by calculating the difference between the guess entropy and the expected guess entropy threshold.

7. The fault injection attack method according to claim 4, It is characterized in that The creating of the training data set comprises: Injecting fault information into the cloned device in a preset manner so that the cloned device fails during operation; In response to inputting a plurality of random plaintexts into the cloning device, obtaining a fault ciphertext output by the cloning device that matches each of the random plaintexts; For each faulty ciphertext, calculate the corresponding probability distribution of the key candidate value and record it as a set of sample feature values; For each fault ciphertext, a key used by the clone device when outputting the fault ciphertext is determined, and recorded as a set of sample key labels.

8. The fault injection attack method according to claim 1, It is characterized in that In response to obtaining the fault ciphertext output by the target cryptographic device, extracting features of the fault ciphertext to obtain a fault feature matching the fault ciphertext includes: The probability distribution of each fault ciphertext candidate value is calculated as the fault feature.

9. A fault injection attack device, include: The fault injection module is configured to: inject fault information into a target cryptographic device in a preset manner, so that the target cryptographic device fails during operation; wherein the target cryptographic device is an attacked cryptographic device; The feature extraction module is configured to: in response to obtaining the fault ciphertext output by the target cryptographic device, extract features from the fault ciphertext to obtain a fault feature matching the fault ciphertext; The analysis and prediction module is configured to: input the fault feature into a pre-trained deep learning neural network model to obtain a probability distribution of key candidate values ​​output by the pre-trained deep learning neural network model; The key recovery module is configured to: perform key recovery based on the probability distribution of the key candidate values ​​to obtain a key for deciphering the ciphertext output by the target cryptographic device.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the fault injection attack method according to any one of claims 1 to 8 is implemented.

Citation Information

Cited By

  • Fault simulation method, fault simulation device, equipment, storage medium and product

    CN120455296A