Unmasking Vulnerabilities: Cardinality Sketches under Adaptive Inputs
Sara Ahmadian, Edith Cohen

TL;DR
This paper reveals vulnerabilities in cardinality sketches like HyperLogLog when facing adaptive inputs, showing that adversaries can exploit these sketches with a limited number of queries, highlighting security concerns.
Contribution
The paper demonstrates that cardinality sketches are vulnerable to adaptive attacks and provides a generic attack framework applicable to any estimator using these sketches.
Findings
Empirical attack on HyperLogLog with 4k queries.
Vulnerabilities are inherent and can be exploited with quadratic in k queries.
The attack can compromise the accuracy of cardinality estimates in adaptive scenarios.
Abstract
Cardinality sketches are popular data structures that enhance the efficiency of working with large data sets. The sketches are randomized representations of sets that are only of logarithmic size but can support set merges and approximate cardinality (i.e., distinct count) queries. When queries are not adaptive, that is, they do not depend on preceding query responses, the design provides strong guarantees of correctly answering a number of queries exponential in the sketch size . In this work, we investigate the performance of cardinality sketches in adaptive settings and unveil inherent vulnerabilities. We design an attack against the ``standard'' estimators that constructs an adversarial input by post-processing responses to a set of simple non-adaptive queries of size linear in the sketch size . Empirically, our attack used only queries with the widely used HyperLogLog…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdversarial Robustness in Machine Learning
