[Paper Review] Hard Fault Analysis of Trivium
This paper introduces hard fault analysis as a novel side-channel attack on the Trivium stream cipher, where permanent bit flips (hard faults) are injected into the internal state to simplify the cipher or expose key bits. It demonstrates that under specific fault injection scenarios, an attacker can recover 69 key bits with probability ≥0.2396, all 80 key bits with probability ≥0.2291, or simplify the cipher into weaker variants, all detectable via observable keystream patterns.
Fault analysis is a powerful attack to stream ciphers. Up to now, the major idea of fault analysis is to simplify the cipher system by injecting some soft faults. We call it soft fault analysis. As a hardware-oriented stream cipher, Trivium is weak under soft fault analysis. In this paper we consider another type of fault analysis of stream cipher, which is to simplify the cipher system by injecting some hard faults. We call it hard fault analysis. We present the following results about such attack to Trivium. In Case 1 with the probability not smaller than 0.2396, the attacker can obtain 69 bits of 80-bits-key. In Case 2 with the probability not smaller than 0.2291, the attacker can obtain all of 80-bits-key. In Case 3 with the probability not smaller than 0.2291, the attacker can partially solve the key. In Case 4 with non-neglectable probability, the attacker can obtain a simplified cipher, with smaller number of state bits and slower non-linearization procedure. In Case 5 with non-neglectable probability, the attacker can obtain another simplified cipher. Besides, these 5 cases can be checked out by observing the key-stream.
Motivation & Objective
- To investigate the vulnerability of Trivium to hard fault injection, a previously underexplored side-channel attack vector.
- To identify specific fault injection scenarios where the cipher's internal state or key can be simplified or recovered.
- To develop a practical keystream-based detection algorithm to classify the type of fault injection without prior knowledge of the fault location.
- To evaluate the feasibility and success probability of hard fault attacks compared to traditional soft fault analysis.
- To explore the implications of hard fault attacks in real-world hardware threat models, particularly in secure embedded systems.
Proposed method
- Injects hard faults by permanently setting specific state bits to 0 before Trivium's initialization, simulating physical microprobing attacks.
- Analyzes the resulting state evolution and keystream behavior under different fault injection positions (PL), categorizing them into 7 distinct cases.
- Derives mathematical relationships between the keystream and the faulted state, identifying periodicities and invariants in the output sequence.
- Proposes a detection algorithm that checks for six specific keystream features (e.g., periodicity, invariance under IV changes) to classify the fault case.
- Uses probabilistic analysis to estimate success rates of key recovery and simplification based on fault position and initial state assumptions.
- Leverages the irreversibility of state updates and the structure of Trivium’s nonlinear feedback to predict fault-induced behavior.
Experimental results
Research questions
- RQ1What are the distinct behavioral patterns of Trivium when subjected to hard fault injection at different state positions?
- RQ2Can the keystream reveal the presence and type of hard fault injection, enabling classification of the fault scenario?
- RQ3What is the probability of successfully recovering key bits or simplifying the cipher under hard fault injection?
- RQ4How does hard fault analysis compare to soft fault analysis in terms of practicality, cost, and success rate?
- RQ5Can the attacker distinguish between different fault scenarios using only the observable keystream?
Key findings
- In Case 1 (PL ∈ {67, 68, 69, 93}), the attacker can recover 69 out of 80 key bits with probability at least 0.2396.
- In Case 2 (PL ∈ {244, 245, ..., 264}), the attacker can recover the full 80-bit key with probability at least 0.2291.
- In Case 3 (PL ∈ {265, 266, ..., 287}), the attacker can partially solve the key with probability at least 0.2291.
- In Case 4 (PL ∈ {67, 68, ..., 93} excluding 69 and 93), the attacker obtains a simplified cipher with fewer state bits and slower nonlinearity, with non-negligible probability.
- In Case 5 (PL ∈ {244, 245, ..., 288} excluding 264 and 288), the attacker obtains another simplified cipher variant, also with non-negligible probability.
- A keystream-based detection algorithm correctly identifies Cases 1–4 with near certainty and Case 5 with probability ≥4/5, using six distinguishable keystream features.
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.