Lune

USENIX Security2023Top-tier venue

CacheQL: Quantifying and Localizing Cache Side-Channel Vulnerabilities in Production Software

Yuanyuan Yuan, Zhibo Liu, Shuai Wang

Abstract

Cache side-channel attacks extract secrets by examining how victim software accesses cache. To date, practical attacks on cryptosystems and media libraries are demonstrated under different scenarios, inferring secret keys and reconstructing private media data such as images. This work first presents eight criteria for designing a full-fledged detector for cache side-channel vulnerabilities. Then, we propose CacheQL, a novel detector that meets all of these criteria. CacheQL precisely quantifies information leaks of binary code, by characterizing the distinguishability of logged side channel traces. Moreover, CacheQL models leakage as a cooperative game, allowing information leakage to be precisely distributed to program points vulnerable to cache side channels. CacheQL is meticulously optimized to analyze whole side channel traces logged from production software (where each trace can have millions of records), and it alleviates randomness introduced by cryptographic blinding, ORAM, or real-world noises. Our evaluation quantifies side-channel leaks of production cryptographic and media software. We further localize vulnerabilities reported by previous detectors and also identify a few hundred new leakage sites in recent OpenSSL (ver. 3.0.0), MbedTLS (ver. 3.0.0), Libgcrypt (ver. 1.9.4). Many of our localized program points are within the pre-processing modules of cryptosystems, which are not analyzed by existing works due to scalability. We also localize vulnerabilities in Libjpeg (ver. 2.1.2) that leak privacy about input images.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

8 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • A Systematic Evaluation of Automated Tools for Side-Channel Vulnerabilities Detection in Cryptographic Libraries cites Binsec/Rel: Efficient Relational Symbolic Execution for Constant-Time at Binary-Level
  • A Systematic Evaluation of Automated Tools for Side-Channel Vulnerabilities Detection in Cryptographic Libraries cites Identifying Cache-Based Side Channels through Secret-Augmented Abstract Interpretation
  • A Systematic Evaluation of Automated Tools for Side-Channel Vulnerabilities Detection in Cryptographic Libraries cites CacheD: Identifying Cache-Based Timing Channels in Production Software
  • A Systematic Evaluation of Automated Tools for Side-Channel Vulnerabilities Detection in Cryptographic Libraries cites CaSym: Cache Aware Symbolic Execution for Side Channel Detection and Mitigation
  • A Systematic Evaluation of Automated Tools for Side-Channel Vulnerabilities Detection in Cryptographic Libraries cites DATA - Differential Address Trace Analysis: Finding Address-based Side-Channels in Binaries
  • Binsec/Rel: Efficient Relational Symbolic Execution for Constant-Time at Binary-Level cites CacheD: Identifying Cache-Based Timing Channels in Production Software
  • Binsec/Rel: Efficient Relational Symbolic Execution for Constant-Time at Binary-Level cites CaSym: Cache Aware Symbolic Execution for Side Channel Detection and Mitigation
  • Identifying Cache-Based Side Channels through Secret-Augmented Abstract Interpretation cites CacheD: Identifying Cache-Based Timing Channels in Production Software
  • Identifying Cache-Based Side Channels through Secret-Augmented Abstract Interpretation cites DATA - Differential Address Trace Analysis: Finding Address-based Side-Channels in Binaries
  • Untangle: A Principled Framework to Design Low-Leakage, High-Performance Dynamic Partitioning Schemes cites Identifying Cache-Based Side Channels through Secret-Augmented Abstract Interpretation
  • Untangle: A Principled Framework to Design Low-Leakage, High-Performance Dynamic Partitioning Schemes cites CacheD: Identifying Cache-Based Timing Channels in Production Software
  • Untangle: A Principled Framework to Design Low-Leakage, High-Performance Dynamic Partitioning Schemes cites CaSym: Cache Aware Symbolic Execution for Side Channel Detection and Mitigation
  • Untangle: A Principled Framework to Design Low-Leakage, High-Performance Dynamic Partitioning Schemes cites DATA - Differential Address Trace Analysis: Finding Address-based Side-Channels in Binaries
  • CaSym: Cache Aware Symbolic Execution for Side Channel Detection and Mitigation cites CacheD: Identifying Cache-Based Timing Channels in Production Software
  • DATA - Differential Address Trace Analysis: Finding Address-based Side-Channels in Binaries cites CacheD: Identifying Cache-Based Timing Channels in Production Software
  • "These results must be false": A usability evaluation of constant-time analysis tools cites A Systematic Evaluation of Automated Tools for Side-Channel Vulnerabilities Detection in Cryptographic Libraries
  • "These results must be false": A usability evaluation of constant-time analysis tools cites Binsec/Rel: Efficient Relational Symbolic Execution for Constant-Time at Binary-Level
  • "These results must be false": A usability evaluation of constant-time analysis tools cites Identifying Cache-Based Side Channels through Secret-Augmented Abstract Interpretation
  • "These results must be false": A usability evaluation of constant-time analysis tools cites CacheD: Identifying Cache-Based Timing Channels in Production Software
  • "These results must be false": A usability evaluation of constant-time analysis tools cites CaSym: Cache Aware Symbolic Execution for Side Channel Detection and Mitigation
  • "These results must be false": A usability evaluation of constant-time analysis tools cites DATA - Differential Address Trace Analysis: Finding Address-based Side-Channels in Binaries
  • Towards Efficient Verification of Constant-Time Cryptographic Implementations cites A Systematic Evaluation of Automated Tools for Side-Channel Vulnerabilities Detection in Cryptographic Libraries
  • Towards Efficient Verification of Constant-Time Cryptographic Implementations cites Binsec/Rel: Efficient Relational Symbolic Execution for Constant-Time at Binary-Level
  • Towards Efficient Verification of Constant-Time Cryptographic Implementations cites Identifying Cache-Based Side Channels through Secret-Augmented Abstract Interpretation
  • Towards Efficient Verification of Constant-Time Cryptographic Implementations cites DATA - Differential Address Trace Analysis: Finding Address-based Side-Channels in Binaries
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers8

  1. "These results must be false": A usability evaluation of constant-time analysis toolsMarcel Fourné, Daniel De Almeida Braga, Jan Jancar, Mohamed Sabt et al.USENIX Security 2024 · 15 citations
  2. A Systematic Evaluation of Automated Tools for Side-Channel Vulnerabilities Detection in Cryptographic LibrariesAntoine Geimer, Mathéo Vergnolle, Frédéric Recoules, Lesly-Ann Daniel et al.CCS 2023 · 12 citations
  3. Untangle: A Principled Framework to Design Low-Leakage, High-Performance Dynamic Partitioning SchemesZirui Neil Zhao, Adam Morrison, Christopher W. Fletcher, Josep TorrellasASPLOS 2023 · 7 citations
  4. Datalog-Based Language-Agnostic Change Impact Analysis for MicroservicesQingkai Shi, Xiaoheng Xie, Xianjin Fu, Peng Di et al.ICSE 2025 · 4 citations
  5. Towards Efficient Verification of Constant-Time Cryptographic ImplementationsLuwei Cai, Fu Song, Taolue ChenFSE 2024 · 4 citations

