Secrets of Bypassing Hook Integrity Checks on Android - Make it Yours!

Secrets of Bypassing Hook Integrity Checks on Android - Make it Yours!

FatalSec

54 года назад

7,134 Просмотров

#frida #hookdetection #integritychecks #fridadetection #android #pentest #r2pay


Hello everyone, in this video we are going to learn some advanced techniques which are used in android app for detecting frida hooks based on some frida artifacts in the memory and filesystem along with hook integrity checks. These integrity checks are based on the binary signatures and get triggered whenever we hook any instruction or function.
For learning purpose we have used the application from MSTG crackme i.e r2pay.


You can download this app directly from their github page: https://github.com/OWASP/owasp-mastg/blob/master/Crackmes/Android/Level_04/r2pay-v1.0.apk


It has lot of detections like root detection, frida detection, hook detection and integrity checks for protecting the app from being reversed.


App uses SVC instructions to hide the implementation of some sensitive functions such as openat() which is used to access some of the frida artifacts and also it has inlined integrity checks which causes the app to crash whenever we try to hook any instruction of function from the app.


As always feel free to comment down below in case you have any queries and i will reply as soon as i can.


Full working script is available on our github repository:
https://github.com/fatalSec/mas-crackme_solutions/blob/main/android_level4.js


Also, dont forget to hit a like button and subscribe to this channel to show your support. You can also follow us on twitter at @SecFatal.

Тэги:

#Android_pentesting #Code_tracer #Frida_bypass #Frida_stalker #Hook_detection_android #Hook_integrity_checks #How_to_bypass_hook_detection #How_to_bypass_integrity_checks_in_android #Integrity_check_bypass #R2pay_writeup #Radare2 #frida #frida_for_android #function_hooking_using_frida #hacking #how_to_bypass_frida_detection #reverse_engineering
Ссылки и html тэги не поддерживаются


Комментарии: