揭示脆弱性:自适应输入下的基数草图
Unmasking Vulnerabilities: Cardinality Sketches under Adaptive Inputs
AI总结:
本研究揭示基数草图在自适应输入下的固有脆弱性,提出针对标准估计器的攻击方法,并证明任何估计器均可被二次数量级查询攻破。
摘要:
基数草图是流行的数据结构,用于提高处理大型数据集的效率。这些草图是集合的随机化表示,仅具有对数大小,但可以支持集合并集和近似基数(即去重计数)查询。当查询是非自适应的,即它们不依赖于先前查询的响应时,该设计提供了强保证,能够正确回答数量为草图大小$k$的指数级的查询。在本工作中,我们研究了基数草图在自适应设置下的性能,并揭示了其固有的脆弱性。我们设计了一种针对“标准”估计器的攻击,通过后处理一组大小为草图大小$k$的线性规模的简单非自适应查询的响应来构造对抗性输入。实验上,我们的攻击仅使用了$4k$次查询,针对广泛使用的HyperLogLog (HLL++)草图。这种简单的攻击技术表明,它可能对后处理的自然工作负载有效。最后且重要的是,我们证明了这种脆弱性是固有的,因为应用于已知草图结构的任何估计器都可以使用数量为$k$的二次方的查询进行攻击,这匹配了一个通用的上界。
英文摘要:
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 $k$. 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 $k$. Empirically, our attack used only $4k$ queries with the widely used HyperLogLog (HLL++)~\citep{hyperloglog:2007,hyperloglogpractice:EDBT2013} sketch. The simple attack technique suggests it can be effective with post-processed natural workloads. Finally and importantly, we demonstrate that the vulnerability is inherent as \emph{any} estimator applied to known sketch structures can be attacked using a number of queries that is quadratic in $k$, matching a generic upper bound.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。