Skip to content

HashRuler: Lightweight Detection of Anomalous Hash Codes for Backdoor Defense

2026 · IEEE Transactions on Information Forensics and Security · Vol 21, pp. 6913-6927 · 0 citations · 39 references
Computer Science

Abstract

Deep hashing is widely adopted in large-scale image retrieval for its efficiency, but its reliance on large-scale datasets makes it vulnerable to backdoor threats. Recently, BadHash, a clean-label backdoor attack, has shown the ability to compromise deep hashing models by generating poisoned samples via a conditional generative adversarial network. These samples appear benign but are crafted to manipulate hash codes, making existing defense methods ineffective in the hash space. To address the challenge, we propose HashRuler, a lightweight and effective hash-code-based detection framework tailored for deep hashing models. HashRuler introduces two complementary metrics, Center Similarity Deviation (CSD) and Local Sparsity (LS), which jointly capture global and local distributional anomalies of sample hash codes. CSD quantifies a sample’s deviation from the class-specific hash center, while LS measures local outlier behavior relative to its nearest neighbors. Experimental results show that HashRuler achieves up to 97% detection accuracy against BadHash attacks, with extensive evaluations across diverse datasets, attack types, and model architectures confirming its effectiveness and generalizability.

View source

Similar papers

Conference Open access Sep 2026

Unrestricted Targeted Deep Hashing Attack via Contrastive Latent Diffusion

UTDHA is proposed, the first unrestricted targeted attack for deep hashing models using contrastive-guided latent diffusion and outperforms existing targeted adversarial attack baselines for deep hashing models in both attack effectiveness and imperceptibility.

Fan Yang, Chuanchuan Ma, Yuhui Zheng et al. · 0 citations
Preprint Aug 2026

Double Down on Defense: Strengthening Deep Perceptual Hashes against Evasion Attacks without Retraining

Near-duplicate image matching is crucial for trust and safety, provenance verification, copyright enforcement, and large-scale visual search. Modern platforms increasingly rely on deep perceptual hashes, which map visually similar images to nearby representations despite common image transformations. However, adversari...

Bangjie Sun, Nayoung Kim, Mun Choon Chan et al. · 0 citations
Aug 2026

Deep Supervised Adversarial Robust Hashing for Retrieval.

Deep Supervised Adversarial Robust Hashing (DSARH), an end-to-end framework that leverages similarity matrices and learnable hash codes to construct gradient-based worst-case perturbations, enabling efficient adversarial training and robust feature learning for retrieval, is proposed.

Xing-Wei Zhang, Gang Zhou, Xiaolong Zheng et al. · 0 citations
Open access 2026

SiftFL: Scheduling-Based Robust Backdoor Detection in Federated Learning

SiftFL is proposed, a scheduling-based robust backdoor detection method that sifts out malicious client models at a fraction of the original cost and preserves and improves the robustness of CGAN-based detection while sharply lowering its server-side cost.

Ekhlas Hashem, Muhamad Felemban, Sajjad Mahmood et al. · 0 citations
Open access Sep 2026

Adversarial Robustness in URL-Based Phishing Detection: Problem-Space Evaluation and Robust Feature Engineering

A set of robust features that capture stable domain characteristics, including lexical word validity, homoglyph disguises, brand impersonation, subdomain depth, character entropy, and transport-related signals are proposed, which substantially improves robustness under adversarial conditions.

Merve Yıldırım · 0 citations
Review Open access 2026

The Next Generation of Malware Defense using Deep Hashing and Neural Embeddings

This survey systematically examines the evolution of binary similarity detection, tracing the trajectory from classical fuzzy hashing techniques to contemporary deep representation learning architectures, providing a unified taxonomy and outlines key challenges for resilient malware lineage tracking and zero-day threat...

Uma Kannan, Rajendran Swamidurai · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.