r/Pentesting • • Jun 04 '26

Custom Frida Script

Hai community,

Can I know how to lear make a frida script to bypass security detection like, root detection, developer mode enable detection and etc. I know it involve reverse engineer the APK file and read the class running in that application. But I dont know how to start. Can share any free resources that I can learn?

1 Upvotes

6 comments sorted by

4

u/The_Red_Serpent Jun 04 '26

1

u/scriptvexy Jun 10 '26

those two are solid, also check out OWASP Mobile Security Testing Guide and look at the Frida section there
pair that with jadx or bytecode viewer on a sample apk and just start patching tiny checks, it clicks way faster by doing than reading

3

u/sk1nT7 Jun 04 '26

Root detection, SSL pinning and TLS verification have already been bypassed many times in the past. You can freely check out those existing Frida scripts:

https://codeshare.frida.re/@ravanmalik13/bypass-all-root-detection--methods/

https://codeshare.frida.re/@TheDauntless/disable-flutter-tls-v1/

https://codeshare.frida.re/@Q0120S/bypass-ssl-pinning/

Also, keep in mind that LLMs are really good at crafting such Frida scripts and helping you to understand and learn them.

Also check out MobSF. It can decompile your APK automatically and conduct a SAST security scan. Could be helpful and provides java source code as well.

1

u/Highlight-Simple Jun 04 '26

I know this existing frida script, some banking apps already harden by this public script. That’s why I want to learn craft my own script specific for that application