Chip detection method and device, electronic equipment and storage medium

By collecting electromagnetic radiation curves and extracting features from chips in a variety of environments, the problem of low detection efficiency of existing chips is solved, efficient and accurate hardware malicious logic detection of large batches of chips is achieved, and information security is improved.

CN118707290AActive Publication Date: 2024-09-27CASIC DEFENSE TECH RES & TEST CENT
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202311765506.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-20
Publication Date
2024-09-27
Estimated Expiration
2043-12-20

AI Technical Summary

Technical Problem

Existing chip detection methods are inefficient and difficult to effectively detect hardware malicious logic in large batches of chips, affecting information security.

Method used

By inputting the chip under test into test vector sets multiple times in various environments, collecting electromagnetic radiation curves, performing average processing and feature extraction, and using binary classification training and deep learning methods to determine whether the chip has hardware malicious logic, improving detection efficiency and accuracy. sex.

Benefits of technology

It achieves efficient detection of a large number of chips of the same batch and model, improves detection efficiency and accuracy, helps discover chip-level security defects, and avoids security risks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118707290A
    Figure CN118707290A
Patent Text Reader

Abstract

The invention provides a chip detection method and device, electronic equipment and a storage medium. The method comprises the following steps: arranging a plurality of chips to be tested in various environments, inputting a test vector set to the plurality of chips to be tested for multiple times, and collecting an electromagnetic radiation curve corresponding to each chip to be tested in each test vector set input process in each environment; averaging the plurality of electromagnetic radiation curves corresponding to each to-be-tested chip in the process of inputting the test vector set each time in each environment to obtain an average electromagnetic radiation curve corresponding to the plurality of to-be-tested chips in various environments; performing feature extraction on the average electromagnetic radiation curve corresponding to the plurality of to-be-tested chips in the target environment to obtain a feature curve corresponding to the plurality of to-be-tested chips in the target environment; performing dichotomy training on the characteristic curves corresponding to the plurality of chips to be tested in the target environment to obtain training result classification differences corresponding to the plurality of chips to be tested in the target environment; and judging whether hardware malicious logic exists in the plurality of to-be-tested chips in the target environment or not.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of chip detection technology, and in particular to a chip detection method, device, electronic device and storage medium. Background Art

[0002] With the development of the integrated circuit industry, there is a risk of malicious behavior being inserted into chips, which seriously threatens the information security of integrated circuits. However, when testing chips, each chip is usually tested in turn, which leads to low chip testing efficiency.

[0003] In view of this, how to improve the detection efficiency of chips has become a technical problem that needs to be solved urgently. Summary of the invention

[0004] In view of this, the purpose of the present disclosure is to provide a chip detection method, device, electronic device and storage medium to solve or partially solve the above technical problems.

[0005] Based on the above objectives, the first aspect of the present disclosure provides a chip detection method, the method comprising:

[0006] Placing a plurality of chips to be tested in a plurality of environments, and inputting a test vector set to the plurality of chips to be tested multiple times, and collecting an electromagnetic radiation curve corresponding to each chip to be tested during each input of the test vector set in each environment;

[0007] Averaging multiple electromagnetic radiation curves corresponding to each chip under test during each input of the test vector set under each environment to obtain average electromagnetic radiation curves corresponding to the multiple chips under test under the multiple environments;

[0008] Performing feature extraction on average electromagnetic radiation curves corresponding to the plurality of chips to be tested in a target environment to obtain feature curves corresponding to the plurality of chips to be tested in the target environment; wherein the target environment is any one of a plurality of environments;

[0009] Performing binary classification training on the characteristic curves corresponding to the multiple chips to be tested under the target environment to obtain classification differences of training results corresponding to the multiple chips to be tested under the target environment;

[0010] Determining whether the plurality of chips to be tested have hardware malicious logic in the target environment based on the classification difference of the training results;

[0011] Determine that the multiple chips under test do not have hardware malicious logic in the target environment, re-determine a new target environment in at least one environment other than the target environment, and judge whether the multiple chips under test have hardware malicious logic in the new target environment, until all environments are judged, or the multiple chips under test have hardware malicious logic in the new target environment;

[0012] Determine whether the multiple chips to be tested have hardware malicious logic in the target environment or the new target environment, perform malicious logic analysis on the hardware, and output the analysis results.

[0013] Based on the same inventive concept, the second aspect of the present disclosure proposes a chip detection device, comprising:

[0014] The acquisition module is configured to place a plurality of chips under test in a plurality of environments, input a test vector set to the plurality of chips under test multiple times, and acquire an electromagnetic radiation curve corresponding to each chip under test in each process of inputting the test vector set in each environment;

[0015] An average processing module is configured to average multiple electromagnetic radiation curves corresponding to each chip under test during each input of a test vector set under each environment to obtain average electromagnetic radiation curves corresponding to the multiple chips under test under the multiple environments;

[0016] A feature extraction module is configured to perform feature extraction on average electromagnetic radiation curves corresponding to the plurality of chips to be tested in a target environment to obtain feature curves corresponding to the plurality of chips to be tested in the target environment; wherein the target environment is any one of a plurality of environments;

[0017] A binary classification training module is configured to perform binary classification training on the characteristic curves corresponding to the multiple chips to be tested under the target environment to obtain classification differences of training results corresponding to the multiple chips to be tested under the target environment;

[0018] A first judgment module is configured to judge whether the plurality of chips to be tested have hardware malicious logic in the target environment based on the classification difference of the training results;

[0019] A second judgment module is configured to determine whether the multiple chips to be tested have no hardware malicious logic in the target environment, re-determine a new target environment in at least one environment other than the target environment, and judge whether the multiple chips to be tested have hardware malicious logic in the new target environment, until all environments are judged, or the multiple chips to be tested have hardware malicious logic in the new target environment;

[0020] The analysis module is configured to determine whether the multiple chips under test have hardware malicious logic in the target environment or the new target environment, perform malicious logic analysis on the hardware, and output the analysis results.

[0021] Based on the same inventive concept, the third aspect of the present disclosure proposes an electronic device, including a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the method as described above when executing the computer program.

[0022] Based on the same inventive concept, a fourth aspect of the present disclosure proposes a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method as described above.

[0023] From the above, it can be seen that the chip detection method, device, electronic device and storage medium provided by the present disclosure. A plurality of chips to be tested are set in a plurality of environments, and a test vector set is input into the plurality of chips to be tested for multiple times, and the electromagnetic radiation curve corresponding to each chip to be tested in each process of inputting the test vector set in each environment is collected. It is possible to detect whether there is hardware malicious logic in the plurality of chips to be tested in different environments. Based on the classification difference of the training results, it is judged whether there is hardware malicious logic in the plurality of chips to be tested in the target environment. In this way, the efficiency and accuracy of chip detection can be effectively improved while testing the hardware malicious logic in a large number of chips of the same batch and the same model. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions in the present disclosure or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0025] Figure 1 is a flow chart of a chip detection method according to an embodiment of the present disclosure;

