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

MethodologyOWASP MASTG (tests MASVS)
Static toolsMobSF, jadx, apktool
Dynamic toolsFrida, objection, adb
TrafficBurp Suite as proxy
Android 7+Apps ignore user-installed CAs by default
DevicesTest phone or emulator, rooted/jailbroken for depth

Step by step

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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

More in Penetration Testing.