[Paper Review] Attacking Hardware AES with DFA
This paper presents the first practical differential fault analysis (DFA) attack on a hardware AES-256 accelerator with physically embedded keys, demonstrating recovery of 278 real-world keys from the PlayStation Vita's secure cryptographic engine using voltage fault injection. By exploiting a hardware vulnerability that retains stale ciphertexts and combining precise voltage glitches with optimized DFA techniques based on Piret's model, the authors achieve full key recovery in hours with minimal cost.
We present the first practical attack on a hardware AES accelerator with 256 bit embedded keys using DFA. We identify the challenges of adapting well-known theoretical AES DFA models to hardware under attack from voltage fault injection and present solutions to those challenges. As a result, we managed to recover 278 real-world AES-256 keys from a secure computing system in a matter of hours with minimal cost.
Motivation & Objective
- To demonstrate that hardware-protected AES-256 keys in real-world systems are vulnerable to practical differential fault analysis (DFA) attacks.
- To overcome challenges in adapting theoretical DFA models to real hardware under voltage fault injection.
- To bypass hardware protections such as key-slot locking and embedded key obfuscation in the PlayStation Vita's secure processor.
- To develop and validate a low-cost, reproducible attack pipeline for extracting AES keys from secure accelerators.
Proposed method
- Used voltage fault injection via ChipWhisperer hardware to induce precise, round-specific faults in the AES-256 accelerator.
- Exploited a hardware vulnerability in the PlayStation Vita's Bigmac AES engine that retains leftover ciphertext from prior operations.
- Applied Piret's DFA model to recover round keys by analyzing faulted ciphertexts with known plaintexts.
- Performed iterative key recovery by first recovering round N key, then using it to reverse-engineer round N-1 key via fault analysis.
- Implemented a brute-force recovery of stale ciphertexts using AES-NI-accelerated partial-busting on AWS EC2, reducing 2^34 work to ~15 seconds per ciphertext.
- Automated the entire attack pipeline using open-source scripts for RPC execution, fault collection, and key recovery.
Experimental results
Research questions
- RQ1Can differential fault analysis be practically applied to hardware AES accelerators with physically embedded keys?
- RQ2How can theoretical DFA models be adapted to real-world voltage fault injection in constrained hardware environments?
- RQ3What hardware-side vulnerabilities can be exploited to expose stale ciphertexts and enable key recovery?
- RQ4What is the minimal cost and resource overhead required to perform a successful DFA attack on a modern secure SoC?
- RQ5Can key recovery be achieved even when master key-slots are locked down, using side-channel exposure of internal state?
Key findings
- The authors successfully recovered 278 AES-256 keys from the PlayStation Vita's cryptographic accelerator, including all 30 master key-slots.
- Full key recovery was achieved in a matter of hours using only $300 in hardware and under $10 in cloud computing costs.
- The attack exploited a hardware-side vulnerability that retained ciphertexts in the AES engine’s internal state after operations, enabling ciphertext recovery via brute-force with known keys.
- The use of voltage glitching allowed precise targeting of specific AES rounds, reducing the number of required faulty ciphertexts and improving attack efficiency.
- The entire attack pipeline was automated and open-sourced, enabling reproducibility and reuse on similar targets.
- The study demonstrates that hardware-embedded keys are not sufficient for security if the hardware accelerator itself is not hardened against fault injection.
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.