[0026] Figure 2A A flowchart of a chip hardware malicious logic detection method according to an embodiment of the present disclosure;

[0027] Figure 2B It is a schematic diagram of the structure of a chip hardware malicious logic detection device according to an embodiment of the present disclosure;

[0028] Figure 3 It is a schematic diagram of the structure of a chip detection device according to an embodiment of the present disclosure;

[0029] Figure 4It is a schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0030] In order to make the objectives, technical solutions and advantages of the present disclosure more clearly understood, the present disclosure is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0031] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present disclosure should be understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in the embodiments of the present disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0032] Based on the description of the background technology, with the globalization of the integrated circuit industry, most of the design, manufacturing and testing processes have been transferred to untrusted third-party entities around the world, which may cause the risk of attackers inserting malicious circuits into the hardware design. This circuit lurks in the original circuit, and when the circuit runs to certain specific values ​​or conditions, it causes the original circuit to have situations that should not have occurred. This malicious circuit can modify the original circuit purposefully, such as leaking information to the attacker, changing the circuit function, or even directly damaging the circuit. Hardware Trojans can modify hardware such as Application Specific Integrated Circuit (ASIC), microprocessors, microcontrollers, network processors, digital signal processors (DSP), and can also modify firmware such as field programmable gate arrays (FPGA) bitstreams. It seriously threatens the information security of integrated circuits.

[0033] Side channel information refers to electromagnetic and electromagnetic radiation information related to logic 0 and logic 1 leaked from electronic devices when they are working. Side channel analysis methods refer to methods of analyzing cryptographic systems by using the side channel information leaked by cryptographic chips when performing encryption and decryption operations of cryptographic algorithms, combined with various analysis methods such as observation comparison, differential calculation, statistical classification, normal distribution, etc. Using side channel analysis methods, some sensitive information related to secret information can be gradually parsed out, and sometimes even the key can be directly obtained. When there is malicious logic in the chip, additional electromagnetic radiation will be generated when performing encryption operations. By analyzing and comparing electromagnetic side channel information, it is possible to detect whether the chip under test has hardware malicious logic. However, for a large number of chips under test, the detection of hardware malicious logic has problems such as long detection process and low detection efficiency. Hardware malicious logic poses an increasing threat to information security systems. Research on hardware malicious logic detection has high application value and great practical significance for the detection of large quantities of chips.

[0034] In view of the shortcomings of the above-mentioned batch chip detection method, the present embodiment proposes a hardware malicious logic detection method based on mutual verification of chip electromagnetic side channel information feature differences. The side channel information of the strongest point of electromagnetic radiation when security chips of the same batch and the same model perform encryption operations in different environments is batch collected, and a Gaussian filtering algorithm is used to perform noise reduction preprocessing on the collected electromagnetic radiation information. The process deviation is compensated with the help of a nonlinear fitting algorithm. The independent component analysis algorithm (ICA for short) and a deep learning method are used to extract features from the preprocessed average electromagnetic radiation curve. Then, a statistical method is used to perform feature difference mutual verification correlation analysis on these power consumption curves. According to the analysis results, the detection of whether there is hardware malicious logic in large quantities of chips of the same model and the same batch to be tested is completed.

[0035] In order to detect hardware malicious logic in the chip under test, a large number of chips of the same batch and model under test can be detected, and the efficiency of the chip under test detection and the accuracy of the detection can be improved. This embodiment describes a hardware malicious logic detection method based on the mutual verification of feature differences at the strongest point of chip electromagnetic radiation, which can improve the detection efficiency of a large number of chips, help enterprises discover chip-level security defects, avoid security risks and improve product functions.

[0036] As mentioned above, how to improve the detection efficiency of chips has become an important research issue.

[0037] Based on the above description, if Figure 1 As shown, the chip detection method proposed in this embodiment includes:

[0038] Step 101, placing a plurality of chips to be tested in a plurality of environments, inputting a test vector set to the plurality of chips to be tested multiple times, and collecting an electromagnetic radiation curve corresponding to each chip to be tested in each process of inputting the test vector set in each environment.

[0039] In specific implementation, the multiple environments include at least one of the following: multiple temperature environments, multiple humidity environments, multiple voltage environments, multiple pH environments, and multiple radiation environments. The test vector set includes multiple groups of test vectors, such as the number of test vector groups q> 10. Each group of test vectors includes plain text and a key.

[0040] Before step 101, it also includes: performing consistency check and self-test on the chip. Specifically, the chips are checked for quality consistency batch by batch to determine whether the chips meet the specified requirements, and the chips that meet the requirements are self-tested. Perform a self-test on the chip, that is, check whether the chip functions normally. Run a symmetric encryption algorithm (Advanced Encryption Standard, AES for short) on the chip, input a random plaintext sequence and a key, and compare the actual circuit encryption result with the software encryption result point by point. If the encryption results are consistent, it means that the logical function of the circuit is correct during operation, and the chip with the correct result is used as the chip to be tested for subsequent detection of hardware malicious logic.

[0041] Step 102 , average processing is performed on a plurality of electromagnetic radiation curves corresponding to each chip under test in each process of inputting a test vector set under each environment, so as to obtain average electromagnetic radiation curves corresponding to the plurality of chips under test under the plurality of environments.

[0042] In a specific implementation, multiple electromagnetic radiation curves corresponding to each chip under test in each process of inputting a test vector set under each environment are averaged to obtain an average electromagnetic radiation curve corresponding to multiple chips under test under each environment.

[0043] The average electromagnetic radiation curves corresponding to the multiple chips to be tested under each environment are summarized to obtain the average electromagnetic radiation curves corresponding to the multiple chips to be tested under multiple environments.

[0044] Step 103 , performing feature extraction on average electromagnetic radiation curves corresponding to the plurality of chips under test in a target environment to obtain feature curves corresponding to the plurality of chips under test in the target environment; wherein the target environment is any one of a plurality of environments.

[0045] During specific implementation, the target environment is determined from multiple environments, and firstly, it is determined whether there is hardware malicious logic in multiple chips under test in the target environment.

[0046] Effective point feature extraction and peak feature extraction are performed on the average electromagnetic radiation curves corresponding to multiple chips under test in the target environment, and the effective point features and peak features are comprehensively processed to obtain the characteristic curve corresponding to each chip under test in the target environment.

[0047] Step 104 , performing binary classification training on the characteristic curves corresponding to the plurality of chips to be tested under the target environment, and obtaining classification differences of training results corresponding to the plurality of chips to be tested under the target environment.

