A method and system for identifying and analyzing side channel attacks on cryptographic chips

Through real-time monitoring and analysis of the electromagnetic radiation fluctuations of the cryptographic chip, combined with historical database comparison, abnormal behaviors are identified, solving the problem of difficulty in early detection of side-channel attacks in the existing technology, and improving the security of the cryptographic chip and the reliability of the overall system. Defense capabilities.

CN118194368BActive Publication Date: 2024-10-29CHINA ELECTRONICS CORP 6TH RES INST
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410151651.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-02
Publication Date
2024-10-29
Estimated Expiration
2044-02-02

AI Technical Summary

Technical Problem

Existing technology is difficult to accurately and quickly identify and warn of side channel attacks, especially in the leakage of electromagnetic radiation information from cryptographic chips, making it difficult to detect and defend security threats early.

Method used

By obtaining the operating behavior information of the cryptographic chip, including task execution behavior and electromagnetic radiation fluctuation range, a historical abnormal side channel attack behavior database is constructed, real-time monitoring and analysis of electromagnetic radiation fluctuations is performed, and abnormality determination is made based on the log data identification model, and compared with the historical database. Comparison confirms that electromagnetic radiation anomalies induce fluctuations.

Benefits of technology

It achieves effective identification and analysis of side-channel attacks on cryptographic chips, improves security, discovers and defends against potential security threats in advance, and ensures the overall security of cryptographic chips and their systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118194368B_ABST
    Figure CN118194368B_ABST
Patent Text Reader

Abstract

The present application provides a method and system for identifying and analyzing side channel attacks on cryptographic chips; wherein the method includes: obtaining the operating behavior information of the target cryptographic chip; initialization, identifying the task execution behavior log data based on the task execution behavior of the cryptographic chip, and determining whether the task execution behavior of the current cryptographic chip is abnormal; if it is initially determined to be abnormal, obtaining the identified task execution behavior of the current cryptographic chip and the corresponding electromagnetic radiation fluctuation range of the task execution behavior in real time; searching the historical abnormal side channel attack behavior database based on the electromagnetic radiation fluctuation range of the task execution behavior; through the implementation of the above steps, effective identification and analysis of the side channel attack on the cryptographic chip can be achieved. This not only improves the security of the cryptographic chip, but also helps to discover and defend against potential security threats in advance, thereby ensuring the overall security of the cryptographic chip and its system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information security detection technology, and in particular to a method and system for identifying and analyzing side-channel attacks on cryptographic chips. Background Art

[0002] A side channel attack is an attack mode that uses information signals inadvertently released by computers (such as electromagnetic radiation and the sound of computer hardware running) to decipher information.

[0003] Side channel attacks on cryptographic chips are an attack method against cryptographic hardware devices. Instead of directly attacking the logic or mathematical structure of the algorithm, it uses information leakage during the physical implementation process to obtain key information. This type of information leakage is usually caused by hardware when performing cryptographic operations, and generally includes the following forms:

[0004] The first form is power analysis: By measuring and analyzing the power consumption of a cryptographic device during operation, an attacker can infer the data the device is processing or the operations it is performing. Power analysis can be subdivided into simple power analysis (SPA) and differential power analysis (DPA).

[0005] The second form of electromagnetic leakage (Electromagnetic Emissions): Cryptographic devices generate electromagnetic radiation when running, which may contain information about the execution process. By analyzing these electromagnetic leakages, attackers may be able to obtain encryption keys or other sensitive information.

[0006] The third form of timing analysis: By measuring the execution time of cryptographic operations, attackers may find the relationship between execution time and processed data, and then infer key information.

[0007] Therefore, preventing side-channel attacks is a necessary detection procedure for modern information security equipment. How to accurately and quickly warn and identify side-channel attack behaviors is an urgent problem that technical personnel in this field need to solve.

[0008] Application Contents

[0009] The present application provides a cryptographic chip side channel attack identification and analysis method and system to solve the existing defects in the background technology.

[0010] To solve the above problems, according to the first aspect of the present application, the present application provides a cryptographic chip side channel attack identification and analysis method, comprising:

[0011] Obtaining operation behavior information of a target cryptographic chip, wherein the operation behavior information includes task execution behavior of the cryptographic chip and electromagnetic radiation fluctuation range of the task execution behavior;

[0012] Initialization, performing task execution behavior log data identification based on the task execution behavior of the cryptographic chip, and determining whether the task execution behavior of the current cryptographic chip is abnormal;

