Private similarity-based blocklisting avoids revealing queries and resists TOCTOU attacks
Half-Moon Cookie enables private similarity checks against a proprietary blocklist and efficient verification to prevent TOCTOU attacks
Security & privacy arXiv 17 Apr 2026 Method Prototype evidence
Published as “Half-Moon Cookie: Private, Similarity-Based Blocklisting with TOCTOU-Attack Resilience”
Why it matters
Half-Moon enables practical, privacy-preserving blocklist checks that resist TOCTOU attacks, allowing senders to perform a one-time expensive check while receivers can verify safely just before use.
Summary
Half-Moon’s implicit check is dramatically faster and smaller than prior fuzzy PSI approaches, achieving at least 100× lower response time and 1,000× lower communication volume. The protocol also uses reusable garbled circuits to cut the explicit check’s communication by >100× and response time by >10×, making a 10 kB check finish in ~19 s versus 247 s for a monolithic circuit. Experiments on real-world Enron email attachments and the Ember malware blocklist show good scalability, though latency grows with blocklist size. The evidence comes from measured response times and communication volumes reported in the paper.
What they found 3
- Implicit check outperforms fuzzy PSI and exact PSI by at least two orders of magnitude in response time and three orders of magnitude in communication volume.
“As ΠIC requires only a few Fole executions for reconstructing the token and then performs an exact match over the token, it significantly outperforms either a fuzzy PSI or an exact PSI by at least two orders of magnitude in response time and three orders of magnitude in communication volume.”
- Reusable garbled circuits reduce communication volume of the embed-and-map protocol by over two orders of magnitude and response time by at least one order of magnitude for all three hash functions.
“As shown in Table 1, for all three hash functions, our RGC optimization reduces communication volume of ΠEM by over two orders of magnitude and response time by at least one order of magnitude.”
- Throughput degrades as blocklist size grows; with |L|=1,000 the saturation point is ~80 concurrent clients, while with |L|=10,000 it drops to ~20 concurrent clients.
“When |L| = 1,000, the saturation threshold is at around 80 clients, while it is at around 20 clients with |L| = 10,000.”
Caveats 4
- The explicit check still incurs ~19 s latency for a 10 kB file, which may be too high for latency-sensitive applications.
- Throughput drops sharply as the blocklist grows, with saturation occurring at only ~20 concurrent clients for a blocklist of 10,000 entries.
- Even with making the garbled circuit independent of the size of the blocklist, embedding an executable by hashing it within a garbled circuit is itself costly, since executables tend to large.
- The extra embedding step for ssdeep adds 1.23 s in client response time and 4.46 MB in total communication in ΠEM.
What’s new here 4
- Two-phase design with a privacy-preserving explicit check followed by a fast implicit check that confirms prior validation.
- Reusable garbled circuits that make the embedding cost independent of blocklist size and input file size.
- An implicit check (ΠIC) that amortizes private matching and outperforms fuzzy PSI and exact PSI by orders of magnitude.
- Application of the framework to similarity-based malware detection on real email attachment workloads.