[0048] In a specific implementation, in a feature difference mutual verification module, feature curves corresponding to multiple chips to be tested under a target environment are trained for binary classification to obtain classification differences in training results corresponding to multiple chips to be tested under the target environment.

[0049] The classification difference of the training results indicates the difference between multiple chips to be tested in the target environment, and the classification difference of the training results is expressed in the form of percentage.

[0050] Step 105: determine whether the multiple chips to be tested have hardware malicious logic in the target environment based on the classification difference of the training results.

[0051] In specific implementation, the classification difference of the training results is compared with the preset difference threshold, and based on the comparison result, it is determined whether multiple chips under test have hardware malicious logic in the target environment.

[0052] Step 106, determine whether the multiple chips under test have no hardware malicious logic in the target environment, re-determine a new target environment in at least one environment other than the target environment, and judge whether the multiple chips under test have hardware malicious logic in the new target environment, until all environments are judged, or the multiple chips under test have hardware malicious logic in the new target environment.

[0053] In specific implementation, when multiple chips under test have hardware malicious logic in the target environment, step 107 is executed. When multiple chips under test do not have hardware malicious logic in the target environment, it is determined whether multiple chips under test have hardware malicious logic in other environments. When multiple chips under test have hardware malicious logic in other environments, step 107 is executed; when multiple chips under test do not have hardware malicious logic in multiple environments, the process ends. Among them, other environments are environments other than the target environment among multiple environments.

[0054] For example, it is determined that multiple chips under test do not have hardware malicious logic in the target environment, a new target environment is re-determined in at least one environment other than the target environment, and steps 103 to 106 are executed to determine whether multiple chips under test have hardware malicious logic in the new target environment. If it is determined that multiple chips under test have hardware malicious logic in the new target environment, then step 107 is executed. If it is determined that multiple chips under test do not have hardware malicious logic in multiple environments, then the process ends.

[0055] Step 107 , determining whether the plurality of chips under test have hardware malicious logic in the target environment or the new target environment, performing malicious logic analysis on the hardware, and outputting the analysis result.

[0056] During specific implementation, it is determined that multiple chips under test have hardware malicious logic in a target environment or a new target environment, the malicious logic analysis is performed on the hardware, and the analysis results are output.

[0057] Specifically, when multiple chips under test have hardware malicious logic in a target environment or a new target environment, the multiple chips under test are grouped to obtain multiple groups of chips under test, and the grouped multiple groups of chips under test are respectively subjected to hardware malicious logic detection to determine the target chip with hardware malicious logic from the multiple chips under test.

[0058] For example, when multiple chips to be tested have hardware malicious logic in a target environment or a new target environment, the multiple chips to be tested are divided into two groups, and steps 103 to 106 are performed on the two groups of chips to be tested, that is, the two groups of chips to be tested are respectively tested for hardware malicious logic, and the target chips to be tested group that has hardware malicious logic is determined from the two groups of chips to be tested, and the chips to be tested in the target chips to be tested group are further grouped, and the above steps are repeated until the target chip with hardware malicious logic is determined.

[0059] Through the above embodiments, multiple chips to be tested are set in multiple environments, and test vector sets are input into the multiple chips to be tested multiple times, and the electromagnetic radiation curve corresponding to each chip to be tested in each process of inputting the test vector set in each environment is collected. It is possible to detect whether there is hardware malicious logic in multiple chips to be tested in different environments. Based on the classification differences of the training results, it is judged whether there is hardware malicious logic in multiple chips to be tested in the target environment. In this way, while testing the hardware malicious logic in a large number of chips of the same batch and model, the efficiency and accuracy of chip detection can be effectively improved.

[0060] In some embodiments, step 101 includes:

[0061] Step 1011, based on the preset scanning parameters, determine the number of N target scanning points in the target scanning area where the radiation signal of each chip to be tested is the strongest.

[0062] Step 1012, set k chips to be tested in b environments, and input the test vector set into the target scanning area of ​​the N target scanning points of the k chips to be tested and execute it c times; wherein the test vector set includes q groups of test vectors, each group of test vectors contains plain text and a key.

[0063] Step 1013, collecting electromagnetic radiation curves corresponding to the k chips under test during the c-times execution of the test vector set input to the k chips under test in b environments; wherein, the electromagnetic radiation curves corresponding to each chip under test in the target environment are N×c×q; the electromagnetic radiation curves corresponding to each chip under test in the b environments are (N×c×b)×q.

[0064] In the specific implementation, the target scanning area with the strongest radiation signal is selected as the target scanning point N as the scanning position for the subsequent batch detection of the hardware malicious logic of the chip to be tested. The electromagnetic information curve obtained in this way has more significant characteristics and differences, which is more conducive to the detection of hardware malicious logic.

[0065] A test vector set for the chip to be tested is established, each test vector set contains plain text and a key, and the number of test vectors in the test vector set is q>10 groups, so as to perform the encryption operation process later.

[0066] Place k (3≤k≤j, j is the maximum number of chips that the test system can accommodate) chips of the same batch and model under test in the side channel acquisition test system to perform functional testing. The test system inputs the test vector set into the chip under test in sequence according to the user settings to perform encryption operations, collects the electromagnetic radiation curve of each chip under test during operation through the electromagnetic probe, and transmits the electromagnetic radiation curve to the host computer for subsequent analysis.

[0067] Due to the concealment of hardware malicious logic, its activation state in different environments is bound to be different. Place the chip under test in b different environments, input the same test vector set to each chip under test in each environment, execute c (c ≥ 30) times, and collect the electromagnetic radiation curve of each encryption process. Then, the chips under test with and without malicious logic circuits in the same environment will inevitably lead to obvious differences in the corresponding operation time on the electromagnetic radiation curve, and their corresponding average electromagnetic radiation curves will inevitably be different. The difference between the same two chips under test in different environments will vary. The greater the difference, the more active the hardware malicious logic is in this environment.

[0068] Through the above scheme, k chips to be tested are set in b environments, and the target scanning area of ​​the k chips to be tested is input with a test vector set for c times, and (N×c×b)×q electromagnetic radiation curves corresponding to each chip to be tested in b environments can be obtained. Thus, the (N×c×b)×q electromagnetic radiation curves are analyzed and processed to accurately detect whether the chip to be tested has hardware malicious logic.

[0069] In some embodiments, step 1011 includes:

[0070] Step 1011A, determining the initial scanning points from the preset scanning parameters.

[0071] During the specific implementation, the scanning path is planned according to the selected area, and then the scanning parameters are set, including the number of scans, scanning spacing, scanning speed, etc. The strongest point scanning method of electromagnetic information is adopted. First, the size of the chip to be tested is determined, and electromagnetic probes with different precisions are selected for chips of different sizes to be tested. According to the actual situation, the relationship between the probe resolution and the chip size is weighed, and the number of scanning data points is determined. For example, the initial number of scanning points is set to 25 (5×5) or 100 (10×10). Assuming that the length and width of the chip to be tested are both l, and the initial number of scanning points is (n×n), the distance between two adjacent points is expressed as:

[0072]

[0073] Where D is the distance between two adjacent scanning data points; l is the length and width of the chip to be tested; n×n is the number of initial scanning points.

[0074] Step 1011B, multiplying the initial scanning points by the preset radiation signal parameter to obtain N target scanning points in the target scanning area where the radiation signal of each chip to be tested is the strongest.

[0075] N=n×n×m

[0076] Among them, n×n is the number of initial scanning points, and m is a preset radiation signal parameter.

[0077] In a specific implementation, the preset radiation signal parameter is a proportional coefficient between a preset initial scanning point number and a target scanning point number.

[0078] For example, if the preset radiation signal parameter is 10%, the number of N target scanning points in the target scanning area where the radiation signal of each chip to be tested is the strongest is expressed as:

[0079] N=n×n×10%

[0080] Wherein, N is the target scanning point number; n×n is the initial scanning point number; and 10% is the preset radiation signal parameter.

[0081] Through the above scheme, the scanning parameters are determined based on the size of the chip to be tested, so that the initial scanning points determined are more accurate. At the same time, electromagnetic probes with different precisions can be selected for chips of different sizes to achieve accurate collection of the electromagnetic radiation curve of the chip to be tested. In addition, the initial scanning points are multiplied by the preset radiation signal parameters to make the target scanning points determined more accurate.

[0082] In some embodiments, step 102 includes:

[0083] Step 1021, execute the test vector set input into the target scanning area of ​​the N target scanning points of the k chips under test in each environment c times, average the N×c×q electromagnetic radiation curves corresponding to each chip under test, and obtain b×k average electromagnetic radiation curves corresponding to the multiple chips under test in the multiple environments.

[0084] In a specific implementation, N×c×q electromagnetic radiation curves corresponding to each chip to be tested are averaged to obtain b×k average electromagnetic radiation curves corresponding to multiple chips to be tested under multiple environments.

[0085]

[0086]

[0087] …

[0088]

[0089] in, and Respectively represent the average electromagnetic radiation curves corresponding to multiple chips under test in different environments; is the average electromagnetic radiation curve corresponding to multiple chips under test under the first environment, is the average electromagnetic radiation curve corresponding to multiple chips under test under the second environment; is the average electromagnetic radiation curve corresponding to multiple chips under test under the bth environment; c is the number of encryption operation executions; q is the number of test vector groups; It is the electromagnetic radiation curve collected by N target scanning points when the encryption operation is performed c times on k chips under test through q groups of test vectors under the bth environment; It means that the electromagnetic radiation curves corresponding to the number of encryption operation executions from 1 to c are summed up; It means that the electromagnetic radiation curves corresponding to the test vector groups from 1 to q are summed.

[0090] Through the above solution, by averaging the electromagnetic radiation curve corresponding to each chip to be tested, the obtained average electromagnetic radiation curves corresponding to multiple chips to be tested in multiple environments are more accurate.

[0091] In some embodiments, step 103 includes:

[0092] Step 1031 , extracting effective point features from the average electromagnetic radiation curves corresponding to the plurality of chips to be tested in the target environment by using an independent component analysis algorithm to obtain effective point features.

[0093] In the specific implementation, an independent component analysis algorithm (ICA for short) is used to extract features from the preprocessed average electromagnetic radiation curve, and the effective point features can better reflect the features of the average electromagnetic radiation curve.

[0094] Step 1032: extract peak features from average electromagnetic radiation curves corresponding to the multiple chips to be tested in the target environment using a deep learning algorithm to obtain peak features.

[0095] In the specific implementation, a deep learning method is used to automatically extract the peak features in the average electromagnetic radiation curve. The peak features reflect the peak points corresponding to the peak weights of the electromagnetic leakage information more effectively.

[0096] Step 1033: Determine a characteristic curve corresponding to each chip to be tested in the target environment based on the effective point feature and the peak feature.

[0097] During specific implementation, the effective point features and peak features are processed comprehensively to obtain a characteristic curve corresponding to each chip to be tested under the target environment.

[0098] Through the above scheme, the effective point feature can better reflect the characteristics of the average electromagnetic radiation curve, and the peak feature can better reflect the peak point corresponding to the peak weight of the electromagnetic leakage information. The effective point features and peak features are summarized so that the characteristic curve corresponding to each chip under test in the determined target environment can simultaneously reflect the effective point features and peak features of the average electromagnetic radiation curve.

[0099] In some embodiments, before step 103, the method further includes:

[0100] Step 103A: filter the average electromagnetic radiation curve using a Gaussian filter algorithm to obtain a filtered average electromagnetic radiation curve.

[0101] In the specific implementation, since electromagnetic radiation is a weak signal and is easily interfered by internal circuit noise, external environmental noise, etc. during the collection process, a Gaussian filtering algorithm is used to perform noise reduction preprocessing on the collected average electromagnetic radiation curve to improve the signal-to-noise ratio.

[0102] Step 103B: compensating the average electromagnetic radiation curve after filtering by using a nonlinear fitting algorithm to obtain the average electromagnetic radiation curve after compensation.

[0103] In the specific implementation, a nonlinear fitting algorithm is used to quantify the size of the process deviation and compensate for it. As the area ratio of hardware malicious logic circuits gradually decreases, the side channel information differences caused by them can easily be hidden in these deviations, so compensation is needed.

[0104] Through the above scheme, the average electromagnetic radiation curve is filtered by the Gaussian filtering algorithm, which can realize the noise reduction preprocessing of the average electromagnetic radiation curve and improve the signal-to-noise ratio. The average electromagnetic radiation curve after filtering is compensated by the nonlinear fitting algorithm, so that the average electromagnetic radiation curve after compensation is more accurate and the influence of process deviation on the average electromagnetic radiation curve is reduced.

[0105] In some embodiments, step 105 includes:

[0106] Step 1051, comparing the training result analysis difference with a preset difference threshold.

[0107] Step 1052 , in response to the training result analysis difference being less than or equal to the difference threshold, determining that the plurality of chips to be tested do not have hardware malicious logic in the target environment.

[0108] Step 1053 , in response to the difference in the training result analysis being greater than the difference threshold, determining that the plurality of chips to be tested have hardware malicious logic in the target environment.

[0109] In specific implementation, the difference in training result analysis is compared with a preset difference threshold, and the difference in training result analysis is in percentage form.