[0013] If it is initially determined to be abnormal, the task execution behavior of the current cryptographic chip and the corresponding electromagnetic radiation fluctuation range of the task execution behavior are obtained in real time;

[0014] A historical abnormal side channel attack behavior database is searched based on the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the cryptographic chip; if the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the currently identified cryptographic chip is retrieved and the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of a typical abnormal cryptographic chip in the historical abnormal side channel attack behavior database is within a preset threshold range, it is confirmed that the current cryptographic chip has abnormal electromagnetic radiation induced fluctuations.

[0015] Preferably, as an implementable solution; the task execution behavior log data includes the behavior log data generated when each task is executed; the behavior log data includes the task timestamp, task identifier, task execution instruction, and task exception call response information.

[0016] Preferably, as an implementable scheme, before obtaining the operating behavior information of the target cryptographic chip, it also includes pre-building a historical abnormal side channel attack behavior database.

[0017] Preferably, as an implementable implementation, the task execution behavior log data identification based on the task execution behavior of the cryptographic chip and the determination of whether the task execution behavior of the current cryptographic chip is abnormal include:

[0018] Acquire a pre-built first behavior recognition model, wherein the first behavior recognition model acquires the currently executed task and acquires the behavior log data of the current task; and uses the behavior log data of the current task as input of the first behavior recognition model;

[0019] The first behavior recognition model recognizes the behavior log data of the current task of the current cryptographic chip, and the first behavior recognition model outputs the behavior determination label and probability value of the task execution behavior of the current cryptographic chip;

[0020] Based on the behavior judgment label and probability value, output whether the task execution behavior of the current cryptographic chip is abnormal.

[0021] Preferably, as an implementable solution, the output of whether the task execution behavior of the current cryptographic chip is abnormal based on the behavior determination label and probability value specifically includes:

[0022] If the behavior determination label of the task execution behavior of the current cryptographic chip is determined to be a normal task call behavior, then the task execution behavior of the current cryptographic chip is output to be normal;

[0023] If the behavior determination label of the task execution behavior of the current cryptographic chip is determined to be an abnormal task call behavior, then continue to determine the probability value corresponding to the current behavior determination label. If the probability value is greater than the standard probability value, then the task execution behavior of the current cryptographic chip is output to be abnormal. If the probability value is less than or equal to the standard probability value, then the task execution behavior of the current cryptographic chip is output to be normal.

[0024] Preferably, as an implementable scheme; if the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the currently identified cryptographic chip is retrieved and the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the typical abnormal cryptographic chip in the historical abnormal side channel attack behavior database is within the preset threshold range, it is confirmed that the current cryptographic chip has abnormal electromagnetic radiation induced fluctuations, including the following steps:

[0025] The historical abnormal side channel attack behavior database pre-stores the electromagnetic radiation fluctuation ranges of task execution behaviors corresponding to the task execution behaviors of multiple typical abnormal cryptographic chips; the historical abnormal side channel attack behavior database also stores the normal electromagnetic radiation fluctuation range of task execution behaviors corresponding to each cryptographic chip when performing any "task execution behavior";

[0026] After the initial detection finds that the task execution behavior of the current cryptographic chip is abnormal, the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the current cryptographic chip is obtained; the former is compared with the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of a typical abnormal cryptographic chip. If the detection finds that: the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the current cryptographic chip exceeds the normal electromagnetic radiation fluctuation range of the cryptographic chip in the corresponding task execution behavior, and the error between the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the current cryptographic chip and the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the typical abnormal cryptographic chip is within the preset threshold range, then it is confirmed that the current cryptographic chip has abnormal electromagnetic radiation induced fluctuations.

[0027] The present invention provides a cryptographic chip side channel attack identification and analysis system, comprising an acquisition module, a first model identification module, an electromagnetic radiation detection module and a secondary identification module;

[0028] An acquisition module is used to obtain the operation behavior information of the target cryptographic chip, wherein the operation behavior information includes the task execution behavior of the cryptographic chip and the electromagnetic radiation fluctuation range of the task execution behavior;

[0029] A first model recognition module is used to identify task execution behavior log data based on the task execution behavior of the cryptographic chip, and determine whether the task execution behavior of the current cryptographic chip is abnormal;

[0030] The electromagnetic radiation detection module is used to obtain the task execution behavior of the current cryptographic chip and the corresponding electromagnetic radiation fluctuation range of the task execution behavior in real time if it is initially determined to be abnormal;

[0031] A secondary identification module is used to search the historical abnormal side-channel attack behavior database based on the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the cryptographic chip; if the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the currently identified cryptographic chip is retrieved and the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the typical abnormal cryptographic chip in the historical abnormal side-channel attack behavior database is within a preset threshold range, it is confirmed that the current cryptographic chip has abnormal electromagnetic radiation induced fluctuations.

