Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DETECTION] Unknown libsgmain.so #346

Open
enovella opened this issue Jul 24, 2023 · 3 comments
Open

[DETECTION] Unknown libsgmain.so #346

enovella opened this issue Jul 24, 2023 · 3 comments
Assignees
Labels
detection-issue Bad detection or no detection v2.1.5-bhusa

Comments

@enovella
Copy link
Collaborator

enovella commented Jul 24, 2023

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

@enovella enovella added the detection-issue Bad detection or no detection label Jul 24, 2023
@enovella enovella self-assigned this Jul 24, 2023
@ghost
Copy link

ghost commented Jul 29, 2023

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
Copy link

ghost commented Aug 24, 2023

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

@enovella
Copy link
Collaborator Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
detection-issue Bad detection or no detection v2.1.5-bhusa
Projects
None yet
Development

No branches or pull requests

1 participant