[0110] For example, the preset difference threshold is 0.2, when the difference of the training result analysis is less than or equal to 0.2, it is determined that the multiple chips to be tested do not have hardware malicious logic in the target environment; when the difference of the training result analysis is greater than 0.2, it is determined that at least one of the multiple chips to be tested has hardware malicious logic in the target environment. For example, the preset difference threshold is 0.5, when the difference of the training result analysis is less than or equal to 0.5, it is determined that the multiple chips to be tested do not have hardware malicious logic in the target environment; when the difference of the training result analysis is greater than 0.5, it is determined that at least one of the multiple chips to be tested has hardware malicious logic in the target environment.

[0111] Through the above scheme, by comparing the analysis differences of the training results with the preset difference thresholds, it is possible to accurately determine whether there are hardware malicious logic in the chips under test among multiple chips under test in the target environment, and at the same time, realize large-scale detection of chips under test, thereby improving the detection efficiency of chips under test.

[0112] Through the above embodiments, multiple chips to be tested are set in multiple environments, and test vector sets are input into the multiple chips to be tested multiple times, and the electromagnetic radiation curve corresponding to each chip to be tested in each process of inputting the test vector set in each environment is collected. It is possible to detect whether there is hardware malicious logic in multiple chips to be tested in different environments. Based on the classification differences of the training results, it is judged whether there is hardware malicious logic in multiple chips to be tested in the target environment. In this way, while testing the hardware malicious logic in a large number of chips of the same batch and model, the efficiency and accuracy of chip detection can be effectively improved.

[0113] It should be noted that the embodiments of the present disclosure may be further described in the following manner:

[0114] like Figure 2A As shown, Figure 2A The flowchart of the chip hardware malicious logic detection method of the embodiment of the present disclosure. The chip hardware malicious logic detection method includes:

[0115] Step 20A: consistency check and self-test of the chip to be tested.

[0116] Step 20B, after fully scanning the electromagnetic information of the chip to be tested for several times, the scanning points are screened and the points with the strongest electromagnetic radiation are selected as subsequent information collection points.

[0117] Step 20C, running the encryption algorithm in different environments, and collecting the electromagnetic radiation curve of the chip under test during operation.

[0118] Step 20D: Use Gaussian filtering algorithm to perform noise reduction processing on the electromagnetic information.

[0119] Step 20E, compensating for process deviations using a nonlinear fitting algorithm.

[0120] Step 20F, using independent component analysis and deep learning algorithm to extract peak features.

[0121] Step 20G, the obtained electromagnetic characteristic curve is subjected to binary classification training in a characteristic difference mutual verification module.

[0122] Step 20H, detecting whether there is a chip containing hardware malicious logic in the batch of chips to be tested.

[0123] The hardware malicious logic detection method based on mutual verification of chip electromagnetic side channel information feature differences specifically includes:

[0124] Step 1: Perform a quality consistency test on the chips batch by batch to determine whether the chips meet the specified requirements, and perform self-test on the chips that meet the requirements in step 2.

[0125] Step 2: Perform a self-test on the chip, that is, check whether the chip functions normally. Run the chip with a symmetric encryption algorithm (Advanced Encryption Standard, AES for short), input a random plaintext sequence and a key, and compare the actual circuit encryption result with the software encryption result point by point. If the encryption results are consistent, it means that the logic function of the circuit is correct during operation. The chip with the correct result will be used as the chip to be tested for subsequent detection of hardware malicious logic.

[0126] Step 3, build a test environment. Install the chip to be tested on the chip test motherboard, and connect the metal contacts of the chip test motherboard to the pins of the installed chip to be tested. Place the chip test motherboard and the chip to be tested in a test system, which includes a test platform, an oscilloscope, a current probe, and a high-frequency signal line.

[0127] Step 4: Initialize the test parameters of the chip under test and the test environment, such as setting the power supply voltage, input signal timing, oscilloscope input impedance, sampling frequency, number of sampling points, bandwidth, time base and trigger mode.

[0128] Step 5, establishing a test vector set for the chip to be tested, each test vector set contains plain text and a key, and the number of test vectors in the test vector set is q>10 groups, so as to perform the encryption operation process later.

[0129] Step 6: Place k (3≤k≤j, j is the maximum number of chips that the test system can accommodate) chips of the same batch and model in the side channel acquisition test system to perform functional testing. The test system inputs the test vector set into the chip to be tested in sequence according to the user settings to perform encryption operations, collects the electromagnetic radiation curve of each chip to be tested during operation through the electromagnetic probe, and transmits the electromagnetic radiation curve to the host computer for subsequent analysis.

[0130] Step 7: Based on the difference in electromagnetic radiation when there is hardware malicious logic running or not, feature extraction is performed on the electromagnetic radiation curve. The basic assumption is that according to the principle that a changing electric field generates a magnetic field, the electric field changes in the algorithm circuit during operation can be reflected through electromagnetic radiation. When the chip executes the same cryptographic operation instruction, its electromagnetic radiation leakage depends on the circuit running inside, and the electromagnetic radiation of the chip without hardware malicious logic depends only on the algorithm circuit, while the electromagnetic radiation of the chip with hardware malicious logic depends on both the algorithm circuit and the malicious logic circuit. Obviously, there will be differences in the electromagnetic radiation leakage information of the two. The specific implementation process is shown in steps 8 to 15.

[0131] In step 8, an electromagnetic probe is placed above each chip to be tested. During operation, the encryption chip will radiate electromagnetic radiation closely related to the encrypted content to the outside world, and the chip containing hardware malicious logic will radiate additional electromagnetic radiation. The near-field electromagnetic probe can collect radiation within a certain range of the chip to be tested. Because electromagnetic radiation is a weak signal, the near-field electromagnetic probe has a built-in amplifier to amplify the signal for subsequent processing. The oscilloscope is used to display the signal waveform and transmit it to the host computer. The electromagnetic information collection method is shown in steps 9 to 12.

[0132] Step 9: collect the image information in the field of view, highlight the required details through noise reduction and deblurring, and use the pixel coordinate information of the image to define the scanning area and select the scanning starting point. Save the coordinate information of the scanning starting point, and directly select the saved coordinate information for the subsequent same detection experiment.

[0133] Step 10, plan the scanning path according to the selected area, and then set the scanning parameters, including the number of scans, scanning spacing, scanning speed, etc. Use the method of scanning at the strongest point of electromagnetic information. First, determine the size of the chip to be tested, and select electromagnetic probes with different precisions for chips of different sizes to be tested. Weigh the relationship between the probe resolution and the chip size according to the actual situation, and determine the number of scanning data points. For example, set the initial number of scanning points to 25 (5×5) or 100 (10×10), and assume that the length and width of the chip to be tested are both l, and the initial number of scanning points is (n×n), then the distance between two adjacent points is expressed as:

[0134]

[0135] Where D is the distance between two adjacent scanning data points; l is the length and width of the chip to be tested; n×n is the number of initial scanning points.

