Lune

USENIX Security2021Top-tier venue

Searching Encrypted Data with Size-Locked Indexes

Min Xu, Armin Namavari, David Cash, Thomas Ristenpart

Abstract

We investigate a simple but overlooked folklore approach for searching encrypted documents held at an untrusted service: Just stash an index (with unstructured encryption) at the service and download it for updating and searching. This approach is simple to deploy, enables rich search support beyond unsorted keyword lookup, requires no persistent client state, and (intuitively at least) provides excellent security compared with approaches like dynamic searchable symmetric encryption (DSSE). This work first shows that implementing this construct securely is more subtle than it appears, and that naive implementations with commodity indexes are insecure due to the leakage of the byte-length of the encoded index. We then develop a set of techniques for encoding indexes, called size-locking, that eliminates this leakage. Our key idea is to fix the size of indexes to depend only on features that are safe to leak. We further develop techniques for securely partitioning indexes into smaller pieces that are downloaded, trading leakage for large increases in performance in a measured way. We implement our systems and evaluate that they provide search quality matching plaintext systems, support for stateless clients, and resistance to damaging injection attacks. Introduction Client-side encryption protects data stored at untrusted servers, but deploying it poses both usability and security challenges. Off-the-shelf file encryption disables server-side data processing, including features for efficiently navigating data at the request of the client. And even with well-designed special-purpose encryption, some aspects of the stored data and user behavior will go unprotected. This work concerns text searching on encrypted data, and targets replicating, under encryption, the features provided in typical plaintext systems efficiently and with the highest security possible. Diverse applications are considered, but a concrete example is a cloud storage service like Dropbox, Google Drive, and iCloud. These systems allow users to log in from anywhere (e.g., from a browser) and quickly search even large folders. The search interface accepts multiple keywords, ranks the results, and provides previews to the user. To provide such features, these storage services retain access to plaintext data. In contrast, no existing encrypted storage services (e.g., Mega, SpiderOakOne, or Tresorit) supports keyword search. The problem of implementing practical text search for encrypted data was first treated by Song, Wagner, and Perrig [40], who described several approaches. Subsequently a primitive known as dynamic searchable symmetric encryption (DSSE) was developed over the course of an expansive literature (c.f., [7-9, 11, 13-17, 25-27, 31, 41, 46]). But DSSE doesn't provide features matching typical plaintext search systems, and more fundamentally, all existing approaches are vulnerable to attacks that recover plaintext information from encrypted data. The security of DSSE is measured by leakage profiles which describe what the server will learn.

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.

7 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

  • Forward and Backward Private Searchable Encryption from Constrained Cryptographic Primitives cites All Your Queries Are Belong to Us: The Power of File-Injection Attacks on Searchable Encryption
  • New Constructions for Forward and Backward Private Symmetric Searchable Encryption cites Forward Secure Dynamic Searchable Symmetric Encryption with Efficient Updates
  • New Constructions for Forward and Backward Private Symmetric Searchable Encryption cites Forward and Backward Private Searchable Encryption from Constrained Cryptographic Primitives
  • New Constructions for Forward and Backward Private Symmetric Searchable Encryption cites ∑oφoς: Forward Secure Searchable Encryption
  • New Constructions for Forward and Backward Private Symmetric Searchable Encryption cites All Your Queries Are Belong to Us: The Power of File-Injection Attacks on Searchable Encryption
  • d-DSE: Distinct Dynamic Searchable Encryption Resisting Volume Leakage in Encrypted Databases cites Forward Secure Dynamic Searchable Symmetric Encryption with Efficient Updates
  • d-DSE: Distinct Dynamic Searchable Encryption Resisting Volume Leakage in Encrypted Databases cites Forward and Backward Private Searchable Encryption from Constrained Cryptographic Primitives
  • d-DSE: Distinct Dynamic Searchable Encryption Resisting Volume Leakage in Encrypted Databases cites All Your Queries Are Belong to Us: The Power of File-Injection Attacks on Searchable Encryption
  • Injection Attacks Against End-to-End Encrypted Applications cites All Your Queries Are Belong to Us: The Power of File-Injection Attacks on Searchable Encryption
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers7

  1. d-DSE: Distinct Dynamic Searchable Encryption Resisting Volume Leakage in Encrypted DatabasesDongli Liu, Wei Wang, Peng Xu, Laurence T. Yang et al.USENIX Security 2024 · 11 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. More Haste, Less Speed: Cache Related Security Threats in Continuous Integration ServicesYacong Gu, Lingyun Ying, Huajun Chai, Yingyuan Pu et al.S&P 2024 · 4 citations
  4. Length Leakage in Oblivious Data Access MechanismsGrace Jia, Rachit Agarwal, Anurag KhandelwalUSENIX Security 2024 · 2 citations
  5. Exploiting Leakage in Password Managers via Injection AttacksAndrés Fábrega, Armin Namavari, Rachit Agarwal, Ben Nassi et al.USENIX Security 2024 · 1 citation

Builds on12

  1. All Your Queries Are Belong to Us: The Power of File-Injection Attacks on Searchable EncryptionYupeng Zhang, Jonathan Katz, Charalampos PapamanthouUSENIX Security 2016 · 512 citations
  2. Forward and Backward Private Searchable Encryption from Constrained Cryptographic PrimitivesRaphaël Bost, Brice Minaud, Olga OhrimenkoCCS 2017 · 423 citations
  3. ∑oφoς: Forward Secure Searchable EncryptionRaphael BostCCS 2016 · 382 citations
  4. New Constructions for Forward and Backward Private Symmetric Searchable EncryptionJavad Ghareh Chamani, Dimitrios Papadopoulos, Charalampos Papamanthou, Rasool JaliliCCS 2018 · 242 citations
  5. Forward Secure Dynamic Searchable Symmetric Encryption with Efficient UpdatesKee Sung Kim, Minkyu Kim, Dongsoo Lee, Je Hong Park et al.CCS 2017 · 179 citations

Related papers

  1. DDR-SSE: Duplicated Retrieval of Documents for System-wide Secure Searchable Symmetric EncryptionZichen Gui, Simon-Philipp Merz, Kenneth G. Paterson, Sikhar PatranabisUSENIX Security 2026
  2. DORY: An Encrypted Search System with Distributed TrustEmma Dauterman, Eric Feng, Ellen Luo, Raluca Ada Popa et al.OSDI 2020 · 77 citations
  3. A Highly Accurate Query-Recovery Attack against Searchable Encryption using Non-Indexed DocumentsMarc Damie, Florian Hahn, Andreas PeterUSENIX Security 2021 · 46 citations
  4. Rethinking Searchable Symmetric EncryptionZichen Gui, Kenneth G. Paterson, Sikhar PatranabisS&P 2023
  5. Hiding the Access Pattern is Not Enough: Exploiting Search Pattern Leakage in Searchable EncryptionSimon Oya, Florian KerschbaumUSENIX Security 2021 · 152 citations
Dusk over the sea between two cliffs drawn in fine vertical lines