Skip to content

Updated Android biometric bypass script for Frida (from Kamil Breński, Krzysztof Pranczk and Mateusz Fruba, August 2019). The code resolves BiometricPrompt$AuthenticationResult constructor args at runtime. It should work with any Android version.

Notifications You must be signed in to change notification settings

ax/android-fingerprint-bypass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

android-fingerprint-bypass

Updated Android biometric bypass script (from Kamil Breński, Krzysztof Pranczk and Mateusz Fruba, August 2019).

This script will bypass authentication when the crypto object is not used. The authentication implementation relies on the callback onAuthenticationSucceded being called.

🆕 The code resolves BiometricPrompt$AuthenticationResult constructor args at runtime. 🆕

It should work with any Android version.

Usage

frida --codeshare ax/universal-android-biometric-bypass -f YOUR_BINARY
frida -U -f YOUR_BINARY --no-pause -l fingerprint-bypass.js
frida -U -F YOUR_BINARY --no-pause -l fingerprint-bypass.js

When using frida gadget with the script interaction type, add the following code to print to logcat the console.log output.

// print to logcat the console.log output
// see: https://github.com/frida/frida/issues/382
var android_log_write = new NativeFunction(
    Module.getExportByName(null, '__android_log_write'),
    'int',
    ['int', 'pointer', 'pointer']
);
var tag = Memory.allocUtf8String("[frida-script][ax]");
console.log = function(str) {
    android_log_write(3, tag, Memory.allocUtf8String(str));
}

References

https://labs.withsecure.com/publications/how-secure-is-your-android-keystore-authentication

About

Updated Android biometric bypass script for Frida (from Kamil Breński, Krzysztof Pranczk and Mateusz Fruba, August 2019). The code resolves BiometricPrompt$AuthenticationResult constructor args at runtime. It should work with any Android version.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published