[0136] Step 11: The host computer converts the coordinate information of the scanning starting point into corresponding instructions and sends them to the controller of the displacement platform to control the electromagnetic probe to move accordingly and complete the positioning of the scanning starting point. According to the scanning area and the number of data set by the host computer, the corresponding scanning route is planned, the distance of each movement of the electric displacement stage is determined, and the electromagnetic probe is moved back to the scanning starting point after the scanning is completed, and the electromagnetic information data (i.e., the electromagnetic radiation curve) is recorded.

[0137] Step 12, screening the scanning points of the chip under test. After performing a (a>5) full scans on the chip under test (steps 10 to 11), average the a groups of data collected from all scanning points, and select N points with the strongest radiation signals (the number of points N is calculated as shown in the following formula, rounded up) as the scanning positions for subsequent batch detection of hardware malicious logic of the chip under test. The electromagnetic information curve obtained in this way has more significant characteristics and differences, which is more conducive to the detection of hardware malicious logic.

[0138] N=n×n×10%

[0139] Step 13, due to the concealment of hardware malicious logic, its activation state in different environments must be different. Place the chip under test in b different environments, such as different temperature environments, different humidity environments, and different voltage environments. In each environment, the same test vector set is input to each chip under test, and it is executed c (c ≥ 30) times, and the electromagnetic radiation curve of each encryption process is collected. Then the chips under test with and without malicious logic circuits in the same environment will inevitably lead to obvious differences in the corresponding operation time on the electromagnetic radiation curve, and the corresponding average electromagnetic radiation curves will inevitably be different. The difference between the same two chips under test in different environments will vary, and the greater the difference, the more active the hardware malicious logic is in this environment.

[0140] Step 14, an electromagnetic radiation curve of each chip under test in each environment includes N points (the strongest electromagnetic radiation point selected, i.e., the scanning point), which can be expressed as Where b represents the environment, k is the number of chips to be tested, and each scanning point performs c encryption operations for q groups of test vectors. The (c×q) data collected from each scanning point of each chip to be tested in each environment are averaged to obtain (b×k) electromagnetic curves to improve the signal-to-noise ratio. This is shown in the following formula.

[0141]

[0142]

[0143] …

[0144]

[0145] in, and Respectively represent the average electromagnetic radiation curves corresponding to multiple chips under test in different environments; is the average electromagnetic radiation curve corresponding to multiple chips under test under the first environment, is the average electromagnetic radiation curve corresponding to multiple chips under test under the second environment; is the average electromagnetic radiation curve corresponding to multiple chips under test under the bth environment; c is the number of encryption operation executions; q is the number of test vector groups; It is the electromagnetic radiation curve collected by N target scanning points when the encryption operation is performed c times on k chips under test through q groups of test vectors under the bth environment; It means that the electromagnetic radiation curves corresponding to the number of encryption operation executions from 1 to c are summed up; It means that the electromagnetic radiation curves corresponding to the test vector groups from 1 to q are summed.

[0146] Step 15, since electromagnetic radiation is a weak signal and is easily interfered by internal circuit noise, external environmental noise, etc. during the collection process, this embodiment adopts a Gaussian filtering algorithm to perform noise reduction preprocessing on the collected electromagnetic radiation curve to improve the signal-to-noise ratio.

[0147] Step 16: quantify the size of the process deviation and compensate it through a nonlinear fitting algorithm. As the area ratio of the hardware malicious logic circuit gradually decreases, the side channel information differences caused by it can easily be hidden in these deviations, so compensation is needed.

[0148] Step 17, using an independent component analysis algorithm (ICA for short) to extract features from the preprocessed average electromagnetic radiation curve, the effective point features can better reflect the features of the average electromagnetic radiation curve.

[0149] Step 18, using a deep learning method to automatically extract peak features from the average electromagnetic radiation curve, where the peak features reflect the peak point corresponding to the peak weight of the electromagnetic leakage information more effectively.

[0150] Step 19, k chips to be tested, after the above steps 5 to 19, a total of b×k electromagnetic radiation curves are obtained. The characteristic curves of different chips to be tested from the same environment are calculated in the characteristic difference mutual verification module. Specifically, as shown in steps 20 to 22.

[0151] Step 20, in the feature difference mutual verification module, the feature curves from different chips under test in the same environment are trained for binary classification. If the classification difference percentage of the training result is less than or equal to 0.2, the same training operation is performed in the next environment. If the training result difference percentage of different chips under test in all different environments is less than or equal to 0.2, the test is passed and all chips under test do not contain hardware malicious logic. If the classification difference percentage of the training result is greater than 0.2, it means that the output data of at least one chip under test among the k chips under test does not meet the expected logical state, and the test result is recorded as the presence of hardware malicious logic.

[0152] Step 21, when the test result is recorded as the presence of hardware malicious logic, the k chips to be tested are divided into two equal parts, and steps 6 to 20 are repeated to gradually narrow the test scope until the chip to be tested with the hardware malicious logic is found.

[0153] Step 22: All chips to be tested have passed through the testing system, and the testing is completed.

[0154] like Figure 2B As shown, Figure 2B The schematic diagram of the chip hardware malicious logic detection device of the embodiment of the present disclosure is as follows. The chip hardware malicious logic detection device comprises: an electromagnetic radiation strongest point curve acquisition module 20a, a data preprocessing and curve feature extraction module 20b and a feature difference mutual verification and detection module 20c.

[0155] Through the above-mentioned embodiments, it is possible to effectively improve the efficiency and accuracy of the detection of the chips to be tested while testing the hardware malicious logic in a large number of chips to be tested of the same batch and model. The detection of hardware malicious logic in a large number of chips to be tested can be completed quickly and accurately without the need for operators to have a lot of professional knowledge. Furthermore, for enterprises, the earlier the hardware malicious logic in the chip is discovered, the more it can reduce production and manufacturing costs, and gain valuable time for design and manufacturing. At the same time, it can help enterprises discover chip-level security defects, avoid security risks and improve product functions, and provide corresponding testing methods and guarantees for the development of chip security and the rapid implementation of national secret technology in chips.

[0156] It should be noted that the method of the embodiment of the present disclosure can be performed by a single device, such as a computer or a server. The method of the present embodiment can also be applied in a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present disclosure, and the multiple devices will interact with each other to complete the described method.

[0157] It should be noted that the above describes some embodiments of the present disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0158] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present disclosure also provides a chip detection device.

[0159] refer to Figure 3 , the chip detection device comprises:

[0160] The acquisition module 301 is configured to place a plurality of chips under test in a plurality of environments, input a test vector set to the plurality of chips under test for multiple times, and acquire an electromagnetic radiation curve corresponding to each chip under test in each process of inputting the test vector set in each environment;

