Waldo: A Private Time-Series Database from Function Secret Sharing

Emma Dauterman, Mayank Rathee, Raluca Ada Popa, Ion Stoica

TL;DR

Waldo is a new private time-series database that enables complex multi-predicate filtering and aggregation while keeping data contents, query values, and access patterns hidden from servers. By cleverly combining Function Secret Sharing (FSS) with Replicated Secret Sharing (RSS), Waldo achieves orders-of-magnitude better performance and bandwidth efficiency than traditional ORAM or general-purpose MPC baselines.

What Problem Does This Paper Address?

Organizations increasingly outsource sensitive time-series data (like medical records or smart home metrics) to the cloud. While encryption-at-rest is standard, performing queries on this data usually requires either decrypting it on the server (risking data breaches) or using specialized "searchable encryption" that leaks significant information, such as which records were accessed or even the specific time intervals being queried.

Existing cryptographic heavyweights like Oblivious RAM (ORAM) and Multi-Party Computation (MPC) can solve these privacy issues but are often prohibitively slow. ORAM requires many round-trips between client and server, while general MPC suffers from massive bandwidth overhead. Waldo aims to bridge this gap, providing a system that is both highly secure (maliciously secure in a 3-party setting) and fast enough for real-world use.

Methods

Waldo introduces two main index types: WaldoTable (for multi-predicate filtering) and WaldoTree (for complex aggregates like min/max over time ranges). Its performance comes from several novel technical choices:

  • FSS + RSS Integration: Waldo uses Function Secret Sharing (FSS), which allows a client to give servers "shares" of a function (like a range check). Servers can evaluate these shares on their data locally. To handle multiple predicates (e.g., heart_rate > 90 AND systolic < 120), Waldo layers FSS on top of 2-out-of-3 Replicated Secret Sharing (RSS). This combination allows servers to perform the necessary multiplications for "AND" logic with zero inter-server communication.
  • Shared One-Hot Index: To avoid the high cost of evaluating FSS on encrypted values, Waldo builds an index where each record is represented as a "one-hot" vector across a domain of possible values.
  • Malicious Security via FSS Keys: To protect against a malicious server trying to forge results, Waldo bakes information-theoretic Message Authentication Codes (MACs) directly into the FSS keys. This allows the client to verify the integrity of the query result without requiring the servers to run expensive joint verification protocols.
  • WaldoTree for Oblivious Ranges: For queries over time intervals, WaldoTree uses a "covering set" of nodes in a tree. It uses FSS to "activate" only the nodes relevant to the query interval, hiding the specific time range from the servers.

Datasets

The authors evaluated Waldo using synthetic workloads modeled after Remote Patient Monitoring (RPM) scenarios. They simulated biometric data features (e.g., heart rate, blood pressure, weight) with a feature size of $2^8$ (256 possible values), which is sufficient for many medical and IoT applications.

Key Insights and Ideas

  • Communication is the Bottleneck: In distributed trust settings (servers in different clouds), network latency and bandwidth are the primary costs. Waldo’s design prioritizes local computation over inter-server talk.
  • The "Free" Multiplication: By using RSS, Waldo makes the first layer of multiplication (combining predicates) essentially free of communication, a massive win over standard MPC.
  • Small Domains are Powerful: While a one-hot index for a 64-bit integer is impossible, many sensitive time-series features (like heart rate or oxygen levels) fit comfortably in 8-bit domains or can be "bucketed" into them without losing utility for clinical queries.
  • Client-Side Verification: By moving the verification of malicious behavior to the client (using the MACs embedded in FSS keys), the servers remain "dumb" and fast, avoiding the complex "triple sacrifice" or "cut-and-choose" steps required in other malicious 3PC protocols.

Key Results

  • Speed: Waldo can run a query with 8 range predicates over $2^{18}$ records in just 3.03 seconds.
  • Efficiency vs. Baselines:
    • Compared to a state-of-the-art MPC baseline (MP-SPDZ), Waldo uses 9–82× less bandwidth.
  • Compared to an ORAM baseline, Waldo is up to 37× faster and uses 20–152× less bandwidth between the client and servers.
  • Scalability: Waldo is highly parallelizable; increasing the number of server triples (e.g., using 12 servers instead of 3) can reduce query time for large datasets linearly.

Limitations and Future Work

  • Feature Size Constraints: Waldo relies on small feature sizes (e.g., $2^8$). While bucketing and hashing help, queries requiring high-precision filtering on very large domains (like unique 64-bit IDs) remain a challenge.
  • Query Expressiveness: Currently, Waldo does not support joins, sorting, or GROUP BY operations, which are common in standard SQL databases.
  • Append-Only Nature: The system is optimized for time-series (where data is added but rarely changed). It does not natively support private updates to existing records.
  • Differential Privacy: Unlike some prior work (e.g., Zeph), Waldo does not currently incorporate differential privacy to protect against "volume leakage" (knowing how many records matched a query), though the authors suggest this as a valuable future direction.

Summary updated

BibTeX
@inproceedings{dauterman2022waldo,
  author = {Emma Dauterman and Mayank Rathee and Raluca Ada Popa and Ion Stoica},
  title = {{Waldo: A Private Time-Series Database from Function Secret Sharing}},
  booktitle = {SP},
  year = {2022},
  doi = {10.1109/sp46214.2022.9833611},
}
Figure