Lune

USENIX Security2023顶会

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

Yuanyuan Yuan, Zhibo Liu, Shuai Wang

摘要

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.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 8 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • A Systematic Evaluation of Automated Tools for Side-Channel Vulnerabilities Detection in Cryptographic Libraries 引用了 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 引用了 Identifying Cache-Based Side Channels through Secret-Augmented Abstract Interpretation
  • A Systematic Evaluation of Automated Tools for Side-Channel Vulnerabilities Detection in Cryptographic Libraries 引用了 CacheD: Identifying Cache-Based Timing Channels in Production Software
  • A Systematic Evaluation of Automated Tools for Side-Channel Vulnerabilities Detection in Cryptographic Libraries 引用了 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 引用了 DATA - Differential Address Trace Analysis: Finding Address-based Side-Channels in Binaries
  • Binsec/Rel: Efficient Relational Symbolic Execution for Constant-Time at Binary-Level 引用了 CacheD: Identifying Cache-Based Timing Channels in Production Software
  • Binsec/Rel: Efficient Relational Symbolic Execution for Constant-Time at Binary-Level 引用了 CaSym: Cache Aware Symbolic Execution for Side Channel Detection and Mitigation
  • Identifying Cache-Based Side Channels through Secret-Augmented Abstract Interpretation 引用了 CacheD: Identifying Cache-Based Timing Channels in Production Software
  • Identifying Cache-Based Side Channels through Secret-Augmented Abstract Interpretation 引用了 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 引用了 Identifying Cache-Based Side Channels through Secret-Augmented Abstract Interpretation
  • Untangle: A Principled Framework to Design Low-Leakage, High-Performance Dynamic Partitioning Schemes 引用了 CacheD: Identifying Cache-Based Timing Channels in Production Software
  • Untangle: A Principled Framework to Design Low-Leakage, High-Performance Dynamic Partitioning Schemes 引用了 CaSym: Cache Aware Symbolic Execution for Side Channel Detection and Mitigation
  • Untangle: A Principled Framework to Design Low-Leakage, High-Performance Dynamic Partitioning Schemes 引用了 DATA - Differential Address Trace Analysis: Finding Address-based Side-Channels in Binaries
  • CaSym: Cache Aware Symbolic Execution for Side Channel Detection and Mitigation 引用了 CacheD: Identifying Cache-Based Timing Channels in Production Software
  • DATA - Differential Address Trace Analysis: Finding Address-based Side-Channels in Binaries 引用了 CacheD: Identifying Cache-Based Timing Channels in Production Software
  • "These results must be false": A usability evaluation of constant-time analysis tools 引用了 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 引用了 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 引用了 Identifying Cache-Based Side Channels through Secret-Augmented Abstract Interpretation
  • "These results must be false": A usability evaluation of constant-time analysis tools 引用了 CacheD: Identifying Cache-Based Timing Channels in Production Software
  • "These results must be false": A usability evaluation of constant-time analysis tools 引用了 CaSym: Cache Aware Symbolic Execution for Side Channel Detection and Mitigation
  • "These results must be false": A usability evaluation of constant-time analysis tools 引用了 DATA - Differential Address Trace Analysis: Finding Address-based Side-Channels in Binaries
  • Towards Efficient Verification of Constant-Time Cryptographic Implementations 引用了 A Systematic Evaluation of Automated Tools for Side-Channel Vulnerabilities Detection in Cryptographic Libraries
  • Towards Efficient Verification of Constant-Time Cryptographic Implementations 引用了 Binsec/Rel: Efficient Relational Symbolic Execution for Constant-Time at Binary-Level
  • Towards Efficient Verification of Constant-Time Cryptographic Implementations 引用了 Identifying Cache-Based Side Channels through Secret-Augmented Abstract Interpretation
  • Towards Efficient Verification of Constant-Time Cryptographic Implementations 引用了 DATA - Differential Address Trace Analysis: Finding Address-based Side-Channels in Binaries
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper8

  1. "These results must be false": A usability evaluation of constant-time analysis toolsMarcel Fourné, Daniel De Almeida Braga, Jan Jancar, Mohamed Sabt 等USENIX Security 2024 · 15 次引用
  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 等CCS 2023 · 12 次引用
  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 次引用
  4. Datalog-Based Language-Agnostic Change Impact Analysis for MicroservicesQingkai Shi, Xiaoheng Xie, Xianjin Fu, Peng Di 等ICSE 2025 · 4 次引用
  5. Towards Efficient Verification of Constant-Time Cryptographic ImplementationsLuwei Cai, Fu Song, Taolue ChenFSE 2024 · 4 次引用

它引用的 Paper12

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

相关 Paper

  1. Cache Refinement Type for Side-Channel Detection of Cryptographic SoftwareKe Jiang, Yuyan Bao, Shuai Wang, Zhibo Liu 等CCS 2022 · 7 次引用
  2. "Make Sure DSA Signing Exponentiations Really are Constant-Time"Cesar Pereida García, Billy Bob Brumley, Yuval YaromCCS 2016 · 93 次引用
  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 等CCS 2019 · 55 次引用
  5. Abacus: Precise Side-Channel AnalysisQinkun Bao, Zihao Wang, Xiaoting Li, James R. Larus 等ICSE 2021 · 19 次引用
黄昏的海面,两侧是细线勾勒的悬崖