QueryCheetah: Fast Automated Discovery of Attribute Inference Attacks Against Query-Based Systems

Bozhidar Stevanoski, Ana-Maria Cretu, Yves-Alexandre de Montjoye

TL;DR

QueryCheetah is a high-speed automated framework designed to discover attribute inference attacks against query-based systems (QBSs). By utilizing a multi-stage local search guided by machine learning feature importance, it identifies stronger privacy leaks while operating 18 times faster than previous state-of-the-art methods.

The Challenge of Query-Based Systems

Query-based systems (QBSs) are designed to facilitate the sharing of sensitive data without exposing raw records. Instead of direct access, curators provide an interface where analysts request aggregate statistics (e.g., "What is the average salary in this zip code?"). To maintain privacy, these systems typically employ noise addition or query restrictions.

Overview of a typical query-based system (QBS) interaction.

Despite these defenses, QBSs are vulnerable to "difference queries"—combinations of queries that isolate an individual's sensitive information. Historically, identifying these vulnerabilities required manual expertise or significant computational resources. Previous automated tools like QuerySnout relied on slow evolutionary algorithms, limiting their ability to explore complex query syntaxes or evaluate large datasets comprehensively.

The QueryCheetah Framework

QueryCheetah shifts the search paradigm from population-based evolutionary algorithms to a multi-stage local search. This approach significantly reduces computational overhead while improving attack discovery.

  1. Local Search via Feature Importance: The framework begins with a single multiset of queries and trains a logistic regression model to predict a target's sensitive attribute. By analyzing the absolute values of the model's coefficients (feature importance), QueryCheetah identifies which queries contribute most to the attack. "Weak" queries are discarded and replaced with new random queries in an iterative process.
The multi-stage local search process used by QueryCheetah.
  1. Multi-Stage Syntax Expansion: To navigate vast search spaces, QueryCheetah starts with simple query syntax and gradually introduces more complex operations (e.g., BETWEEN, IN, NOT IN). This allows the tool to find vulnerabilities in extended syntaxes that were previously too complex to search effectively.
  2. Privacy Game Formalization: Attacks are evaluated using a "distinguishability privacy game," where an attacker attempts to guess a sensitive value from a protected dataset.

Experimental Setup and Datasets

The researchers evaluated QueryCheetah across several public datasets:

  • Adult: 1994 U.S. Census data (sensitive: income).
  • Census: KDD Census-Income dataset (sensitive: income).
  • Insurance: COIL 2000 benchmark (sensitive: insurance interest).
  • Synthetic Datasets: Used to analyze the impact of attribute correlations.

Key Findings

  • Efficiency: QueryCheetah is 18x faster than QuerySnout overall. Individual iterations are approximately 450x faster, enabling broader exploration.
  • Attack Potency: The framework consistently discovered attacks with higher accuracy than semi-automated methods and QuerySnout across all tested datasets.
  • Non-Uniform Privacy Risk: Due to its speed, the authors could attack every unique user in the datasets, revealing a "long tail" of highly vulnerable individuals that slower tools might overlook.
  • Generalized Difference Queries: QueryCheetah identified a new class of attacks using ranges and exclusion sets (e.g., age BETWEEN 29 AND 31) to bypass ad-hoc defenses that only targeted simple equality queries.
  • Automated Workarounds: When systems like Diffix implemented mitigations, QueryCheetah automatically discovered workarounds by exploring richer query syntaxes.

Limitations and Future Work

While highly effective, the current implementation primarily focuses on COUNT() queries and binary sensitive attributes. Future research could extend the framework to handle multi-valued attributes and optimize the allocation of Differential Privacy (DP) budgets across discovered queries to maximize attack success.

Summary updated

BibTeX
@inproceedings{stevanoski2025querycheetah,
  author = {Bozhidar Stevanoski and Ana-Maria Cretu and Yves-Alexandre de Montjoye},
  title = {{QueryCheetah: Fast Automated Discovery of Attribute Inference Attacks Against Query-Based Systems}},
  booktitle = {ACM SIGSAC Conference on Computer and Communications Security (CCS ’24)},
  year = {2025},
  url = {https://openreview.net/forum?id=xaaNuO5dob},
}
Figure