[Paper Review] Software Grand Exposure: SGX Cache Attacks Are Practical
The paper demonstrates practical cache-based side-channel attacks against SGX enclaves, showing attackers can extract significant secret information without interrupting enclave execution, including 70% of an RSA-2048 key and detection of genome sequences.
Side-channel information leakage is a known limitation of SGX. Researchers have demonstrated that secret-dependent information can be extracted from enclave execution through page-fault access patterns. Consequently, various recent research efforts are actively seeking countermeasures to SGX side-channel attacks. It is widely assumed that SGX may be vulnerable to other side channels, such as cache access pattern monitoring, as well. However, prior to our work, the practicality and the extent of such information leakage was not studied. In this paper we demonstrate that cache-based attacks are indeed a serious threat to the confidentiality of SGX-protected programs. Our goal was to design an attack that is hard to mitigate using known defenses, and therefore we mount our attack without interrupting enclave execution. This approach has major technical challenges, since the existing cache monitoring techniques experience significant noise if the victim process is not interrupted. We designed and implemented novel attack techniques to reduce this noise by leveraging the capabilities of the privileged adversary. Our attacks are able to recover confidential information from SGX enclaves, which we illustrate in two example cases: extraction of an entire RSA-2048 key during RSA decryption, and detection of specific human genome sequences during genomic indexing. We show that our attacks are more effective than previous cache attacks and harder to mitigate than previous SGX side-channel attacks.
Motivation & Objective
- Show that SGX enclaves are vulnerable to cache-based side-channel attacks in a realistic attacker model where the OS is compromised.
- Demonstrate how to perform effective Prime+Probe cache attacks on SGX without interrupting enclave execution.
- Quantify information leakage from cryptographic operations and non-cryptographic workloads (genomic indexing) within SGX.
- Evaluate current defenses and discuss why they fail to mitigate the presented attacks.
Proposed method
- Adapt Prime+Probe cache side-channel technique to SGX by running attacker and victim on a dedicated core to minimize noise.
- Use Performance Monitoring Counters (PMCs) to detect cache line evictions, circumventing enclave-side PMC restrictions.
- Isolate the attack core by modifying OS scheduling and reduce interrupts to maintain uninterrupted enclave execution.
- Monitor cache line evictions at high frequency and align results across multiple epochs to reconstruct victim access patterns.
- Apply the attack to RSA decryption and to a genome indexing workflow to demonstrate cryptographic and non-cryptographic leakage.
Experimental results
Research questions
- RQ1Can SGX enclaves leak secret-dependent information through cache access patterns without interrupting enclave execution?
- RQ2What is the practicality and extent of cache-based leakage for cryptographic (RSA) and non-cryptographic (genomic indexing) SGX workloads?
- RQ3How do existing defenses fare against non-interrupting SGX cache attacks?
Key findings
- Cache attacks on SGX are practical and can extract meaningful secret information without interrupting enclave execution.
- In RSA decryption, the attack recovered 70% of the 2048-bit key from 300 repeated decryptions and 15 repetitions across 10 monitored multipliers.
- The RSA attack leverages monitoring of precomputed multipliers; observing 16 repeated accesses per multiplier within an epoch allows candidate identification.
- For the genomic indexing workload, the attacker can detect microsatellite sequences by observing genome-dependent hash table accesses.
- Current defenses such as T-SGX and Déjá Vu do not mitigate the presented non-interrupting cache attacks in practice.
- The attacks outperform prior cache-based SGX attacks in effectiveness and are harder to mitigate than some prior SGX-side-channel approaches.
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.