Lune

USENIX Security2018顶会

DATA - Differential Address Trace Analysis: Finding Address-based Side-Channels in Binaries

Samuel Weiser, Andreas Zankl, Raphael Spreitzer, Katja Miller, Stefan Mangard, Georg Sigl

摘要

Cryptographic implementations are a valuable target for address-based side-channel attacks and should, thus, be protected against them. Countermeasures, however, are often incorrectly deployed or completely omitted in practice. Moreover, existing tools that identify information leaks in programs either suffer from imprecise abstraction or only cover a subset of possible leaks. We systematically address these limitations and propose a new methodology to test software for information leaks. In this work, we present DATA, a differential address trace analysis framework that detects address-based sidechannel leaks in program binaries. This accounts for attacks exploiting caches, DRAM, branch prediction, controlled channels, and likewise. DATA works in three phases. First, the program under test is executed to record several address traces. These traces are analyzed using a novel algorithm that dynamically re-aligns traces to increase detection accuracy. Second, a generic leakage test filters differences caused by statistically independent program behavior, e.g., randomization, and reveals true information leaks. The third phase classifies these leaks according to the information that can be obtained from them. This provides further insight to security analysts about the risk they pose in practice. We use DATA to analyze OpenSSL and PyCrypto in a fully automated way. Among several expected leaks in symmetric ciphers, DATA also reveals known and previously unknown leaks in asymmetric primitives (RSA, DSA, ECDSA), and DATA identifies erroneous bug fixes of supposedly fixed constant-time vulnerabilities. Tool Approach Finest Covered vulnerabilities False positives False Output Source code Tool granularity CF leak Data leak Deterministic Non-deterministic negatives Leaks Key dependency required available CacheAudit [24] Static analysis Cache line Leakage bound no CacheAudit 2 [25] Static analysis Byte address Leakage bound no CacheD [80] Combined Cache line Leak origin no ctgrind [50] Dynamic Byte address Leak origin yes Stacco [84] Dynamic (trace-based) Byte address a Leak origin no MI-Tool [41] Dynamic (attack-based) Cache line S S Leak origin generic yes Zankl et al. [89] Dynamic (trace-based) Byte address S S Leak origin HW no DATA Dynamic (trace-based) Byte address S S Leak origin generic, HW, etc. no a Only the first control-flow leak is reliably identified. Reporting multiple leaks could cause false positives.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • "They're not that hard to mitigate": What Cryptographic Library Developers Think About Timing Attacks 引用了 CacheD: Identifying Cache-Based Timing Channels in Production Software
  • Identifying Cache-Based Side Channels through Secret-Augmented Abstract Interpretation 引用了 Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLR
  • 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 引用了 Strong and Efficient Cache Side-Channel Protection using Hardware Transactional Memory
  • Identifying Cache-Based Side Channels through Secret-Augmented Abstract Interpretation 引用了 Verifying Constant-Time Implementations
  • ScatterCache: Thwarting Cache Attacks via Cache Set Randomization 引用了 Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLR
  • Strong and Efficient Cache Side-Channel Protection using Hardware Transactional Memory 引用了 Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLR
  • Strong and Efficient Cache Side-Channel Protection using Hardware Transactional Memory 引用了 A Software Approach to Defeating Side Channels in Last-Level Caches
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper31

  1. ScatterCache: Thwarting Cache Attacks via Cache Set RandomizationMario Werner, Thomas Unterluggauer, Lukas Giner, Michael Schwarz 等USENIX Security 2019 · 221 次引用
  2. Frontal Attack: Leaking Control-Flow in SGX via the CPU FrontendIvan Puddu, Moritz Schneider, Miro Haller, Srdjan CapkunUSENIX Security 2021 · 63 次引用
  3. "They're not that hard to mitigate": What Cryptographic Library Developers Think About Timing AttacksJan Jancar, Marcel Fourné, Daniel De Almeida Braga, Mohamed Sabt 等S&P 2022 · 61 次引用
  4. Identifying Cache-Based Side Channels through Secret-Augmented Abstract InterpretationShuai Wang, Yuyan Bao, Xiao Liu, Pei Wang 等USENIX Security 2019 · 57 次引用
  5. JavaScript Template Attacks: Automatically Inferring Host Information for Targeted ExploitsMichael Schwarz, Florian Lackner, Daniel GrussNDSS 2019 · 57 次引用

它引用的 Paper9

  1. Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLRDaniel Gruss, Clémentine Maurice, Anders Fogh, Moritz Lipp 等CCS 2016 · 278 次引用
  2. Verifying Constant-Time ImplementationsJosé Bacelar Almeida, Manuel Barbosa, Gilles Barthe, François Dupressoir 等USENIX Security 2016 · 274 次引用
  3. Strong and Efficient Cache Side-Channel Protection using Hardware Transactional MemoryDaniel Gruss, Julian Lettner, Felix Schuster, Olga Ohrimenko 等USENIX Security 2017 · 254 次引用
  4. A Software Approach to Defeating Side Channels in Last-Level CachesZiqiao Zhou, Michael K. Reiter, Yinqian ZhangCCS 2016 · 155 次引用
  5. CacheD: Identifying Cache-Based Timing Channels in Production SoftwareShuai Wang, Pei Wang, Xiao Liu, Danfeng Zhang 等USENIX Security 2017 · 130 次引用

相关 Paper

  1. Big Numbers - Big Troubles: Systematically Analyzing Nonce Leakage in (EC)DSA ImplementationsSamuel Weiser, David Schrammel, Lukas Bodner, Raphael SpreitzerUSENIX Security 2020
  2. Cache Refinement Type for Side-Channel Detection of Cryptographic SoftwareKe Jiang, Yuyan Bao, Shuai Wang, Zhibo Liu 等CCS 2022 · 7 次引用
  3. Abacus: Precise Side-Channel AnalysisQinkun Bao, Zihao Wang, Xiaoting Li, James R. Larus 等ICSE 2021 · 19 次引用
  4. With Great Power Come Great Side Channels: Statistical Timing Side-Channel Analyses with Bounded Type-1 ErrorsMartin Dunsche, Marcel Maehren, Nurullah Erinola, Robert Merget 等USENIX Security 2024 · 5 次引用
  5. CacheQL: Quantifying and Localizing Cache Side-Channel Vulnerabilities in Production SoftwareYuanyuan Yuan, Zhibo Liu, Shuai WangUSENIX Security 2023
黄昏的海面,两侧是细线勾勒的悬崖