[0032] Preferably, as an implementable embodiment, the first model recognition module further includes a processing unit, a recognition unit and an output unit:

[0033] A processing unit, configured to obtain a pre-built first behavior recognition model, wherein the first behavior recognition model obtains a currently executed task and obtains behavior log data of the current task; and uses the behavior log data of the current task as an input of the first behavior recognition model;

[0034] An identification unit, used for a first behavior identification model to identify the behavior log data of the current task of the current cryptographic chip, and the first behavior identification model outputs a behavior determination label and a probability value of the task execution behavior of the current cryptographic chip;

[0035] The output unit is used to output whether the task execution behavior of the current cryptographic chip is abnormal based on the behavior judgment label and the probability value.

[0036] Preferably, as an implementable embodiment, the output unit includes a first judgment subunit and a second judgment subunit:

[0037] The first judgment subunit is used for outputting that the task execution behavior of the current cryptographic chip is normal if the behavior judgment label of the task execution behavior of the current cryptographic chip is determined to be a normal task calling behavior;

[0038] The second judgment sub-unit is used to continue to judge the probability value corresponding to the current behavior judgment label if the behavior judgment label of the task execution behavior of the current cryptographic chip is an abnormal task calling behavior. If the probability value is greater than the standard probability value, the task execution behavior of the current cryptographic chip is output as abnormal; if the probability value is less than or equal to the standard probability value, the task execution behavior of the current cryptographic chip is output as normal.

[0039] Preferably, as an implementable embodiment, the secondary recognition module includes a first recognition unit and a second recognition unit:

[0040] The first identification unit is used to pre-store the electromagnetic radiation fluctuation ranges of task execution behaviors corresponding to the task execution behaviors of multiple typical abnormal cryptographic chips; and also store the normal electromagnetic radiation fluctuation range of task execution behaviors corresponding to each cryptographic chip when performing any "task execution behavior";

[0041] The second identification unit is used to obtain the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the current cryptographic chip after the initial detection finds that the task execution behavior of the current cryptographic chip is abnormal; and compare the former with the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the typical abnormal cryptographic chip. If the detection finds that: the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the current cryptographic chip exceeds the normal electromagnetic radiation fluctuation range of the cryptographic chip in the corresponding task execution behavior, and the error between the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the current cryptographic chip and the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the typical abnormal cryptographic chip is within the preset threshold range, then it is confirmed that the current cryptographic chip has abnormal electromagnetic radiation induced fluctuations.

[0042] Compared with the prior art, the technical solution adopted in the embodiment of the present application has at least the following technical effects:

[0043] In summary, the above technical solutions of the present application provide a method and system for identifying and analyzing side-channel attacks on cryptographic chips, wherein the method includes: obtaining the operating behavior information of the target cryptographic chip, the operating behavior information including the task execution behavior of the cryptographic chip and the electromagnetic radiation fluctuation range of the task execution behavior; initialization, performing task execution behavior log data identification based on the task execution behavior of the cryptographic chip, and determining whether the task execution behavior of the current cryptographic chip is abnormal; if it is initially determined to be abnormal, obtaining the identified task execution behavior of the current cryptographic chip and the corresponding electromagnetic radiation fluctuation range of the task execution behavior in real time; searching a database of historical abnormal side-channel attack behaviors based on the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the cryptographic chip; if the error between the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the currently identified cryptographic chip and the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the typical abnormal cryptographic chip in the historical abnormal side-channel attack behavior database is within a preset threshold range, it is confirmed that the current cryptographic chip has abnormal electromagnetic radiation induced fluctuations.

[0044] Analysis of the above technical solutions shows that: first, the operation behavior information is obtained: by real-time monitoring of the operation behavior information of the cryptographic chip, including task execution behavior and log data, abnormal operation modes can be identified immediately, providing the possibility for early detection of potential security threats.

[0045] Further analysis is then conducted; by analyzing the electromagnetic radiation fluctuations generated by the cryptographic chip when performing tasks, combined with the retrieval of the historical abnormal side channel attack behavior database, side channel attacks can be effectively detected. In particular, by monitoring abnormal changes in the electromagnetic radiation spectrum, attack behaviors that are different from normal operating modes can be identified.

