The fourth way out of the shell - identify the "destroying usability" shell (taking Ying'an as an example)
Ying'an (yingP/sspya/Kuaishou Keling guard) shell does not hide dex but destroys its usability; the real dex is disguised as a ZIP in so and can be obtained by unpacking it. Methodology refinement, with three steps of verification.
Most information divides shells into three branches: hidden dex, encrypted dex, and VMP virtualization. Recently, when I was studying the reinforcement of Ying'an (yingP / sspya / Kuaishou Keling guard), I found that there is a fourth one: not hiding the real thing, but destroying the fake.
feature:
- The dex structure is complete, but the entire method body instructions are replaced with Dalvik undefined opcodes (0x73 / 0xe9 / 0xe5, etc.). VerifyError occurs as soon as ART is executed.
- The header checksum is modified and dexdump / baksmali / jadx cannot be opened.
- The real unencrypted dex lies in lib/arm64-v8a/libcom_kwai_kling_shellservice_dex.so - that .so is actually a ZIP
So there is no need for dynamic dump, no need for frida, and no need to restore VM bytecode, just decode the ZIP.
Three steps to verify:
- The solved dex magic should be dex\n038 and the unused- count is 0; if it is not 0, it means that so is also an encrypted version, so switch to the dynamic solution
- app_process minimum loader Class.forName verification - Android 15 logcat is often cut off by ROM, this is the only way to get ART errors
- Repair the checksum and use dd to write back the actual value reported by dexdump (offset 8..11, does not affect the SHA1 signature - the signature covers 32..EOF)
Methodological gain: To identify the shell, first ask "where is the real dex and what form", don't assume that it must be removed dynamically. The pedigree of the shell is four: hiding/encryption/VMP/breaking availability, the last one has the lowest processing cost.
Source: This website id=312 The shadow security skills shared by the poster (the poster also noted that they are not original), the methodology I refined, thanks to the original poster and the original author.
please Log in or Register an account Participate in discussions, download exclusive add-ons or unlock level posts.