Skip to main content
QUICK REVIEW

[Paper Review] Learning to Break Deep Perceptual Hashing: The Use Case NeuralHash

Lukas Struppek, Dominik Hintersdorf|arXiv (Cornell University)|Nov 12, 2021
Digital Media Forensic DetectionComputer Science15 citations
TL;DR

This paper demonstrates that Apple's NeuralHash, a deep perceptual hashing system for client-side detection of child sexual abuse material (CSAM), is highly vulnerable to both gradient-based and standard image transformation attacks. The authors show that adversaries can easily manipulate images to evade detection or induce false positives, undermining the system's robustness and privacy guarantees.

ABSTRACT

Apple recently revealed its deep perceptual hashing system NeuralHash to detect child sexual abuse material (CSAM) on user devices before files are uploaded to its iCloud service. Public criticism quickly arose regarding the protection of user privacy and the system's reliability. In this paper, we present the first comprehensive empirical analysis of deep perceptual hashing based on NeuralHash. Specifically, we show that current deep perceptual hashing may not be robust. An adversary can manipulate the hash values by applying slight changes in images, either induced by gradient-based approaches or simply by performing standard image transformations, forcing or preventing hash collisions. Such attacks permit malicious actors easily to exploit the detection system: from hiding abusive material to framing innocent users, everything is possible. Moreover, using the hash values, inferences can still be made about the data stored on user devices. In our view, based on our results, deep perceptual hashing in its current form is generally not ready for robust client-side scanning and should not be used from a privacy perspective.

Motivation & Objective

  • To empirically analyze the robustness of deep perceptual hashing systems, using Apple's NeuralHash as a real-world case study.
  • To investigate whether adversarial and non-adversarial image manipulations can bypass or manipulate perceptual hashing outputs.
  • To evaluate the privacy risks associated with perceptual hashing, particularly the leakage of image content through hash values.
  • To assess the feasibility of collision attacks that could enable framing of innocent users or hiding of illegal content.
  • To argue against the deployment of client-side scanning systems based on current deep perceptual hashing technology due to inherent vulnerabilities and privacy risks.

Proposed method

  • Conducted empirical analysis on the NeuralHash system using real-world image datasets and adversarial perturbation techniques.
  • Applied gradient-based optimization methods (e.g., PGD) to generate small, imperceptible image perturbations that alter the hash output.
  • Explored non-adversarial image transformations (e.g., rotation, scaling, brightness adjustment) to test robustness and induce hash collisions.
  • Evaluated the information leakage from NeuralHash by analyzing the similarity of hash outputs across semantically similar images.
  • Used a public repository of known CSAM hashes to simulate real-world detection scenarios and test evasion and collision attacks.
  • Implemented and open-sourced a reproducible framework to enable further analysis of perceptual hashing systems.

Experimental results

Research questions

  • RQ1Can gradient-based attacks successfully manipulate NeuralHash outputs to evade detection of CSAM?
  • RQ2To what extent do standard image transformations (e.g., rotation, cropping) induce hash collisions in NeuralHash?
  • RQ3How much information about the original image content is leaked through the perceptual hash values?
  • RQ4Can an adversary reliably generate images that either match or avoid matching known CSAM hashes?
  • RQ5What are the broader implications of deploying such systems on user devices, given their susceptibility to manipulation?

Key findings

  • Gradient-based attacks successfully altered NeuralHash outputs, enabling evasion of detection for CSAM images with high success rates.
  • Simple image transformations such as rotation and brightness adjustment frequently induced hash collisions, demonstrating poor robustness.
  • Perceptual hashes leaked significant information about image content, indicating that even short bitstrings can be de-anonymized or reverse-engineered.
  • The system is vulnerable to both collision attacks (framing innocent users) and preimage attacks (hiding illegal content).
  • The authors conclude that NeuralHash and similar systems are not robust or secure enough for client-side deployment due to these vulnerabilities.
  • The study emphasizes that client-side scanning systems based on perceptual hashing pose unacceptable privacy risks and should not be deployed in their current form.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.