Cache Misses and the Recovery of the Full AES 256 Key
Open Access
- 6 March 2019
- journal article
- research article
- Published by MDPI AG in Applied Sciences
- Vol. 9 (5) , 944
Abstract
The CPU cache is a hardware element that leaks significant information about the software running on the CPU. Particularly, any application performing sequences of memory access that depend on sensitive information, such as private keys, is susceptible to suffer a cache attack, which would reveal this information. In most cases, side-channel cache attacks do not require any specific permission and just need access to a shared cache. This fact, combined with the spread of cloud computing, where the infrastructure is shared between different customers, has made these attacks quite popular. Traditionally, cache attacks against AES use the information about the victim to access an address. In contrast, we show that using non-access provides much more information and demonstrate that the power of cache attacks has been underestimated during these last years. This novel approach is applicable to existing attacks: Prime+Probe, Flush+Reload, Flush+Flush and Prime+Abort. In all cases, using cache misses as source of information, we could retrieve the 128-bit AES key with a reduction in the number of samples of between 93% and 98% compared to the traditional approach. Further, this attack was adapted and extended in what we call the encryption-by-decryption cache attack (EBD), to obtain a 256-bit AES key. In the best scenario, our approach obtained the 256 bits of the key of the OpenSSL AES T-table-based implementation using fewer than 10,000 samples, i.e., 135 milliseconds, proving that AES-256 is only about three times more complex to attack than AES-128 via cache attacks. Additionally, the proposed approach was successfully tested in a cross-VM scenario.Keywords
All Related Versions
Funding Information
- Ministerio de Economía y Competitividad (TIN-2015-65277-R, AYA2015-65973-C3-3-R, RTC-2016-5434-8)
This publication has 27 references indexed in Scilit:
- Real time detection of cache-based side-channel attacks using hardware performance countersApplied Soft Computing, 2016
- Flush+Flush: A Fast and Stealthy Cache Attack2016
- Systematic Reverse Engineering of Cache Slice Selection in Intel Processors2015
- A Faster and More Realistic Flush+Reload Attack on AES2015
- Last-Level Cache Side-Channel Attacks are Practical2015
- Fine Grain Cross-VM Attacks on Xen and VMware2014
- Cross-Tenant Side-Channel Attacks in PaaS Clouds2014
- Improvement of trace-driven I-Cache timing attack on the RSA algorithmJournal of Systems and Software, 2013
- Differential fault analysis of AES: Toward reducing number of faultsInformation Sciences, 2012
- Side channel cryptanalysis of product ciphersJournal of Computer Security, 2000