[0046] In this way, log data identification and abnormality judgment: By analyzing the task execution behavior log data of the cryptographic chip and combining it with the real-time acquisition of the electromagnetic radiation fluctuation range, abnormal behaviors that do not conform to the normal operation mode can be effectively identified. This identification is based on a deep understanding of the cryptographic chip and the analysis of historical data, which improves the accuracy of abnormal behavior identification. Through the implementation of the above steps, effective identification and analysis of side channel attacks on cryptographic chips can be achieved. This not only improves the security of the cryptographic chip, but also helps to discover and defend against potential security threats in advance, thereby ensuring the overall security of the cryptographic chip and the system in which it is located. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the embodiments of the present application or the technical solutions in 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 only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying any creative work.

[0048] Figure 1 It is a flow chart of a cryptographic chip side channel attack identification and analysis method provided in an embodiment of the present application;

[0049] Figure 2 It is a specific flow chart of a cryptographic chip side channel attack identification and analysis method provided in an embodiment of the present application;

[0050] Figure 3 It is another specific flow chart of a cryptographic chip side channel attack identification and analysis method provided by an embodiment of the present application;

[0051] Figure 4 This is another specific flow chart of a cryptographic chip side channel attack identification and analysis method provided in an embodiment of the present application;

[0052] Figure 5 It is a structural diagram of the cryptographic chip side channel attack identification and analysis system provided in an embodiment of the present application.

[0053] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0054] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0055] The present invention is further described in detail below through specific embodiments in conjunction with the accompanying drawings.

[0056] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0057] See also Figure 1 , Figure 1 A flowchart of a cryptographic chip side channel attack identification and analysis method provided in this application. Figure 1 As shown, the cryptographic chip side channel attack identification and analysis method includes:

[0058] S1. Obtaining the operation behavior information of the target cryptographic chip, wherein the operation behavior information includes the task execution behavior of the cryptographic chip and the electromagnetic radiation fluctuation range of the task execution behavior;

[0059] S2, initialization, performing task execution behavior log data identification based on the task execution behavior of the cryptographic chip, and determining whether the task execution behavior of the current cryptographic chip is abnormal;

[0060] S3. If the initial determination is abnormal, the task execution behavior of the current cryptographic chip and the corresponding electromagnetic radiation fluctuation range of the task execution behavior are obtained in real time; for example, a cryptographic chip A performs a task execution behavior recorded as a, and the task execution behavior executed at this time corresponds to the electromagnetic radiation fluctuation range of the task execution behavior recorded as Aaf, where the numerical unit of Aaf is watts per square meter (W / m 2 );

[0061] S4, searching the historical abnormal side channel attack behavior database based on the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the cryptographic chip; if the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the currently identified cryptographic chip is found to be within a preset threshold range from the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of a typical abnormal cryptographic chip in the historical abnormal side channel attack behavior database, it is confirmed that the current cryptographic chip has abnormal electromagnetic radiation induced fluctuations;

[0062] First, obtain the operating behavior information: by real-time monitoring of the operating behavior information of the cryptographic chip, including task execution behavior and log data, abnormal operating modes can be identified immediately, providing the possibility for early detection of potential security threats.

[0063] Further analysis is then conducted; by analyzing the electromagnetic radiation fluctuations generated by the cryptographic chip when performing tasks, combined with the retrieval of the historical abnormal side channel attack behavior database, side channel attacks can be effectively detected. In particular, by monitoring abnormal changes in the electromagnetic radiation spectrum, attack behaviors that are different from normal operating modes can be identified.

[0064] In this way, log data identification and abnormality judgment: By analyzing the task execution behavior log data of the cryptographic chip and combining it with the real-time acquisition of the electromagnetic radiation fluctuation range, abnormal behaviors that do not conform to the normal operation mode can be effectively identified. This identification is based on a deep understanding of the cryptographic chip and the analysis of historical data, which improves the accuracy of abnormal behavior identification. Through the implementation of the above steps, effective identification and analysis of side channel attacks on cryptographic chips can be achieved. This not only improves the security of the cryptographic chip, but also helps to discover and defend against potential security threats in advance, thereby ensuring the overall security of the cryptographic chip and the system in which it is located.

[0065] This method has important technical effects on strengthening the security protection of cryptographic systems and improving the ability of cryptographic chips to resist side-channel attacks.

[0066] It should be noted that side channel attacks may cause the device to generate abnormal electromagnetic radiation spectrum. This is because when conducting electromagnetic radiation monitoring, it is necessary to use related equipment to conduct induction tests to affect the cryptographic chip, which will cause the electromagnetic radiation spectrum of the cryptographic chip to be abnormal during some periods of time;

