Abstract
Digital forensic tools often rely on low-level hardware and software artifacts, known as camera fingerprints, to verify image authenticity. This paper introduces SpoC (Spoofing Camera fingerprints), a GAN-based framework that injects realistic camera-specific traces into synthetic images. By mimicking these subtle fingerprints, SpoC can simultaneously deceive camera-model identifiers and deepfake detectors, exposing a critical vulnerability in current digital forensic methodologies.
Introduction
Every digital camera leaves a unique "fingerprint" on the images it captures, stemming from hardware imperfections like sensor noise and software processing steps such as demosaicing and JPEG compression. Forensic analysts utilize these traces to attribute an image to a specific source or to distinguish real photographs from synthetic "deepfakes," which typically lack these camera-specific artifacts.
However, current forensic detectors are often brittle, relying heavily on these low-level artifacts. SpoC explores the feasibility of a malicious actor "spoofing" these fingerprints to make synthetic content appear as though it originated from a specific real-world device, thereby bypassing both source-attribution tools and synthetic-content detectors.
Methodology
SpoC is designed as a detector-agnostic generative approach, meaning it operates without internal knowledge of the forensic tools it aims to deceive. The framework consists of three primary components working in tandem:
- The Generator: A convolutional neural network that modifies a synthetic input image to include target camera traces while preserving semantic content through a combined L1 and perceptual Content Loss.
- The Discriminator: A patch-based network that learns to distinguish between genuine images from a target camera and spoofed synthetic images, driving the generator toward producing realistic low-level textures.
- The Embedder: A pre-trained network that maps images into a feature space where camera models cluster. The generator minimizes the distance between the spoofed image's embedding and a target camera's "anchor" vector.
Crucially, the system requires only a few sample images from a target camera to learn its fingerprint, making it a practical and dangerous "black-box" attack vector.
Experimental Setup
The framework was evaluated using a diverse set of real and synthetic data:
- Real Images: 10 camera models from the IEEE Forensic Camera Model Identification Challenge (e.g., iPhone 4s, Sony Nex7, Samsung Galaxy S4).
- Synthetic Images: Content generated by seven distinct GAN architectures, including StarGAN, CycleGAN, ProGAN, StyleGAN, RelGAN, bigGAN, and StyleGAN2.
- Embedder Training: To ensure generalization, the embedder was trained on an external dataset of 600 camera models comprising over 20,000 images sourced from dpreviewer.com.
Key Results and Insights
SpoC demonstrates a "two-for-one" attack capability, effectively overwriting GAN-specific artifacts with target camera fingerprints in a single pass.
- Fooling Camera Identifiers: SpoC achieved a Successful Attack Rate (SAR) of 56% to 73% against state-of-the-art identifiers like Xception and InceptionV3, significantly outperforming standard adversarial baselines.
- Bypassing GAN Detectors: The attack proved devastating against deepfake detectors. For instance, the True Positive Rate (TPR) of an Xception-based GAN detector plummeted from 82.12% to 1.00% following a SpoC attack.
- Robustness and Generalization: The spoofed traces remained effective even after JPEG compression and successfully fooled detectors on GAN architectures not seen during SpoC's training phase.
Conclusion
SpoC serves as a vital "red team" exercise, highlighting the limitations of current forensic tools that rely on low-level artifacts. While the attack currently requires a small set of target images and faces computational scaling challenges at very high resolutions, it underscores the need for a new generation of forensic detectors capable of identifying deeper, more resilient fingerprints. This work is a critical step in the ongoing arms race between digital forgery and forensic verification.
Summary updated