This application claims priority from German Patent Application No. 10 2006 051 768.7, which was filed on Nov. 2, 2006, and is incorporated herein by reference in its entirety.
The present invention relates to the concept of determining an interference with a regulated voltage provided by a control loop, such as it may particularly be used to avoid loss of security-relevant data.
In electronic circuits, there are generally needed various stable voltages. In order to be able to provide these different voltage levels, voltage regulators are used, among other things. By exposing metal traces of an internal voltage supply network of an electronic circuit by preparation and subsequent contacting with the aid of a so-called probe needle and a so-called spike generator, interferences in the form of voltage peaks and/or spikes may be induced on an internal regulated voltage of the electronic circuit. Voltage peaks on the internal regulated voltage may, for example, result in malfunctions of a system linked to the electronic circuit, which may result in loosing security-relevant data. For example, in the field of cryptography, faulty results of an encryption algorithm due to outside influences, potentially in comparison with a correct result, may reveal security-relevant keys.
Contacting the internal voltage supply of an electronic circuit with a probe needle during a spike attack on a system requires impressing a DC voltage Vprobe corresponding to the internal regulated voltage VDDint. As an attacker generally does not exactly achieve the voltage level VDDint of the internal regulated voltage with the impressed DC voltage Vprobe, an intervention takes place into a control system of the internal voltage regulator, which then reacts with a permanent actual value>target value and/or actual value<target value.
Effects of an induced voltage peak on an internal regulated supply voltage may be detected by, for example, comparing two voltages derived from an external supply voltage of the electronic circuit. For this purpose, a voltage is, for example, influenced by capacitive launching of voltage peaks of the internal regulated supply voltage. With this procedure, however, an unambiguous distinction between legitimate load changes caused by the system and actually induced spikes is very hard to achieve and/or may only be realized with a large safe distance. This results in a dependence of the sensitivity of a voltage peak detector on an internal chip capacitance, a floor plan and the application.
According to embodiments, the present invention provides a device for determining an interference with a regulated voltage provided by a control loop with a monitor for monitoring a control variable or a change in time of the control variable of the control loop and a generator for generating a notification signal if the control variable or the change in time is beyond a tolerance range around a normal value.
Thus, embodiments of the invention have the advantage that a spike attack on an electronic circuit may be very reliably detected by monitoring a control variable of the voltage control loop. The spike attack is detected by observing the control mechanism and not by observing the effect on the internal regulated voltage. Thus, error-provoking attacks that may result in the loss of security-relevant data may be detected more easily and reliably, and thus protection mechanisms may be triggered to prevent the loss of data.
Preferred embodiments of the present invention will be explained in more detail below with reference to the accompanying drawings, in which:
With respect to the following description, it is to be noted that, in the various embodiments, equal functional elements or elements acting equally have the same reference numerals, and thus the descriptions of these functional elements in the various embodiments illustrated below are interchangeable.
What may be regarded as control variable 110 is any signal occurring in the control loop 100 having an influence on a control element of the controlled system 130, wherein the control element outputs the variable 104 to be regulated.
An attack on the control loop 100 is modeled by the disturbance variable 132. According to the invention, the attack is now detected by observing the control mechanism and/or by observing the control variable 110. According to the present invention, the controlled variable and/or the actual value 104 is a voltage regulated by the control loop 100.
The comparator 108 compares the reference variable 102 and the controlled variable 104 and, depending thereon, outputs a signal at its output as control variable 110. According to an embodiment of the present invention, the comparator 108 has a differential amplifier. According to embodiments, the controlled system 130 comprises a charge pump and a regulation transistor as control elements. Depending on the reference variable 102 and the controlled variable 104, the differential amplifier outputs at least one control signal to either reduce or increase a VCO frequency (VCO=voltage controlled oscillator) of the charge pump, wherein the VCO frequency, in turn, controls a control voltage for the regulation transistor. According to an embodiment of the present invention, the means 122 for monitoring monitors a change in time and/or a frequency of the at least one control signal and/or the control variable and causes the means 124 for generating a notification signal 126 to generate a notification signal if the frequency of the at least one control variable is beyond a tolerance range around a normal value, particularly below a lower cut-off frequency.
According to a further embodiment of the present invention, the control voltage of the regulation transistor provided by a charge pump following the differential amplifier may be regarded as control variable. According to this embodiment of the present invention, the means for monitoring monitors the control voltage and/or the control variable itself and causes the means for generating a notification signal to generate a notification signal if the control variable itself is beyond a tolerance range around a normal value.
According to a further embodiment of the present invention, a differential amplifier included in the comparing means 108 directly provides a control voltage at its output as control variable 110 for a regulation transistor included in the controlled system 130 to allow providing a regulated voltage. According to this embodiment of the present invention, the means 122 for monitoring monitors the control voltage and/or the control variable 110 itself and causes the means 124 for generating a notification signal 126 to generate a notification signal if the control variable 110 itself is beyond a tolerance range around a normal value.
By monitoring the control variable 110 and/or a change in time of the control variable 110 of the control loop 100, a conclusion is thus drawn as to the state of the control loop 100 and a determination is thus made whether a system supplied by the voltage 104 internally regulated by the control loop 100 is supplied externally via a probe needle. According to an embodiment of the present invention, the means 122 for monitoring the control variable 110 may include a digital counter for this purpose to allow determining, for example, a frequency of the control variable 110. This makes an observation of the internal regulated voltage and/or the controlled variable 104 itself superfluous, thus providing independence of an evaluation of a change of the internal supply voltage and/or the controlled variable 104.
A preferred embodiment of a device for determining an interference with a regulated voltage provided by a control loop according to an embodiment of the present invention will be explained in more detail below with reference to
At the first input of the differential amplifier 208, there is a stable reference voltage that may, for example, be supplied by a so-called band gap circuit. A part of the regulated internal voltage VDDint divided by the voltage divider consisting of the two resistors 204 and 206 is fed back to the second input of the differential amplifier 208. The differential amplifier 208 further comprises a first and a second output, wherein an up signal 210 is provided at the first output and a down signal 212 is provided at the second output of the differential amplifier 208. The two outputs of the differential amplifier 208 with the up signal 210 and the down signal 212 constitute a first and a second input of an inventive device 120 for determining an interference with the regulated voltage VDDint provided by the control loop 100.
In the device 120, the up signal 210 and the down signal 212 are supplied to means 122 for monitoring the two signals. The means 122 for monitoring comprises a first comparator 214 for the up signal 210 and a second comparator 216 for the down signal 212. An output of the first comparator 214 and an output of the second comparator 216 respectively form an input for means 124 for generating a notification signal 126. In the embodiment of the present invention illustrated in
The reference numeral 230 denotes an area on the chip and/or IC 200 in which the internal regulated supply voltage VDDint is made accessible, for example by exposing a metal trace of an internal supply network of the chip 200. The reference numeral 240 indicates a probe needle of a spike generator 250, with which disturbances of the internal regulated supply voltage VDDint are to be induced. In
For a spike attack on the internal regulated voltage VDDint, a constant voltage supply Vprobe in the range of the regulated voltage VDDint by means of the spike generator 250 is required. This is schematically illustrated in the upper part of
The upper part of
In the first case and/or the first time interval t1 to t2, Vprobe>VDDint, which results in the situation that a larger voltage is present at the inverting input of the differential amplifier 208 than the reference voltage provided by the band gap circuit at the non-inverting input of the differential amplifier 208. Since the differential amplifier 208 wants to keep its inputs always at the same potential, i.e. the reference potential, via the feedback loop, the down signal 212 of the differential amplifier 208 is permanently active and/or the up signal 210 is permanently inactive in the time interval t1 to t2. This relationship is illustrated in the middle of
In the frequency range of the control variable, the activity and/or inactivity of the control signals and/or the control variables 210, 212 means a frequency portion below a minimum cut-off frequency of the control signals, which is not reached with normal regulation behavior of the control loop 100. With the first comparator 214 and the second comparator 216, the frequency of the up signal 210 and/or the down signal 212, respectively, may now be compared to a lower cut-off frequency fmin that may respectively be tolerated. In the case of a frequency below the lower cut-off frequency fmin, the two comparators 214 and 216 respectively output a logical one at their outputs, wherein the two outputs constitute the inputs of the OR gate 218. This is schematically illustrated in the lower part of
Both scenarios Vprobe>VDDint and/or Vprobe<VDDint thus mean an intervention in the regulation of the voltage regulator 100 present on the chip and/or IC 200, which regulates the external voltage VDDext to the internal chip supply voltage VDDint with the help of the reference voltage (for example from a band gap circuit) present at the first input of the differential amplifier 208. According to the invention, these attacks are detected as such by the temporal observation of a control variable or the behavior in time of the control variable of the control loop. In the embodiment of the present invention shown in
Depending on the control architecture, various control variables may be monitored. For a simple p-regulator (proportional regulator), the control and/or gate voltage of the regulation transistor 202 of the controlled system 130 may, for example, be monitored by permanently falling below a minimum voltage or permanently exceeding a maximum voltage. For an n-regulator shown in
As already described above, both the up signal 210 and the down signal 212 respectively constitute a control variable of the control loop for the control circuit illustrated in
Summarizing, the inventive concept thus allows detection of a spike attack by observing a control mechanism. The observation of a lower cut-off frequency of a control variable of the regulation amplifier, which compares the internal voltage VDDint to a reference voltage, allows conclusions to be drawn as to the state of the control loop and thus to make a determination whether the system is supplied externally via a needle and a voltage source. This makes the observation of the internal regulated voltage itself superfluous, thus achieving independence of the evaluation of the internal regulated voltage change.
The inventive concept has the advantage that an unambiguous distinction between load changes caused by the system and actually induced spikes is facilitated. Thus the sensitivity of an inventive circuit for the detection of a spike attack is independent of the internal chip capacitance, the floor plan and the application.
In particular, it is to be noted that, depending on the circumstances, the inventive scheme may also be implemented in software. The implementation may be done on a digital storage medium, particularly a floppy disk or a CD with control signals that may be read out electronically, which may cooperate with a programmable computer system and/or microcontroller so that the corresponding method is executed. In general, the invention thus also consists in a computer program product with program code stored on a machine-readable carrier for performing the inventive method when the computer program product runs on a computer and/or microcontroller. In other words, the invention may thus be realized as a computer program with a program code for performing the method when the computer program runs on a computer and/or microcontroller.
While this invention has been described in terms of several preferred embodiments, there are alterations, permutations, and equivalents which fall within the scope of this invention. It should also be noted that there are many alternative ways of implementing the methods and compositions of the present invention. It is therefore intended that the following appended claims be interpreted as including all such alterations, permutations, and equivalents as fall within the true spirit and scope of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
10 2006 051 768.7 | Nov 2006 | DE | national |