[0067] The embodiment of the present application can be designed with the following detection method, which is to first detect abnormal behavior, and then after determining it as abnormal behavior, compare and detect the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of a typical abnormal cryptographic chip with the normal range.

[0068] During this process, a spectrum analyzer is needed to monitor and compare normal operating modes and abnormal behaviors. The presence of abnormal frequencies may indicate a side channel attack. Radiation intensity changes: The intensity of electromagnetic radiation during an attack may vary. Monitoring these changes can help detect potential attacks.

[0069] Preferably, as an implementable solution; the task execution behavior log data includes the behavior log data generated when each task is executed; the behavior log data includes the task timestamp, task identifier, task execution instruction, and task exception call response information.

[0070] It should be noted that the task execution behavior log data includes the behavior log data generated by the cryptographic chip when executing various tasks. These data may include timestamps, task identifiers, execution instructions, task abnormal call response information, etc.

[0071] Preferably, as an implementable scheme, before obtaining the operating behavior information of the target cryptographic chip, it also includes pre-building a historical abnormal side channel attack behavior database.

[0072] See also Figure 2 The task execution behavior log data identification based on the task execution behavior of the cryptographic chip and the determination of whether the task execution behavior of the current cryptographic chip is abnormal include:

[0073] S21, obtaining a pre-built first behavior recognition model, wherein the first behavior recognition model obtains the currently executed task and obtains the behavior log data of the current task; and uses the behavior log data of the current task as input of the first behavior recognition model;

[0074] S22, the first behavior recognition model recognizes the behavior log data of the current task of the current cryptographic chip, and the first behavior recognition model outputs the behavior determination label and probability value of the task execution behavior of the current cryptographic chip;

[0075] S23. Output whether the task execution behavior of the current cryptographic chip is abnormal based on the behavior determination label and probability value.

[0076] The trained model (first behavior recognition model) is used to evaluate the new task execution behavior log data to determine whether there is abnormal behavior.

[0077] It should be noted that the first behavior recognition model is a deep learning behavior determination model, which can output the task execution behavior type of the current cryptographic chip and the probability value corresponding to the task execution behavior type of the cryptographic chip; that is, the output behavior determination label and probability value, the detected information is log data, and finally only a preliminary determination result is obtained, and whether the result is a side channel attack behavior needs to be further determined, so it is also necessary to execute step S3 "identification of the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the typical abnormal cryptographic chip";

[0078] In this process, how to detect and find that the task execution behavior of the current cryptographic chip corresponds to the electromagnetic radiation fluctuation range of the task execution behavior, and the error of the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the typical abnormal cryptographic chip in the database is very small, then it means that the task execution behavior of the current cryptographic chip corresponds to the electromagnetic radiation fluctuation range of the task execution behavior, and it can be determined that the cryptographic chip has abnormal electromagnetic radiation induced fluctuations (this is a secondary judgment operation, and the judgment processing program can further determine that the cryptographic chip has abnormal electromagnetic radiation induced fluctuations).

[0079] See also Figure 3 The output of whether the task execution behavior of the current cryptographic chip is abnormal based on the behavior determination label and probability value specifically includes:

[0080] S231, if the behavior determination label of the task execution behavior of the current cryptographic chip is determined to be a normal task calling behavior, outputting that the task execution behavior of the current cryptographic chip is normal;

[0081] S232, if the behavior determination label of the task execution behavior of the current cryptographic chip is determined to be an abnormal task call behavior, then continue to determine the probability value corresponding to the current behavior determination label, if the probability value is greater than the standard probability value, then output that the task execution behavior of the current cryptographic chip is abnormal (when the abnormal score output by the model exceeds the standard probability value, it is determined to be an abnormal behavior), if the probability value is less than or equal to the standard probability value, then output that the task execution behavior of the current cryptographic chip is normal;

[0082] See also Figure 4 If the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the currently identified cryptographic chip is found to be within a preset threshold range, then it is confirmed that the current cryptographic chip has electromagnetic radiation abnormality induced fluctuations, including the following steps:

[0083] S31. The historical abnormal side channel attack behavior database pre-stores the electromagnetic radiation fluctuation ranges of task execution behaviors corresponding to the task execution behaviors of multiple typical abnormal cryptographic chips; the historical abnormal side channel attack behavior database also stores the normal electromagnetic radiation fluctuation range of task execution behaviors corresponding to each cryptographic chip when performing any "task execution behavior";

