Skip to main content
QUICK REVIEW

[Paper Review] Identifying Cache-Based Side Channels through Secret-Augmented Abstract Interpretation

Shuai Wang, Yuyan Bao|arXiv (Cornell University)|May 30, 2019
Security and Verification in ComputingComputer Science84 references9 citations
TL;DR

This paper proposes CacheS, a static analysis tool that uses a novel abstract domain called Secret-Augmented Symbolic (SAS) to detect cache-based side channels in real-world cryptographic binaries. By combining fine-grained tracking of secrets with coarse-grained over-approximation of public data, CacheS enables scalable, precise, and full-coverage interprocedural analysis, identifying 54 previously unknown information leaks in OpenSSL, Libgcrypt, and mbedTLS.

ABSTRACT

Cache-based side channels enable a dedicated attacker to reveal program secrets by measuring the cache access patterns. Practical attacks have been shown against real-world crypto algorithm implementations such as RSA, AES, and ElGamal. By far, identifying information leaks due to cache-based side channels, either in a static or dynamic manner, remains a challenge: the existing approaches fail to offer high precision, full coverage, and good scalability simultaneously, thus impeding their practical use in real-world scenarios. In this paper, we propose a novel static analysis method on binaries to detect cache-based side channels. We use abstract interpretation to reason on program states with respect to abstract values at each program point. To make such abstract interpretation scalable to real-world cryptosystems while offering high precision and full coverage, we propose a novel abstract domain called the Secret-Augmented Symbolic domain (SAS). SAS tracks program secrets and dependencies on them for precision, while it tracks only coarse-grained public information for scalability. We have implemented the proposed technique into a practical tool named CacheS and evaluated it on the implementations of widely-used cryptographic algorithms in real-world crypto libraries, including Libgcrypt, OpenSSL, and mbedTLS. CacheS successfully confirmed a total of 154 information leaks reported by previous research and 54 leaks that were previously unknown. We have reported our findings to the developers. And they confirmed that many of those unknown information leaks do lead to potential side channels.

Motivation & Objective

  • To address the challenge of detecting cache-based side channels in real-world cryptosystems with high precision, full coverage, and scalability.
  • To overcome limitations of existing static and dynamic analysis tools that suffer from low coverage, low precision, or poor scalability.
  • To enable practical detection of side-channel vulnerabilities in large-scale, production-grade cryptographic implementations.
  • To support effective debugging by generating counterexamples through constraint solving on symbolic representations of secrets.

Proposed method

  • Introduces the Secret-Augmented Symbolic (SAS) abstract domain, which tracks program secrets and their data dependencies with fine granularity.
  • Uses symbolic representations of abstract values to enable constraint solving for precise leakage detection.
  • Applies abstract interpretation with SAS to perform context-sensitive, interprocedural analysis of binary code.
  • Over-approximates public values to ensure scalability while maintaining high precision on secret-dependent paths.
  • Employs lightweight, unsound memory modeling to optimize performance without sacrificing soundness in leakage detection.
  • Integrates constraint solving to generate concrete counterexamples for debugging, improving tool usability.

Experimental results

Research questions

  • RQ1Can a static analysis approach achieve both high precision and full coverage in detecting cache-based side channels in real-world cryptosystems?
  • RQ2How can abstract interpretation be extended to scale to large binaries while maintaining precision on secret-dependent behaviors?
  • RQ3Can symbolic reasoning in the abstract domain enable not only detection but also counterexample generation for effective debugging?
  • RQ4To what extent can a novel abstract domain like SAS outperform existing domains in detecting unknown side-channel leaks?

Key findings

  • CacheS successfully confirmed 154 previously reported information leaks in OpenSSL, Libgcrypt, and mbedTLS.
  • The tool discovered 54 new information leakage sites that were previously unknown to the research community.
  • CacheS achieved full context-sensitive interprocedural analysis on binaries with over 295,000 instructions in less than 0.5 CPU hours.
  • The tool reported only one false positive across all 208 identified leakage sites, indicating high precision.
  • The analysis was scalable enough to handle real-world cryptosystems, outperforming prior tools like CacheAudit and CacheD in coverage and performance.
  • Developers of the affected libraries confirmed that many of the newly discovered leaks pose real side-channel threats.

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.