Builds on12

  1. CacheD: Identifying Cache-Based Timing Channels in Production SoftwareShuai Wang, Pei Wang, Xiao Liu, Danfeng Zhang et al.USENIX Security 2017 · 130 citations
  2. CaSym: Cache Aware Symbolic Execution for Side Channel Detection and MitigationRobert Brotzman, Shen Liu, Danfeng Zhang, Gang Tan et al.S&P 2019 · 77 citations
  3. DATA - Differential Address Trace Analysis: Finding Address-based Side-Channels in BinariesSamuel Weiser, Andreas Zankl, Raphael Spreitzer, Katja Miller et al.USENIX Security 2018 · 77 citations
  4. Binsec/Rel: Efficient Relational Symbolic Execution for Constant-Time at Binary-LevelLesly-Ann Daniel, Sébastien Bardin, Tamara RezkS&P 2020 · 76 citations
  5. Identifying Cache-Based Side Channels through Secret-Augmented Abstract InterpretationShuai Wang, Yuyan Bao, Xiao Liu, Pei Wang et al.USENIX Security 2019 · 57 citations

Related papers

  1. Cache Refinement Type for Side-Channel Detection of Cryptographic SoftwareKe Jiang, Yuyan Bao, Shuai Wang, Zhibo Liu et al.CCS 2022 · 7 citations
  2. "Make Sure DSA Signing Exponentiations Really are Constant-Time"Cesar Pereida García, Billy Bob Brumley, Yuval YaromCCS 2016 · 93 citations
  3. Automated Side Channel Analysis of Media Software with Manifold LearningYuanyuan Yuan, Qi Pang, Shuai WangUSENIX Security 2022
  4. Page Cache AttacksDaniel Gruss, Erik Kraft, Trishita Tiwari, Michael Schwarz et al.CCS 2019 · 55 citations
  5. Abacus: Precise Side-Channel AnalysisQinkun Bao, Zihao Wang, Xiaoting Li, James R. Larus et al.ICSE 2021 · 19 citations
Dusk over the sea between two cliffs drawn in fine vertical lines