[0084] S32. After the initial detection finds that the task execution behavior of the current cryptographic chip is abnormal, obtain the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the current cryptographic chip; compare the former with the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of a typical abnormal cryptographic chip. If the detection finds that: the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the current cryptographic chip exceeds the normal electromagnetic radiation fluctuation range of the cryptographic chip in the corresponding task execution behavior, and the error between the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the current cryptographic chip and the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the typical abnormal cryptographic chip is within the preset threshold range, then it is confirmed that the current cryptographic chip has abnormal electromagnetic radiation induced fluctuations.

[0085] By comparing the normal and abnormal electromagnetic radiation fluctuation ranges stored in the historical database, this method can identify with high precision whether the current behavior of the cryptographic chip is abnormal. This can greatly improve the accuracy of side channel attack detection and reduce false positives and false negatives. By storing and analyzing the normal electromagnetic radiation fluctuation range of each cryptographic chip under different task execution behaviors, this method can make more detailed adjustments to the security protection of the cryptographic chip and enhance the protection of specific tasks or operations in a targeted manner.

[0086] The researchers believe that the establishment and use of the historical abnormal side-channel attack behavior database not only provides rich reference data for current security analysis, but also accumulates valuable information for future security research and strategy adjustments, which will help to continuously improve the security performance of cryptographic chips.

[0087] In summary, the cryptographic chip side-channel attack identification and analysis method achieves high-precision detection and real-time response to cryptographic chip side-channel attacks through detailed electromagnetic radiation fluctuation analysis and historical data comparison, significantly improving the security protection capability of the cryptographic chip.

[0088] In addition, based on the same concept of the above-mentioned method embodiment, the embodiment of the present application also provides a cryptographic chip side-channel attack identification and analysis system for implementing the above-mentioned method of the present application. Since the principles and methods of solving the problems in the system embodiment are similar, it has at least all the beneficial effects brought by the technical solutions of the above-mentioned embodiments, which will not be repeated here one by one.

[0089] Embodiment 2

[0090] See also Figure 5 , Embodiment 2 of the present invention provides a cryptographic chip side channel attack identification and analysis system, including an acquisition module 10, a first model identification module 20, an electromagnetic radiation detection module 30 and a secondary identification module 40;

[0091] The acquisition module 10 is used to obtain the operation behavior information of the target cryptographic chip, wherein the operation behavior information includes the task execution behavior of the cryptographic chip and the electromagnetic radiation fluctuation range of the task execution behavior;

[0092] The first model identification module 20 is used to identify the task execution behavior log data based on the task execution behavior of the cryptographic chip, and determine whether the task execution behavior of the current cryptographic chip is abnormal;

[0093] The electromagnetic radiation detection module 30 is used to obtain the task execution behavior of the current cryptographic chip and the corresponding electromagnetic radiation fluctuation range of the task execution behavior in real time if it is initially determined to be abnormal;

[0094] The secondary identification module 40 is used to search the historical abnormal side channel attack behavior database based on the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the cryptographic chip; if the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the currently identified cryptographic chip is retrieved and the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the typical abnormal cryptographic chip in the historical abnormal side channel attack behavior database is within a preset threshold range, it is confirmed that the current cryptographic chip has abnormal electromagnetic radiation induced fluctuations.

[0095] Preferably, as an implementable embodiment, the first model recognition module further includes a processing unit, a recognition unit and an output unit:

[0096] A processing unit, configured to obtain a pre-built first behavior recognition model, wherein the first behavior recognition model obtains a currently executed task and obtains behavior log data of the current task; and uses the behavior log data of the current task as an input of the first behavior recognition model;

[0097] An identification unit, used for a first behavior identification model to identify the behavior log data of the current task of the current cryptographic chip, and the first behavior identification model outputs a behavior determination label and a probability value of the task execution behavior of the current cryptographic chip;

[0098] The output unit is used to output whether the task execution behavior of the current cryptographic chip is abnormal based on the behavior judgment label and the probability value.

[0099] Preferably, as an implementable embodiment, the output unit includes a first judgment subunit and a second judgment subunit:

[0100] The first judgment subunit is used for outputting that the task execution behavior of the current cryptographic chip is normal if the behavior judgment label of the task execution behavior of the current cryptographic chip is determined to be a normal task calling behavior;

[0101] The second judgment subunit is used to continue to judge the probability value corresponding to the current behavior judgment label if the behavior judgment label of the task execution behavior of the current cryptographic chip is an abnormal task call behavior. If the probability value is greater than the standard probability value, it is output that the task execution behavior of the current cryptographic chip is abnormal (when the abnormal score output by the model exceeds the standard probability value, it is judged as abnormal behavior). If the probability value is less than or equal to the standard probability value, it is output that the task execution behavior of the current cryptographic chip is normal.

