client-side scanning
termprivacycryptographygovernance & risk
Kept in this browser · My desk
Analysis of content on the user's own device, before it is encrypted or after it is decrypted, to detect material on a list or flagged by a classifier and report the matches; proposed as a way to find illegal content without breaking end-to-end encryption.
Its proponents present it as a way out of the encryption debate: messages stay end-to-end encrypted in transit, and only matches with known illegal material, such as child sexual abuse material (CSAM), leave the device. Its critics, among them fourteen cryptographers and security engineers in 2021, the United Nations human-rights office in 2022 and more than 800 researchers who wrote to the European Union in 2025, answer that the scanning runs at one of the ends encryption was meant to protect, that it cannot be accurate enough at the scale of hundreds of millions of users, and that a system built to look for one kind of content can be extended to others. Apple designed such a system for iCloud Photos in 2021 and abandoned it in 2022.
The idea and its critics. The most cited analysis is Bugs in our Pockets, published on 14 October 2021 by Hal Abelson, Ross Anderson, Steven Bellovin and eleven other cryptographers and security engineers. They describe client-side scanning (CSS) as the alternative some in industry and government proposed to weakening encryption or handing police backdoor keys: data would be analysed in the clear on the device, and only what matched would be revealed to the authorities. Their conclusion is that it neither guarantees efficacious crime prevention nor prevents surveillance, that it creates serious security and privacy risks for all of society, and that it can fail, be evaded and be abused.
How the matching works. The paper describes two technologies. Perceptual hashing reduces an image to a short fingerprint that survives re-encoding and resizing, and some functions survive cropping and rotation; the device compares fingerprints with a list of known targeted images, so the provider never has to hold the images themselves. Examples are phash, Microsoft's PhotoDNA, Facebook's PDQ and Apple's NeuralHash, and for child sexual abuse material (CSAM) the lists come from bodies with legal cover to keep such material, such as the National Center for Missing and Exploited Children (NCMEC) in the United States and the Internet Watch Foundation (IWF) in the United Kingdom. Machine-learning classifiers, the other technology, are trained on innocuous and targeted examples and can flag images never seen before, which is also why their errors are harder to bound. Both have a non-zero false-positive rate, and matches are meant to go to human reviewers before any report.
The one deployable design, withdrawn. Apple announced in August 2021 a hybrid client-server system to detect known CSAM among photos uploaded to iCloud, paused it that September after criticism from researchers and digital-rights groups, and said in December 2022 that it was abandoning it. Bugs in our Pockets records that it took barely two weeks for outsiders to reverse engineer the version of NeuralHash already present in iOS 14, which led at once to demonstrated attacks, and the authors objected that child protection is too complex to be reduced to 'thirty strikes and you're out'. In August 2023, answering the Heat Initiative, a child-safety group that urged it to revive the plan, Apple's Erik Neuenschwander wrote that scanning every user's privately stored iCloud data would create new threat vectors for data thieves and that scanning for one type of content opens the door to bulk surveillance; the Heat Initiative called the decision disappointing.
What goes wrong. The device is in the adversary's hands, so the scanner can be studied and evaded. Hao and colleagues showed that images can be altered so that their perceptual hash changes completely while they look the same, and that such manipulations transfer between algorithms; Jain and colleagues found that for 99.9% of the images they studied a nearly imperceptible change was enough to escape detection, and that a detector tuned to catch such changes would flag orders of magnitude more images, making manual review infeasible. The same techniques run in reverse alter innocent content so that it raises alarms at scale and swamps the defences. The tools are proprietary and built from a corpus that a third party may control (PhotoDNA is available only under a non-disclosure agreement), and the paper notes that PhotoDNA hashes can be decoded into a 26 by 26 grey-scale thumbnail. Above all, a system built to look for one kind of content can be pointed at others by whoever controls the list.
The law in Europe. The Office of the United Nations High Commissioner for Human Rights (OHCHR) wrote on 4 August 2022 that imposing general client-side scanning would be a paradigm shift affecting everyone using modern means of communication, not only people involved in crime, and would make security breaches more likely. The European Commission's proposal of May 2022 for a permanent regulation against child sexual abuse included detection orders, called chat control 2.0, alongside risk assessment, removal orders and a new agency of the European Union (EU), the EU Centre on Child Sexual Abuse. The Council's position of 26 November 2025 deliberately excluded mandatory detection orders, made the temporary voluntary regime permanent and kept the EU Centre; trilogues began on 9 December 2025, and the sixth, on 29 September 2026, brought no breakthrough on detection in non-public content. The interim derogation from the ePrivacy Directive meanwhile ran out: in March 2026 the European Parliament backed an extension to 3 August 2027 by 458 votes to 103, on condition that it should not apply to end-to-end encrypted communications, but on 26 March 2026 it rejected the Commission's extension proposal by 228 to 311, and the regime lapsed after 3 April 2026. Regulation (EU) 2026/1881 of 24 July 2026 reinstated voluntary detection until 3 April 2028; it does not apply to end-to-end encrypted communications and does not authorize client-side scanning of them.
The law in the United Kingdom. A technology notice under section 121 of the Online Safety Act 2023 can require a provider to use accredited technology to identify child sexual exploitation and abuse (CSEA) content communicated publicly or privately, and the minimum standards of accuracy for accreditation came into force on 4 September 2026; the government adds that accreditation does not mean Ofcom, the communications regulator, will consider a notice necessary and proportionate.
Accuracy and scale. A letter of 9 September 2025, signed by 807 scientists and researchers from 37 countries by the time signatures closed, said that detecting known and new CSAM for hundreds of millions of users with acceptable accuracy is not feasible, whatever the filter, and that on-device detection inherently undermines the protections end-to-end encryption is meant to give. On the other side, NCMEC, whose CyberTipline received 21.3 million reports in 2025, after 20.5 million in 2024 and 36.2 million in 2023, holds that end-to-end encryption without an exception for detecting child sexual exploitation would leave millions of incidents of abuse hidden.
Neighbours. End-to-end encryption, which CSS claims to leave intact; key escrow and going dark, the older forms of the same argument; lawful interception; and the crypto wars.
Also known as: on-device scanning, device-side scanning, varredura no lado do cliente, varredura no dispositivo
Sources
- arXiv 2110.07450, Hal Abelson, Ross Anderson, Steven M. Bellovin and eleven others, Bugs in our Pockets: The Risks of Client-Side Scanning, 14 October 2021 (read 2026-11-23): instead of weakening encryption or providing backdoor keys, CSS would analyse data in the clear on the device and reveal matches to agencies; the authors argue it neither guarantees efficacious crime prevention nor prevents surveillance, and can fail, be evaded and be abused
- OHCHR, A/HRC/51/17, The right to privacy in the digital age, 4 August 2022 (read 2026-11-23): client-side scanning moves detection from servers to devices; imposing it generally would be a paradigm shift affecting everyone, not only people involved in crime; it opens new security challenges; general monitoring obligations force providers to abandon transport encryption or access messages before encryption
- Wired, Apple's Decision to Kill Its CSAM Photo-Scanning Tool Sparks Fresh Controversy, 31 August 2023 (read 2026-11-23): Apple's hybrid iCloud Photos design announced in August 2021, paused that September and abandoned in December 2022; Erik Neuenschwander's letter: scanning private iCloud data would create new threat vectors and open the door to bulk surveillance; the Heat Initiative called the decision disappointing
- Joint statement of scientists and researchers on the EU Presidency's proposal for the CSA Regulation, 9 September 2025, 807 signatories from 37 countries at the close on 12 October 2025 (read 2026-11-23): detection of known and new CSAM for hundreds of millions of users is not feasible with acceptable accuracy; on-device detection inherently undermines end-to-end encryption
- eucrim, Interim Rules on Voluntary CSAM Detection Reinstated Until 2028, 10 August 2026 (read 2026-11-23): Regulation (EU) 2026/1881 of 24 July 2026 does not apply to end-to-end encrypted interpersonal communications and does not authorize client-side scanning of encrypted communications; the permanent regulation's detection obligations, called chat control 2.0, still in trilogue
- UK government, Minimum standards of accuracy in the detection of terrorism and CSEA content, 4 September 2026 (read 2026-11-23): an Online Safety Act technology notice can require a provider to use accredited technology to identify CSEA content communicated publicly or privately; the standards in force from 4 September 2026; accreditation does not mean Ofcom will consider a notice necessary and proportionate
- Council of the European Union, WK 15082/2026, outcome of the 6th trilogue on 29 September 2026 (read 2026-11-23): no breakthrough on own-initiative searches and detection in non-public content; targeting and scope of detection remain the main open issues
- Hal Abelson, Ross Anderson, Steven M. Bellovin and eleven others, Bugs in our Pockets: The Risks of Client-Side Scanning, arXiv 2110.07450, full text (read 2026-11-23): perceptual hashing (phash, PhotoDNA, PDQ, NeuralHash) and machine learning; hash lists from NCMEC and the IWF; both methods have non-zero false-positive rates; PhotoDNA only under a non-disclosure agreement and decodable to a 26x26 thumbnail; NeuralHash reverse engineered from iOS 14 in barely two weeks; Hao and Jain evasion results, 99.9% of images; 'thirty strikes and you're out'
- eucrim, CSA Regulation: Council Position Reached (read 2026-11-23): Council position of 26 November 2025 deliberately excludes mandatory detection orders, makes the voluntary regime permanent, three risk categories, EU Centre on Child Sexual Abuse; trilogues from 9 December 2025; Commission proposal of 19 December 2025 to extend the interim regulation to 3 April 2028, rejected by the European Parliament 228 to 311 on 26 March 2026
- European Parliament, Child sexual abuse online: support for extending voluntary rules until August 2027, press release, 11 March 2026 (read 2026-11-23): 458 in favour, 103 against, 63 abstentions for extending the ePrivacy derogation due to expire on 3 April 2026; MEPs say voluntary measures should not apply to end-to-end encrypted communications nor scan traffic data
- NCMEC, CyberTipline Data 2025 (read 2026-11-23): 21.3 million reports in 2025; 20.5 million in 2024, down from 36.2 million in 2023
- NCMEC, End-to-End Encryption (read 2026-11-23): end-to-end encryption would prevent companies from detecting illegal activity on their platforms; without exceptions for detecting child sexual exploitation, millions of incidents of abuse will remain hidden