Lune

S&P2023Top-tier venue

DBREACH: Stealing from Databases Using Compression Side Channels

Mathew Hogan, Yan Michalevsky, Saba Eskandarian

Abstract

We introduce new compression side-channel attacks against database storage engines that simultaneously support compression of database pages and encryption at rest. Given only limited, indirect access to an encrypted and compressed database table, our attacks extract arbitrary plaintext with high accuracy. We demonstrate accurate and performant attacks on the InnoDB storage engine variants found in MariaDB and MySQL as well as the WiredTiger storage engine for MongoDB.Our attacks overcome obstacles unique to the database setting that render previous techniques developed to attack TLS ineffective. Unlike the web setting, where the exact length of a compressed and encrypted message can be observed, we make use of only approximate ciphertext size information gleaned from file sizes on disk. We amplify this noisy signal and combine it with new attack heuristics tailored to the database setting to extract secret plaintext. Our attacks can detect whether a random string appears in a table with > 90% accuracy and extract 10-character random strings from encrypted tables with > 95% success.

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.

9 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

  • GPU.zip: On the Side-Channel Implications of Hardware-Based Graphical Data Compression cites Safecracker: Leaking Secrets through Compressed Caches
  • GPU.zip: On the Side-Channel Implications of Hardware-Based Graphical Data Compression cites Practical Timing Side-Channel Attacks on Memory Compression
  • Practical Timing Side-Channel Attacks on Memory Compression cites Safecracker: Leaking Secrets through Compressed Caches
  • Practical Timing Side-Channel Attacks on Memory Compression cites Request and Conquer: Exposing Cross-Origin Resource Size
  • Leafblower: a Leakage Attack Against Tee-Based Encrypted Databases cites Practical Timing Side-Channel Attacks on Memory Compression
  • Leafblower: a Leakage Attack Against Tee-Based Encrypted Databases cites Injection Attacks Against End-to-End Encrypted Applications
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers9

  1. GPU.zip: On the Side-Channel Implications of Hardware-Based Graphical Data CompressionYingchen Wang, Riccardo Paccagnella, Zhao Gang, Willy R. Vasquez et al.S&P 2024 · 17 citations
  2. Injection Attacks Against End-to-End Encrypted ApplicationsAndrés Fábrega, Carolina Ortega Pérez, Armin Namavari, Ben Nassi et al.S&P 2024 · 9 citations
  3. Exploiting Leakage in Password Managers via Injection AttacksAndrés Fábrega, Armin Namavari, Rachit Agarwal, Ben Nassi et al.USENIX Security 2024 · 1 citation
  4. Leafblower: a Leakage Attack Against Tee-Based Encrypted DatabasesZachary Espiritu, Seny Kamara, Tarik Moataz, Valentin OgierS&P 2026 · 1 citation
  5. Side-Channel Attacks on Open vSwitchDaewoo Kim, Sihang LiuUSENIX Security 2026 · 1 citation

Builds on3

  1. Request and Conquer: Exposing Cross-Origin Resource SizeTom van Goethem, Mathy Vanhoef, Frank Piessens, Wouter JoosenUSENIX Security 2016 · 35 citations
  2. Safecracker: Leaking Secrets through Compressed CachesPo-An Tsai, Andrés Sánchez, Christopher W. Fletcher, Daniel SánchezASPLOS 2020 · 23 citations
  3. Practical Timing Side-Channel Attacks on Memory CompressionMartin Schwarzl, Pietro Borrello, Gururaj Saileshwar, Hanna Müller et al.S&P 2023

Related papers

  1. Criminology: Refined Techniques for Compression Side-Channel AttacksYuanming Song, Lenka Mareková, Kenneth G. PatersonCCS 2026
  2. Crossing the Streams: SSH Plaintext Recovery via a Common Compression Context in Multiplexed ChannelsFabian Bäumer, Marcus BrinkmannCCS 2026
  3. CacheQL: Quantifying and Localizing Cache Side-Channel Vulnerabilities in Production SoftwareYuanyuan Yuan, Zhibo Liu, Shuai WangUSENIX Security 2023
  4. Remote Memory-Deduplication AttacksMartin Schwarzl, Erik Kraft, Moritz Lipp, Daniel GrussNDSS 2022
  5. Page Cache AttacksDaniel Gruss, Erik Kraft, Trishita Tiwari, Michael Schwarz et al.CCS 2019 · 55 citations
Dusk over the sea between two cliffs drawn in fine vertical lines