BIOMETRICS & AI · · 9 MIN READ
Liveness detection explained: how face unlock spots a fake
Liveness detection explained: how face and fingerprint systems catch photos, masks and injected deepfakes, what ISO/IEC 30107-3 tests, and why many phones fail.
Liveness detection explained in one line: it checks that a face or fingerprint comes from a live person in front of the sensor, not a photo, mask, replayed video or fake image fed into the software. Formally called presentation attack detection, it is what separates a face recognition lock that a printed photo can fool from one it cannot.
Liveness detection explained: recognition is not enough
A biometric system answers two different questions. Recognition asks whether this face or fingerprint matches the one enrolled. Liveness asks whether it belongs to a living person who is actually there. A system can be excellent at the first and hopeless at the second, because a good photograph of you matches your face very well indeed.
Your face is not a secret. It is on social media, office websites and every camera you pass, which is why liveness, not matching accuracy, decides whether face unlock is a security feature or a convenience feature.
Presentation attacks and injection attacks
Presentation attacks
A presentation attack puts something in front of the sensor. ENISA, the EU cybersecurity agency, describes four main kinds against face systems.[1] A photo attack shows a printed or on-screen picture. A video replay holds a screen playing footage of the person up to the camera. A 3D mask is crafted to reproduce the person’s features, sometimes with eye holes so a real attacker’s eyes can blink and move. A deepfake attack uses software to generate synthetic video or images of the person, often trained on a large collection of their pictures.[1] Fingerprint sensors face the equivalent: moulded or printed fake fingers, covered in our post on whether fingerprint locks can be hacked.
Injection attack biometrics: bypassing the camera
An injection attack never shows anything to the camera. It feeds fake images or video straight into the software, for example through a virtual camera driver or a tampered app, so the system receives a convincing stream that never existed in front of the lens. Presentation attack detection that studies what the camera sees cannot catch a stream that did not come from the camera.
Gartner reported that digital injection attacks rose 200% in 2023 and that current presentation attack detection standards do not cover AI-generated deepfakes injected this way.[2] It expects a combination of presentation attack detection, injection attack detection and image inspection to be needed.[2] Injection attacks mainly target online identity checks on phones and computers. A face-recognition lock with its own sealed camera is harder to inject into, unless its firmware or connection can be tampered with.
The rise has continued. Biometric Update, reporting iProov’s Threat Intelligence Report 2026, cites a 741% overall annual increase in injection attacks, and separately says injection attacks on iOS devices rose 1,151% year on year in the second half of 2025.[3] The two numbers measure different things, one across all platforms over a year and the other for Apple devices over six months, so the larger figure is not the headline rate. Both come from a vendor’s own monitoring rather than an independent survey, but they show the problem has spread to iPhones as well as Android.[3]
Face recognition lock fooled by photo: the consumer tests
Consumer testing shows how often liveness is missing. In May 2023 the UK consumer group Which? reported that 19 of 48 new smartphones it had tested, 40%, could be unlocked with a printed photograph of the owner.[4] All the iPhones passed, which Which? linked to Face ID building a 3D depth map of the face.[4] It removed Best Buy and Great Value recommendations from the phones that failed and advised owners to use the fingerprint sensor or a PIN of at least six digits instead.[4]
The picture has not improved as much as you might hope. By April 2026 Which? had tested 208 phones since October 2022 and found 2D printed photos fooled the face unlock on 133 of them, 64%.[5] Biometric Update reported that Samsung’s Galaxy S26 had adequate presentation attack detection while earlier models including the S25 did not, though Samsung flags face unlock as a convenience feature.[5] If a phone made by a large manufacturer can be fooled by a printout, a low-cost face-recognition door lock deserves at least as much scepticism.
How liveness detection works
Active and passive checks
Active liveness asks the user to do something: blink, turn the head, smile or follow a moving dot. A static photo cannot respond, but a replayed or real-time deepfake video increasingly can. Passive liveness works from the image alone, looking for clues such as the texture of paper or a screen, moiré patterns, reflections, unnatural edges and the absence of tiny natural movements. It is quicker for the user but depends entirely on the quality of the model.
Depth and infrared
Hardware makes the job much easier. Apple says Face ID projects and analyses thousands of invisible dots to build a depth map of the face and also captures an infrared image, which are compared with the enrolled data inside a secure chip.[6] Face ID is attention-aware, checking that your eyes are open and looking at the device.[6] Apple puts the chance that a random person could unlock it at less than one in a million, while noting the odds are higher for twins, siblings who look alike and children under 13.[6] A flat photo has no depth and reflects infrared differently from skin, which is why depth-sensing systems passed the Which? photo test.
| Check | How it works | Stops well | Weak against |
|---|---|---|---|
| None (2D match only) | Compares a camera image with the enrolled face | Nothing beyond a wrong face | Printed photos[4] |
| Active challenge | Asks for a blink, turn or gesture | Printed photos | Replayed or real-time synthetic video |
| Passive image analysis | Looks for screen, print and mask artefacts | Many photo and replay attacks | Attack types the model was not trained on[7] |
| Depth and infrared hardware | Measures 3D shape and infrared response[6] | Flat photos and screens | Lookalike relatives; high-grade masks |
| Injection attack detection | Checks the camera feed is genuine | Virtual cameras and injected video[2] | Compromised device firmware |
ISO 30107-3 and how liveness is tested
ISO/IEC 30107-3 is the international standard for testing and reporting presentation attack detection. It defines how laboratories run attacks and report error rates, such as how often attacks are wrongly accepted and how often genuine users are wrongly rejected.[8] It does not certify products itself; labs and certification schemes build on it.
iBeta, a lab accredited by NIST’s NVLAP programme, tests to the standard at defined levels.[8] Level 1 uses materials found in a normal home or office, with artefacts costing no more than $30, up to eight hours per attack type, and no successful attacks allowed. Level 2 allows more skilled testers, materials such as 3D printing, resin or latex, artefacts up to $300 and two to four days per attack type, with a 1% success limit.[8] iBeta states that its confirmation letters do not translate to a certification of the vendor’s product.[8]
The FIDO Alliance’s biometric certification references ISO/IEC 30107-3 and, at its higher level, accepts a product only if no more than 7% of impostor attack presentations succeed for each of the attack types tested.[9] These schemes are useful signals. A product that names its lab, standard and level is telling you something specific; one that just says “anti-spoofing” is not.
CEN/TS 18099: testing for injection attacks
ISO/IEC 30107-3 tests what is shown to the sensor, not what is slipped in behind it. For that gap, the European standards body CEN produced CEN/TS 18099:2024, Biometric data injection attack detection, which the Estonian standards body lists as valid from December 2024.[10] It defines injection attacks, describes the instruments used to carry them out, and gives guidance on detection systems and on building test plans; presentation attack testing is explicitly left to the ISO/IEC 30107 series.[10] A vendor claiming protection against deepfakes should be able to say which of the two its product has been tested against.
The limits of liveness detection
NIST evaluated 82 passive, software-only face presentation attack detection algorithms from 45 developers against nine types of attack in 2023.[7] Some worked well against particular attacks, but none could detect all the attack types tested; NIST also found that fusing four of the top performers did better than any one alone.[7] In other words, liveness is a moving contest between attack and detection, not a solved problem.
There are other limits. Settings matter: a looser threshold lets more fakes through to avoid annoying genuine users. A test at Level 1 says nothing about a determined attacker with a professional mask. Deepfake face unlock attempts improve each year, and injected video sidesteps camera-side checks altogether. And no liveness check stops a real, live person from being coerced into unlocking something.
Face recognition at Indian apartment gates
In India, face recognition is reaching the building entrance as well as the flat door. In November 2026 Godrej launched a multi-apartment video door phone for residential communities that it says can store up to 10,000 facial profiles across 98 buildings on one network, alongside a home locker with infrared-enabled face recognition.[11] A society system enrols every resident and many staff, so ask the managing committee where the face templates are stored, who can export them, and how a resident’s data is deleted when they move out. Our guide to face recognition home lockers covers the locker side.
What to ask before buying a face-recognition lock
- Does it measure depth or use infrared, or only a standard camera?
- Has its presentation attack detection been tested to ISO/IEC 30107-3, by which lab, and at what level?
- Can the camera feed be reached through an app, cloud service or firmware update?
- Is there a stricter mode, and what does the fallback code or key look like?
Authenticating something that cannot be photographed
Liveness detection exists because biometrics are public: the attacker can get a copy of your face, and the system has to work out whether it is looking at the copy. A different approach is to authenticate an object whose secret is not visible at all. Tavelure, a home safe in development, opens only with a wearable metal key whose coating is sealed with millions of nanoparticles placed at random when it is made; a laser reads them as a unique speckle pattern of light. A photo of the key is useless, and there is no face, PIN or database of secrets to steal. Tavelure is based on two patents and PhD research conducted at the University of Strasbourg and CNRS. Read how the technology works, or our wider look at AI threats to home security.
Frequently asked questions
What is liveness detection?
It is the part of a biometric system that checks the sample comes from a live person present at the sensor, rather than a photo, mask, replayed video or injected fake. The formal term is presentation attack detection, and ISO/IEC 30107-3 defines how it is tested.
Can a face recognition lock be fooled by a photo?
Many can. Which? found printed photos fooled face unlock on 133 of 208 phones tested since October 2022, while iPhones with depth sensing passed.[5] Locks that use only a standard 2D camera are likely to share the weakness, so ask whether a lock measures depth or uses infrared.
What is an injection attack in biometrics?
It is an attack that feeds fake images or video directly into the verification software, bypassing the camera, often using a virtual camera or tampered app. Gartner reported a 200% rise in such attacks in 2023, and iProov’s 2026 report, as covered by Biometric Update, cites a 741% annual increase.[2][3] Testing for injection attacks is covered by CEN/TS 18099 rather than ISO/IEC 30107-3.[10]
What is ISO/IEC 30107-3?
It is the international standard for testing and reporting biometric presentation attack detection. Labs such as iBeta test products against it at defined attack levels, and the FIDO Alliance references it in its biometric certification.[8][9] A pass shows conformance at a stated level, not immunity to every attack.
Can a deepfake unlock face unlock?
Against systems that rely on a 2D camera and weak liveness checks, deepfake images and video are a real risk, and generated deepfakes are one of the presentation attacks ENISA lists.[1] Depth-sensing hardware is much harder to fool with a flat image, but no liveness method detects every attack type.[7]
Related reading
More in Biometrics & AI
Sources
- Beware of digital ID attacks: your face can be spoofed, ENISA
- Traditional identity verification unusable by 2026: Gartner, iTnews
- Biometric injection attack surge spreads to iOS: iProov report (8 April 2026), Biometric Update
- Smartphones have face recognition that can be easily spoofed with 2D photo, Which? finds, Which?
- Many smartphones don’t detect face biometrics spoofs or properly warn consumers, Biometric Update
- About Face ID advanced technology, Apple Support
- What’s wrong with this picture? NIST face analysis program helps to find answers, NIST
- ISO 30107-3 Presentation Attack Detection confirmation letters, iBeta Quality Assurance
- FIDO Biometrics Requirements v3.0, FIDO Alliance
- CEN/TS 18099:2024 Biometric data injection attack detection, Estonian Centre for Standardisation and Accreditation (EVS)
- Godrej launches face recognition home locker and video door phone (3 November 2026), Construction World