Skip to content

APKS incomplete analysis, misses info about native libs #2478

@tosiara

Description

@tosiara

ENVIRONMENT

OS and Version: official docker image, opensecurity/mobile-security-framework-mobsf:latest
MobSF Version: v4.0.3

EXPLANATION OF THE ISSUE

Performed analysis of an .apks file, the report was missing info about native libs and strings were not extracted from them. App contents:

sample.apks:

base.apk
split_config.arm64_v8a.apk
split_config.en.apk
split_config.xxhdpi.apk

split_config.arm64_v8a.apk:

lib/arm64-v8a/libapp.so
lib/arm64-v8a/libflutter.so

STEPS TO REPRODUCE THE ISSUE

1. Analyzed sample.apks file
2. Opened static analysis report
3. Flutter native lib is not mentioned anywhere, strings not extracted from it

LOG FILE

[INFO] 21/Dec/2024 20:13:37 - Extracting Manifest Data
[INFO] 21/Dec/2024 20:13:37 - Performing Static Analysis on: XXX (xxx)
[INFO] 21/Dec/2024 20:13:37 - Fetching Details from Play Store: xxx
[INFO] 21/Dec/2024 20:13:38 - Manifest Analysis Started
[INFO] 21/Dec/2024 20:13:38 - App Link Assetlinks Check - [xxx.MainActivity] https://xxxx
[INFO] 21/Dec/2024 20:13:39 - Checking for Malware Permissions
[INFO] 21/Dec/2024 20:13:39 - Fetching icon path
[INFO] 21/Dec/2024 20:13:39 - Library Binary Analysis Started
[INFO] 21/Dec/2024 20:13:39 - Reading Code Signing Certificate
[INFO] 21/Dec/2024 20:13:39 - Getting Signature Versions
[INFO] 21/Dec/2024 20:13:39 - Running APKiD 2.1.5
[INFO] 21/Dec/2024 20:13:42 - Trackers Database is up-to-date
[INFO] 21/Dec/2024 20:13:42 - Detecting Trackers
[INFO] 21/Dec/2024 20:13:44 - APK -> JAVA
[INFO] 21/Dec/2024 20:13:44 - Decompiling to Java with jadx
[INFO] 21/Dec/2024 20:14:01 - DEX -> SMALI
[INFO] 21/Dec/2024 20:14:01 - Converting classes.dex to Smali Code
[INFO] 21/Dec/2024 20:14:01 - Converting classes2.dex to Smali Code
[INFO] 21/Dec/2024 20:14:01 - Converting classes3.dex to Smali Code
[INFO] 21/Dec/2024 20:14:01 - Code Analysis Started on - java_source
[INFO] 21/Dec/2024 20:14:44 - Android SAST Completed
[INFO] 21/Dec/2024 20:14:44 - Android API Analysis Started
[INFO] 21/Dec/2024 20:15:29 - Android Permission Mapping Started
[INFO] 21/Dec/2024 20:15:45 - Android Permission Mapping Completed
[INFO] 21/Dec/2024 20:15:48 - Finished Code Analysis, Email and URL Extraction
[INFO] 21/Dec/2024 20:15:48 - Extracting Data from APK
[INFO] 21/Dec/2024 20:15:48 - Extracting Data from Source Code
[INFO] 21/Dec/2024 20:15:51 - Detecting Firebase URL(s)
[INFO] 21/Dec/2024 20:15:51 - Performing Malware Check on extracted Domains
[INFO] 21/Dec/2024 20:15:52 - Maltrail Database is up-to-date
[INFO] 21/Dec/2024 20:15:55 - Saving to Database

Expected results

Expected to see strings extracted from native library

I cannot share this private apks file, but I will try to build a sample flutter app and see if I can reproduce

Metadata

Metadata

Assignees

Labels

investigatingMobSF collaborators are investigating this issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions