Skip to main content
QUICK REVIEW

[Paper Review] SMCQL: Secure Querying for Federated Databases

Johes Bater, Gregory Elliott|arXiv (Cornell University)|Jun 22, 2016
Cryptography and Data SecurityComputer Science31 references5 citations
TL;DR

This paper proposes smcql, a framework that enables secure, privacy-preserving querying over federated databases composed of mutually distrustful parties using secure multiparty computation (SMC). By translating SQL queries into SMC primitives and optimizing their execution to minimize costly secure computation, smcql allows researchers to evaluate complex queries—such as counting rare disease patients—without exposing sensitive data to data providers or brokers, achieving practical performance on real medical datasets.

ABSTRACT

People and machines are collecting data at an unprecedented rate. Despite this newfound abundance of data, progress has been slow in sharing it for open science, business, and other data-intensive endeavors. Many such efforts are stymied by privacy concerns and regulatory compliance issues. For example, many hospitals are interested in pooling their medical records for research, but none may disclose arbitrary patient records to researchers or other healthcare providers. In this context we propose the Private Data Network (PDN), a federated database for querying over the collective data of mutually distrustful parties. In a PDN, each member database does not reveal its tuples to its peers nor to the query writer. Instead, the user submits a query to an honest broker that plans and coordinates its execution over multiple private databases using secure multiparty computation (SMC). Here, each database's query execution is oblivious, and its program counters and memory traces are agnostic to the inputs of others. We introduce a framework for executing PDN queries named SMCQL. This system translates SQL statements into SMC primitives to compute query results over the union of its source databases without revealing sensitive information about individual tuples to peer data providers or the honest broker. Only the honest broker and the querier receive the results of a PDN query. For fast, secure query evaluation, we explore a heuristics-driven optimizer that minimizes the PDN's use of secure computation and partitions its query evaluation into scalable slices.

Motivation & Objective

  • To address the challenge of enabling collaborative data analysis across mutually distrustful parties, such as hospitals, without compromising data privacy.
  • To design a system that allows researchers to run standard SQL queries over distributed, private databases while preserving confidentiality of individual tuples and intermediate results.
  • To minimize the performance overhead of secure computation by optimizing query plans and reducing reliance on SMC through heuristics and query partitioning.
  • To support arbitrary SQL operations—including comparisons and nested queries—while ensuring security and correctness in a decentralized, privacy-preserving setting.
  • To build a practical, open-source framework that can be deployed in real-world data-sharing scenarios such as clinical research networks.

Proposed method

  • The system uses a Private Data Network (PDN) architecture where an honest broker coordinates query execution across private data providers without accessing their raw data.
  • SQL queries are translated into secure multiparty computation (SMC) primitives, ensuring that each party's computation is oblivious to others' inputs.
  • A heuristic-driven query optimizer identifies where SMC is necessary and restructures the query plan to reduce SMC usage, including partitioning data and partially evaluating operators in plaintext.
  • The framework employs a security type system for SQL to track data sensitivity and enforce privacy properties across query operators.
  • Secure computation is performed locally on data provider hosts, eliminating reliance on trusted third parties or outsourced cloud servers.
  • The system supports secure record linkage for shared identifiers (e.g., patient IDs) across databases using existing SMC-based techniques.

Experimental results

Research questions

  • RQ1How can we enable secure, privacy-preserving querying over federated databases composed of mutually distrustful parties without exposing raw data?
  • RQ2What techniques can minimize the performance overhead of secure multiparty computation in database query execution?
  • RQ3How can we support complex SQL operations—such as comparisons, aggregations, and nested queries—within a privacy-preserving framework?
  • RQ4Can we design a system that allows researchers to use standard SQL while ensuring that neither data providers nor the broker learn sensitive intermediate results?
  • RQ5What optimizations are effective in reducing SMC usage while maintaining correctness and security in distributed query processing?

Key findings

  • smcql successfully translates complex SQL queries into secure computation plans that preserve privacy while enabling accurate query results.
  • The system achieves usable performance on real medical datasets, with PDN queries completing in reasonable time despite large input sizes.
  • By partitioning data and applying heuristic optimizations, the framework significantly reduces the use of expensive SMC operations, improving efficiency.
  • The framework supports arbitrary tuple comparisons (e.g., ≤, ≥) and nested queries—features missing in prior work—without leaking intermediate information.
  • The system prevents data providers and the honest broker from learning the plaintext output of secure computation, enhancing privacy beyond prior approaches.
  • The authors have prepared smcql for open-source release and are collaborating with clinical data networks to test its deployment in real-world settings.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.