Mobile App Pen Testing
Testing Android and iOS apps with OWASP MASTG
Mobile pen testing combines three things: looking inside the app package (static analysis), watching it run on a test device (dynamic analysis), and testing the backend API it talks to, usually through Burp Suite. The OWASP MASTG describes how to test each MASVS control.
Advanced · 6 steps
| Methodology | OWASP MASTG (tests MASVS) |
|---|---|
| Static tools | MobSF, jadx, apktool |
| Dynamic tools | Frida, objection, adb |
| Traffic | Burp Suite as proxy |
| Android 7+ | Apps ignore user-installed CAs by default |
| Devices | Test phone or emulator, rooted/jailbroken for depth |
Step by step
Set up the lab Device, build and permission
The client provides written authorisation and a staging build of the app. The tester installs it on an emulator or a dedicated test phone using
adb, and points the device's Wi-Fi proxy at Burp.Static analysis Looking inside the package
The tester runs the app package through MobSF for an automated overview, then reads the decompiled code with jadx. They look for hard-coded keys and URLs, debug flags, exported components, weak crypto and the network security configuration.
Intercept the traffic Getting the app through Burp
Since Android 7, apps don't trust user-installed certificates, and this app also pins its server key. The cleanest approach is a debug build that trusts the test CA. If only the release build is available, testers use instrumentation tools such as Frida or objection on the test device to observe traffic, which is part of the MASTG process.
Dynamic and storage testing What does it leave behind?
While using the app, the tester checks what it writes to the device: databases, preferences, logs, caches, screenshots in the app switcher. They also send intents and deep links to exported components to see if any screen opens without login.
Test the backend API Usually where the big bugs are
With the app's API calls in Burp, the tester applies the same web tests: change account IDs between two test users, remove the step-up token from a transfer, replay requests. Here the transfer endpoint correctly rejects the missing step-up token.
Report against MASVS Findings mapped to the standard
The report lists each finding with severity, evidence and a fix, mapped to the MASVS control it breaks and the MASTG test used. That makes it easy for the team to see which areas need work and to retest later.
Best practices
- Get written permission and a test build from the app owner
- Use a dedicated test device or emulator, never your personal phone
- Ask for a debug build that trusts the proxy certificate, rather than fighting pinning
- Test the backend API as hard as the app; it's where data lives
- Report against MASVS controls so findings map to a standard
More in Penetration Testing.
Packets
| No. | Time | Source | Destination | Protocol | Info | Size |
|---|