Skip to main content
QUICK REVIEW

[Paper Review] Did we learn from LLC Side Channel Attacks? A Cache Leakage Detection Tool for Crypto Libraries

Gorka Irazoqui, Kai Cong|arXiv (Cornell University)|Sep 5, 2017
Security and Verification in ComputingComputer Science28 references12 citations
TL;DR

This paper presents a proactive cache leakage detection tool for cryptographic libraries that combines dynamic taint analysis, controlled cache evictions, and mutual information analysis to identify exploitable side-channel leaks in AES, RSA, and ECC implementations. The tool reveals that 50% of default cryptographic library implementations analyzed leak secret information via the Last Level Cache, despite widespread awareness of such attacks.

ABSTRACT

This work presents a new tool to verify the correctness of cryptographic implementations with respect to cache attacks. Our methodology discovers vulnerabilities that are hard to find with other techniques, observed as exploitable leakage. The methodology works by identifying secret dependent memory and introducing forced evictions inside potentially vulnerable code to obtain cache traces that are analyzed using Mutual Information. If dependence is observed, the cryptographic implementation is classified as to leak information. We demonstrate the viability of our technique in the design of the three main cryptographic primitives, i.e., AES, RSA and ECC, in eight popular up to date cryptographic libraries, including OpenSSL, Libgcrypt, Intel IPP and NSS. Our results show that cryptographic code designers are far away from incorporating the appropriate countermeasures to avoid cache leakages, as we found that 50% of the default implementations analyzed leaked information that lead to key extraction. We responsibly notified the designers of all the leakages found and suggested patches to solve these vulnerabilities.

Motivation & Objective

  • To address the persistent challenge of cache side-channel vulnerabilities in cryptographic libraries despite known risks from LLC attacks.
  • To develop an automated, platform-agnostic tool that detects real, exploitable cache leaks in cryptographic code at design time.
  • To enable cryptographic library developers to proactively identify and patch cache leakage flaws before deployment.
  • To perform a large-scale analysis of popular cryptographic libraries across AES, RSA, and ECC primitives to assess real-world leakage prevalence.
  • To responsibly disclose findings and contribute to improving the security posture of widely used crypto libraries.

Proposed method

  • Applying dynamic taint analysis to identify secret-dependent memory accesses in cryptographic code.
  • Instrumenting the code with forced cache evictions (e.g., using flush-and-reload) to generate observable cache traces.
  • Recording low-level cache access patterns during execution on real hardware to simulate real-world attack conditions.
  • Using Mutual Information Analysis (MIA) as a statistical metric to detect dependencies between secret values and observed cache behavior.
  • Correlating taint propagation with cache trace patterns to pinpoint specific code regions responsible for leakage.
  • Validating the tool’s effectiveness across diverse platforms and cryptographic libraries without requiring platform-specific reconfiguration.

Experimental results

Research questions

  • RQ1To what extent are modern cryptographic libraries vulnerable to Last Level Cache (LLC) side-channel attacks despite known mitigation techniques?
  • RQ2Can a tool combining taint analysis and mutual information analysis effectively detect exploitable cache leaks in real-world cryptographic implementations?
  • RQ3How do different cryptographic implementations (e.g., T-tables, S-boxes, sliding window) perform in terms of cache leakage across popular libraries?
  • RQ4Are existing verification techniques sufficient to detect subtle, non-linear cache leakage patterns, or do they produce excessive false positives?
  • RQ5Can the proposed tool be used to responsibly disclose and fix vulnerabilities in widely deployed crypto libraries?

Key findings

  • 50% of default cryptographic library implementations analyzed—across OpenSSL, WolfSSL, NSS, Bouncy Castle, and others—exhibited exploitable cache leakage in AES, RSA, and ECC primitives.
  • The tool discovered 12 previously unknown cache leakage vulnerabilities in widely used libraries, including in OpenSSL (T-table), WolfSSL, Bouncy Castle, and Intel IPP.
  • Even libraries with known security reputations, such as OpenSSL and Libgcrypt, contained vulnerable implementations when using certain optimization techniques like T-tables or sliding window methods.
  • The study revealed that microarchitectural details such as cache line alignment significantly impact leakage, with some vulnerabilities arising from OS-level data misalignment.
  • The tool successfully identified leakage in the 1.0.1 branch of OpenSSL’s WNAF implementation for ECC, while the 1.1.0 branch was found to be secure, highlighting the importance of version-specific analysis.
  • Responsible disclosure led to the assignment of multiple CVEs, including CVE-2016-XXXX for Intel IPP and multiple for WolfSSL and Bouncy Castle, with patches now available or in progress.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.