[0102] Preferably, as an implementable embodiment, the secondary recognition module includes a first recognition unit and a second recognition unit:

[0103] The first identification unit is used to pre-store the electromagnetic radiation fluctuation ranges of task execution behaviors corresponding to the task execution behaviors of multiple typical abnormal cryptographic chips; and also store the normal electromagnetic radiation fluctuation range of task execution behaviors corresponding to each cryptographic chip when performing any "task execution behavior";

[0104] The second identification unit is used to obtain the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the current cryptographic chip after the initial detection finds that the task execution behavior of the current cryptographic chip is abnormal; and compare the former with the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the typical abnormal cryptographic chip. If the detection finds that: the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the current cryptographic chip exceeds the normal electromagnetic radiation fluctuation range of the cryptographic chip in the corresponding task execution behavior, and the error between the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the current cryptographic chip and the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the typical abnormal cryptographic chip is within the preset threshold range, then it is confirmed that the current cryptographic chip has abnormal electromagnetic radiation induced fluctuations.

[0105] In summary, the cryptographic chip side-channel attack identification and analysis method and system provided in the embodiments of the present application not only improve the security of the cryptographic chip, but also help to discover and defend against potential security threats in advance, thereby ensuring the overall security of the cryptographic chip and the system in which it is located.

[0106] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM and optical storage, etc.) containing computer-usable program code.

[0107] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0108] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0109] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0110] It should be noted that in the claims, any reference signs placed between brackets shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claim. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The present application may be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second and third etc. does not indicate any order. These words may be interpreted as names.

[0111] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0112] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for identifying and analyzing side channel attacks on cryptographic chips, characterized in that: The following steps are involved: Obtaining operation behavior information of a target cryptographic chip, wherein the operation behavior information includes task execution behavior of the cryptographic chip and electromagnetic radiation fluctuation range of the task execution behavior; Initialization, performing task execution behavior log data identification based on the task execution behavior of the cryptographic chip, and determining whether the task execution behavior of the current cryptographic chip is abnormal; If it is initially determined to be abnormal, the task execution behavior of the current cryptographic chip and the corresponding electromagnetic radiation fluctuation range of the task execution behavior are obtained in real time; A historical abnormal side channel attack behavior database is searched based on the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the cryptographic chip; if the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the currently identified cryptographic chip is retrieved and the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of a typical abnormal cryptographic chip in the historical abnormal side channel attack behavior database is within a preset threshold range, it is confirmed that the current cryptographic chip has abnormal electromagnetic radiation induced fluctuations; The identifying of the task execution behavior log data based on the task execution behavior of the cryptographic chip and determining whether the task execution behavior of the current cryptographic chip is abnormal comprises: Acquire a pre-built first behavior recognition model, wherein the first behavior recognition model acquires the currently executed task and acquires the behavior log data of the current task; and uses the behavior log data of the current task as input of the first behavior recognition model; The first behavior recognition model recognizes the behavior log data of the current task of the current cryptographic chip, and the first behavior recognition model outputs the behavior determination label and probability value of the task execution behavior of the current cryptographic chip; Based on the behavior judgment label and probability value, output whether the task execution behavior of the current cryptographic chip is abnormal.

2. The method according to claim 1, characterized in that The task execution behavior log data includes behavior log data generated when each task is executed; the behavior log data includes task timestamp, task identifier, task execution instruction and task abnormal call response information.

3. The method according to claim 2, characterized in that Before obtaining the operation behavior information of the target cryptographic chip, it also includes pre-building a historical abnormal side channel attack behavior database.

4. The method according to claim 3, characterized in that The outputting of whether the task execution behavior of the current cryptographic chip is abnormal based on the behavior determination label and the probability value specifically includes: If the behavior determination label of the task execution behavior of the current cryptographic chip is determined to be a normal task call behavior, then the task execution behavior of the current cryptographic chip is output to be normal; If the behavior judgment label of the task execution behavior of the current cryptographic chip is determined to be an abnormal task call behavior, then continue to judge the probability value corresponding to the current behavior judgment label. If the probability value is greater than the standard probability value, then the task execution behavior of the current cryptographic chip is output as abnormal. If the probability value is less than or equal to the standard probability value, then the task execution behavior of the current cryptographic chip is output as normal.

