Symmetric Searchable Encryption (SSE) allows a client to outsource an encrypted database to an untrusted cloud server while retaining the ability to securely search over it. In a static setting, this is achieved by providing the server with an encrypted index and generating randomized search tokens for specific keywords.
However, real-world databases are rarely static. When databases support dynamic updates—allowing files to be added or deleted—they expose a significant vulnerability: the server can observe how new or modified data correlates with historical search queries. To prevent devastating information leakage, such as file-injection attacks, modern dynamic SSE frameworks must guarantee two critical properties: forward privacy and backward privacy.
The Leakage Problem in Dynamic Databases
To understand why these privacy properties are necessary, consider a naive dynamic SSE system. When a client searches for a keyword, the server learns the set of matching encrypted documents. If the client later uploads a new document containing that same keyword, an observant server might easily deduce the match if the new entry uses the same cryptographic state or structural arrangement as the past query. This vulnerability allows a malicious server to execute file-injection attacks, tricking the client into downloading or indexing files to infer sensitive underlying keywords.
As noted by Viet Vo et al. in their work on Accelerating Forward and Backward Private Searchable Encryption Using Trusted Execution, dynamic systems that allow file additions and deletions are highly susceptible to these leakage abuse attacks if they fail to decouple update patterns from historical queries.
- Forward Privacy dictates that a newly added document cannot be linked to any search queries made in the past. The server should learn nothing about the keywords contained in a new file, even if those keywords were recently searched.
- Backward Privacy dictates that subsequently executed search queries must not reveal documents that have already been deleted. The footprints of deleted data must be completely erased from the server's future search results.
Achieving Forward Privacy: Evolving States
The core intuition behind forward privacy is to ensure that the cryptographic tokens used for updates are completely independent of past search tokens. If a server cannot mathematically link a new file upload to an old search token, it cannot determine whether the new file matches a previously searched keyword.
The most common mechanism to achieve this is through versioned counters or state derivation chains. In RSPP: A Reliable, Searchable and Privacy-Preserving e-Healthcare System for Cloud-Assisted Body Area Networks, Qingji Zheng et al. demonstrate how maintaining an incremental counter for each keyword at the data source prevents the server from linking updates to historical queries.
Every time a keyword is updated, the client increments its internal counter and derives a new, unique cryptographic address using a Pseudo-Random Function (PRF). When a search is eventually performed, the client sends the tokens for all historical versions up to the current counter value. Because the server only receives these keys during the search, it cannot use past search tokens to identify or decrypt future updates.
An alternative approach to forward privacy involves decoupling the timing of updates from the primary index structure. As shown by Ghous Amjad et al. in Dynamic Volume-Hiding Encrypted Multi-Maps with Applications to Searchable Encryption, forward privacy can be maintained by storing new updates in a temporary, unapplied buffer. These updates are only merged into the main encrypted index when a specific query is executed, effectively hiding the correlation between immediate data additions and user search patterns.
Achieving Backward Privacy: Cryptographic Puncturing
Backward privacy is inherently harder to achieve than forward privacy. When a document is deleted, the client typically sends a deletion token to the server. However, if a client later searches for a keyword that used to be in that deleted document, how do we prevent the server from realizing that a match used to exist?
Raphael Bost et al. formalized the definitions of backward privacy in their seminal paper, Forward and Backward Private Searchable Encryption from Constrained Cryptographic Primitives. They introduced mechanisms leveraging puncturable encryption and constrained PRFs to solve this problem.
The intuition behind puncturable encryption is akin to selectively destroying a key's capability. When a file is deleted, the client "punctures" the decryption key associated with that keyword, revoking its ability to decrypt the specific document ID of the deleted file. When the server later receives a search token derived from this punctured key, it can decrypt and verify all valid documents matching the keyword, but it remains cryptographically blinded to the historical entries that were deleted.
The Complexity of Multi-Keyword Queries and Volume Hiding
While forward and backward privacy are well-understood for single-keyword searches, scaling these properties to complex query types and hiding structural metadata remain active areas of research.
Conjunctive Queries
In multi-keyword (conjunctive) searches, protecting the primary index alone is insufficient. As argued by Cong Zuo et al. in Searchable Encryption for Conjunctive Queries with Extended Forward and Backward Privacy, secondary indices or auxiliary data structures (such as cross-tags used to compute intersections) often act as hidden leakage points. If these secondary structures are not individually forward-private, a server can reuse historical cross-tags to identify keywords in newly added files, breaking the system's security guarantees. The authors emphasize that comprehensive protection requires ensuring that all auxiliary verification structures are tightly integrated into the forward and backward privacy model.
Volumetric Leakage
Even if search tokens are perfectly unlinkable, a server can still infer sensitive information by observing the volume (the total count) of results returned by a query over time. To counter this, HUAXIONG WANG et al. proposed a framework in Volume-Hiding Dynamic Searchable Symmetric Encryption with Forward and Backward Privacy that combines forward and backward privacy with dynamic volume-hiding techniques. By utilizing hierarchical data structures and padding mechanisms, the authors demonstrate that it is possible to obscure result counts during dynamic updates without sacrificing the core protections against file-injection and deletion-tracking attacks.
Key Foundational Work
RSPP: A Reliable, Searchable and Privacy-Preserving e-Healthcare System for Cloud-Assisted Body Area Networks (2017) — contributed 2 concept elements to this direction.
Forward and Backward Private Searchable Encryption from Constrained Cryptographic Primitives (2017) — contributed 2 concept elements to this direction.
FFSSE: Flexible Forward Secure Searchable Encryption with Efficient Performance (2017) — contributed 1 concept elements to this direction.