[Android reverse eng] Bypass code injection detection
by vazolumegui - Friday February 9, 2024 at 03:35 AM
#1
Hello everyone. I was trying to break certificate pinning used by an android app with frida, but as soon as frida is loaded, the app crashes. Investigating further, I realized that the app has some kind of code injection detection and when it detects that frida is trying to inject the a new thread in the main process it kills itself. This type of detection can be seen when launching momo with frida, as shown below:

[Image: momo.jpg]

Does anyone know the inner works of this code injection detection and how to bypass it? (the more technical the answer, the better). Thanks in advance

This forum account is currently banned. Ban Length: Permanent (N/A Remaining)
Ban Reason: Leeching | https://breachforums.ai/Forum-Ban-Appeals if you feel this is incorrect.
Reply
#2
(Feb 09, 2024, 03:35 AM)vazolumegui Wrote: Hello everyone. I was trying to break certificate pinning used by an android app with frida, but as soon as frida is loaded, the app crashes. Investigating further, I realized that the app has some kind of code injection detection and when it detects that frida is trying to inject the a new thread in the main process it kills itself. This type of detection can be seen when launching momo with frida, as shown below:

[Image: momo.jpg]

Does anyone know the inner works of this code injection detection and how to bypass it? (the more technical the answer, the better). Thanks in advance

I am working on something similar but with a different app. In my case, the app understands if something is off by fetching the apk signature, sending it to the server and then reading the server's reply on the foreign signature. It can be bypassed by "signature spoofing", but I find it kinda difficult to implement. Especially with the official Android.

In the Java code, the signature is fetched with a call to 
getPackageInfo(...).Signatures
. If you can spoof it with smali, you are done
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  best database lookup site? mrwuwbs2 10 4,219 Jan 13, 2026, 09:19 PM
Last Post: brasov24
  How to Crack LOL accounts ? ormancocugu 1 462 Apr 13, 2025, 02:11 PM
Last Post: RamoBosnia
  Does anyone know how to crack a license? asdfg123456 0 342 Mar 28, 2025, 03:23 AM
Last Post: asdfg123456
  does anybody know where can i find a cracked version of mailranger? ROBLOX 2 2,306 Feb 27, 2025, 06:22 PM
Last Post: ROBLOX
  leakcheck enterprise - bulk check goni 1 639 Feb 26, 2025, 10:47 PM
Last Post: retard

Forum Jump:


 Users browsing this forum: 1 Guest(s)