rednaga / APKiD

Android Application Identifier for Packers, Protectors, Obfuscators and Oddities - PEiD for Android
Other
2.01k stars 293 forks source link

[DETECTION] Unknown libsgmain.so #346

Open enovella opened 1 year ago

enovella commented 1 year ago

Provide the file id.dana com.globe.gcash.android

APKiD current results... Please provide current output from APKiD on this file. Include the APKiD header which provides the version, e.g. -

[*] ./split_config.arm64_v8a.apk!lib/arm64-v8a/libsgmain.so!lib/arm64-v8a/libsgmainso-5.4.193.so
 |-> anti_hook : syscalls

Additional context

ghost commented 1 year ago

Looks like it's from Alibaba cloud

Another sample, UC browser: https://apkcombo.com/uc-browser/com.UCMobile.intl/

Smali file `smali\com\alibaba\wireless\security\framework\d.smali` contains following strings

libsgmain
libsgsecuritybody
libsgmiddletier

Since libsmain.so is an APK file, you can decompile it or load in jadx

image

com.globe.gcash.android and id.dana

lib/xxx/libsgmain.so!lib/xxx/libsgmainso-XXXX.so (as mentioned above)

com/alibaba/wireless/security/open/SecException
alibaba/wireless/security/framework/SGPluginExtras
us-ummt.alibaba.com
com/alibaba/wireless/security/open/litevm/LiteVMParameterWrapper

image

Reference:

ghost commented 1 year ago

LibChecker has a rule for it. "阿里聚安全" translates to "Alibaba Security": https://github.com/LibChecker/LibChecker-Rules/blob/master/native-libs/libsgmain.so.json

enovella commented 1 year ago

Okay, thanks for the info! I will try to find time to create a rule for it.