arXiv:2504.16355cs.CRcs.IT2025-04中稿 · publication in Cry…

提出首个保护l1距离的哈希方案,可有效抵御图像篡改攻击。

Property-Preserving Hashing for $\ell_1$-Distance Predicates: Applications to Countering Adversarial Input Attacks

  • 设计新型保性质哈希,判断两图l1距离是否在阈值内
  • 28×28灰度图0.0784秒完成检测,1%扰动仍有效
  • 适用于防御对抗攻击,适合图像安全验证场景

感知哈希用于检测输入图像与参考图像是否相似,具有多种安全应用。然而,近期研究表明其易受对抗攻击:仅做微小不可察觉的修改,哈希算法便无法识别相似性。属性保持哈希(PPH)是密码学中一种新构造,可在哈希域中保持输入的某种属性(谓词)。现有研究已实现对汉明距离谓词的PPH构造,例如当两输入汉明距离不超过t时输出1。PPH的关键优势在于强正确性保证:在哈希域中谓词被错误评估的概率可忽略不计。针对对抗环境下检测图像相似性的需求,本文首次提出适用于l1距离谓词的PPH构造。该谓词检查两图像单边l1距离是否在阈值t内。由于多数对抗攻击以l2距离(与l1相关)为目标函数进行扰动,通过合理设定阈值t,可迫使攻击者添加显著噪声以逃避检测,从而大幅降低图像质量。所提方案高效,运行时间复杂度为O(t²)。对于28×28灰度图像,像素扰动≤1%时,评估耗时0.0784秒;对于224×224的彩色图像,将图像划分为1,000块后,每块在1%扰动下耗时0.0128秒,14%扰动下最多0.2641秒。

原文摘要 · Abstract (English)

Perceptual hashing is used to detect whether an input image is similar to a reference image with a variety of security applications. Recently, they have 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, which, for instance, outputs 1 if two inputs are within Hamming distance $t$. 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 $\ell_1$-distance predicate. Roughly, this predicate checks if the two one-sided $\ell_1$-distances between two images are within a threshold $t$. Since many adversarial attacks use $\ell_2$-distance (related to $\ell_1$-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 $O(t^2)$. For grayscale images of size $28 \times 28$, we can evaluate the predicate in $0.0784$ seconds when pixel values are perturbed by up to $1 \%$. For larger RGB images of size $224 \times 224$, by dividing the image into 1,000 blocks, we achieve times of $0.0128$ seconds per block for $1 \%$ change, and up to $0.2641$ seconds per block for $14\%$ change.

哈希安全对抗攻击图像检测

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。