[0161] An average processing module 302 is configured to average multiple electromagnetic radiation curves corresponding to each chip under test during each input of a test vector set under each environment to obtain average electromagnetic radiation curves corresponding to the multiple chips under test under the multiple environments;

[0162] The feature extraction module 303 is configured to perform feature extraction on average electromagnetic radiation curves corresponding to the plurality of chips under test in a target environment to obtain feature curves corresponding to the plurality of chips under test in the target environment; wherein the target environment is any one of a plurality of environments;

[0163] The binary classification training module 304 is configured to perform binary classification training on the characteristic curves corresponding to the plurality of chips under test in the target environment to obtain classification differences of the training results corresponding to the plurality of chips under test in the target environment;

[0164] A first judgment module 305 is configured to judge whether the plurality of chips to be tested have hardware malicious logic in the target environment based on the classification difference of the training results;

[0165] The second judgment module 306 is configured to determine whether the multiple chips under test have no hardware malicious logic in the target environment, re-determine a new target environment in at least one environment other than the target environment, and judge whether the multiple chips under test have hardware malicious logic in the new target environment, until all environments are judged, or the multiple chips under test have hardware malicious logic in the new target environment;

[0166] The analysis module 307 is configured to determine whether the multiple chips under test have hardware malicious logic in the target environment or the new target environment, perform malicious logic analysis on the hardware, and output the analysis results.

[0167] In some embodiments, the acquisition module 301 includes:

[0168] A target scanning point number determination unit is configured to determine the number of N target scanning points in the target scanning area where the radiation signal of each chip to be tested is the strongest based on preset scanning parameters;

[0169] A test vector input unit is configured to set k chips to be tested in b environments, and input a test vector set to the target scanning area of ​​the N target scanning points of the k chips to be tested for c times; wherein the test vector set includes q groups of test vectors, each group of test vectors includes plain text and a key;

[0170] The acquisition unit is configured to acquire electromagnetic radiation curves corresponding to the k chips under test during c executions of the test vector set input to the k chips under test in b environments; wherein, the electromagnetic radiation curves corresponding to each chip under test in the target environment are N×c×q; and the electromagnetic radiation curves corresponding to each chip under test in the b environments are (N×c×b)×q.

[0171] In some embodiments, the target scanning point determination unit includes:

[0172] An initial scanning point number determination subunit is configured to determine the initial scanning point number from preset scanning parameters;

[0173] The target scanning point determination subunit is configured to perform a product process on the initial scanning point number and a preset radiation signal parameter to obtain N target scanning points in the target scanning area where the radiation signal of each chip to be tested is the strongest.

[0174] N=n×n×m

[0175] Among them, n×n is the number of initial scanning points, and m is a preset radiation signal parameter.

[0176] In some embodiments, the average processing module 302 includes:

[0177] The averaging processing unit is configured to execute c times the target scanning area input test vector set of the N target scanning points of the k chips to be tested under each environment, and average the N×c×q electromagnetic radiation curves corresponding to each chip to be tested to obtain b×k average electromagnetic radiation curves corresponding to the multiple chips to be tested under the multiple environments.

[0178] In some embodiments, the feature extraction module 303 includes:

[0179] An effective point feature extraction unit is configured to extract effective point features from average electromagnetic radiation curves corresponding to the plurality of chips to be tested in the target environment by an independent component analysis algorithm to obtain effective point features;

[0180] A peak feature extraction unit is configured to extract peak features from average electromagnetic radiation curves corresponding to the plurality of chips under test in the target environment through a deep learning algorithm to obtain peak features;

[0181] The characteristic curve unit is configured to determine the characteristic curve corresponding to each chip to be tested under the target environment based on the effective point feature and the peak feature.

[0182] In some embodiments, the device further comprises:

[0183] A filtering processing module is configured to filter the average electromagnetic radiation curve using a Gaussian filtering algorithm to obtain a filtered average electromagnetic radiation curve;

[0184] The compensation processing module is configured to perform compensation processing on the average electromagnetic radiation curve after the filtering processing through a nonlinear fitting algorithm to obtain the average electromagnetic radiation curve after the compensation processing.

[0185] In some embodiments, the first determination module 305 includes:

[0186] A comparison processing unit, configured to compare the analysis difference of the training result with a preset difference threshold;

[0187] A first result determination unit is configured to determine that the plurality of chips to be tested do not have hardware malicious logic in the target environment in response to the training result analysis difference being less than or equal to the difference threshold;

[0188] The second result determination unit is configured to determine that the plurality of chips to be tested have hardware malicious logic in the target environment in response to the difference in the training result analysis being greater than the difference threshold.

[0189] For the convenience of description, the above device is described by dividing it into various modules according to its functions. Of course, when implementing the present disclosure, the functions of each module can be implemented in the same or multiple software and / or hardware.

[0190] The device of the above embodiment is used to implement the corresponding chip detection method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.

[0191] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, 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, the chip detection method described in any of the above embodiments is implemented.

[0192] Figure 4 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.

[0193] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.

[0194] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.

[0195] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.

[0196] The communication interface 1040 is used to connect a communication module (not shown in the figure) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB (Universal Serial Bus), network cable, etc.), or through a wireless mode (such as mobile network, WIFI (Wireless Fidelity), Bluetooth, etc.).

[0197] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).

[0198] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.

[0199] The electronic device of the above embodiment is used to implement the corresponding chip detection method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.

[0200] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present disclosure also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the chip detection method described in any of the above embodiments.

[0201] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.

[0202] The computer instructions stored in the storage medium of the above embodiments are used to enable the computer to execute the chip detection method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0203] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present disclosure (including the claims) is limited to these examples. Based on the concept of the present disclosure, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present disclosure as described above, which are not provided in detail for the sake of simplicity.

[0204] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present disclosure difficult to understand, the known power / ground connections to the integrated circuit (IC) chips and other components may or may not be shown in the provided figures. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present disclosure difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform on which the embodiments of the present disclosure will be implemented (that is, these details should be fully within the scope of understanding of those skilled in the art). Where specific details (e.g., circuits) are set forth to describe exemplary embodiments of the present disclosure, it is apparent to those skilled in the art that the embodiments of the present disclosure can be implemented without these specific details or with changes in these specific details. Therefore, these descriptions should be considered illustrative rather than restrictive.

[0205] Although the present disclosure has been described in conjunction with specific embodiments of the present disclosure, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.

[0206] The embodiments of the present disclosure are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present disclosure should be included in the scope of protection of the present disclosure.

Claims

