[Paper Review] Deep perceptual hashing algorithms with hidden dual purpose: when client-side scanning does facial recognition
This paper demonstrates that deep perceptual hashing algorithms used in client-side scanning systems can be covertly trained to perform facial recognition of a targeted individual without compromising their primary function of detecting illegal image copies. The authors show a dual-purpose model achieves 67% facial recognition recall on targets while maintaining 95% precision in image copy detection, with the secondary function hidden through adversarial training and enabled by a single poisoned image in the database.
End-to-end encryption (E2EE) provides strong technical protections to individuals from interferences. Governments and law enforcement agencies around the world have however raised concerns that E2EE also allows illegal content to be shared undetected. Client-side scanning (CSS), using perceptual hashing (PH) to detect known illegal content before it is shared, is seen as a promising solution to prevent the diffusion of illegal content while preserving encryption. While these proposals raise strong privacy concerns, proponents of the solutions have argued that the risk is limited as the technology has a limited scope: detecting known illegal content. In this paper, we show that modern perceptual hashing algorithms are actually fairly flexible pieces of technology and that this flexibility could be used by an adversary to add a secondary hidden feature to a client-side scanning system. More specifically, we show that an adversary providing the PH algorithm can “hide” a secondary purpose of face recognition of a target individual alongside its primary purpose of image copy detection. We first propose a procedure to train a dual-purpose deep perceptual hashing model by jointly optimizing for both the image copy detection and the targeted facial recognition task. Second, we extensively evaluate our dual-purpose model and show it to be able to reliably identify a target individual 67% of the time while not impacting its performance at detecting illegal content. We also show that our model is neither a general face detection nor a facial recognition model, allowing its secondary purpose to be hidden. Finally, we show that the secondary purpose can be enabled by adding a single illegal looking image to the database. Taken together, our results raise concerns that a deep perceptual hashing-based CSS system could turn billions of user devices into tools to locate targeted individuals.
Motivation & Objective
- Investigate whether deep perceptual hashing (PH) models used in client-side scanning (CSS) can be covertly repurposed for facial recognition of specific individuals.
- Address the privacy risk of mandating PH-based CSS systems that could be exploited by adversaries to locate targeted individuals.
- Demonstrate that a secondary facial recognition function can be embedded into a PH model without making it a general-purpose face recognition system.
- Show that the hidden facial recognition feature can be activated by adding just one malicious image to the database.
- Evaluate the performance of the dual-purpose model on both image copy detection and targeted facial recognition tasks.
Proposed method
- Train a deep perceptual hashing model using contrastive loss and cross-batch memory to jointly optimize for image copy detection and targeted facial recognition.
- Use a specialized training procedure that embeds a hidden facial recognition capability by aligning embeddings of target faces to a specific codebook vector in the latent space.
- Introduce a backdoor-like mechanism where the model learns to associate a target individual’s face with a specific hash representation, without affecting generalization on the primary task.
- Inject a single 'poisoned' image of the target individual into the training dataset to enable the secondary purpose without altering the model’s primary functionality.
- Evaluate the model using standard metrics on both image copy detection (precision, recall, F1) and facial recognition (recall, false positives per million, F1 score).
- Ensure the model does not function as a general face detector or facial recognition system by testing on non-target individuals and non-face images.
Experimental results
Research questions
- RQ1Can a deep perceptual hashing model be trained to perform targeted facial recognition while maintaining high performance on image copy detection?
- RQ2Is it possible to embed a hidden facial recognition function into a PH model without making it a general-purpose face recognition system?
- RQ3Can the secondary facial recognition function be activated by adding only a single malicious image to the database?
- RQ4To what extent does the dual-purpose model degrade in performance on the primary image copy detection task?
- RQ5How effective is the hidden facial recognition feature in identifying a target individual across different training data sizes?
Key findings
- The dual-purpose model achieves a facial recognition recall of 67.2% on a target individual when trained with 100 training images, with 82.7 false positives per million.
- The model maintains 95.8% precision and 43.8% recall for image copy detection, with minimal degradation compared to a single-purpose model.
- The facial recognition performance remains stable even when the number of training images for the target is reduced to 25, achieving 34.7% recall.
- The model does not exhibit general facial recognition capability, as it fails to detect non-target individuals (0.3% recall on non-targets) and has no false positives on non-face images.
- The hidden facial recognition function can be activated by adding just one illegal-looking image of the target to the database, enabling large-scale surveillance without detection.
- The dual-purpose model achieves a F1 score of 51.2% on facial recognition when trained with 100 images, indicating a reliable but not perfect secondary function.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.