Using voltage monitoring to protect integrated circuits from attack
By using attack protection circuits (APCs) in integrated circuits, voltage glitches can be detected using analog and digital circuits, thereby protecting integrated circuits from voltage and frequency attacks and ensuring the security of confidential information.
Patent Information
- Application Number
- CN202210955684.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-09-02
- Filing Date
- 2022-08-10
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2042-08-10
AI Technical Summary
Integrated circuits are susceptible to voltage glitches, which can damage built-in security functions and prevent them from effectively protecting confidential information.
The attack protection circuit (APC), which includes analog front-end circuitry and digital averaging circuitry, detects and responds to voltage attacks by comparing multiple voltage thresholds and estimating duty cycles, triggering a safe mode or reset function circuit.
It effectively protects integrated circuits from voltage and frequency attacks, ensures the security of confidential information, prevents metastability, and protects the normal operation of functional circuits.
Smart Images

Figure CN115758479B_ABST
Abstract
Description
Technical Field
[0001] This invention relates generally to integrated circuit security, and more particularly to methods and systems for protecting integrated circuits from security attacks. Background Technology
[0002] Integrated circuits (ICs) are sometimes vulnerable to hacking to extract confidential information (such as security keys).
[0003] In "How Voltage Glitches Can Weaken Your SoC or MCU" (INVIA Application Notes - Revision 1.0 - June 30, 2020), the author explains that voltage glitches are a simple and inexpensive method for hackers and criminals to execute fault injection vulnerabilities on any accessible device. The author recommends layered security measures, including rapid and reliable detection of transient voltage events on the target device's power supply, and redundant hardware and software, to ensure the system is resilient to attacks. The author then goes on to describe the details of how voltage glitches protect intellectual property.
[0004] U.S. Patent Application Publication 2021 / 0148957 discloses a circuit for detecting voltage-based attacks on an integrated circuit in the presence of clock jitter, wherein the propagated signal may exhibit a total delay due to a delay component caused by the voltage-based attack and a delay characteristic due to clock fluctuations. The voltage change detection circuit includes first and second varistor circuits and a voltage analysis circuit. The varistor circuits generate first and second signals indicating voltage levels in response to a clock signal and based on different first and second voltage sensitivities. The voltage analysis circuit generates a voltage alarm signal based on the first and second signals. The combined signal cancels out the delay characteristics in the first and second signals, but the delay component due to voltage changes can be at least partially maintained. Therefore, by using two varistor circuits, voltage-based attacks can be detected in the presence of clock fluctuations. Summary of the Invention
[0005] Embodiments of the present invention described herein provide an integrated circuit (IC) including a functional circuit and an attack protection circuit (APC). The functional circuit receives a power supply voltage from a power supply input. The APC is coupled to the power supply input and includes a front-end circuit and an averaging circuit. The front-end circuit compares the power supply voltage with a plurality of voltage thresholds and outputs a plurality of corresponding indications indicating whether the power supply voltage violates a corresponding voltage threshold. The averaging circuit estimates, for a selected subset of the indications, a corresponding duty cycle in which the indications in the subset exceed the corresponding voltage threshold. The APC triggers one or more attack detection events in response to the indications and the duty cycle.
[0006] In some embodiments, the front-end circuit is an analog circuit, and the averaging circuit is a digital circuit. In some embodiments, the APC is used to latch the one or more attack detection events. In an embodiment, the voltage threshold includes at least two different overvoltage thresholds. Alternatively, the voltage threshold includes at least two different undervoltage thresholds.
[0007] In the disclosed embodiments, the APC is used to compare at least one of the duty cycles with a duty cycle threshold, and to trigger an attack detection event in response to detecting an exceedance of the duty cycle threshold. In an example embodiment, the APC is used to trigger at least one of the attack detection events regardless of whether the clock signal of the integrated circuit is functioning correctly. In an embodiment, the front-end circuitry includes a resistor network for generating multiple voltage thresholds.
[0008] According to embodiments of the present invention, a method for protecting an integrated circuit (IC) is also provided. The method includes: using front-end circuitry to compare a power supply voltage supplied to functional circuitry of the IC with a plurality of voltage thresholds, and outputting a plurality of corresponding indications indicating whether the power supply voltage violates a corresponding voltage threshold; using an averaging circuitry to estimate a corresponding duty cycle for a selected subset of the indications where the indications exceed the corresponding voltage threshold; and triggering one or more attack detection events in response to the indications and the duty cycle.
[0009] According to embodiments of the present invention, a method for protecting an integrated circuit (IC) is also provided. The method includes: comparing a power supply voltage supplied to functional circuitry of the IC with a plurality of voltage thresholds. A plurality of corresponding indications, indicating whether the power supply voltage violates a corresponding voltage threshold, are output. For a selected subset of the indications, a corresponding duty cycle in which the indications in the subset exceed the corresponding voltage threshold is estimated. One or more attack detection events are triggered in response to the indications and the duty cycle. Attached Figure Description
[0010] The invention will be more fully understood through the following detailed description of embodiments, taken in conjunction with the accompanying drawings, in which:
[0011] Figure 1 This is a block diagram schematically illustrating a voltage / frequency attack scenario on an integrated circuit (IC) with an attack protection circuit (APC) according to an embodiment of the present invention;
[0012] Figure 2A and 2B According to an embodiment of the present invention, the diagrams schematically illustrate the state transitions of an IC under conditions of no attack protection and with attack protection when a security attack is launched.
[0013] Figure 3 This is a timing diagram schematically illustrating four types of voltage attacks applied to an IC and detected by an attack protection circuit (APC) according to an embodiment of the present invention;
[0014] Figure 4 This is a block diagram schematically illustrating the structure of an attack protection circuit (APC) according to an embodiment of the present invention; and
[0015] Figure 5 This is a flowchart illustrating a method for protecting an IC from a combined voltage-frequency attack, including voltage and the Vdd power supply input and clock input applied to the IC, according to an embodiment of the present invention. Detailed Implementation
[0016] Overview
[0017] One of the more common security attacks on integrated circuits (ICs) is to apply glitches to the IC's power inputs and / or clock inputs in the hope of creating metastability, thereby compromising the IC's built-in security features.
[0018] We call someone who attacks an IC to maliciously access unauthorized data a hacker. Hackers typically employ four types of voltage attacks:
[0019] 1. High-voltage spike attack, in which a hacker applies a single high-voltage spike to the power input of an IC, where the voltage spike is significantly higher than the IC's maximum specifications.
[0020] 2. Low-voltage spike attack, in which a hacker applies a single low-voltage spike to the power input of an IC, where the voltage spike is significantly lower than the IC's minimum specifications.
[0021] 3. High average voltage attack, in which a high duty cycle pulse sequence is applied to the power input, wherein in each pulse, the voltage is higher than the maximum power supply voltage specification.
[0022] 4. Low average voltage attack, in which a high duty cycle pulse sequence is applied to the power supply input, wherein in each pulse, the voltage is lower than the minimum power supply voltage specification.
[0023] The four types of voltage attacks mentioned above can be combined with frequency attacks that apply a large amount of noise to the clock input of the IC.
[0024] The embodiments of the invention disclosed herein provide an IC protected against at least four types of voltage attacks combined with frequency attacks. In an embodiment, the IC includes functional circuitry and an attack protection circuit (APC). In one embodiment, the APC includes analog domain circuitry, referred to as analog front-end circuitry, and digital domain circuitry, referred to as digital averaging circuitry. The analog domain circuitry includes a set of reference voltages (threshold voltages) and analog comparators that compare the supply voltage to the threshold voltage series and indicate for each threshold voltage whether the supply input voltage level is above or below the threshold voltage.
[0025] In some embodiments, the threshold voltage includes a maximum high voltage spike threshold, a high average threshold, a low average threshold, and a minimum low voltage spike threshold, respectively coupled to a maximum spike comparator, an average high comparator, an average low comparator, and a minimum spike comparator. The comparators compare the supply voltage to the threshold (in some embodiments, the comparators may multiply the supply voltage by a preset factor (e.g., 0.5) before comparing it to the correspondingly adjusted threshold).
[0026] In this context, a power supply voltage is referred to as a “violation” threshold when it is above an overvoltage threshold (e.g., a maximum high voltage spike threshold or a high average threshold) or below an undervoltage threshold (e.g., a low average threshold or a minimum low voltage spike threshold).
[0027] In some embodiments, the APC's analog circuitry also includes a latch operable to latch a detected attack. The latch is not clocked and therefore can be protected against combined voltage spike-frequency attacks.
[0028] In one embodiment, the digital circuitry of the APC includes an averaging circuit that receives an indication from a corresponding comparator in the analog circuitry that an average high or average low attack may be in progress. The averaging comparator outputs over time and indicates whether the average value exceeds a preset (digital) threshold.
[0029] In some embodiments, if the APC detects an attack, the APC forces the functional circuitry into a safe state; for example, in one embodiment, the APC may reset some or all of the triggers of the functional circuitry.
[0030] System Description
[0031] The embodiments disclosed herein relate to protecting integrated circuits (ICs) from voltage and / or frequency attacks. However, the disclosed techniques can also be used to protect systems (e.g., multi-chip modules or MCMs).
[0032] Figure 1This is a block diagram 100 schematically illustrating a voltage / frequency attack scenario on an integrated circuit (IC) according to an embodiment of the present invention. IC 102 includes functional circuitry 104, which includes a processor 106 and a memory 108. Processor 106 can be any central processing unit (GPU), graphics processing unit (GPU), communication processor, or other type of processor (in one embodiment, processor 106 may include multiple processors of the same or different types). The functional circuitry may include confidential information stored, for example, in memory 108. Protection software and / or hardware within the functional circuitry only allow access to the confidential information if (e.g., by an authorized user) a predefined key is provided.
[0033] Hacker 112, communicating with the IC from terminal 114, is unaware of the predefined key and attempts to access confidential information by employing various attack techniques. According to Figure 1 In the example embodiment shown, hacker 112 connects voltage spike generator 116 to the VDD power supply voltage of IC 102 and connects frequency source 118 with programmable noise to the clock input of the IC. By applying spikes to the power supply and / or noise to the clock input, the hacker attempts to induce a metastable state in IC 100, which could potentially expose confidential data to the hacker.
[0034] To mitigate such attacks, IC 102 also includes an attack protection circuit (APC) 120 coupled to the IC's power input and clock input. The APC is configured to detect voltage attacks and combined voltage / frequency attacks, and if an attack is detected, enforce a safe mode for the functional circuitry (the safe mode could be, for example, a memory access restricted mode, or, in another example, a mode in which the processor 106 is reset).
[0035] Therefore, APC can detect all voltage and voltage / frequency attacks while ensuring the security of confidential information.
[0036] As will be understood, the voltage-frequency attack scenario 100 and the structure of IC 102 are described as examples for clarity. In alternative embodiments, other suitable attack scenarios and IC structures may be used. For example, IC 102 may include multiple power supply voltages and multiple clock sources (in which case, a hacker may attempt to attack some or all of the voltage sources, and APC 120 may be configured to protect against attacks on any or all power and clock inputs). In one embodiment, IC 102 includes other sub-units, such as multiple processors, multiple memories (of the same or different types), a communication controller, a security engine, a graphics processing unit, etc. In some embodiments, IC 102 is not connected to a terminal, and a hacker may monitor communication between the IC and an external entity (e.g., a network).
[0037] Security Vulnerability Examples
[0038] When no security attack is attempted, IC 102 is configured to restrict access to any stored confidential data. For example, IC 102 can run a computer program where access to confidential information is only granted after an authentication process (e.g., a program that asks for and then checks a user's password) is executed. More generally, IC 102 can be viewed as a finite state machine (FSM) where access to protected data can only be entered after a successful authentication state has been achieved.
[0039] Figure 2A This is a schematic diagram of state transitions 200 illustrating the states of IC 102 according to an embodiment of the present invention, while APC 120 is inactive when a security attack is launched. The state transition diagram includes a set of normal procedure flows for state 202, including design states and transitions between states. Figure 2A The state transition diagram shown illustrates that when the FSM is in state 204, the user can request access to protected data; as a result, the FSM transitions to authentication state 206 (authentication state 206 typically includes multiple states, which are not shown for clarity). If authentication fails in state 206, the FSM transitions back to state 204; however, if authentication succeeds, the FSM transitions to access protected data state 208, exposing the protected data to the user, and then transitions back to state 204 (and from state 204 to other states of normal procedure flow 202).
[0040] according to Figure 2A The state transition diagram shown may indicate an illegal state if a voltage spike is applied to the input of functional circuit 104. For example, although the FSM normally transitions from state 210 to state 214, if a voltage spike is applied while the FSM is in state 210, the FSM may enter metastable state 212. (For example, a tutorial on metastable states in electronic systems can be found in L. Kleeman et al., "Metastable Behavior in Digital Systems," IEEE Design and Testing of Computers (Vol. 4, No. 6, December 1987), pp. 4-16). The behavior of the FSM after metastable states may be unpredictable, and in some cases, the FSM may enter protected data access state 208 and read protected data.
[0041] As will be understood, Figure 2AThe state transition diagram 200 shown and described herein is an example cited for clarity of concept. Other state transition diagrams may be used. For example, if a voltage spike occurs while the FSM is in various normal program flow states, multiple metastable states may be entered, and the next state after the metastable state may be a sub-state of state 208 entered after authentication (and is not shown).
[0042] Figure 2B This is a schematic diagram of state transitions 250 for IC 102 with an active APC 120, according to an embodiment of the present invention. The states in state transition diagram 250 are the same as those in state transition diagram 200, and both FSMs contain metastable state 212, which may result in an unsafe transition from metastable state 212 to state 208; however, according to... Figure 2B In the example embodiment shown, the APC will detect any voltage attack, and therefore, the FSM will transition to state 214 (e.g., reset state). This prevents metastability 212 from being achieved, and the security of the protected data will not be compromised.
[0043] As will be understood, Figure 2B The state transition diagram 250 illustrated herein is an example embodiment cited for clarity of concept. In alternative embodiments, different state transition diagrams may be used. For example, in some embodiments, after the APC generates an attack indication, all states will unconditionally transition to a reset state.
[0044] Types of voltage attacks
[0045] Hackers may attempt both voltage and frequency attacks simultaneously. However, since the master clock in most ICs is generated by a slowly varying phase-locked loop (PLL) inherent on-chip, frequency attacks are typically limited to stopping the clock or slowly changing the frequency. Therefore, we will focus on the details of different types of voltage attacks below, which will be referenced... Figure 3 Describe it.
[0046] Figure 3 This is a timing diagram 300 schematically illustrating four types of voltage attacks applied to IC 102 and detected by attack protection circuit 120 according to an embodiment of the present invention. The timing diagram includes a vertical voltage axis 302 (labeled V) and a horizontal time axis 304. The diagram illustrates the voltage-time waveform 306 of the power input Vdd of IC 102. The diagram also illustrates the normal minimum (VDD-MIN) voltage and maximum (VDD-MAX) voltage that can be applied to the IC according to the IC specifications.
[0047] First, a high-voltage spike attack 308 is applied, where the supply voltage enters a level much higher than the maximum specification for a short period of time. In some embodiments, the voltage level applied at the high-voltage spike attack 308 is high enough to permanently damage IC102 if it persists for a long period of time. The purpose of the high-voltage spike attack may be, for example, to make the Vol (output low voltage) of some flip-flops higher than the Vih input of some gates, which will cause an illegal combination of inputs (potentially leading to metastability).
[0048] Next, a low-voltage spike attack 310 is applied, in which the supply voltage is set to a level substantially below the minimum Vdd specification for a short period of time. This low supply voltage may cause some flip-flops to lose data, and some flip-flops may enter a metastable state when Vdd returns to normal.
[0049] In the average high attack 312, a continuous sequence of high-voltage pulses is applied to the IC power input. Since each pulse is essentially above the maximum specification, the average high attack can cause the junctions in the IC to overheat and may cause some flip-flops to reach a metastable state.
[0050] Next, in the average low-attack 314, a continuous sequence of low-voltage pulses is applied to the IC power input. Each pulse is substantially below the minimum Vdd specification, and the pulse sequence may cause more than one flip-flop to enter a metastable state; the combination of flip-flops entering a metastable state may increase the probability of subsequently entering a protected state.
[0051] As will be understood, Figure 3 The voltage attack waveforms shown are examples cited for clarity. Voltage attacks can include other waveforms in any order. Pulse sequences typically do not have a constant duty cycle and / or equal pulse heights, and some or all attacks can be applied very close to each other.
[0052] Figure 4 This is a block diagram schematically illustrating the structure of an attack protection circuit (APC) according to an embodiment of the present invention. APC120 (reference thereto) Figure 1 (Defined) This includes analog domain circuitry 402 and digital domain circuitry 404. The analog circuitry includes: a bandgap (BG) controlled voltage reference 406 configured to generate an accurate voltage (hereinafter referred to as BG-V); and a resistor ladder 408 configured to generate a series of resistor ladder voltages (which are fractions of BG-V). (The BG-controlled voltage reference 406 is configured to output an accurate voltage over a wide range of its power input.)
[0053] Analog circuit 402 also includes a threshold selector 410, which is programmed during the manufacture of IC 102 (e.g., as part of production testing) to select four of the resistor ladder voltages. The four selected resistor ladder voltages include comparison threshold voltages for detecting high spike attacks, high average attacks, low average attacks, and low spike attacks.
[0054] Analog circuit 402 also includes a comparator that compares the comparison threshold voltage output by the threshold selector with Vdd multiplied by R. R is a fixed ratio, such as 0.5, generated by a resistor divider (not shown); multiplying by R may be necessary because the high Vdd threshold actually required to identify an attack may be higher than BG-V, and therefore higher than any output of threshold selector 410. For the avoidance of confusion, we refer to the threshold voltage output by threshold selector 410 as the comparison threshold voltage, which is typically smaller than the corresponding attack detection threshold multiplied by the ratio R.
[0055] Comparator 412 compares the high peak comparison threshold, comparator 414 compares the high average comparison threshold, comparator 416 compares the low average comparison threshold, and comparator 418 compares the low peak comparison threshold.
[0056] If the Vdd voltage exceeds the maximum high spike threshold, then Vdd*R will be higher than the high spike comparison threshold voltage, and comparator 412 will indicate that a high spike attack has been detected. Similarly, if the Vdd voltage is lower than the minimum low spike threshold, then Vdd*R will be lower than the low spike comparison threshold voltage, and comparator 418 will indicate that a low spike attack has been detected. Figure 4 In the example embodiment shown, latch 420 latches the detection of a high-spike attack such that the indication persists after the spike is removed. Similarly, latch 422 latches the detection of a low-spike attack such that the indication persists after the spike is removed.
[0057] Latches 420 and 422 are configured to provide protection against combined voltage-frequency attacks. The latches are not clock-controlled and retain their respective attack indications regardless of any spikes on the clock input, including the cessation of clock oscillation.
[0058] Comparator 414 indicates when Vdd exceeds a high average threshold (or more precisely, when Vdd*R exceeds an average high comparison threshold). In embodiments, an attack is not considered unless the indicated average occurrence rate exceeds a preset value (in other words, the duty cycle of the pulse indicating Vdd is greater than the average high threshold exceeds a preset value). In some embodiments, a sliding average window with a predefined window size and a predefined average threshold is used. Digital circuitry 404 includes high averaging circuitry 424, which is configured to average the duty cycle and compare the duty cycle to a preset limit; if the preset limit is exceeded, high averaging circuitry 424 indicates that a high average attack has been detected.
[0059] Comparator 416 indicates when Vdd falls below a low average threshold. Unless the duty cycle of the pulse indicating Vdd is below the low average threshold exceeds a preset value, this may not be considered an attack. Digital circuitry 404 also includes a low averaging circuitry 426 configured to average the duty cycle and compare it to a preset limit; if the preset limit is exceeded, the low averaging circuitry 426 will indicate that a low average attack has been detected.
[0060] according to Figure 4 In the example embodiment shown, IC 102 is reset when latch 420, latch 422, high averaging circuit 424, or low averaging circuit 426 indicates that an attack has been detected. In this embodiment, the reset of IC 102 also resets latches 420 and 422.
[0061] We will show a numerical example.
[0062] We assume:
[0063] Nominal Vdd = 1.8V
[0064] Maximum Vdd = 2.1V
[0065] Minimum Vdd = 1.5V
[0066] High spike attack threshold = 2.8V
[0067] High average attack threshold = 2.4V
[0068] High average attack duty cycle threshold = 90%
[0069] Low spike attack threshold = 1.0V
[0070] Low average attack threshold = 1.2V
[0071] Low average attack duty cycle threshold = 90%
[0072] BG-V = 2.0V
[0073] R = 0.5
[0074] Since R = 0.5, the comparison threshold voltage is half of the corresponding attack threshold.
[0075] High peak comparison threshold = 1.4V
[0076] High average comparison threshold = 1.2V
[0077] Low peak comparison threshold = 0.5V
[0078] Low average comparison threshold = 0.6V
[0079] We assume the resistor ladder consists of 100 matched resistors, so the resistor ladder voltages are 0V, 20mV, 40mV, etc. During IC production testing, the threshold selector 410 is programmed to connect the voltage between resistors 25 and 26 (from the bottom) to the low average comparison threshold; the voltage between resistors 30 and 31 to the low spike comparison threshold; the voltage between resistors 60 and 61 to the high average comparison threshold; and the voltage between resistors 70 and 71 to the high spike comparison threshold.
[0080] Therefore, according to Figure 4 The example embodiments shown and described herein, including analog and digital domain circuits, can protect against four types of voltage attacks combined with frequency attacks.
[0081] As will be understood, Figure 4 The configuration of the APC 120 shown and described herein is an example configuration cited for clarity of concept. Other suitable configurations may be used in alternative embodiments. For example, in some embodiments, a resistor ladder is coupled to Vdd, and the comparator compares a preset fraction of Vdd with a fixed voltage level (e.g., with BG-ref*R). In some embodiments, the APC 120 is configured to monitor and protect against attacks on multiple supply voltages.
[0082] Figure 5 This is a schematic diagram of a flowchart illustrating a method 500 for protecting an IC from a combined voltage-frequency attack and a Vdd power supply input and clock input applied to the IC, according to an embodiment of the present invention. The flowchart is constructed using an attack protection circuit (APC) (e.g., Figure 1 The flowchart is executed using an APC 120. It involves four voltage references—Vth1, Vth2, Vth3, and Vth4—where Vth1 > Vth2 > Vth3 > Vth4. The four threshold voltages can be, for example, determined by a fixed voltage reference (e.g., ...). Figure 4 It is generated by voltage division of the resistor ladder of BG-V 406.
[0083] according to Figure 5 The example embodiment shown includes an infinite impulse response (IIR) filter for averaging to detect average high and average low attacks:
[0084] AVG = (Vdd > threshold?) AVG * (1 - K) + K: AVG * (1 - K).
[0085] (The equation quoted above applies to average height.)
[0086] K is a decay constant less than 1 (e.g., K = 0.02). As will be understood, other averaging methods may be used in alternative embodiments.
[0087] The flow chart begins with a step 502 of comparing Vth1, in which the APC compares the power supply voltage Vdd with the highest threshold voltage Vth1. In one embodiment, Vth1 is selected such that Vdd will be higher than Vth1 if a high voltage spike attack is attempted, and the APC will suspend (e.g., reset a functional circuit of the IC) if Vdd>Vth1. If Vdd is not greater than Vth1 in step 502, the APC will enter a step 504 of comparing Vth2, and compare Vdd with Vth2. In an embodiment, Vth2 is selected such that a high average attack may be in progress if Vdd>Vth2. If Vdd is greater than Vth2 in step 504, the APC will enter a step 506 of adding to high average, and update a value avgH according to the following formula:
[0088] avgH=K+avgH*(1-K)
[0089] If Vdd is not greater than Vth2 in step 504, the APC will enter a step 508 of updating average high, and update the value avgH according to the following formula:
[0090] avgH=avgH*(1-K).
[0091] After step 506 or step 508, the APC will enter a step 510 of comparing average high and compare the value of avgH with a digital threshold dths1 (e.g., 0.95). If avgH is greater than dths1, the functional circuit of the IC will be suspended (e.g., reset).
[0092] If avgH is not greater than dths1 in step 510, the APC will enter a step 512 of comparing Vth3, and compare Vdd with Vth3. In an embodiment, Vth3 is selected such that a low average attack may be in progress if Vdd<Vth3. If Vdd is lower than Vth3 in step 512, the APC will enter a step 514 of adding to low average, and update a value avgL according to the following formula:
[0093] avgL=K+avgL*(1-K)
[0094] If Vdd is not lower than Vth3 in step 512, the APC will enter a step 516 of updating average low, and update the value avgL according to the following formula:
[0095] avgL=avgL*(1-K).
[0096] Following step 514 or step 516, the APC will proceed to compare average low step 518 and compare the value of avgL to a digital threshold dths2 (e.g., 0.95). If avgL is greater than dths2, the functional circuitry of the IC will be aborted (e.g., reset).
[0097] If avgL is not greater than dths2 in step 518, the APC proceeds to compare vth4 step 520, where the APC compares the power supply voltage Vdd to a minimum threshold voltage Vth4. In one embodiment, Vth4 is chosen such that if a low voltage spike attack is attempted, Vdd will be below Vth4, and thus if, in step 520, Vdd<Vth4, the APC will abort.
[0098] As will be appreciated, Figure 5 the flowcharts shown are example embodiments that are referenced as examples. Other flowcharts may be used in alternative embodiments. For example, in some embodiments, a sliding window average is done instead of an IIR-based average. In one embodiment, all or some of the steps 502, 504, 512, and 520 of comparing to Vth may be done concurrently. The IIR average may be replaced by any other suitable averaging technique, and different averaging techniques may be used for average-high and average-low.
[0099] The Figures 1 to 5 attack scenarios 100, ICs 102 and APC 120, state diagram 250, and flowcharts 500 shown in and described above are example configurations, state diagrams, and flowcharts that are shown purely for conceptual clarity. Any other suitable configurations, state diagrams, and flowcharts may be used in alternative embodiments. The different sub-blocks of IC 102 may be implemented in suitable hardware, in software, in hardware, or in a combination of hardware and software elements (e.g., in one or more application specific integrated circuits (ASICs) or field programmable gate arrays (FPGAs)).
[0100] Therefore, it should be understood that the above embodiments are cited as examples, and the invention is not limited to what has been specifically shown and described above. Rather, the scope of the invention includes combinations and sub-combinations of the various features described above, as well as variations and modifications thereto that would occur to those skilled in the art upon reading the above description and that are not disclosed in the prior art. Documents incorporated herein by reference should be considered part of this application, and unless any term is defined in such incorporated documents in a manner that conflicts with the express or implied definitions in this application, the definitions in this application should be considered only.
Claims
1. An integrated circuit IC, comprising: Functional circuitry for receiving power supply voltage from the power input; as well as Attack protection circuit APC, coupled to the power input and including: A front-end circuit is configured to compare the power supply voltage with a plurality of voltage thresholds and output a plurality of indications indicating whether the power supply voltage violates a corresponding voltage threshold. as well as An averaging circuit is used to estimate, for a selected subset of the indications, the corresponding duty cycle for each indication in the subset that exceeds the corresponding voltage threshold. The APC is used to trigger one or more attack detection events in response to the indication and the duty cycle.
2. The integrated circuit according to claim 1, wherein the front-end circuit is an analog circuit and the averaging circuit is a digital circuit.
3. The integrated circuit of claim 1, wherein the APC is used to latch the one or more attack detection events.
4. The integrated circuit of claim 1, wherein the voltage threshold comprises at least two different overvoltage thresholds.
5. The integrated circuit of claim 1, wherein the voltage threshold comprises at least two different undervoltage thresholds.
6. The integrated circuit of claim 1, wherein the APC is configured to compare at least one of the duty cycles with a duty cycle threshold, and to trigger an attack detection event in response to detecting that the duty cycle threshold has been exceeded.
7. The integrated circuit of claim 1, wherein the APC is used to trigger at least one of the attack detection events, regardless of whether the clock signal of the integrated circuit is valid.
8. The integrated circuit of claim 1, wherein the front-end circuit includes a resistor network for generating the plurality of voltage thresholds.
9. A method for protecting an integrated circuit (IC), the method comprising: Using a front-end circuit, the power supply voltage supplied to the functional circuit of the IC is compared with multiple voltage thresholds, and multiple indications are output indicating whether the power supply voltage violates the corresponding voltage threshold. Using an averaging circuit, the duty cycle for each indication in the selected subset of the indications that exceeds the corresponding voltage threshold is estimated. as well as One or more attack detection events are triggered in response to the indication and the duty cycle.
10. The method of claim 9, wherein the front-end circuit is an analog circuit and the averaging circuit is a digital circuit.
11. The method of claim 9, wherein triggering the attack detection event comprises: Latch one or more attack detection events.
12. The method of claim 9, wherein the voltage threshold comprises at least two different overvoltage thresholds.
13. The method of claim 9, wherein the voltage threshold comprises at least two different undervoltage thresholds.
14. The method of claim 9, wherein triggering the attack detection event comprises: Compare at least one of the duty cycles with a duty cycle threshold; And in response to the detection that the duty cycle threshold has been exceeded, an attack detection event is triggered.
15. The method of claim 9, wherein triggering the attack detection event comprises: Trigger at least one of the attack detection events, regardless of whether the IC's clock signal is valid.
16. The method of claim 9, further comprising: The plurality of voltage thresholds are generated in the front-end circuit using a resistor network.
17. A method for protecting an integrated circuit (IC), the method comprising: The power supply voltage supplied to the functional circuitry of the IC is compared with multiple voltage thresholds; The output indicates whether the power supply voltage violates a corresponding voltage threshold. For a selected subset of the indications, estimate the corresponding duty cycle for which the indications in the subset exceed the corresponding voltage threshold; as well as One or more attack detection events are triggered in response to the indication and the duty cycle.
Citation Information
Patent Citations
Voltage-Variation Detection Under Clock Fluctuations
US20210148957A1
Voltage sensor detection device in security chip
CN206818857U
Glitch profiling in an integrated circuit
US20200402602A1
