Ghidra
Techniques & procedures
8 distinct techniques documented for this family, organized by ATT&CK tactic.
Reconnaissance
1 technique
Reconnaissance
Tools: Ghidra → Deep binary reverse engineering JADX → Android APK → Java-like code
Execution
1 technique
Execution
...вызов нативных функций анализа через Native API (T1106, Execution) ... При модификации и переподписи приложения добавляется Dylib Hijacking...
Persistence
1 technique
Persistence
The next thing we really want to track down is the checksum bytes, as we’ll need to be able to generate valid ones based on new payloads in order to start spoofing more interesting payloads... I re-wrote the checksum instructions in Python... The current version of wc2shell can generate the two checksum bytes shown above and inject traffic.
Stealth
1 technique
Stealth
Статический анализ class-dump, otool, strings T1027 (Obfuscated Files) ... Классы, методы, строки, URL, ключи.
Defense Impairment
1 technique
Defense Impairment
The next thing we really want to track down is the checksum bytes, as we’ll need to be able to generate valid ones based on new payloads in order to start spoofing more interesting payloads... I re-wrote the checksum instructions in Python... The current version of wc2shell can generate the two checksum bytes shown above and inject traffic.
Credential Access
3 techniques
Credential Access
First, I decided to break on the sendto function. I know from past experience that that is the native windows networking call for sending UDP packets, likewise recvfrom is for reading them... Alternatively, since you know the address of the function, you can use Frida with onEnter to read the arguments.
Objection покрывает задачи уровня discovery: извлечение keychain-записей (Credentials In Files, T1552.001)
The next thing we really want to track down is the checksum bytes, as we’ll need to be able to generate valid ones based on new payloads in order to start spoofing more interesting payloads... I re-wrote the checksum instructions in Python... The current version of wc2shell can generate the two checksum bytes shown above and inject traffic.
Discovery
2 techniques
Discovery
Following this same idea over and over for each type of packets, we can slowly learn what packets look like for each gamestate update... I was able to make a partial table of command bytes by reading the 11th byte of any command.
To start reverse engineering, open up ghidra and load the original gameassembly.dll in to it. Then, import the il2cpp_ghidra.h ... Next, we need to run a script given to us by il2cppdumper called ghidra_with_struct.py ... you should now have detailed data types and functions in your ghidra.
Collection
1 technique
Collection
First, I decided to break on the sendto function. I know from past experience that that is the native windows networking call for sending UDP packets, likewise recvfrom is for reading them... Alternatively, since you know the address of the function, you can use Frida with onEnter to read the arguments.
Recent activity
4 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.