Mobile analysis¶
Static analysis notes for potentially malicious mobile application samples.
Basic static analysis of samples¶
Decompilation tools include jadx, radare2, rizin, and jeb. droidlysis automates offline static analysis.
Get the sample. For Android,
mvtcan download the APK from a compromised device;apkeepretrieves it from the Play Store. ADB runs with a non-privileged account on unrooted devices, limiting access to internal application data. On a rooted device, ADB runs as root and exposes application data and OS files; BusyBox extends this further.Store the sample, compute its SHA256 hash, and work only on copies.
sha256sum sample.apk
Identify the file type.
.apkis an Android package..ipais an iOS application archive, encrypted with Apple’s FairPlay DRM and compiled for ARM. Re-signing with a PGP key may be necessary before analysis.Retrieve basic information using
jadx,androguard, Pithus (online), or a sandbox.Signing certificate fingerprints are worth checking against the Play Store listing. Android app signatures cannot be forged.
For Android, check whether the sample was frosted by Google Play Store.
Review requested permissions against the stated application purpose.
Resources¶
Esther Onfroy, Beginner guide - How to handle a potentially malicious mobile app, 2023, PTS Project