skip to content

In a law firm's client-portal app unlocked by fingerprint or face, why is a yes/no biometric check weak, and what must happen when a new fingerprint or face is enrolled?

level: seniorimportance: should knowfreq 51%

answer

  1. a local gate, not a login
  2. a boolean in the app's own code
  3. the prompt bound to a key operation
  4. new enrolment can invalidate the key
  5. password, then a fresh key

basics

~20 s

A yes/no result is a value in app code that hooking or patching flips. Bind unlocking to a key released only after biometric success; a new enrolment can invalidate it, so fall back to the password and re-protect.

solid answer

~50 s

Used alone, the platform's biometric prompt hands the app a success value, which the app trusts before reading a token the store would release anyway; anyone who can run code as the app, or patch the check, skips the prompt. The strong design keeps the secret, or the key wrapping the document key, behind a key-store condition that requires biometric authentication, so the store itself refuses to use the key until the user passes; the prompt is bound to that cryptographic operation. The cost: depending on how the key was protected, enrolling a new fingerprint or face invalidates it on both platforms, and on one platform so does removing a fingerprint, because whoever knows the device passcode could enrol their own face. The app must recognise an invalidated key, ask for the account password or a full sign-in, and create a fresh bound key. It remains a local gate: the server never sees the biometric.

go deeper

for a junior

Recall that a fingerprint or face prompt only unlocks something stored on the phone; the server never sees the biometric.

for a middle

Explain why a success value in app code can be bypassed, and how binding the prompt to a key operation makes the store itself refuse.

for a senior

Own the production edge: a new enrolment invalidates the bound key, so detect invalidated versus locked versus cancelled, recover through the password and re-protect.

for a principal

Set policy: invalidating or persistent keys, passcode fallback or not, per-use or windowed authorisation, and which actions always need a server-checked sign-in.

## A local gate, not authentication The fingerprint or face match happens on the phone, inside the operating system and its secure hardware; the server never sees it. What a biometric prompt can do is **gate a local secret**: decide whether the phone releases something the app keeps. Authenticating to the server is still done with a token, and anything the server must be sure of, such as a new device or an instruction to the lawyer to accept a settlement, has to be proved to the server, not just to the phone. ## Event-bound versus key-bound | Design | What the app receives | What attacker code running as the app does | |---|---|---| | **Event-bound:** show the prompt, then read the token if the result is "success" | A success or failure value in the app's own code | Hooks or patches the check, then reads the token, which the store would release anyway | | **Key-bound:** the token, or the key wrapping the document key, sits behind a key that requires biometric authentication | Nothing usable until the store itself sees a successful prompt | Cannot make the store use the key without the user passing the prompt | In the key-bound design the prompt is tied to a **cryptographic operation**: the app asks the store to decrypt, the system shows the prompt, and only on success does the operation run. One platform states that requiring user authentication for a key holds even if the app's process is compromised after the key was created, where secure hardware enforces the requirement. A hooking toolkit can still change what the app *does* with the result, but it cannot produce the decrypted key. ## What a new enrolment does Binding the key to biometrics brings a rule that teams usually discover in production: - **On one platform**, a key that accepts only biometric credentials is invalidated by default when a new biometric is enrolled; the app can choose to keep it valid instead. - **On the other**, an item bound to the **current set** of enrolled biometrics is invalidated when fingers are added or removed or the face is re-enrolled; binding to "any enrolled biometric" does not invalidate. - **The usual reasoning:** anyone who knows the device passcode can enrol their own fingerprint or face, and a key that stayed valid would then open for them. For confidential case files the invalidating option is the sensible default; for a low-risk convenience unlock, a team may accept the other. ## The recovery path 1. The app tries to use the bound key and the store reports it **invalidated**, which is different from "locked" and from "the user cancelled". 2. The app stops prompting; the invalidated key will not come back. 3. It asks for the account password or a full sign-in, checked by the server. 4. It creates a fresh biometric-bound key and protects the data key, or the refresh token, under it. 5. If the invalidated key was the only thing protecting the document data key, the cache can no longer be opened: the app deletes it and downloads the documents again, which the server holds. ## Choices that remain - **Biometric only, or biometric with the device passcode as fallback.** One platform's user-presence option lets the system fall back to the passcode. That keeps clients with an injured finger or a failed sensor working, and lets in anyone who has watched the passcode being typed. - **Per use or a time window.** A key can require authentication for every operation, which suits approving a settlement offer, or for a window after one prompt, which suits reading documents through a session. - **No biometrics enrolled.** The app needs a path for such clients: the password, or the device passcode, chosen as policy rather than discovered in support tickets. - **The server's half.** High-value actions get a server-side check; the phone's gate protects what is stored on the phone and makes daily use quicker. ## How interviewers mark it A weak answer says "we check the fingerprint, then read the token" and stops. A good one moves the check into the key store, so the store refuses rather than the app. A strong one adds the enrolment rule unprompted, separates invalidated from locked and cancelled in the code, names the password as the way back, and says plainly that the server has learned nothing from the prompt and must decide high-value actions for itself.

  • Should the biometric-bound key also accept the device passcode as a fallback?
    It is a trade-off. Allowing the passcode keeps clients with a failed sensor working, and one platform's user-presence option does exactly that, but anyone who has seen the passcode then opens the documents. A reasonable split for a law firm: biometric or passcode to open the app, and a fresh password sign-in checked by the server for sensitive actions.
  • Why must the app tell an invalidated key apart from a cancelled prompt?
    A cancelled prompt means try again later; an invalidated key will never work again. Re-prompting on an invalidated key traps the client in a loop, and treating a cancel as invalidation forces needless sign-ins and key rebuilds. Each answer from the store maps to a different branch: retry, recover with the password, or wait for unlock.

An event-bound check is a receptionist who glances at a visitor's badge and then fetches the file herself: talk your way past her and you get the file. A key-bound check is a safe-deposit box that opens only to the holder's own key; changing who holds a key, like enrolling a new face, means the box is re-keyed and the old key no longer fits.

  • A biometric yes/no result is enough to protect the stored token.
  • Enrolling a new fingerprint never affects keys the app already stored.
  • The server can rely on the client having passed the fingerprint check.
  • Hiding the success check in obfuscated code makes it as strong as a bound key.
  • After invalidation, keep prompting until the old key works again.