5. The method according to claim 4, characterized in that If the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the currently identified cryptographic chip is found to be within a preset threshold range compared to the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the typical abnormal cryptographic chip in the historical abnormal side channel attack behavior database, it is confirmed that the current cryptographic chip has abnormal electromagnetic radiation induced fluctuations, including the following steps: The historical abnormal side channel attack behavior database pre-stores the electromagnetic radiation fluctuation ranges of task execution behaviors corresponding to the task execution behaviors of multiple typical abnormal cryptographic chips; the historical abnormal side channel attack behavior database also stores the normal electromagnetic radiation fluctuation range of task execution behaviors corresponding to each cryptographic chip when performing any task execution behavior; After the initial detection finds that the task execution behavior of the current cryptographic chip is abnormal, the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the current cryptographic chip is obtained; the former is compared with the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of a typical abnormal cryptographic chip. If the detection finds that: the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the current cryptographic chip exceeds the normal electromagnetic radiation fluctuation range of the cryptographic chip in the corresponding task execution behavior, and the error between the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the current cryptographic chip and the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the typical abnormal cryptographic chip is within the preset threshold range, then it is confirmed that the current cryptographic chip has abnormal electromagnetic radiation induced fluctuations.

6. A cryptographic chip side channel attack identification and analysis system, characterized in that: It includes an acquisition module, a first model recognition module, an electromagnetic radiation detection module and a secondary recognition module; An acquisition module is used to obtain the operation behavior information of the target cryptographic chip, wherein the operation behavior information includes the task execution behavior of the cryptographic chip and the electromagnetic radiation fluctuation range of the task execution behavior; A first model recognition module is used to identify task execution behavior log data based on the task execution behavior of the cryptographic chip, and determine whether the task execution behavior of the current cryptographic chip is abnormal; Obtain a pre-built first behavior recognition model, the first behavior recognition model acquires the currently executed task and the behavior log data of the current task; the behavior log data of the current task is used as the input of the first behavior recognition model; the first behavior recognition model recognizes the behavior log data of the current task of the current cryptographic chip, and the first behavior recognition model outputs a behavior determination label and a probability value of the task execution behavior of the current cryptographic chip; outputs whether the task execution behavior of the current cryptographic chip is abnormal based on the behavior determination label and the probability value; The electromagnetic radiation detection module is used to obtain the task execution behavior of the current cryptographic chip and the corresponding electromagnetic radiation fluctuation range of the task execution behavior in real time if it is initially determined to be abnormal; A secondary identification module is used to search the historical abnormal side-channel attack behavior database based on the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the cryptographic chip; if the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the currently identified cryptographic chip is retrieved and the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the typical abnormal cryptographic chip in the historical abnormal side-channel attack behavior database is within a preset threshold range, it is confirmed that the current cryptographic chip has abnormal electromagnetic radiation induced fluctuations.

7. The system according to claim 6, characterized in that: The output unit includes a first judgment subunit and a second judgment subunit: The first judgment subunit is used for outputting that the task execution behavior of the current cryptographic chip is normal if the behavior judgment label of the task execution behavior of the current cryptographic chip is determined to be a normal task calling behavior; The second judgment sub-unit is used to continue to judge the probability value corresponding to the current behavior judgment label if the behavior judgment label of the task execution behavior of the current cryptographic chip is an abnormal task calling behavior. If the probability value is greater than the standard probability value, the task execution behavior of the current cryptographic chip is output as abnormal; if the probability value is less than or equal to the standard probability value, the task execution behavior of the current cryptographic chip is output as normal.

8. The system according to claim 7, characterized in that: The secondary recognition module includes a first recognition unit and a second recognition unit: The first identification unit is used to pre-store the electromagnetic radiation fluctuation ranges of task execution behaviors corresponding to the task execution behaviors of multiple typical abnormal cryptographic chips; and also store the normal electromagnetic radiation fluctuation range of task execution behaviors corresponding to each cryptographic chip when performing any task execution behavior; The second identification unit is used to obtain the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the current cryptographic chip after the initial detection finds that the task execution behavior of the current cryptographic chip is abnormal; and compare the former with the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the typical abnormal cryptographic chip. If the detection finds that: the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the current cryptographic chip exceeds the normal electromagnetic radiation fluctuation range of the cryptographic chip in the corresponding task execution behavior, and the error between the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the current cryptographic chip and the electromagnetic radiation fluctuation range of the task execution behavior corresponding to the task execution behavior of the typical abnormal cryptographic chip is within the preset threshold range, then it is confirmed that the current cryptographic chip has abnormal electromagnetic radiation induced fluctuations.

Citation Information

Patent Citations

  • Data processing method and device for resisting side channel attack

    CN112989397A

  • Satellite-ground data transmission link secure transmission system and method

    CN117220752A