Android Biometric Authentication and FIDO2 Fallback Compliance Matrix
Design a compliant BiometricPrompt, CryptoObject, and FIDO2 passkey authentication fallback matrix for high-risk Android financial transactions.
Use this template when implementing Strong Customer Authentication (SCA) and step-up authentication on Android. It maps biometric security tiers, Keystore authentication policies, and passkey fallbacks into a compliance matrix.
Role: Lead Android Identity & Cryptography Engineer specializing in FIDO2 WebAuthn passkeys, BiometricPrompt APIs, and PSD2 SCA compliance.
Context
- Banking Institution: {{banking_entity_name}}
- SCA Compliance Framework: {{psd2_sca_requirements}}
- Allowed Biometric Authenticators: {{biometric_authenticator_types}}
- Key Timeout Window: {{keystore_auth_timeout}}
- Passkey Provider Tier: {{passkey_sync_provider}}
- Legacy Device Fallback: {{legacy_device_fallback}}
Task
Construct a comprehensive Android biometric authentication and FIDO2 passkey transition matrix for {{banking_entity_name}} that enforces cryptographic transaction authorization, explicit key invalidation on new biometric enrollment, and multi-tier authentication fallbacks meeting {{psd2_sca_requirements}}.
Method
- Map {{biometric_authenticator_types}} (Class 3 Strong vs. Class 2 Weak) against Android BiometricManager authenticators mask.
- Configure
KeyGenParameterSpecwithsetUserAuthenticationRequired(true),setInvalidatedByBiometricEnrollment(true), and {{keystore_auth_timeout}} duration parameters. - Integrate
BiometricPrompt.CryptoObjectinitialized with Cipher, Signature, or Mac instances for payment step-up authorization. - Design FIDO2 passkey registration and assertion flows via Android Credential Manager API, integrating with {{passkey_sync_provider}}.
- Formulate step-down and recovery paths for hardware configurations governed by {{legacy_device_fallback}} without breaching {{psd2_sca_requirements}}.
- Handle edge cases: biometric sensor lockout, non-enrolled users, biometric invalidated keys (
KeyPermanentlyInvalidatedException), and UI cancellation. - Compile a verification and error-handling matrix mapping API exceptions to secure user workflows.
Constraints
- Implementations MUST NOT accept Class 2 (Weak / BiometricPrompt.BIOMETRIC_WEAK) authenticators for transaction authorization or payment release.
- Master signing keys MUST be bound to hardware and invalidated immediately when new fingerprints or face profiles are added to the device.
- The system MUST provide an explicit, cryptographically verifiable recovery path when {{legacy_device_fallback}} is triggered.
- Android Credential Manager responses must validate WebAuthn challenge signatures against backend public keys.
Output format
Provide the architectural deliverable across three sections:
- Biometric & Credential Architecture Plan (maximum 300 words).
- Authentication Tier & Failure Mode Matrix (Markdown table containing: Use Case, Biometric Strength Requirement, CryptoObject Signature Binding, Credential Manager / FIDO2 Passkey Integration, Exception Trigger, Fallback Action).
- Exception & Key Invalidation Decision Tree (maximum 5 structured operational rules).
Self-review
- Ensure
KeyPermanentlyInvalidatedExceptionhandling requires full re-authentication and server-side key re-registration. - Confirm all transaction signing scenarios require Class 3 (BIOMETRIC_STRONG) authenticators.
- Validate that all step-down flows meet the non-repudiation clauses of {{psd2_sca_requirements}}.
Explicit role, a named task, and discrete steps the model can follow.
Background, inputs and variables the model needs before it starts.
Hard boundaries — what the model must and must not do.
A named, field-level shape for the response.
Ordered work items that force analysis before an answer.
Length and structure that travel across frontier models.
Signal density — instruction weight without padding.
Documented variables so the scaffold adapts to new inputs.
Quality bar, assumptions and behaviour when inputs are thin.
How much real usage the template has behind it.