From a trait to a decision
How biometrics works
Follow a biometric check from the sensor to the result an app receives, and see where it can go wrong.
Educational. Not medical, security or legal advice, and no claim about any product’s performance.
From a trait to a decision
Each step hands a smaller thing to the next
Scroll to descend through 13 layers. Select a layer to read it in full, with its sources.
- 01 / 13 Trait Something measurable about a person Read this layer
- 02 / 13 Sensor and capture A device records a sample Read this layer
- 03 / 13 Sample quality How usable is this sample? Read this layer
- 04 / 13 Liveness and presentation attacks Is a real person presenting this? Read this layer
- 05 / 13 Feature extraction Keep what distinguishes, drop the rest Read this layer
- 06 / 13 Template The stored reference Read this layer
- 07 / 13 Enrolment The first capture Read this layer
- 08 / 13 Comparison How alike are these two? Read this layer
- 09 / 13 Threshold and decision Where the line is drawn Read this layer
- 10 / 13 Where the template is kept On the device, or at a central verifier Read this layer
- 11 / 13 What the app receives A result, never the biometric itself Read this layer
- 12 / 13 Limits: accuracy Error rates are not one number Read this layer
- 13 / 13 Limits: permanence, consent and law You cannot be issued a new fingerprint Read this layer
13 layers, each with its sources
The layers in full
-
01 / 13
Trait
Something measurable about a person
European law defines biometric data as personal data that results from specific technical processing of a person’s physical, physiological or behavioural characteristics, and that allows or confirms the unique identification of that person.[1] Illinois law lists as biometric identifiers a retina or iris scan, a fingerprint, a voiceprint and a scan of hand or face geometry.[2]
Illustration
Five kinds of trait drawn as plain shapes. None is a likeness of anyone. The second is a drawn pattern, not a fingerprint. -
02 / 13
Sensor and capture
A device records a sample
A sensor records a biometric sample, such as a fingerprint image.[1] On one phone platform, a camera system maps the geometry of the user’s face.[2]
Illustration
A drawn pattern, not a fingerprint, rests on a plate. The grid beside it is the sample in this drawing: the same pattern as a set of cells. -
03 / 13
Sample quality
How usable is this sample?
NIST publishes NFIQ 2, open source software that links the image quality of optical and ink fingerprints at 500 PPI to operational recognition performance.[1]
Illustrative, not measured
Clear: every part of the drawn sample is strong, and the needle points toward high.
The sample and the gauge are made up. The picture shows one sample in three conditions, and a needle that follows it. -
04 / 13
Liveness and presentation attacks
Is a real person presenting this?
Biometric characteristics are not secrets.[1] Presentation attack detection, or PAD, is technology that can reduce the risk of someone presenting a trait that is not their own. NIST adds that this depends on trust in the sensor or the biometric processing.[1] The international standard on the subject covers attacks that take place at the capture device, while the trait is being presented and collected.[2] NIST’s guideline requires PAD when facial recognition is used to authenticate.[1] NIST also notes that the false match rate does not account for active impersonation attacks.[1]
Illustration
A drawing of an idea: a gate stands where the sample is captured, with a lamp marked PAD. It shows no method of any kind. -
05 / 13
Feature extraction
Keep what distinguishes, drop the rest
Software derives data from the sample, for example the feature locations that a fingerprint feature extractor produces.[1] For Apple’s Optic ID, image data of the iris is transformed into a mathematical representation.[2]
Illustration
A drawn pattern, not a fingerprint. In this drawing the lines stay behind; only the marked points go on. -
06 / 13
Template
The stored reference
On Apple devices with Touch ID, enrolment stores a map of the fingerprint as a template, in an encrypted format that only the device’s secure hardware can read, and without identity information.[1] An international standard covers protecting biometric information, including its confidentiality, integrity and renewability.[2]
Illustration
A drawing: the points sit in a closed, locked box. The label for identity information stays outside it, and a loop arrow marks renewal. -
07 / 13
Enrolment
The first capture
Enrolment is the capture that creates the stored representation.[1] During verification a new measurement is compared with a stored reference.[2] Some systems update that reference: Apple’s Optic ID updates the enrolled template after each successful authentication.[1]
Illustration
A drawing of two tracks. The top one runs once and ends in the stored reference. The bottom one runs every time and is compared with it. -
08 / 13
Comparison
How alike are these two?
Biometric comparison is probabilistic. Other authentication factors, such as a password, are deterministic.[1] The system works from the differences between the new measurement and the reference.[1] For multi-factor authenticators, NIST requires that a biometric sample used to activate the authenticator, and any biometric data derived from that sample, be erased after use; for out-of-band and one-time-password authenticators, it requires this immediately.[1]
Illustrative, not measured
The points nearly coincide, and the mark sits toward more alike.
Both sets of points are made up. The picture shows a comparison producing a position on a scale, not a yes or a no. The next layer draws the line. -
09 / 13
Threshold and decision
Where the line is drawn
Sometimes a genuine comparison does not result in a match. The probability of that is the false non-match rate.[1] Sometimes an impostor comparison does result in a match. The probability of that is the false match rate.[1] The chosen threshold usually favours a low false match rate, because a false non-match can often be put right by measuring again.[1] A false non-match can often also be put right by using an alternative authentication method.[1] After five consecutive failed attempts, or ten if presentation attack detection is implemented and meets NIST’s requirements for it, NIST requires a delay of at least 30 seconds before each further attempt.[1] NIST also sets an overall limit of no more than 50 consecutive failed attempts, or 100 if presentation attack detection is implemented, after which it requires that biometric authentication be disabled and that another factor be offered if one is already available.[1] NIST says these limits are upper bounds.[1] NIST SP 800-63B-4 requires a false match rate of one in 10,000 or better for all demographic groups, measured against zero-effort impostor attempts.[1]
Illustrative, not measured
- Left impostor mark: no match
- Left genuine mark: no match: measure again
- Right impostor mark: false match
- Right genuine mark: match
False matches: impostor comparisons right of the line (orange area). False non-matches: genuine comparisons left of the line (blue area).
These two curves are made up to show the trade-off. They describe no real system and no real error rate. Moving the threshold right shrinks the orange area and grows the blue one; moving it left does the opposite. No setting removes both. The four marks on the axis are made up too. -
10 / 13
Where the template is kept
On the device, or at a central verifier
Comparison can be performed locally on the person’s device or at a central verifier. NIST says it should be performed locally, because the potential for large-scale attacks is greater at central verifiers.[1] If comparison is performed centrally, NIST requires that the sensor or endpoint be authenticated before it captures the sample.[1] Apple states that the Touch ID fingerprint template never leaves the device, is not sent to Apple and is not included in device backups.[2] Android’s guidance to device makers is that raw biometric data and templates are never accessible from outside the secure isolated environment.[3]
Illustration
A drawing of two places a locked box can be kept: one box inside a walled area on a device, or many boxes together in one central place. Sources
- NIST Special Publication 800-63B-4, Digital Identity Guidelines: Authentication and Authenticator Management
- Apple Platform Security, “Biometric security” (vendor documentation, cited for platform behaviour only)
- Android Open Source Project, “Biometrics” (vendor documentation, cited for platform behaviour only)
-
11 / 13
What the app receives
A result, never the biometric itself
On Apple platforms an app asks the system to authenticate the user and is told whether authentication succeeded or failed. On failure it also receives an error object.[1][2] The app never gains access to the underlying authentication data. It cannot access fingerprint images, for example.[1] On Android an app shows a system biometric prompt and is told through a callback whether authentication succeeded.[3]
Illustrative, not measured
Succeeded: one token reading yes crosses the wall to the app.
A drawing: a wall stands between the system and the app. Only a small token crosses it, and a second one in the failed case. The locked box and the scale stay behind. Sources
- Apple Developer Documentation, “Local Authentication” (vendor documentation, cited for platform behaviour only)
- Apple Developer Documentation, “evaluatePolicy(_:localizedReason:reply:)” (vendor documentation, cited for platform behaviour only)
- Android Developers, “Show a biometric authentication dialog” (vendor documentation, cited for platform behaviour only)
-
12 / 13
Limits: accuracy
Error rates are not one number
A 2019 NIST study of face recognition found that accuracy across sex, age and racial background depends on the algorithm, the application that uses it and the data it is fed.[1] The same study found that the majority of the face recognition algorithms it tested showed demographic differentials.[1] An international standard sets out how to test biometric systems for error rates and how to report the results.[2]
Illustrative, not measured
Three made-up cases. The two curves overlap by a different amount in each one. No group, product or number is shown. -
13 / 13
Limits: permanence, consent and law
You cannot be issued a new fingerprint
Template protection schemes offer a way to revoke a protected biometric reference, as a password can be revoked, but NIST notes that such solutions are of limited availability.[1] European law places biometric data used to uniquely identify a person among its special categories of personal data.[2] Illinois law defines the written release it refers to as informed written consent, an electronic signature or, in the context of employment, a release executed by an employee as a condition of employment.[3]
Illustration
A drawing: on the left a key and a closed loop arrow. On the right a drawn pattern, not a fingerprint, and a loop arrow that is broken.
Where this shows up
Seen in practice
Ways into the extraordinary