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

4f5a613 · Jan 31, 2023

History

11 Commits
Jan 9, 2023
Jan 31, 2023

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