According to JikGuard game security statistics, among the many security risks faced by games, injection cheats accounted for as much as 21%. Such a high percentage shows the seriousness of the harm caused by injection cheats.

JikGuard game security statistics: the proportion of game security risks.
The principle of injection cheats is also very diverse. Android system can use SO injection, ptrace injection, Zygote injection and infection of ELF files and other ways to realize. In this article, we will focus on explaining the injection principles and solutions of the Frida framework and its variants.
Frida is a dynamic staking tool that can insert code into the memory space of the native APP and perform dynamic debugging and modification.

Frida official website
The injection principle is based on ptrace, Frida injects frida-agent-xx.so module into the game process by calling system ptrace, and then communicates with frida-server installed on the cell phone through this module, thus realizing a series of analysis and hook operations, such as hooking the attack function of your own character in the game to achieve the cheating functions such as doubling the attack and so on. doubling and other cheating features.

Frida and ida joint debugging apk
Due to the simple configuration environment, convenient operation, support for Java layer and Native layer hook operation, and the use of python, JavaScript language, greatly reducing the threshold of reverse analysis, cheat modification, in addition, Frida also has the following detection difficulties:
Numerous variants, Frida as a mature open source tool, has a large number of variants, such as the common hluda-server, these variants can hide the Frida features, bypassing the traditional means of detection, increasing the difficulty of detection and elimination.
Complexity of cheating, Frida is based on python and javascript language, which can be adapted to Android, iOS, Linux, Windows and other platforms, and can be used with different tools to realize cheating on different platforms.
For the risk of injection cheats faced by games, JikGuard has customized a special response strategy, and the solution has been connected to a number of popular games and verified the excellent protection ability.