Malicious Security for Sparse Private Histograms

Lennart Braun, Adrià Gascón, Mariana Raykova, Phillipp Schoppmann, Karn SethIACR ePrint 2024

TL;DR

This paper introduces a new protocol for computing differentially private (DP) histograms over massive, sparse domains (like URLs or search terms) that remains secure even if one of the two processing servers is actively malicious. By combining a novel oblivious PRF construction with distributed noise generation, the authors achieve optimal privacy error and high efficiency, requiring less than 26 KiB of communication per client for a billion-user dataset.

What Problem Does This Paper Address?

In many data-driven applications, we want to know the "aggregate" (e.g., how many people visited a specific website) without knowing "individual" behavior. Standard tools like Prio allow for private aggregation, but they struggle with sparse histograms.

Imagine a histogram where the possible "buckets" are all possible URLs. That domain is astronomically large, but any single user only visits a few. If you try to compute a standard histogram, you'd spend all your time and bandwidth on empty buckets. Previous work by Bell et al. (CCS’22) solved this for "semi-honest" servers—meaning the servers follow the rules but try to learn extra info. However, if a server or a group of clients is malicious (actively cheating to break privacy), the previous protocol falls apart.

The challenge is: How do you provide "Malicious Security" (security against active cheaters) for sparse histograms without making the computation so slow that it's useless for real-world scale?

Methods

The authors build a protocol involving N clients and two non-colluding servers. Their approach relies on several sophisticated cryptographic building blocks:

  • Dodis-Yampolskiy OPRF with HSM-CL Encryption: To group identical items without seeing the actual indices, the protocol uses an Oblivious Pseudorandom Function (OPRF). Unlike previous versions that malicious clients could manipulate, this paper uses the Dodis-Yampolskiy construction paired with HSM-CL encryption. This allows servers to compute PRF "tags" for user data while ensuring clients can't submit malformed inputs that leak information.
  • Distributed Noise Generation: To achieve Differential Privacy (DP), noise must be added to the counts. In a malicious setting, you can't just trust one server to add noise correctly. Instead of using expensive Zero-Knowledge Proofs (ZKP) to prove noise was sampled correctly, the authors have both servers add their own noise (frequency and duplication dummies). This "distributed" approach ensures that as long as one server is honest, the final result is DP.
  • Multiplicity Histograms: The protocol first computes an "anonymous" histogram (how many items appeared once, twice, etc.) before revealing the actual noisy counts for specific indices. This prevents the servers from learning which indices are "near" the threshold of being revealed.
  • Universal Composability (UC) Framework: The authors provide a rigorous formal proof that their protocol is secure even when the output itself is intentionally "leaky" (which is the nature of DP).

Datasets

The paper does not use a specific real-world training dataset, as it is a cryptographic protocol paper rather than a machine learning model. Instead, the authors evaluate their protocol using simulated parameters across a wide range of scales:

  • Client counts ($N$): From $10^5$ to $10^9$ (one billion) clients.
  • Privacy parameters: Various levels of $\epsilon$ (privacy budget) and a fixed $\delta = 10^{-9}$.
  • Benchmarks: They use existing cryptographic libraries (like BICYCL) to estimate the concrete communication costs for these simulated scenarios.

Key Insights and Ideas

  • The "Aha" Moment on Noising: The biggest bottleneck in malicious MPC is often proving that you did something "random" correctly. By switching to a model where both servers add noise independently, they bypass the need for complex ZKPs for noise sampling, keeping the overhead sublinear.
  • Preventing Client "Squaring" Attacks: In previous protocols, a malicious client could submit $x$ and $x^2$ to see if the PRF tags matched a specific pattern. By moving to the Dodis-Yampolskiy PRF, the authors make the relationship between different inputs cryptographically hard to discern.
  • Efficiency at Scale: The protocol's communication and computation costs scale linearly with the number of inputs, making it one of the few maliciously secure DP protocols capable of handling a billion users.

Key Results

  • Optimal Error: The protocol achieves the optimal central DP error of $O(\frac{\sqrt{\log(1/\delta)}}{\epsilon})$, which is independent of the total number of possible indices in the domain.
  • Low Communication Overhead: For a massive deployment of one billion clients, the communication cost is under 26 KiB per client per server.
  • Scalability: As the number of clients ($N$) increases, the relative cost of the "dummy" entries (noise) becomes less significant, meaning the protocol actually becomes more efficient (per client) as it scales up.

Limitations and Future Work

  • The Two-Server Assumption: The security relies on the "non-colluding" assumption—if the two servers ever share their internal states, privacy is completely lost.
  • Small-N Efficiency: For very small datasets (e.g., $10^5$ clients), the communication cost per client is much higher (up to 400 KiB) because the "noise" (dummies) required for DP doesn't shrink just because the dataset is smaller.
  • Single-Server Open Problem: The authors note that achieving this level of efficiency in a single-server model (where clients do the work of the second server) remains an open challenge.

Summary updated

BibTeX
@article{braun2024malicious,
  author = {Lennart Braun and Adrià Gascón and Mariana Raykova and Phillipp Schoppmann and Karn Seth},
  title = {{Malicious Security for Sparse Private Histograms}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2024},
}
Figure