[Paper Review] Temperature-Based Hardware Trojan For Ring-Oscillator-Based TRNGs
This paper proposes a stealthy, parametric hardware Trojan for ring-oscillator-based true random number generators (TRNGs) that remains undetected under normal conditions but triggers at high temperatures, causing the TRNG to produce predictable, non-random outputs. The attack exploits temperature-induced changes in transistor behavior to disable the entropy source without adding any logic, enabling an attacker to predict outputs using a Markov Chain model, significantly weakening cryptographic security.
True random number generators (TRNGs) are essential components of cryptographic designs, which are used to generate private keys for encryption and authentication, and are used in masking countermeasures. In this work, we present a mechanism to design a stealthy parametric hardware Trojan for a ring oscillator based TRNG architecture proposed by Yang et al. at ISSCC 2014. Once the Trojan is triggered the malicious TRNG generates predictable non-random outputs. Such a Trojan does not require any additional logic (even a single gate) and is purely based on subtle manipulations on the sub-transistor level. The underlying concept is to disable the entropy source at high temperature to trigger the Trojan, while ensuring that Trojan-infected TRNG works correctly under normal conditions. We show how an attack can be performed with the Trojan-infected TRNG design in which the attacker uses a stochastic Markov Chain model to predict its reduced-entropy outputs.
Motivation & Objective
- To design a parametric hardware Trojan for ring-oscillator-based TRNGs that remains undetected under normal operating conditions.
- To enable the Trojan to be triggered solely by high temperature, without altering the circuit's logic or adding extra gates.
- To demonstrate how such a Trojan can drastically reduce the entropy of TRNG outputs, undermining cryptographic security.
- To develop a stochastic model based on Markov Chains that allows an attacker to predict the non-random outputs of the compromised TRNG.
- To evaluate the effectiveness of the Trojan through NIST statistical tests and real-world measurements at varying temperatures.
Proposed method
- The Trojan is implemented by lengthening a critical path in the combinatorial logic of the ring oscillator, making it sensitive to temperature-induced delay variations.
- At high temperatures (e.g., 120°C), the increased delay causes the ring oscillator to collapse into a periodic state, eliminating entropy.
- The design remains functionally correct and passes all NIST randomness tests at normal temperatures (25°C, 60°C), ensuring stealth.
- The attack model uses a Markov Chain to represent the periodic output patterns of the compromised TRNG, enabling probabilistic prediction of future outputs.
- The TRNG is implemented using the 45nm Nangate Open Cell Library, and the Trojan’s impact is validated via simulation and statistical testing.
- The attack complexity is quantified for different key sizes, showing that even low-complexity attacks achieve high success rates on compromised TRNGs.
Experimental results
Research questions
- RQ1How can a hardware Trojan be designed for a ring-oscillator-based TRNG that remains undetected during normal operation?
- RQ2What physical mechanism enables the Trojan to be triggered solely by temperature without additional logic?
- RQ3To what extent does the Trojan reduce the entropy of the TRNG output, and how can this be measured?
- RQ4Can an attacker predict the outputs of a Trojan-infected TRNG using a stochastic model, and how effective is such a model?
- RQ5What is the practical impact of such a Trojan on cryptographic security, particularly for systems relying on high-entropy random numbers?
Key findings
- The Trojan-free TRNG passes all NIST statistical tests at 25°C, 60°C, and 120°C, confirming its robustness under normal and extreme conditions.
- The Trojan-infected TRNG passes all NIST tests at 25°C and 60°C but fails all tests at 120°C, indicating a significant loss of randomness at the trigger temperature.
- At 120°C, the number of cycles to collapse of the 3-edge RO follows an inverse Gaussian distribution, with the mean dropping to near zero, indicating immediate and repeated collapse.
- The output of the Trojan-infected TRNG at 120°C exhibits clear periodic patterns, as shown in raster-scanned bitstream visualizations, confirming non-random behavior.
- The attack complexity for breaking a 64-bit key is as low as 2^15 with a 0.8928 success probability, and for a 256-bit key, it is 2^55 with 0.964 success probability, showing high practical feasibility.
- The stochastic Markov Chain model enables accurate prediction of the Trojan’s periodic outputs, demonstrating that the compromise is not only exploitable but also highly efficient for an attacker.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.