NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Efficient Set Operations in the Presence of Malicious Adversaries

Carmit Hazay, Kobbi Nissim · DOI

Introduction

Secure Multi-Party Computation (MPC) enables two or more parties to compute a function over their private inputs without revealing anything beyond the output. A fundamental problem in this field is secure set operations—specifically set intersection and set union. For example, two organizations might want to find common customers without sharing their entire customer lists. While protocols for "semi-honest" adversaries (who follow the protocol but try to learn more) are relatively efficient, achieving security against "malicious" adversaries (who may deviate from the protocol) has historically incurred significant overhead. This paper introduces constant-round protocols that achieve malicious security with near-linear efficiency.

The Challenge of Malicious Adversaries

In the semi-honest model, we assume parties follow the prescribed steps. In the real world, however, an adversary might provide malformed inputs, skip verification steps, or adaptively change their input based on the messages they receive. Traditional "compilers" that transform semi-honest protocols into malicious-secure ones often result in a massive blow-up in communication and computation costs. The challenge addressed in this work is to design specialized protocols that maintain the linear complexity required for practical use while providing robust security guarantees.

Methodology and Technical Innovations

The authors build upon the Oblivious Polynomial Evaluation (OPE) framework, introducing several key upgrades to ensure security against active attackers:

Balanced Allocation via Hashing

To avoid the high cost of evaluating large-degree polynomials, the protocol uses a hashing technique to distribute set elements into smaller "bins." This "balanced allocation" ensures that the degree of the polynomials remains low, which is crucial for maintaining computational efficiency as the set sizes grow.

The OPRF and Commitment "Sandwich"

To prevent a malicious party from "fishing" for information by adaptively changing their inputs mid-protocol, the authors utilize a Perfectly Hiding Commitment scheme. One party commits to their set at the start. Then, an Oblivious Pseudorandom Function (OPRF) is used to generate the randomness for the polynomial evaluations. This mechanism "locks" the malicious party into a specific input set, making the security proof—specifically the "extraction" of the adversary's input—possible.

Efficient Zero-Knowledge Proofs (ZKP)

Generic zero-knowledge proofs are often the primary bottleneck in malicious-secure MPC. The authors develop specialized, efficient ZKPs to verify that polynomials are constructed correctly. These proofs ensure that an adversary cannot submit a "zero" polynomial or other malformed structures designed to leak the other party's entire set.

Cryptographic Foundations: Transition to El Gamal

The authors identify a subtle security vulnerability in previous protocols that utilized Paillier encryption, where a malicious party knowing the secret key could potentially learn extra information. To resolve this, the protocol is transitioned to the El Gamal encryption scheme over prime order groups, which provides the necessary security properties in the presence of malicious actors.

Key Insights

  • Standard Model Security: Unlike many efficient protocols that rely on the "Random Oracle Model" (a heuristic assumption), these constructions are secure in the standard model, relying on well-established hardness assumptions like Decisional Diffie-Hellman (DDH).
  • Simulation-Based and UC Security: The authors prove security using the simulation-based paradigm, the gold standard for MPC. Furthermore, they demonstrate that these protocols can be transformed into the Universal Composability (UC) framework, meaning they remain secure even when used as building blocks in larger, more complex systems.
  • OPRF for Randomness Forcing: A core insight is using the OPRF not just for processing set values, but as a way to force "honest-looking" randomness from a malicious party, which is critical for the formal security proof.

Performance and Results

The proposed protocols offer significant efficiency gains over generic approaches:

  • Round Complexity: All protocols are constant-round, meaning the number of communication rounds does not increase with the size of the input sets.
  • Communication Complexity: $O(m_X + m_Y \cdot p(n))$ group elements, scaling linearly with the set sizes.
  • Computational Complexity: $O(m_X + m_Y \cdot (\log \log m_X + p(n)))$ modular exponentiations. This is substantially faster than the $O(m_X \cdot m_Y)$ complexity of more naive or generic malicious-secure methods.
  • Optimized Intersection: The authors also provide an optimized version of set intersection that further improves efficiency if the parties agree to leak the size of the intersection.

Conclusion and Future Directions

This work demonstrates that highly efficient, constant-round set operations are possible even in the presence of malicious adversaries. By carefully combining OPRFs, commitments, and specialized ZKPs, the authors bridge the gap between theoretical security and practical performance. While the protocols currently require a Common Reference String (CRS) for maximum efficiency, future improvements in OPRF design and specialized proofs could further reduce the computational constants, making these techniques viable for massive-scale secure data analysis.

Summary updated

BibTeX
@inproceedings{hazay2010efficient,
  author = {Carmit Hazay and Kobbi Nissim},
  title = {{Efficient Set Operations in the Presence of Malicious Adversaries}},
  booktitle = {Public Key Cryptography},
  year = {2010},
  doi = {10.1007/978-3-642-13013-7\_19},
}
Figure