Protecting sensitive apps when device screen locks are weak
Some sensitive applications rely on the device lock as part of their security boundary. Understanding sensitive apps when device screen locks are weak helps establish which security property the feature needs and where that property is actually enforced.
What does this involve?
Authentication establishes who is making a request and the strength and freshness of that evidence. Enrolment, recovery, alternate channels and changes to authenticators are part of the same boundary. An impressive login screen provides little assurance if another path grants equivalent access with weaker checks.
Additionally, apps can use the BiometricManager#canAuthenticate(int) API to check whether biometric authentication is available and can be used. Since biometric authentication on Android requires a secure screen lock as a fallback, this method can serve as an alternative check when KeyguardManager is unavailable or restricted by device manufacturers.
If an app relies on biometrics for authentication, it should ensure that biometric authentication is enforced using the BiometricPrompt API or by requiring authentication for cryptographic key access via the Android KeyStore System. However, apps cannot force users to enable biometrics at the system level, only enforce their use within the app for accessing sensitive functionality.
Why it matters
Consider a realistic failure: a user removes the screen lock but the app continues allowing high-value local operations.
Account access can lead to disclosure, unwanted changes or misuse of a trusted identity. The consequence depends on the account's permissions and the actions available after authentication, rather than the appearance of the login mechanism.
Mobile behaviour can change between a fresh installation, an authenticated session, background activity and a device migration. The assessment needs the actual release and representative supported device states.
How penetration testers check for it
Check lock-state detection, enrolment changes and server assumptions about local protection.
- Exercise the app extensively to trigger as many flows as possible and enter sensitive data wherever you can.
- Check expiry, reuse and the binding of challenges to their intended action.
- Follow successful authentication into the operation that trusts it.
How to fix it
Enforce relevant device prerequisites or require a stronger alternative for sensitive operations.
- Apply consistent verification at trusted boundaries.
- Protect enrolment, replacement and recovery as carefully as login.
- Require appropriate fresh evidence for sensitive changes.
- Record important authentication events without retaining secrets.
Authentication and authorisation answer different questions. Establishing identity does not grant unrestricted permission to records or privileged functions.
Recheck the changed behaviour against the original failure conditions and the legitimate user journey. Keep enough evidence to show which release and configuration were verified, and include related entry points that depend on the same security decision.
Related issues
- Protecting sensitive resources inside mobile packages
- Weak cryptography used by IoT device memory
- Weak cryptography used by IoT device services
Read about our methodology or contact pentested.com to discuss your mobile applications.