1. A chip detection method, characterized in that: The method comprises: Placing a plurality of chips to be tested in a plurality of environments, and inputting a test vector set to the plurality of chips to be tested multiple times, and collecting an electromagnetic radiation curve corresponding to each chip to be tested during each input of the test vector set in each environment; Averaging multiple electromagnetic radiation curves corresponding to each chip under test during each input of the test vector set under each environment to obtain average electromagnetic radiation curves corresponding to the multiple chips under test under the multiple environments; Performing feature extraction on average electromagnetic radiation curves corresponding to the plurality of chips to be tested in a target environment to obtain feature curves corresponding to the plurality of chips to be tested in the target environment; wherein the target environment is any one of a plurality of environments; Performing binary classification training on the characteristic curves corresponding to the multiple chips to be tested under the target environment to obtain classification differences of training results corresponding to the multiple chips to be tested under the target environment; Determining whether the plurality of chips to be tested have hardware malicious logic in the target environment based on the classification difference of the training results; Determine that the multiple chips under test do not have hardware malicious logic in the target environment, re-determine a new target environment in at least one environment other than the target environment, and judge whether the multiple chips under test have hardware malicious logic in the new target environment, until all environments are judged, or the multiple chips under test have hardware malicious logic in the new target environment; Determine whether the multiple chips to be tested have hardware malicious logic in the target environment or the new target environment, perform malicious logic analysis on the hardware, and output the analysis results.

2. The method according to claim 1, characterized in that The method of placing a plurality of chips under test in a plurality of environments, inputting a test vector set to the plurality of chips under test for multiple times, and collecting an electromagnetic radiation curve corresponding to each chip under test during each input of the test vector set in each environment includes: Based on the preset scanning parameters, determine the number of N target scanning points in the target scanning area where the radiation signal of each chip to be tested is the strongest; k chips to be tested are placed in b environments, and a test vector set is input into the target scanning area of ​​the N target scanning points of the k chips to be tested and executed c times; wherein the test vector set includes q groups of test vectors, each group of test vectors contains plain text and a key; Collect electromagnetic radiation curves corresponding to the k chips under test during c executions of the test vector set input to the k chips under test in b environments; wherein, the number of electromagnetic radiation curves corresponding to each chip under test in the target environment is N×c×q; the number of electromagnetic radiation curves corresponding to each chip under test in the b environments is (N×c×b)×q.

3. The method according to claim 2, characterized in that The method of determining the number of N target scanning points in the target scanning area where the radiation signal of each chip to be tested is the strongest based on the preset scanning parameters includes: Determine the initial scanning point number from the preset scanning parameters; The initial scanning point number is multiplied by the preset radiation signal parameter to obtain N target scanning points in the target scanning area where the radiation signal of each chip to be tested is the strongest. N=n×n×m Among them, n×n is the number of initial scanning points, and m is the preset radiation signal parameter.

4. The method according to claim 2, characterized in that: The averaging of the multiple electromagnetic radiation curves corresponding to each chip under test during each input of the test vector set under each environment to obtain the average electromagnetic radiation curves corresponding to the multiple chips under test under the multiple environments includes: The target scanning area input test vector set of the N target scanning points of the k chips to be tested under each environment is executed c times, and the N×c×q electromagnetic radiation curves corresponding to each chip to be tested are averaged to obtain b×k average electromagnetic radiation curves corresponding to the multiple chips to be tested under the multiple environments.

5. The method according to claim 1, characterized in that The feature extraction of the average electromagnetic radiation curves corresponding to the multiple chips to be tested under the target environment to obtain the feature curves corresponding to the multiple chips to be tested under the target environment includes: Extracting effective point features from average electromagnetic radiation curves corresponding to the plurality of chips to be tested under the target environment by an independent component analysis algorithm to obtain effective point features; Extracting peak features from average electromagnetic radiation curves corresponding to the plurality of chips to be tested in the target environment by a deep learning algorithm to obtain peak features; Based on the effective point characteristics and the peak characteristics, a characteristic curve corresponding to each chip to be tested under the target environment is determined.

6. The method according to claim 1, characterized in that Before extracting features of average electromagnetic radiation curves corresponding to the multiple chips under test in the target environment to obtain feature curves corresponding to the multiple chips under test in the target environment, the method further includes: Performing filtering processing on the average electromagnetic radiation curve by using a Gaussian filtering algorithm to obtain a filtered average electromagnetic radiation curve; The average electromagnetic radiation curve after filtering is compensated by a nonlinear fitting algorithm to obtain the average electromagnetic radiation curve after compensation.

7. The method according to claim 1, characterized in that The step of judging whether the plurality of chips to be tested have hardware malicious logic in the target environment based on the classification difference of the training results includes: Comparing the difference of the training result analysis with a preset difference threshold; In response to the training result analysis difference being less than or equal to the difference threshold, determining that the plurality of chips to be tested do not have hardware malicious logic in the target environment; In response to the training result analysis difference being greater than the difference threshold, it is determined that the plurality of chips to be tested have hardware malicious logic in the target environment.

8. A chip detection device, characterized in that: include: The acquisition module is configured to place a plurality of chips under test in a plurality of environments, input a test vector set to the plurality of chips under test multiple times, and acquire an electromagnetic radiation curve corresponding to each chip under test in each process of inputting the test vector set in each environment; An average processing module is configured to average multiple electromagnetic radiation curves corresponding to each chip under test during each input of a test vector set under each environment to obtain average electromagnetic radiation curves corresponding to the multiple chips under test under the multiple environments; A feature extraction module is configured to perform feature extraction on average electromagnetic radiation curves corresponding to the plurality of chips to be tested in a target environment to obtain feature curves corresponding to the plurality of chips to be tested in the target environment; wherein the target environment is any one of a plurality of environments; A binary classification training module is configured to perform binary classification training on the characteristic curves corresponding to the multiple chips to be tested under the target environment to obtain classification differences of training results corresponding to the multiple chips to be tested under the target environment; A first judgment module is configured to judge whether the plurality of chips to be tested have hardware malicious logic in the target environment based on the classification difference of the training results; A second judgment module is configured to determine whether the multiple chips to be tested have no hardware malicious logic in the target environment, re-determine a new target environment in at least one environment other than the target environment, and judge whether the multiple chips to be tested have hardware malicious logic in the new target environment, until all environments are judged, or the multiple chips to be tested have hardware malicious logic in the new target environment; The analysis module is configured to determine whether the multiple chips under test have hardware malicious logic in the target environment or the new target environment, perform malicious logic analysis on the hardware, and output the analysis results.

9. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method according to any one of claims 1 to 7 is implemented.

10. A non-transitory computer-readable storage medium, characterized in that: The non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to cause a computer to execute the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Hardware Trojan horse positioning method based on chip surface scanning

    CN110096880A

  • Hardware Trojan horse detection and positioning method and system

    CN111460529A

  • Side channel leakage position positioning method and device, storage medium and terminal

    CN112883385A

  • Chip power consumption test channel information cross validation test method and device

    CN116381469A

  • Cross validation method for electromagnetic side channel information of vehicle-gauge-level security chip

    CN116400200A