medium · M3 · MASVS-AUTH-2 · PTKD-AUTH-BIOMETRIC-NOCRYPTO
Biometric authentication not bound to a cryptographic key
The app calls BiometricPrompt.authenticate() without a CryptoObject, so the biometric check is event-bound (a boolean 'it matched') rather than result-bound to a Keystore key. On a rooted device an attacker can instrument the success callback and pass the check without ever presenting a biometric.
How it is exploited
The app gates a sensitive action behind BiometricPrompt.authenticate() but passes no CryptoObject. The check only reports that a biometric matched; it does not unlock a key. On a rooted device an attacker hooks the onAuthenticationSucceeded callback (or the boolean it sets) with Frida and invokes it directly, passing the gate without any fingerprint or face.
Why it matters
The biometric lock is bypassable on a compromised device: local auth on payments, vaults, or 'unlock to reveal secret' screens can be defeated without the user's biometric.
How to fix it
- Create a Keystore key with setUserAuthenticationRequired(true) so the key is usable only after a biometric unlock.
- Call authenticate(PromptInfo, CryptoObject) with a Cipher/Signature/Mac initialized from that key.
- Perform the sensitive operation with the unlocked CryptoObject (encrypt/decrypt/sign), not merely on the success callback firing, so the result is cryptographically bound to the biometric.
Does your app have this?
PTKD checks your build or your source project for PTKD-AUTH-BIOMETRIC-NOCRYPTO and every other check in this knowledge base.
Scan your appReferences
Related checks (M3)
- Permissive CORS with credentials
- State-changing request succeeded without authentication
- Weak JWT observed on the wire
- Premium access is stored on the phone and trusted (heuristic)
- Firebase rules trust an email address nobody verified
- Firebase security rules open to everyone
- Users can make themselves admin or premium in Firestore
- Supabase auth settings in the local config (check the hosted project)