Mobile Security Analysis: Static Analysis of an Android APK
Advanced · 60 minutes · 100 points
In this advanced hands-on lab, you will set up a Mobile Security Framework (MobSF) static analysis environment inside a Docker container, scan a deliberately vulnerable Android APK, map the discovered vulnerabilities to the OWASP Mobile Top 10, and trace high-risk findings such as hardcoded API keys and insecure permissions back to their source in the decompiled APK artifacts. This lab simulates a real-world mobile application security assessment workflow used by penetration testers and AppSec engineers.
What you’ll learn
- Set up a static mobile security analysis environment using open-source tools (apktool, androguard, grep) as a proxy for MobSF-style scanning inside a container
- Decompile a deliberately vulnerable Android APK (DIVA) and extract its manifest, smali code, and resource files for analysis
- Identify and document high-risk findings including hardcoded API keys, insecure permissions, and cleartext traffic flags, mapping each to the corresponding OWASP Mobile Top 10 category
- Trace each high-risk finding back to its exact source file and line number within the decompiled APK artifacts, producing a structured findings report
How this lab works
- Start the lab: One click starts a container on your computer with a real terminal: nothing to install by hand, nothing to clean up.
- Work through 4 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work runs each task’s checks in your container and says what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Runs: A container on your computer, with a real terminal
- Image: ubuntu:22.04
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop installed and running
- Internet access to pull the Ubuntu image and download lab assets
- At least 2GB free disk space for APK tools and decompiled artifacts
Topics: mobile-security, android, apk-analysis, MobSF, OWASP-Mobile-Top-10, static-analysis, apktool, smali, hardcoded-secrets, reverse-engineering
Create a free account to start this lab.