The invention generally relates to systems and methods for countermeasure against leakage power analysis (LPA) attacks. More specifically, the invention relates to controlling supply voltage scaling utilizing a random number of false keys.
Systems and methods for a false key-controlled aggressive voltage scaling technique is provided as a countermeasure against leakage power analysis attacks. A random number of false keys are utilized to control a supply voltage scaling to mask possible leakage of information related to a correct key to a malicious attacker. Contrary to a random aggressive voltage scaling technique, false key-controlled aggressive voltage scaling technique can guarantee that the added false keys exhibit higher correlation coefficients than that of the correct key even when a sufficient number of plaintext inputs (>10 million) are enabled. As demonstrated with simulation results, the measurement-to-disclose (MTD) value of a cryptographic circuit can be enhanced over 10 million against leakage power analysis (LPA) attacks by utilizing the technique provided herein, while the MTD values of a conventional cryptographic circuit without a countermeasure and one with random aggressive voltage scaling are, respectively, less than 500 and 100,000.
In some embodiments, the invention provides a system provided for false key-controlled voltage scaling that includes a power supply that provides power to a cryptographic circuit. An electronic controller of the system is operatively coupled to the power supply. The electronic controller receives a plaintext value that is also input to the cryptographic circuit, where the cryptographic circuit modifies the plaintext value with a correct key. The electronic circuit scales the power provided to the cryptographic circuit based on a result of the plaintext value modified by a first false key.
In some embodiments, the invention provides a method for false key-controlled voltage scaling that includes providing power to a cryptographic circuit by a power supply. An electronic controller operatively coupled to the power supply receives a plaintext value that is also input to the cryptographic circuit, where the cryptographic circuit modifies the plaintext value with a correct key. The electronic controller scales the power provided to the cryptographic circuit based on a result of the plaintext value modified by a first false key.
Other aspects of the invention will become apparent by consideration of the detailed description and accompanying drawings.
Before any embodiments of the invention are explained in detail, it is to be understood that the invention is not limited in its application to the details of construction and the arrangement of components set forth in the following description or illustrated in the following drawings. The invention is capable of other embodiments and of being practiced or of being carried out in various ways
It should also be noted that a plurality of hardware and software based devices, as well as a plurality of different structural components, may be used to implement various embodiments described herein. In addition, it should be understood that embodiments may include hardware, software, and electronic components or modules that, for purposes of discussion, may be illustrated and described as if the majority of the components were implemented solely in hardware. However, one of ordinary skill in the art, and based on a reading of this detailed description, would recognize that, in at least one embodiment, the electronic based aspects may be implemented in software (e.g., stored on non-transitory computer-readable medium) executable by one or more processors. As such, it should be noted that a plurality of hardware and software based devices, as well as a plurality of different structural components may be utilized to implement various embodiments. Furthermore, and as described in subsequent paragraphs, the specific configurations illustrated in the drawings are intended to exemplify embodiments and that other alternative configurations are possible. For example, “controllers” described in the specification can include standard processing components, such as one or more processors, one or more computer-readable medium modules, one or more input/output interfaces, and various connections (e.g., a system bus) connecting the components. In some instances, the controllers described in the specification may be implemented in one of or a combination of a general processor, an application specific integrated circuit (ASIC), a digital signal processor (DSP), a field programmable gate array (FPGA), combinational logic or state circuitry, or the like.
Critical information such as a secret or private keys used in modern integrated circuits can be leaked to a malicious attacker through power analysis attacks. Leakage power analysis (LPA) attacks are successfully implemented on cryptographic circuits in circuit level simulations. However, when executed against an actual circuit (i.e., field-programmable gate array (FPGA)), LPA attacks seem to be ineffective. The main reason is that the amplitude of the leakage power dissipation of a cryptographic circuit is typically quite low relative to the dynamic power dissipation. Measurement noise therefore becomes critical in LPA attacks, possibly making LPA attacks inefficient. The measurement noise can, however, be filtered utilizing techniques such as average sampling analysis. LPA attacks can therefore become effective if the attacker has the ability to significantly lower the operating frequency of the cryptographic circuit to perform average sampling analysis.
In some LPA attacks, a hacker may attempt to determine a secret key that is being processed by a cryptographic circuit based on power that is input to the circuit while the secret key is being processed. Having knowledge of predicted (or simulated) leakage power levels for possible secret keys, the actual key being processed (the correct key) can be determined based on correlation coefficients between the predicted leakage power dissipation values and actual the leakage power dissipation as measured for a sufficient number of plaintext values applied to the cryptographic circuit (i.e., the highest correlation coefficient corresponds to the correct key). Therefore, if a countermeasure that introduces false keys can guarantee that the correlation coefficients of the false keys are always higher than the correlation coefficient of the correct key, even after a sufficient number of plaintext values are applied, potential threats from LPA attacks may be eliminated.
Discovery of leakage power analysis (LPA) attacks is quite recent, therefore, there are only a few existing countermeasures. Symmetric dual-rail logic (SDRL) is a countermeasure against LPA attacks. A cryptographic circuit built with SDRL can achieve approximately constant leakage power dissipation under different input data. However, this countermeasure would double both the power consumption and the area of a cryptographic circuit since the symmetric dual-rail logic requires more area than the conventional CMOS gates and consumes more power to flatten the input power profile. Random dynamic voltage and frequency scaling (RDVFS) with switched-capacitor voltage converters is also a countermeasure against LPA attacks because the leakage power dissipation of a cryptographic circuit strongly correlates with supply voltage. However, this countermeasure may be foiled by filtering power noise generated by the randomly altered supply voltage levels by increasing the number of measurements.
An adaptive false key-controlled aggressive voltage scaling is provided as a countermeasure against LPA attacks. When LPA attacks are sensed by a cryptographic circuit, the input plaintext values are added to a false key to generate a signal that controls scaling of the supply voltage. Since the supply voltage strongly correlates with the actual leakage power dissipation of a cryptographic circuit, there is a strong correlation between the added false key and actual leakage power dissipation that is measured in an LPA attack. If the correlation coefficient of the added false key is higher than the correlation coefficient of the correct key, the attacker may regard the added false key as the correct key. With regard to an adding the false key to the plaintext, the process of adding may include a Boolean operation such as logically combining a value of the false key with a value of the plaintext utilizing an exclusive- or operation. However, other operations may be performed in order to add the false key value and the plaintext value.
Since a single added false key strongly correlates with the scaling behavior of the supply voltage, if the attacker realizes that the key with the highest correlation coefficient is not the correct key and instead is an added false key, the added false key may be utilized to unriddle the scaling behavior acting on the supply voltage. Therefore, the correct key can still be determined by the attacker. In order to further scramble a leakage power trace, a random number of false keys are added to a plaintext value, for each clock period, to prevent the attacker from unriddling the supply voltage scaling pattern and as a result, protecting the correct key from observation by the attacker.
The cryptographic circuit 112 is operable to utilize data such as a key for processing input data such as plaintext or ciphertext. The key may be a secret key and may be referred to as the correct key. In some embodiments, the cryptographic circuit 112 is operable to perform encryption schemes utilizing the secret key, for example, to encrypt plaintext or decrypt ciphertext. A clock signal may be generated external to the cryptographic circuit 112 to control the operating frequency of the cryptographic circuit 112. In some embodiments, the clock signal may be generated internal to the cryptographic circuit 112 or the SFKC AVS controller 150.
The powers supply 110 provides power to the cryptographic circuit 112. In some embodiments, the power supply 110 includes a voltage converter such as a switched capacitor, linear, or inductive-based voltage converter. However, the power supply 110 is not limited to any specific type of power supply.
The SFKC AVS controller 150 includes suitable logic, circuitry, interfaces, and/or code that are operable to implement SFKC AVS techniques described herein. The SFKC AVS controller 150 includes a basic architecture for implementing a single false key controlled aggressive voltage scaling technique. The n-bit input plaintext A=(a1, a2, . . . , an)2 is added to the correct key Kc=(K1, K2, . . . , Kc,n)2 to generate the input data of the cryptographic circuit X1=(x1l, x2l, . . . xnl)2.
In some embodiments, the SFKC AVS controller 150 includes a frequency comparator that compares an operating frequency fc of the cryptographic circuit 112 to a reference frequency threshold.
When the cryptographic circuit is under an LPA attack, the attacker may lower the operating clock frequency fc to mitigate the measurement noise. In some embodiments, the SFKC AVS controller 150 includes a frequency comparator 140 that compares an operating frequency fc of the cryptographic circuit 112 to a specified reference frequency threshold Fo. The reference frequency threshold Fo may be equal to or above a critical operating clock frequency that is the slowest frequency that is still fast enough to prevent the attacker from filtering the measurement noise and thus makes LPA attacks inefficient. When the SFKC AVS controller 150 detects that the operating clock frequency is lower than the specified threshold Fo the SFKC AVS countermeasure processes are implemented. For example, when the frequency comparator 140 detects that the clock frequency fc is lower than the specified reference clock frequency Fo, the first switch 130 (S) is turned-on and the complementary second switch 132 (
In some embodiments, the SFKC AVS controller 150 may implement SFKC AVS process independent of the rate of the operating clock frequency fc of the cryptographic circuit 112. For example, the SFKC AVS controller 150 may add the false keys Kf to the input plaintext values A and convert the false key related data D to analog voltage for scaling the power supplied to the cryptographic circuit 112 for all input plaintext values A or for any determined number of input plaintext values A. In this regard, the single false key based countermeasure system 100 may not include the frequency comparator 140.
where Vin is the voltage when the logic bit is equal to 1. Rf and R0 are, respectively, the feedback resistance and weight resistance of the circuit 200. v0 can be considered as the output voltage resolution of the n-bit HW data converter 120.
The generated analog voltage Δv which strongly correlates with the false key Kf is used to control scaling of the supply voltage Vdd that is input to the cryptographic circuit 112. The modulated supply voltage Vdd can be denoted as
where Vdd,0 is the DC operating voltage of the cryptographic circuit 112 without any voltage scaling.
When the cryptographic circuit 112 is working in a normal mode (no LPA attack), the clock frequency fc is significantly higher than the critical frequency F0 (or the reference frequency threshold), the switch S is in the off-state and the complementary switch
Aggressive voltage scaling is a low overhead technique, which only reduces the performance of the cryptographic circuit 112 by 5%. Therefore, even if the proposed false key-controlled AVS process is turned-on when the cryptographic circuit 112 employs dynamic frequency scaling, the performance impact is negligible.
SFKC AVS technique masks the correct key with a single added false key that exhibits the highest correlation coefficient. However, the pattern of the supply voltage scaling may be unriddled to recover the correct key if the attacker utilizes that single added false key. In the multiple parallel false keys-controlled (MPFKC) AVS technique described with respect to
The second plurality of switches 332 (
where Sjϵ{0, 1}, R1 is the weight resistance of the mn-bit HW data converter 320, kf, j,i and dj,i are the ith bit of the jth added false key and the added false key related data, respectively, and v1 is the output voltage resolution of the mn-bit HW data converter 320. As a result, the modulated supply voltage for the MPFKC AVS technique becomes Vdd=Vdd,0+ΔV*.
Vw is the scaling width of supply voltage which is defined as the maximum value of |Vdd−Vdd,0|. When Vw is the same for the SFKC AVS and MPFKC AVS techniques, the below equation (4) should be satisfied
Therefore, the relationship between the weight resistances R0 and R1 is R1=mR0.
Similar to the method and system described with respect to
However, in some embodiments, the multiple parallel false key based countermeasure system 300 includes the frequency comparator 140 that compares an operating frequency fc of the cryptographic circuit 112 to a reference frequency threshold. When the operating frequency fc of the cryptographic circuit 112 is lower than the reference frequency threshold, the MPFKC AVS controller 350 implements the MPFKC AVS countermeasure process. For example, for each clock period that the operating frequency fc is below the specified frequency threshold, the MPFKC AVS controller 350 selects a random number of false keys Kf,i to add to a plaintext value A that is concurrently input during the clock period. In other words, if the operating frequency fc of the cryptographic circuit 112 is lower than the reference frequency threshold, a random number of the first plurality of switches 330 (Si) are turned-on and the respective complementary second switches 132 (
Security threats and LPA attacks on the cryptographic circuit 112 can be modeled. LPA attacks explore the correlation between input data (plain text) and actual leakage power dissipation of a cryptographic circuit. A circuit without any countermeasure against LPA attacks may be referred to as a conventional cryptographic circuit. Assuming that in an LPA attack on a conventional cryptographic circuit, x is the predicted leakage power dissipation of the cryptographic circuit by an attacker after combining the input data and correct key with a suitable power model. If the actual leakage power dissipation of the cryptographic circuit is y, the relationship between x and y can be denoted as
y=αx+β, (5)
where α and β can be considered as the multiplicative and additive noise, respectively. Since both multiplicative noise and additive noise may exist in a cryptographic circuit, it is quite difficult to quantify the signal-to-noise ratio (SNR) from equation (5).
Fortunately, since the SNR of a system strongly correlates with the correlation coefficient, the SNR of a conventional cryptographic circuit can be determined by calculating the correlation coefficient. If an attacker applies m1, (m1 is sufficiently large) number of data to a conventional cryptographic circuit, the corresponding predicted leakage power and actual leakage power are, respectively, x1, x2, . . . , xm1 and y1, y2, . . . , ym1. The correlation coefficient γ(x, y) between the predicted and actual leakage power is
where
Since the security of a cryptographic circuit is determined by the SNR value, a similar system with the same SNR can be used to evaluate the security of the actual conventional cryptographic circuit. When an equivalent additive noise ξ˜N(μ0,σ2) is utilized to simulate a conventional cryptographic circuit against LPA attacks, the relationship between x and y can be modified as
y=α
0
x+ξ, (8)
where α0 is the mean value of α. Since
where ξi1 is the corresponding equivalent additive noise due to the i1th input data, α0 can be written as α0=(
Since the new system has the same SNR as a conventional cryptographic circuit, the below equation (10) is satisfied
where D(α0x) represents the variance of α0x. The variance σ2 of the equivalent additive noise can therefore be obtained as
Security can be evaluated for single false key-controlled (SFKC) aggressive voltage scaling (AVS) system and for multiple parallel false keys-controlled (MPFKC) aggressive voltage scaling (AVS) system that are utilized for counteracting LPA attacks.
The actual leakage power dissipation y of a conventional cryptographic circuit can be expressed as
y=V
dd,0
I
leak
=V
dd,0
F(Vdd,0)Il=ω0Il (12)
where Ileak is the actual leakage current of the cryptographic circuit, Il is the leakage component which is independent of supply voltage, and F (Vdd,0) is the leakage component which is determined by supply voltage. By substituting (8) into (12), Il can be written as
When the SFKC AVS technique is enabled on a cryptographic circuit 112, the actual leakage power dissipation y*(Δv,x) can be modeled as
F (Vdd,0+Δv) can be approximated with the polynomial expansion as
where m2 is the degree of the approximated polynomial and gi
where ci
If a certain constant input data (the predicted leakage power is x0) is applied to a cryptographic circuit 112 and (m2+3) number of different supply voltages Vdd,0, Vdd,0+Δv1, . . . , Vdd,0+Δv
the coefficients c0, c1, . . . , cm
the optimum value of m2 can be determined. y*(Δv, x) can therefore be approximately written as
If the Hamming-weight (HW) model is utilized by the attacker to predict the leakage power dissipation of the cryptographic circuit 112, x and Δv can also, respectively, be denoted as
If one of the arbitrary keys Ko=(Ko,1, Ko,2, . . . , Ko,n), the correlation coefficients of correct key Kc, added false key Kf, and that particular arbitrary key Ko are, respectively, γ(Σi=1nxi, y*(Δv, x), γ(Σi=1nxi⊕Kf,i⊕Kc,i, y*(Δv, x)), and γ(Σi=1nxi⊕Ko,i⊕Kc,i, y*(Δv, x)). In this regards, all of the possible keys can be categorized as the correct key, added false key, or an arbitrary key. Any key other than the correct key and the added false key may be referred to as the arbitrary key.
For a 130 nm CMOS substitution-box (S-box) with the SFKC AVS technique, as shown in
The multiple parallel false keys-controlled (MPFKC) aggressive voltage scaling (AVS) technique against LPA attacks is provided in order to prevent an attacker from unriddling the scaling behavior of supply voltage. A random number of false keys are added to plaintext in every clock period in the proposed MPFKC AVS technique. As a result, the actual leakage power dissipation of a cryptographic circuit 112 that employs MPFKC AVS technique y**(Δv*, x) is
where Δv* is
when HW model is utilized by the attacker.
A 130 nm CMOS S-box that employs different countermeasures against LPA attacks is simulated in Cadence. Only 500 plaintexts are sufficient to leak the correct key 66 to the attacker from an S-box without a countermeasure, as shown in
As a result, if the average leakage power dissipation of a conventional S-box without countermeasure is Xl and Vw=0.2 V, the average leakage power dissipation of the S-box that employs random AVS technique, SFKC AVS technique, and MPFKC AVS technique, respectively, are 0.8160Xl, 0.8162Xl, and 0.9039Xl. In MPFKC AVS technique, a smaller variance of the supply voltage scaling causes a slightly higher average leakage power dissipation on the S-box, as compared to the random AVS and the SFKC AVS techniques. The MPFKC AVS technique bears approximately 6.4 percent area overhead, which consists of 3.4 percent area overhead induced by the inserted control circuit and 3 percent area overhead induced by the duplication of the registers to fix the circuit contamination delay.
In some embodiments, when an LPA attack is not detected by the MPFKC AVS controller 350 and the cryptographic circuit 112 is working at the normal clock frequency, random AVS can be utilized to reduce dynamic power dissipation of the cryptographic circuit 112 by 50%, as listed in Table I. When the clock frequency fc becomes lower than the reference threshold or the critical frequency F0, the MPFKC AVS technique is activated against LPA attacks. As compared to the random voltage scaling technique, the MTD value of the MPFKC AVS technique can be enhanced over 10 times against LPA attacks.
An adaptive false key-controlled aggressive voltage scaling technique is described as a countermeasure against LPA attacks. The techniques described herein can enhance the correlation between the added false keys and actual leakage power dissipation of the cryptographic circuit. The MTD value of a cryptographic circuit against LPA attacks is enhanced over 10 million with the described techniques that inserts a random number of false keys to control the scaling behavior of the supply voltage in every clock period.
Various features and advantages of the invention are set forth in the following claims.
This application claims the benefit of priority to U.S. Provisional Patent Application No. 62/491,346, which was filed on Apr. 28, 2017, the entire content of which are incorporated herein by reference in its entirety.
This invention was made with government support CCF1350451 awarded by the National Science Foundation. The Government has certain rights to the invention.
Number | Date | Country | |
---|---|---|---|
62491346 | Apr 2017 | US |