Skip to main navigation Skip to search Skip to main content

Property-preserving hashing for l1-distance predicates: applications to countering adversarial input attacks

Hassan Asghar*, Chenhan Zhang, Dali Kaafar

*Corresponding author for this work

Research output: Contribution to journalArticlepeer-review

Abstract

Perceptual hashing is widely used to detect whether an input image is similar to a reference image with a variety of security applications. Recently, it has been shown to succumb to adversarial input attacks which make small imperceptible changes to the input image yet the hashing algorithm does not detect its similarity to the original image. Property-preserving hashing (PPH) is a recent construct in cryptography, which preserves some property (predicate) of its inputs in the hash domain. Researchers have so far shown constructions of PPH for Hamming distance predicates, e.g., the predicate which outputs if two inputs are within Hamming distance. A key feature of PPH is its strong correctness guarantee, i.e., the probability that the predicate will not be correctly evaluated in the hash domain is negligible. Motivated by the use case of detecting similar images under adversarial setting, we propose the first PPH construction for an -distance predicate. Roughly, this predicate checks if the two one-sided -distances between two images are within a threshold t. Since many adversarial attacks use -distance (related to -distance) as the objective function to perturb the input image, by appropriately choosing the threshold t, we can force the attacker to add considerable noise to evade detection, and hence significantly deteriorate the image quality. Our proposed scheme is highly efficient, and runs in time. For grayscale images of size, we can evaluate the predicate in seconds when pixel values are perturbed by up to. For larger RGB images of size, by dividing the image into blocks, we achieve times of seconds per block for change, and up to seconds per block for change. Furthermore, the time to process the entire image can be considerably improved since the scheme is highly parallel.

Original languageEnglish
Pages (from-to)1339-1383
Number of pages45
JournalCryptography and Communications
Volume18
Issue number4
Early online date21 Apr 2026
DOIs
Publication statusPublished - Jul 2026

Bibliographical note

Copyright the Author(s) 2026. Version archived for private and non-commercial use with the permission of the author/s and according to publisher conditions. For further rights please contact the publisher.

Keywords

  • Property-preserving hashing
  • Adversarial attacks
  • Error-correcting codes

Fingerprint

Dive into the research topics of 'Property-preserving hashing for l1-distance predicates: applications to countering adversarial input attacks'. Together they form a unique fingerprint.

Cite this