Face BenchmarkHow face recognition and deepfake detection are measured, from the papers.

Adversarial attacks on deepfake detectors: what the papers show

The Face Benchmark editorsPublishedFigures checked

An adversarial attack on a deepfake detector changes a fake so that the detector scores it as real while a person sees no difference. Carlini and Farid (CVPRW 2020) cut an image forensic classifier's AUC from 0.95 to 0.0005 with full access and to 0.22 with none, and Hussain et al. (WACV 2021) passed 99.85 percent of adversarial fake frames through XceptionNet as real on uncompressed video.

This page is part of the deepfake detection hub and is the third of three generalisation failures the site documents: the cross-dataset generalisation drop happens with no attacker, the detection in the wild drop happens with an unknown generator, and the drop here happens when someone is trying.

01What is an adversarial attack on a detector?

A detector is a function from an image to a score. An adversarial example is an input chosen to make that score wrong, built by adding a perturbation small enough that the image still looks the same. Carlini and Farid bound the perturbation by a pixel norm and solve for the smallest change that flips the decision; Hussain et al. bound each pixel's change by a maximum of 16/255 on a 0 to 1 scale and use gradient sign methods, because a video has thousands of frames and each needs its own perturbation (arXiv 2002.12749).

Two threat models recur in both papers. In a white-box attack the attacker has the detector's weights and can compute gradients through it. In a black-box attack the attacker can only submit inputs and read scores, or has no access at all and must attack a stand-in model and hope the perturbation transfers. The second is the realistic case for a detector run as a service, and both papers report it separately.

02What did Carlini and Farid measure on image detectors?

The target was the CVPR 2020 classifier of Wang et al., a ResNet-50 trained on ProGAN images that generalises to ten other generators and, on the 94,036-image dataset its authors released, reaches an AUC of 0.97 (arXiv 2004.00622). Carlini and Farid ran five attacks on a random subset of 10,000 fake images at 224 by 224 pixels. Flipping only the lowest-order bit of pixels drove the AUC to 0.0005; at a fixed 5 percent false positive rate, an L2 distortion of 0.02 brought the true positive rate to chance and 0.1 brought it to 0.1 percent, a distortion the authors note is over 16 times smaller than what reduces an ImageNet classifier of the same architecture to chance.

A single universal patch overlaid on any fake image reduced the AUC from 0.966 to 0.085, and a single adversarial direction added in StyleGAN's latent space, so that the generator itself produced evasive faces, reduced it from 0.99 to 0.17. The black-box attack trained a separate ResNet-18 with an AUC of 0.85, built adversarial examples against it, and transferred them: the target's AUC fell from 0.96 to 0.22, below chance. The same lowest-bit attack on the Frank et al. frequency classifier took its true positive rate on ProGAN images from 99 percent to 0 percent with half the pixels flipped. The authors withheld their code and note that a defender "has to prevent all possible attacks" while the attacker needs one.

AUC of the Wang et al. CVPR 2020 forensic classifier before and after the five attacks in Carlini and Farid, CVPRW 2020Horizontal bars: no attack 0.95; white-box lowest-bit flip 0.0005; white-box perturbation of 1 percent of the image area 0.08; white-box universal latent-space pattern 0.17; black-box transfer attack with no access to the classifier 0.22. Source: Carlini and Farid, arXiv 2004.00622, abstract, read 10 Nov 2026.0.00000.25000.50000.75001.0000No attack0.9500White box, lowest bit flipped0.0005White box, 1 percent of pixels0.0800White box, latent-space pattern0.1700Black box, transfer0.2200AUC of the image forensic classifier after each attack
Figure 1AUC left after each attack on one image forensic classifier; 0.5 is chance. Source: Carlini and Farid (arXiv 2004.00622), abstract, read 10 Nov 2026.

03What did Hussain et al. measure on video detectors?

