Chip security protection method, system and device and storage medium
By using spectral countermeasure devices and current detection after powering on the chip, the status of the shielding layer is judged and the safety protection operation is triggered, the security problem of the chip in the face of invasive attacks is solved, and more efficient protection measures are achieved.
Patent Information
- Application Number
- CN202411161686.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-12-03
AI Technical Summary
When existing chips face invasive attacks, the shielding layer can be analyzed and cut, resulting in a threat to security and it is difficult to effectively resist attacks.
After the chip is powered on, the optical signal is sent to the shielding layer through the spectral opposition device, to determine whether the current data meets the set requirements, and to trigger a safety protection operation when an abnormality is detected, including breaking through the transistor through boost or starting a self-destruct program.
Through multiple protection measures, the chip is improved, the shielding layer is prevented from being cut or damaged, and the security of critical data and sensitive information is ensured.
Smart Images

Figure CN119066720A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of security protection technology, and in particular to a chip security protection method, system, device and storage medium. Background Art
[0002] Attacks on security chips can be roughly divided into three categories: non-invasive attacks, semi-invasive attacks, and invasive attacks. Among them, invasive attacks are also called physical attacks. They will inspect the components inside the chip by destroying the chip. The usual attack method is to first remove the chip's external packaging to expose the chip's internal structure, and then analyze the structure and function of the semiconductor device through reverse engineering, extract the chip layout layer by layer, and restore the chip's gate-level circuit structure. Or the chip circuit is analyzed through a scanning electron microscope, and then the metal or related wiring is cut, connected, and modified using a focused ion beam microscope.
[0003] For invasive attacks, the chip generally adds a shielding layer on the top layer to prevent invasive physical detection and tampering attacks. The shielding layer generally adopts a topological structure such as parallel equipotential lines, and is formed by one or more layers of metal routing, covering the entire chip. The shielding layer can cover the physical structure below and hide key components such as encryption modules and memory modules. By injecting a detection signal into the line in the shielding layer, by comparing the consistency of the initial detection signal with the detection signal after transmission through the shielding line, it can be determined whether the chip is under invasive attack. For more information, please refer to Figure 1 DIN is the input detection signal of the shield layer, and DOUT is the output detection signal obtained after transmission through the line in the shield layer. The comparator determines whether there is a short circuit or open circuit in the shield layer by comparing whether the DIN and DOUT signals are equal, thereby detecting intrusive attacks. That is, if DIN and DOUT are not equal, an alarm signal can be generated to put the chip into a safe working state such as reset or interruption, so as to resist intrusive attacks to obtain key data and sensitive information stored inside the chip and ensure product safety.
[0004] However, the current crackers will analyze the shielding layer, find its starting point and end point and connect them, then the above alarm will not be triggered. Then they can use a focused ion beam microscope to cut the shielding layer until the pre-attack signal line is exposed, and finally use a probe to detect key information.
[0005] In summary, how to effectively improve the security of chips is a technical problem that technical personnel in this field urgently need to solve. Summary of the invention
[0006] The purpose of the present invention is to provide a chip security protection method, system, device and storage medium to effectively improve the security of the chip.
[0007] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0008] In a first aspect, the present invention provides a chip security protection method, which is applied to a security protection controller, comprising:
[0009] After the chip is powered on, the spectrum countermeasure device is controlled to send an optical signal to the shielding layer;
[0010] determining whether the spectrum countermeasure device receives the reflected light signal;
[0011] If no reflected light signal is received, the safety protection operation is triggered;
[0012] If the reflected light signal is received, continue to control the spectrum countermeasure device to send the light signal until the first time length is reached and the light signal is stopped;
[0013] Check whether the current data on the shielding layer meets the set requirements;
[0014] If it does not meet the requirements, the security protection operation is triggered;
[0015] The shielding layer is located on the outer surface of the chip, and the security protection controller, the spectrum countermeasure device and the designated encryption components are all located at the position covered by the shielding layer to be protected by the shielding layer; N groups of energized windings are arranged in the shielding layer, and the resistance value of each group of windings is controlled by light, and N is a positive integer.
[0016] On the other hand, a plurality of groups of windings with power are arranged on the shielding layer, and each group of windings adopts an optically variable circuit so that its own resistance value is controlled by light.
[0017] On the other hand, the current data on the shielding layer is detected to see if it meets the set requirements, including:
[0018] Detect the current size of each set of windings on the shielding layer;
[0019] When determining whether the current magnitudes of at least K groups of windings exceed the current range preset for the group of windings; K is a preset positive integer;
[0020] If yes, it is determined that the current data on the shielding layer does not meet the set requirements;
[0021] If not, it is determined that the current data on the shielding layer meets the set requirements.
[0022] On the other hand, triggering security protection operations includes:
[0023] The chip is self-destructed by boosting the voltage to break down the designated transistor.
[0024] On the other hand, a grating layer is also provided in the chip;
[0025] The grating layer is located at a position covered by the shielding layer so as to be protected by the shielding layer, and the grating layer is located between the shielding layer and the spectrum countermeasure device;
[0026] The grating layer includes P optical signal transmitting devices and P optical signal receiving devices, where P is a positive integer;
[0027] For an optical signal sent by any optical signal transmitting device, a corresponding optical signal receiving device receives the optical signal;
[0028] Chip security protection methods also include:
[0029] After detecting that the current data on the shielding layer meets the set requirements, the P optical signal emitting devices in the grating layer are controlled to emit light according to a preset light-emitting sequence, and the optical signal receiving results are obtained through the P optical signal receiving devices;
[0030] Determine whether the optical signal reception result is normal;
[0031] If not, the safety protection operation is triggered;
[0032] If yes, the chip boot procedure is triggered.
[0033] On the other hand, judging whether the optical signal reception result is normal includes:
[0034] Determining whether the number of optical signal receiving devices that have not received an optical signal exceeds a preset first number value;
[0035] If yes, it is determined that the optical signal reception result is abnormal;
[0036] If not, obtaining the number of each optical signal receiving device that has not received the optical signal as the obtained number group;
[0037] Determine whether the obtained number group matches any number group in a preset database;
[0038] If it is in compliance, it is determined that the optical signal reception result is abnormal;
[0039] If not, it is determined that the optical signal reception result is normal.
[0040] On the other hand, for any one optical signal transmitting device, an optical signal receiving device for receiving an optical signal transmitted by the optical signal transmitting device is located at the same height layer in the chip as the optical signal transmitting device;
[0041] The P optical signal emitting devices in the grating layer are distributed in at least two different height layers.
[0042] In a second aspect, the present invention provides a chip security protection system, which is applied to a security protection controller, comprising:
[0043] A spectrum countermeasure device control module, used to control the spectrum countermeasure device to send an optical signal to the shielding layer after the chip is powered on;
[0044] A first judgment module is used to judge whether the spectrum countermeasure device receives a reflected light signal;
[0045] If no reflected light signal is received, a self-destruct module is triggered, wherein the self-destruct module is used to trigger a safety protection operation;
[0046] If a reflected light signal is received, a continuous illumination module is triggered, and the continuous illumination module is used to continue to control the spectrum countermeasure device to send a light signal until the light signal is stopped when a first time length is reached;
[0047] A current detection module is used to detect whether the current data on the shielding layer meets the set requirements;
[0048] If not, triggering the self-destruct module to trigger the safety protection operation;
[0049] The shielding layer is located on the outer surface of the chip, and the security protection controller, the spectrum countermeasure device and the designated encryption components are all located at the position covered by the shielding layer to be protected by the shielding layer; N groups of energized windings are arranged in the shielding layer, and the resistance value of each group of windings is controlled by light, and N is a positive integer.
[0050] In a third aspect, the present invention provides a chip security protection device, comprising:
[0051] Memory for storing computer programs;
[0052] A processor is used to execute a computer program to implement the steps of the chip security protection method as described above.
[0053] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the chip security protection method as described above when the computer program is executed by a processor.
[0054] By applying the technical solution provided in the embodiment of the present invention, the shielding layer is located on the outer surface of the chip, and the security protection controller, the spectrum countermeasure device and the designated encryption component are all located at a position covered by the shielding layer, and can be protected by the shielding layer. After the chip is powered on, the security protection controller will control the spectrum countermeasure device to send an optical signal to the shielding layer, and then determine whether the spectrum countermeasure device receives a reflected optical signal. It can be understood that if the shielding layer has been cut, the spectrum countermeasure device cannot receive the reflected optical signal, so the security protection operation will be triggered. If the reflected optical signal is received, the present application scheme has other protection methods. Specifically, it is necessary to continue to control the spectrum countermeasure device to send an optical signal until the first duration is reached and the optical signal is stopped. This is because the shielding layer is provided with N groups of energized windings, and the resistance value of each group of windings is controlled by light. Therefore, when the spectrum countermeasure device sends an optical signal for the first duration, under normal circumstances, the resistance value of the N groups of windings should reach a reasonable value, so that the current data on the shielding layer meets the set requirements. In other words, if the current data on the shielding layer does not meet the set requirements, it means that although the shielding layer has not been cut, it may have been damaged. Therefore, in order to ensure safety, the security protection operation will still be triggered at this time.
[0055] In summary, the present application solution can effectively ensure chip security through multiple protections. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the embodiments of the present invention 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 invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0057] Figure 1 It is a schematic diagram of the principle of realizing intrusive detection through a shielding layer in a traditional solution;
[0058] Figure 2 A flowchart of a chip security protection method according to a specific embodiment of the present invention;
[0059] Figure 3 A top view of the system structure of a chip in a specific embodiment of the present invention;
[0060] Figure 4 A side view of the system structure of a chip in a specific embodiment of the present invention;
[0061] Figure 5 A schematic diagram of the structure of a grating layer in a specific implementation manner of the present invention;
[0062] Figure 6 A schematic diagram of the structure of a grating layer in another specific implementation manner of the present invention;
[0063] Figure 7 A schematic diagram of the structure of a chip security protection system provided by a specific implementation method of the present invention;
[0064] Figure 8 A schematic diagram of the structure of a chip security protection device provided by a specific embodiment of the present invention;
[0065] Fig. 9 The present invention is a schematic diagram of the structure of a computer-readable storage medium. DETAILED DESCRIPTION
[0066] The core of the present invention is to provide a chip security protection method, system, device and storage medium, which can effectively ensure chip security through multiple protections.
[0067] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0068] Please refer to Figure 2 , Figure 2 The present invention provides a flowchart of a chip security protection method according to a specific embodiment of the present invention. The chip security protection method can be applied to a security protection controller, and includes the following steps:
[0069] Step S201: After the chip is powered on, the spectrum countermeasure device is controlled to send an optical signal to the shielding layer.
[0070] Specifically, in the present application, under the control of the safety protection controller, Figure 2 each step.
[0071] The shielding layer is located on the outer surface of the chip, thereby achieving a shielding effect. Accordingly, the security protection controller, spectral countermeasure device and designated encryption components of the present application are all located at a position in the chip covered by the shielding layer, and thus can be protected by the shielding layer.
[0072] See also Figure 3 , is a top view of the system structure of a chip in a specific implementation mode, Figure 3The shielding layer in the embodiment is circular, and in other specific embodiments, it can be set to other shapes as needed, for example, the shape and size of the shielding layer can be set accordingly based on the position and size of the related devices to be protected.
[0073] Figure 3 In the implementation method of the shielding layer, the white boxes and rectangular boxes outside the shielding layer refer to the relevant modules inside the chip that do not need to be encrypted. The shielding layer is located on the outer surface of the chip, that is, the top layer of the chip. Figure 3 In a specific implementation, inside the chip and at a position covered by the shielding layer, a light signal transmitting / receiving device (small circle) of the grating layer, a spectrum countermeasure device (pentagon), a security protection controller (ellipse), and a designated encryption component (square) are specifically arranged. The designated encryption component is also a module that needs to be protected, for example, specifically including the encryption module of the chip, the key memory module, etc.
[0074] It is understandable that since the shielding layer is located on the outer surface of the chip to provide a shielding effect, the security protection controller, spectral countermeasure device and designated encryption components are all located in a position covered by the shielding layer. Therefore, it is difficult to directly invade these devices protected by the shielding layer without destroying the shielding layer.
[0075] In the solution of the present application, after the chip is powered on, the safety protection controller will perform a safety self-check of the chip. First, it will control the spectrum countermeasure device to send an optical signal to the shielding layer. It is understandable that if the shielding layer is cut off or damaged, the spectrum countermeasure device will not be able to receive the reflected light signal normally. Correspondingly, if the spectrum countermeasure device receives the reflected light signal normally, it means that the first level of safety self-check has been passed.
[0076] In addition, the spectrum countermeasure device needs to be able to send optical signals to the shielding layer. The specific structure of the spectrum countermeasure device can be set and adjusted as needed. For example, in one embodiment, the spectrum countermeasure device specifically includes an optical signal transceiver with optical signal transmission and optical signal reception functions. In another embodiment, the spectrum countermeasure device specifically includes multiple optical signal transceivers with optical signal transmission and optical signal reception functions. Figure 3 This implementation method is adopted in the embodiment, that is, each pentagon is an optical signal transceiver with optical signal transmission and optical signal reception functions, and the spectrum countermeasure device is realized through these optical signal transceivers.
[0077] It can be understood that if the spectrum countermeasure device specifically includes multiple optical signal transceivers with optical signal transmitting and receiving functions, then in actual applications, it can be set that when any one optical signal transceiver does not receive the reflected light signal, it is deemed that the spectrum countermeasure device has not received the reflected light signal; it can also be set that when more than a set number of optical signal transceivers do not receive the reflected light signal, it is deemed that the spectrum countermeasure device has not received the reflected light signal. The setting can be made according to actual needs.
[0078] Step S202: Determine whether the spectrum countermeasure device receives a reflected light signal. If no reflected light signal is received, execute step S203; if a reflected light signal is received, execute step S204.
[0079] Step S203: triggering a security protection operation.
[0080] As described above, after the security protection controller controls the spectral countermeasure device to send an optical signal to the shielding layer, if the security protection controller determines that the spectral countermeasure device does not receive the reflected light signal, the security protection controller will trigger a security protection operation to protect the chip safety.
[0081] There are many specific means of security protection operations. For example, the chip can be put into a safe working state such as reset or interrupt to resist invasive attacks to obtain key data and sensitive information stored inside the chip, thereby ensuring chip security.
[0082] In a specific implementation of the present invention, step S203 may specifically include: breaking down a designated transistor by boosting the voltage to perform chip self-destruction.
[0083] This implementation method takes into account that if a safety protection operation needs to be triggered, it means that the current chip security is facing a high risk. Therefore, in order to ensure the security of key data and sensitive information as much as possible, in this implementation method, the safety protection controller has a boost function, so that the specified transistor can be broken down by boosting the voltage to achieve chip self-destruction. Breaking down the specified transistor by boosting the voltage is very convenient and easy to implement, and the boosting process is very fast, which is also conducive to ensuring chip security.
[0084] When a specified transistor is broken down, the specific number of transistors that need to be broken down and their positions in the circuit can be set and adjusted according to actual needs. In addition, when the safety protection controller performs a voltage boost, the specific voltage boost level to be achieved can also be set and adjusted according to actual needs.
[0085] Step S204: Continue to control the spectrum countermeasure device to send the optical signal until the first time duration is reached and the optical signal is stopped;
[0086] After the safety protection controller controls the spectral countermeasure device to send an optical signal to the shielding layer, if the safety protection controller determines that the spectral countermeasure device has received a reflected optical signal, it will pass the second level of safety self-check to further ensure the safety of the chip.
[0087] Specifically, at this time, the safety protection controller will continue to control the spectrum countermeasure device to send light signals until the first time length is reached and the light signals are stopped. The reason for adopting such an operation is that, in the present application scheme, N groups of windings are provided in the shielding layer with power, and the resistance value of each group of windings is controlled by light, and N is a positive integer.
[0088] Each set of windings can be made of light-variable material so that its resistance value is controlled by light.
[0089] Step S205: Check whether the current data on the shielding layer meets the set requirements. If not, return to step S203 to trigger the safety protection operation.
[0090] Since the shielding layer is provided with N groups of energized windings, and the resistance value of each group of windings is controlled by light, it can be understood that after the chip is powered on, when the above-mentioned step S204 is executed, under normal circumstances, the resistance of each of the N groups of windings in the shielding layer will reach corresponding reasonable values, and these values can be predetermined, which means that under normal circumstances, the current of each of the N groups of windings should meet the corresponding requirements.
[0091] If the current data on the shielding layer is detected to meet the set requirements, for example, in one scenario, the startup procedure of the chip can be triggered. In another implementation method described below, a third level of detection will be further performed.
[0092] On the contrary, if the current data detected on the shielding layer does not meet the set requirements, it means that the shielding layer is abnormal. At this time, there is a greater risk to chip safety, so it is necessary to trigger a safety protection operation. For example, in the above implementation, the safety protection operation is specifically to break down the specified transistor by boosting the voltage to cause the chip to self-destruct.
[0093] The shielding layer may have one or more groups of windings, and each group of windings may be arranged in the form of parallel equipotential lines, serpentine lines, spiral lines, Peano curves, random Hamiltonian circuits, etc. For example, in a specific embodiment of the present invention, multiple groups of windings may be provided on the shielding layer, which is conducive to increasing the probability of detecting the shielding layer after it is damaged, that is, it is conducive to ensuring the safety of the chip.
[0094] And as described above, the resistance value of each group of windings needs to be controllable by light, so each group of windings can use a light-variable circuit so that its own resistance value can be controlled by light.
[0095] In a specific implementation of the present invention, step S205 may include:
[0096] Detect the current size of each set of windings on the shielding layer;
[0097] When determining whether the current magnitude of at least K groups of windings exceeds the current range pre-set for the group of windings;
[0098] If yes, it is determined that the current data on the shielding layer does not meet the set requirements;
[0099] If not, it is determined that the current data on the shielding layer meets the set requirements.
[0100] This implementation takes into account that, since multiple groups of windings that are powered are provided on the shielding layer, it is necessary to detect the current magnitude of each group of windings on the shielding layer, and then determine whether the current magnitude of at least K groups of windings exceeds the current range pre-set for the group of windings.
[0101] It can be understood that, for any group of windings on the shielding layer, after executing step S204, under normal circumstances, since the resistance change of this group of windings can be predetermined, the current size on this group of windings at this time should also conform to the current range pre-set for this group of windings. Conversely, if it exceeds the current range pre-set for this group of windings, it is an abnormal situation.
[0102] K is a positive integer. When K is set to 1, it means that as long as the current on one set of windings is abnormal, it will be determined that the current data on the shielding layer does not meet the set requirements, and then trigger the safety protection operation. Such a solution can usually be used in occasions with high requirements for safety protection levels. For example, in some occasions, K can be set to 2, which means that the current on at least two sets of windings must be abnormal before it is determined that the current data on the shielding layer does not meet the set requirements, and then trigger the safety protection operation. Such a solution can reduce the probability of false triggering. At the same time, since K is not set too high, it usually does not increase the probability of missed detection.
[0103] In a specific embodiment of the present invention, a grating layer is also provided in the chip;
[0104] The grating layer is located at a position covered by the shielding layer so as to be protected by the shielding layer, and the grating layer is located between the shielding layer and the spectrum countermeasure device;
[0105] The grating layer includes P optical signal transmitting devices and P optical signal receiving devices, where P is a positive integer; for an optical signal sent by any optical signal transmitting device, a corresponding optical signal receiving device receives the optical signal;
[0106] Accordingly, the chip security protection method of the present application may also include:
[0107] After detecting that the current data on the shielding layer meets the set requirements, the P optical signal emitting devices in the grating layer are controlled to emit light according to a preset light-emitting sequence, and the optical signal receiving results are obtained through the P optical signal receiving devices;
[0108] Determine whether the optical signal reception result is normal;
[0109] If not, the safety protection operation is triggered;
[0110] If yes, the chip boot procedure is triggered.
[0111] In this implementation, after detecting that the current data on the shielding layer meets the set requirements, the third level of safety self-check will continue to be triggered to further ensure the safety of the chip.
[0112] Specifically, the grating layer also needs to be located at a position covered by the shielding layer so that it can be protected by the shielding layer. In addition, considering that the function of the grating layer requires an optical signal transmitting device to send an optical signal to a corresponding optical signal receiving device, the grating layer can be located between the shielding layer and the spectrum countermeasure device to avoid interference with the optical path by the spectrum countermeasure device. Figure 4 , is a side view of the system structure of a chip in a specific implementation mode, Figure 4 In the implementation manner, the grating layer is located between the shielding layer and the spectral countermeasure device.
[0113] The grating layer includes P optical signal transmitting devices and P optical signal receiving devices, where P is a positive integer. Figure 5 , Figure 5 In the embodiment, three optical signal transmitting devices and three optical signal receiving devices are provided. For an optical signal transmitted by any optical signal transmitting device, a corresponding optical signal receiving device receives the optical signal, and the optical signal is received by the corresponding optical signal receiving device. Figure 5 For example, the optical signals transmitted by the optical signal transmitting devices F-1, F-2 and F-3 are respectively received by the optical signal receiving devices S-1, S-2 and S-3.
[0114] The grating layer can effectively detect probe detection for the chip. It can be understood that after controlling the P optical signal emitting devices in the grating layer to emit light in a preset light-emitting order, the optical signal reception results can be obtained through P optical signal receiving devices. Under normal circumstances, the optical path is not blocked by the probe, and the obtained optical signal reception result should be in line with expectations, that is, it should be normal. At this time, the normal startup procedure of the chip can be triggered. On the contrary, if the obtained optical signal reception result is abnormal, it can be determined that the optical path may be blocked by foreign objects such as probes, and the chip is not safe. Therefore, the safety protection operation can be directly triggered to ensure the safety of the chip.
[0115] In a specific embodiment of the present invention, for any one optical signal transmitting device, an optical signal receiving device for receiving an optical signal transmitted by the optical signal transmitting device is located at the same height layer in the chip as the optical signal transmitting device;
[0116] The P optical signal emitting devices in the grating layer are distributed in at least two different height layers.
[0117] This implementation method takes into account that the larger the number of P, the denser the optical path of the grating layer, the greater the accuracy of the probe detection and the greater the chip safety. However, if all optical signal transmitting / receiving devices are at the same height layer, it is not convenient to arrange the related devices on the one hand, and it is also easy to cause optical path conflicts, light interference, etc., which affect the accuracy of the detection results. Therefore, this implementation method takes into account that the P optical signal transmitting devices in the grating layer can be distributed in at least 2 different height layers.
[0118] For easier understanding, please refer to Figure 6 , Figure 6 In the implementation mode, the P optical signal transmitting devices in the grating layer are distributed in two different height layers. Since each optical signal transmitting device needs to be received by a corresponding optical signal receiving device, this implementation mode takes into account that for any optical signal transmitting device, the corresponding optical signal receiving device should be located at the same height layer in the chip as the optical signal transmitting device.
[0119] In addition, it should be noted that when the P optical signal emitting devices in the grating layer are controlled to emit light according to a preset light-emitting sequence, the specific light-emitting sequence can be set and adjusted according to actual needs, and at the same time, only a single optical signal emitting device can emit light, or multiple optical signal emitting devices can emit light at the same time.
[0120] For example, for the above Figure 5In the specific implementation, the optical signal transmitting devices F-1, F-2 and F-3 can be controlled to send optical signals in sequence, and the optical signal receiving devices S-1, S-2 and S-3 receive them respectively. For another example, the optical signal transmitting devices F-1, F-2 and F-3 can be controlled to send optical signals at the same time, and the optical signal receiving devices S-1, S-2 and S-3 receive them respectively. For another example, the optical signal transmitting devices F-1 and F-2 can be controlled to send optical signals at the same time, and the optical signal receiving devices S-1 and S-2 receive them respectively, and then the optical signal transmitting device F-3 can be controlled to send optical signals, and the optical signal receiving device S-3 receives them.
[0121] In practical applications, the reason why it is necessary to emit light in a preset order is that if too many optical signal emitting devices emit light at the same time, the required power may be too high, and interference may easily occur, affecting the accuracy of the detection results.
[0122] In one embodiment, considering that the P optical signal emitting devices in the grating layer are usually distributed in at least two different height layers, the preset light emission sequence can be set as follows: the optical signal emitting devices emit light layer by layer in the order of the first height layer to the xth height layer. Here, x represents the total number of height layers. For example, Figure 6 In the implementation mode, the P optical signal emitting devices in the grating layer are distributed in 2 different height layers, so x=2. And when the optical signal emitting devices of any layer are emitting light, it can be set that the odd-numbered optical signal emitting devices emit light at the same time, and then the even-numbered optical signal emitting devices of the layer emit light at the same time. Such a design is based on the consideration that in practical applications, multiple optical signal transceivers having both optical signal emitting function and optical signal receiving function are usually used to realize the grating layer.
[0123] Still Figure 6 For example, Figure 6 The 16 circles in the figure represent 16 optical signal transceivers that have both optical signal transmitting and optical signal receiving functions. That is, each optical signal transceiver includes one optical signal transmitting device and one optical signal transmitting and receiving device. Therefore, Figure 6 In the implementation mode, P=16.
[0124] For example Figure 6The optical signal transceivers on the left and right sides are located at the first height layer close to the shielding layer, and the optical signal emitting devices in the 4 optical signal transceivers on the left are all odd-numbered, and correspondingly, the optical signal emitting devices in the 4 optical signal transceivers on the right are all even-numbered. It can be understood that, in this example, the optical signal emitting devices in the 4 optical signal transceivers on the left can first emit light at the same time, so as to be detected by the 4 optical signal transceivers on the right, and then, the optical signal emitting devices in the 4 optical signal transceivers on the right can emit light at the same time and be detected by the 4 optical signal transceivers on the left.
[0125] In a specific implementation of the present invention, determining whether the optical signal reception result is normal may include:
[0126] Determining whether the number of optical signal receiving devices that have not received an optical signal exceeds a preset first number value;
[0127] If yes, it is determined that the optical signal reception result is abnormal;
[0128] If not, obtaining the number of each optical signal receiving device that has not received the optical signal as the obtained number group;
[0129] Determine whether the obtained number group matches any number group in a preset database;
[0130] If it is in compliance, it is determined that the optical signal reception result is abnormal;
[0131] If not, it is determined that the optical signal reception result is normal.
[0132] This implementation takes into account that when judging whether the optical signal reception result is normal, if the number of optical signal receiving devices that have not received the optical signal exceeds a preset first number value, it can be determined that it is an obvious abnormal situation, and therefore it can be directly determined that the optical signal reception result is abnormal.
[0133] And considering that, if the number of optical signal receiving devices that have not received the optical signal does not exceed the preset first quantity value, that is, it means that a small number of optical signal receiving devices have not received the optical signal, at this time, the number of each optical signal receiving device that has not received the optical signal can be further obtained as the obtained number group. If the obtained number group matches any number group in the preset database, it means that the current situation belongs to a predetermined typical probe situation, and therefore it can be determined that the optical signal reception result is abnormal.
[0134] For example, in one case, after preliminary analysis by the staff, it is determined that if the encryption device A of the chip is probed, the optical signal receiving devices numbered 2, 7 and 11 will not be able to receive the optical signal due to the influence of the probe. Then the number group (2, 7, 11) can be placed in the preset database. For example, in one case, the obtained number group is specifically (2, 6, 7, 11), that is, the optical signal receiving devices numbered 2, 6, 7 and 11 cannot receive the optical signal. Since the obtained number group contains all the numbers in the number group (2, 7, 11), it can be determined that the obtained number group is consistent with the number group (2, 7, 11) in the database, so it can be determined that the optical signal reception result is abnormal. Of course, in some cases, it can be set that the obtained number group does not need to be completely covered, but as long as it covers a% of the numbers in a certain number group in the database, it is determined that the obtained number group is consistent with the number group in the database. It can be set according to actual needs, and this application does not elaborate on this. Here, a is a preset parameter, which can be set and adjusted as needed.
[0135] In addition, it can be understood that the preset first quantity value can be set as needed, but in order to avoid false triggering, it is usually not set to 1, especially when the number of P is large, in order to avoid false triggering, the value of the first quantity value will be appropriately increased. In this implementation, by judging whether the obtained number group conforms to any number group in the preset database, it is not easy to miss the detection even if the value of the first quantity value is appropriately increased, that is, the setting of this implementation is conducive to reducing the probability of false detection, and also conducive to reducing the probability of missed detection.
[0136] By applying the technical solution provided in the embodiment of the present invention, the shielding layer is located on the outer surface of the chip, and the security protection controller, the spectrum countermeasure device and the designated encryption component are all located at a position covered by the shielding layer, and can be protected by the shielding layer. After the chip is powered on, the security protection controller will control the spectrum countermeasure device to send an optical signal to the shielding layer, and then determine whether the spectrum countermeasure device receives a reflected optical signal. It can be understood that if the shielding layer has been cut, the spectrum countermeasure device cannot receive the reflected optical signal, so the security protection operation will be triggered. If the reflected optical signal is received, the present application scheme has other protection methods. Specifically, it is necessary to continue to control the spectrum countermeasure device to send an optical signal until the first duration is reached and the optical signal is stopped. This is because the shielding layer is provided with N groups of energized windings, and the resistance value of each group of windings is controlled by light. Therefore, when the spectrum countermeasure device sends an optical signal for the first duration, under normal circumstances, the resistance value of the N groups of windings should reach a reasonable value, so that the current data on the shielding layer meets the set requirements. In other words, if the current data on the shielding layer does not meet the set requirements, it means that although the shielding layer has not been cut, it may have been damaged. Therefore, in order to ensure safety, the security protection operation will still be triggered at this time.
[0137] In summary, the present application solution can effectively ensure chip security through multiple protections.
[0138] Corresponding to the above method embodiment, an embodiment of the present invention further provides a chip security protection system, which can be referred to in correspondence with the above.
[0139] See also Figure 7 , the chip security protection system can be applied to security protection controllers, including:
[0140] The spectrum countermeasure device control module 701 is used to control the spectrum countermeasure device to send an optical signal to the shielding layer after the chip is powered on;
[0141] A first determination module 702 is used to determine whether the spectrum countermeasure device receives a reflected light signal;
[0142] If no reflected light signal is received, the self-destruction module 703 is triggered, and the self-destruction module 703 is used to trigger the safety protection operation;
[0143] If the reflected light signal is received, the continuous irradiation module 704 is triggered, and the continuous irradiation module 704 is used to continue to control the spectrum countermeasure device to send the light signal until the first time length is reached and the light signal is stopped;
[0144] The current detection module 705 is used to detect whether the current data on the shielding layer meets the set requirements;
[0145] If not, the self-destruct module 703 is triggered to trigger the safety protection operation;
[0146] The shielding layer is located on the outer surface of the chip, and the security protection controller, the spectrum countermeasure device and the designated encryption components are all located at the position covered by the shielding layer to be protected by the shielding layer; N groups of energized windings are arranged in the shielding layer, and the resistance value of each group of windings is controlled by light, and N is a positive integer.
[0147] In a specific embodiment of the present invention, a plurality of groups of windings that are powered are arranged on the shielding layer, and each group of windings uses an optically variable circuit so that its own resistance value is controlled by light.
[0148] In a specific implementation of the present invention, the current detection module 705 is specifically used for:
[0149] Detect the current size of each set of windings on the shielding layer;
[0150] When determining whether the current magnitudes of at least K groups of windings exceed the current range preset for the group of windings; K is a preset positive integer;
[0151] If yes, it is determined that the current data on the shielding layer does not meet the set requirements;
[0152] If not, it is determined that the current data on the shielding layer meets the set requirements.
[0153] In a specific embodiment of the present invention, the self-destruct module 703 is specifically used to:
[0154] The chip is self-destructed by boosting the voltage to break down the designated transistor.
[0155] In a specific embodiment of the present invention, a grating layer is also provided in the chip;
[0156] The grating layer is located at a position covered by the shielding layer so as to be protected by the shielding layer, and the grating layer is located between the shielding layer and the spectrum countermeasure device;
[0157] The grating layer includes P optical signal transmitting devices and P optical signal receiving devices, where P is a positive integer; for an optical signal sent by any optical signal transmitting device, a corresponding optical signal receiving device receives the optical signal;
[0158] The chip security protection system also includes:
[0159] The grating test module is used to control the P optical signal emitting devices in the grating layer to emit light in a preset light-emitting sequence after detecting that the current data on the shielding layer meets the set requirements, and obtain the optical signal receiving results through the P optical signal receiving devices;
[0160] The second judging module judges whether the optical signal receiving result is normal;
[0161] If not, trigger the self-destruct module 703 to trigger the safety protection operation;
[0162] If yes, the startup module is triggered, and the startup module is used to trigger the startup program of the chip.
[0163] In a specific implementation of the present invention, the second judgment module is specifically used to:
[0164] Determining whether the number of optical signal receiving devices that have not received an optical signal exceeds a preset first number value;
[0165] If yes, it is determined that the optical signal reception result is abnormal;
[0166] If not, obtaining the number of each optical signal receiving device that has not received the optical signal as the obtained number group;
[0167] Determine whether the obtained number group matches any number group in a preset database;
[0168] If it is in compliance, it is determined that the optical signal reception result is abnormal;
[0169] If not, it is determined that the optical signal reception result is normal.
[0170] In a specific embodiment of the present invention, for any one optical signal transmitting device, an optical signal receiving device for receiving an optical signal transmitted by the optical signal transmitting device is located at the same height layer in the chip as the optical signal transmitting device;
[0171] The P optical signal emitting devices in the grating layer are distributed in at least two different height layers.
[0172] Corresponding to the above method and system embodiments, an embodiment of the present invention further provides a chip security protection device, a computer-readable storage medium and a computer program product, which can be referred to in correspondence with the above.
[0173] See also Figure 8 As shown, the device may include:
[0174] Memory 801, used for storing computer programs;
[0175] The processor 802 is used to execute a computer program to implement the steps of the chip security protection method in any of the above embodiments.
[0176] The computer program product includes a computer program / instruction, which, when executed by a processor, implements the steps of the chip security protection method in any of the above embodiments.
[0177] See also Fig. 9 The computer readable storage medium 90 stores a computer program 91, and when the computer program 91 is executed by the processor, the steps of the chip security protection method in any of the above embodiments are implemented. The computer readable storage medium 90 mentioned here includes RAM (Random Access Memory), memory, ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory), register, hard disk, removable disk, or any other form of storage medium known in the technical field.
[0178] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0179] Professionals may further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention, and the description of the above embodiments is only used to help understand the technical solution and its core idea of the present invention. It should be pointed out that for ordinary technicians in the technical field, without departing from the principle of the present invention, the present invention can also be improved and modified in a number of ways, and these improvements and modifications also fall within the scope of protection of the present invention.
Claims
1. A chip security protection method, characterized in that: Applied to safety protection controllers, including: After the chip is powered on, the spectrum countermeasure device is controlled to send an optical signal to the shielding layer; determining whether the spectrum countermeasure device receives the reflected light signal; If no reflected light signal is received, the safety protection operation is triggered; If the reflected light signal is received, continue to control the spectrum countermeasure device to send the light signal until the first time length is reached and the light signal is stopped; Check whether the current data on the shielding layer meets the set requirements; If it does not meet the requirements, the security protection operation is triggered; The shielding layer is located on the outer surface of the chip, and the security protection controller, the spectrum countermeasure device and the designated encryption components are all located at the position covered by the shielding layer to be protected by the shielding layer; N groups of energized windings are arranged in the shielding layer, and the resistance value of each group of windings is controlled by light, and N is a positive integer.
2. The chip security protection method according to claim 1, characterized in that: A plurality of groups of windings with power are arranged on the shielding layer, and each group of windings adopts an optically variable circuit so that its resistance value is controlled by light.
3. The chip security protection method according to claim 2, characterized in that: Check whether the current data on the shielding layer meets the set requirements, including: Detect the current size of each set of windings on the shielding layer; When determining whether the current magnitudes of at least K groups of windings exceed the current range preset for the group of windings; K is a preset positive integer; If yes, it is determined that the current data on the shielding layer does not meet the set requirements; If not, it is determined that the current data on the shielding layer meets the set requirements.
4. The chip security protection method according to claim 1, characterized in that: Trigger security protection actions, including: The chip is self-destructed by boosting the voltage to break down the designated transistor.
5. The chip security protection method according to any one of claims 1 to 4, characterized in that: A grating layer is also provided in the chip; The grating layer is located at a position covered by the shielding layer so as to be protected by the shielding layer, and the grating layer is located between the shielding layer and the spectrum countermeasure device; The grating layer includes P optical signal transmitting devices and P optical signal receiving devices, where P is a positive integer; For an optical signal sent by any optical signal transmitting device, a corresponding optical signal receiving device receives the optical signal; Chip security protection methods also include: After detecting that the current data on the shielding layer meets the set requirements, the P optical signal emitting devices in the grating layer are controlled to emit light according to a preset light-emitting sequence, and the optical signal receiving results are obtained through the P optical signal receiving devices; Determine whether the optical signal reception result is normal; If not, the safety protection operation is triggered; If yes, the chip boot procedure is triggered.
6. The chip security protection method according to claim 5, characterized in that: Determine whether the optical signal reception result is normal, including: Determining whether the number of optical signal receiving devices that have not received an optical signal exceeds a preset first number value; If yes, it is determined that the optical signal reception result is abnormal; If not, obtaining the number of each optical signal receiving device that has not received the optical signal as the obtained number group; Determine whether the obtained number group matches any number group in a preset database; If it is in compliance, it is determined that the optical signal reception result is abnormal; If not, it is determined that the optical signal reception result is normal.
7. The chip security protection method according to claim 5, characterized in that: For any one optical signal transmitting device, an optical signal receiving device for receiving an optical signal transmitted by the optical signal transmitting device is located at the same height layer in the chip as the optical signal transmitting device; The P optical signal emitting devices in the grating layer are distributed in at least two different height layers.
8. A chip security protection system, characterized in that: Applied to safety protection controllers, including: A spectrum countermeasure device control module, used to control the spectrum countermeasure device to send an optical signal to the shielding layer after the chip is powered on; A first judgment module is used to judge whether the spectrum countermeasure device receives a reflected light signal; If no reflected light signal is received, a self-destruct module is triggered, wherein the self-destruct module is used to trigger a safety protection operation; If a reflected light signal is received, a continuous illumination module is triggered, and the continuous illumination module is used to continue to control the spectrum countermeasure device to send a light signal until the light signal is stopped when a first time length is reached; A current detection module is used to detect whether the current data on the shielding layer meets the set requirements; If not, triggering the self-destruct module to trigger the safety protection operation; The shielding layer is located on the outer surface of the chip, and the security protection controller, the spectrum countermeasure device and the designated encryption components are all located at the position covered by the shielding layer to be protected by the shielding layer; N groups of energized windings are arranged in the shielding layer, and the resistance value of each group of windings is controlled by light, and N is a positive integer.
9. A chip security protection device, characterized in that: include: Memory for storing computer programs; A processor, configured to execute a computer program to implement the steps of the chip security protection method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: A computer program is stored on a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the chip security protection method according to any one of claims 1 to 7 are implemented.
