{
  "id": "2024/1312",
  "url": "https://opencryptology.org/2024/1312",
  "original_url": "https://eprint.iacr.org/2024/1312",
  "title": "Probabilistic Data Structures in the Wild: A Security Analysis of Redis",
  "authors": [
    "Mia Filić",
    "Jonas Hofmann",
    "Sam A. Markelon",
    "Kenneth G. Paterson",
    "Anupama Unnikrishnan"
  ],
  "affiliations": null,
  "abstract": "Redis (Remote Dictionary Server) is a general purpose, in-memory database that supports a rich array of functionality, including various Probabilistic Data Structures (PDS), such as Bloom filters, Cuckoo filters, as well as cardinality and frequency estimators. \nThese PDS typically perform well in the average case. However, given that Redis is intended to be used across a diverse array of applications, it is crucial to evaluate how these PDS perform under worst-case scenarios, i.e., when faced with adversarial inputs. We offer a comprehensive analysis to address this question.\nWe begin by carefully documenting the different PDS implementations in Redis, explaining how they deviate from those PDS as described in the literature. \nThen we show that these deviations enable a total of 10 novel attacks that are more severe than the corresponding attacks for generic versions of the PDS. \nWe highlight the critical role of Redis' decision to use non-cryptographic hash functions in the severity of these attacks. \nWe conclude by discussing countermeasures to the attacks, or explaining why, in some cases, countermeasures are not possible.",
  "category": "Attacks and cryptanalysis",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Probabilistic Data Structures in the Wild: A Security Analysis of Redis” by Mia Filić, Jonas Hofmann, Sam A. Markelon, Kenneth G. Paterson, Anupama Unnikrishnan, Cryptology ePrint Archive, Paper 2024/1312, https://eprint.iacr.org/2024/1312. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2024-08-22T10:11:12Z",
    "updated": "2024-08-22T10:11:12Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2024/1312.pdf",
    "sha256": "886415772aad595cdcc25295df2841bac15a8e3942830060a5f932560d69a1b2",
    "size": 792179,
    "source": "github-mirror",
    "source_date": "2026-04-28T17:20:00Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "eprint_size": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2024/1312/versions/20260428T172000Z.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "label": "copy captured 2026-04-28",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2024/1312.pdf",
      "size": 792179,
      "sha256": "886415772aad595cdcc25295df2841bac15a8e3942830060a5f932560d69a1b2",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2024/1312.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "size": 792179
    },
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20251231170217id_/https://eprint.iacr.org/2024/1312.pdf",
      "captured_at": "2025-12-31T17:02:17Z",
      "size": 766857
    }
  ],
  "bibtex": "@misc{cryptoeprint:2024/1312,\n      author = {Mia Filić and Jonas Hofmann and Sam A. Markelon and Kenneth G. Paterson and Anupama Unnikrishnan},\n      title = {Probabilistic Data Structures in the Wild: A Security Analysis of Redis},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2024/1312},\n      year = {2024},\n      url = {https://eprint.iacr.org/2024/1312}\n}"
}