The targets were XceptionNet and MesoNet trained on FaceForensics++ HQ, where they score 97.49 and 89.55 percent accuracy on the Deepfakes subset before any attack (the paper's Table 1, citing the FaceForensics++ results). The attack success rate is the share of adversarial frames the detector labels real, reported on uncompressed frames (SR-U) and after MJPEG compression (SR-C), averaged over the four FaceForensics++ manipulations.

Attack Target SR-U, uncompressed SR-C, MJPEG Detector accuracy after attack, compressed
White box XceptionNet 99.85 58.46 41.54
White box MesoNet 98.15 92.72 7.28
Robust white box XceptionNet 99.91 98.23 1.77
Robust white box MesoNet 99.67 99.50 0.50
Black box XceptionNet 94.73 63.69 36.31
Black box MesoNet 85.92 78.18 21.82
Robust black box XceptionNet 96.19 83.94 16.06
Robust black box MesoNet 86.43 78.33 21.67

All figures are percentages from Tables 2, 4, 6 and 7 of the paper. The black-box attacks estimated gradients by querying the model, at an average of 985 queries per frame for the plain version and 2,153 for the robust one. The paper also attacked a 3D CNN sequence detector on DFDC validation videos (Table 8): 91.74 percent accuracy with no attack, a robust white-box success rate of 100 percent on compressed video, and black-box success rates of 24.43 and 51.02 percent. The video-level detection page describes what such sequence models look at.

04Why does compression matter to the attacker?

The first column of the table shows a near-total white-box success, and the second shows what MJPEG compression does to it: XceptionNet's success rate falls from 99.85 to 58.46 percent because re-encoding destroys part of a perturbation tuned to exact pixel values. Hussain et al. answer with a "robust" attack that optimises the perturbation over a distribution of transformations, twelve functions drawn at random from four families (Gaussian blur, Gaussian noise, translation, and downsizing followed by upsizing), and the success rate on compressed video returns to 98.23 percent. The paper's prose gives 98.07 and 99.83 percent for the two robust white-box rows where its Table 4 prints 98.23 and 99.50; this page uses the table. Under H.264 at the FaceForensics++ heavy compression setting (constant rate factor 40) the robust attack still passed 80.39 percent of XceptionNet frames and 90.50 percent of MesoNet frames.

The compression and deepfake detection page documents the better-known effect, that compression lowers detector accuracy on ordinary fakes. The two effects pull in opposite directions: compression that strips a naive adversarial perturbation also strips the artefacts a detector uses, and an attacker who plans for compression loses little.

05What do detector authors say about their own detectors?

The attack papers are not alone in the record. The Face X-ray authors list adversarial examples among the limitations of their own method in section 6 of their paper, alongside its failure on fully synthetic images and its drop to an AUC of 61.6 percent on heavily compressed FaceForensics++ (arXiv 1912.13458). Hussain et al. close by recommending adversarial training and evaluation "under different attack scenarios and attacker capabilities", a protocol that none of the benchmarks whose tables this site reproduces yet includes. The audio field has moved first: ASVspoof 5 incorporated "adversarial attacks for the first time" among its 32 attack types in 2024.

06How to read a detector score after this

A published AUC describes a detector against the fakes in a test set, made by people who were not trying to evade it. Every figure on this page describes the same kind of detector against fakes made by people who were. The honest summary of the two papers is narrow: on the detectors and sets each names, a white-box attacker wins almost completely, a black-box attacker wins most of the time, and compression is a partial defence only against an attacker who ignored it. No single benchmark score predicts how a detector performs against an adaptive adversary, and no detector on this site reports one.

The same discipline applies beyond saved clips. The real-time video call deepfakes page records the one challenge-response test built around an imposter who adapts, and the facial recognition privacy page records a regulator finding against a face system whose operator "failed to take reasonable measures" and never measured its false positives before deployment. A detector deployed without an adversarial evaluation is in the same position.

SRCSources

  1. S1
    Evading Deepfake-Image Detectors with White- and Black-Box Attacks(external)Carlini, Farid. CVPR Workshops 2020
    Checked
  2. S2
    Adversarial Deepfakes: Evaluating Vulnerability of Deepfake Detectors to Adversarial Examples(external)Hussain, Neekhara, Jere, Koushanfar, McAuley. WACV 2021
    Checked
  3. S3
    Face X-ray for More General Face Forgery Detection(external)Li, Bao, Zhang, Yang, Chen, Wen, Guo. CVPR 2020
    Checked
  4. S4
    ASVspoof 5: Crowdsourced Speech Data, Deepfakes, and Adversarial Attacks at Scale(external)Wang, Delgado, Tak et al. ASVspoof Workshop 2024
    Checked

FAQQuestions

Can deepfake detectors be fooled by adversarial attacks?

Yes, on every detector the two papers tested. Carlini and Farid reduced an image forensic classifier's AUC from 0.95 to 0.0005 with white-box access, and Hussain et al. passed 99.85 percent of adversarial fake frames through XceptionNet as real on uncompressed FaceForensics++ video.

Does an attacker need the detector's weights?

No. Carlini and Farid's transfer attack, built on a separate classifier with no access to the target, cut the target's AUC from 0.96 to 0.22, and Hussain et al.'s query-based black-box attack passed 94.73 percent of frames through XceptionNet uncompressed, using about 985 queries per frame.

Does video compression stop adversarial deepfakes?

Only naive ones. MJPEG compression cut the white-box success rate on XceptionNet from 99.85 to 58.46 percent, but the robust attack that optimises over blur, noise and resizing recovered 98.23 percent, and still passed 80.39 percent of frames under H.264 at constant rate factor 40.

What is the difference between a white-box and a black-box attack?

A white-box attacker has the detector's parameters and computes the perturbation by gradient descent through it; a black-box attacker has only outputs, or nothing, and either estimates gradients by repeated queries or transfers an attack built on a stand-in model.

Do any benchmarks test detectors against adversarial attacks?

Not the face benchmarks this site tracks; DeepfakeBench and the in-the-wild sets test unperturbed fakes. ASVspoof 5, the 2024 audio challenge, is the first in its series to include adversarial attacks among its 32 attack types.