Mobile application penetration testing
What does the app leave on a device, and what does it send to the server? Those are separate questions, even when Android and iOS share a backend. Agree on the builds to test and list any backend API work separately in scope.
For the first conversation
- Android, iOS, or both; note which versions and whether test builds exist.
- The features that need coverage and the types of accounts they use.
- The backend environment and whether you need its APIs included.
Leave passwords, tokens, source files, and customer data out of the contact form.
What a mobile test can cover
| Area | What is examined |
|---|---|
| Data on the device | Information stored in local files, device logs, and backups. |
| Interaction with the platform | How the app handles permissions, incoming links, and data shared with other components. |
| Sessions and transport | How the app handles signed-in sessions and protects data sent to the server. |
| Backend APIs | Permissions around backend data and actions when those endpoints are in scope. |
The system owner must authorize the work. The written scope sets out what can be assessed.
Testing reference: OWASP Mobile Application Security Verification Standard (MASVS), OWASP Mobile Application Security Testing Guide (MASTG).
What a finding looks like
Sample report · all data is fictional
WS-CONTOH-05
Session token stored without encryption in app storage
Insecure Data Storage
- Risk rating
- Medium CVSS 3.1: 5.5 AV:L
/AC:L /PR:L /UI:N /S:U /C:H /I:N /A:N - Affected
- Android, build uji 2.4.1
Note: For management: the window after a lost device.
Summary
The refresh token is written to the app private storage in plain text. On a rooted device, or through a backup extracted from the device, the token can be read and reused.
Evidence
shared_prefs/auth.xml <string name="refresh_token">eyJhbGciOi…</string>
Read from a test build installed on a rooted device.
Note: For developers: the file and the line, from a test build.
Impact
A stolen token keeps a session alive after the device is lost.
Recommendation
Store the token in the platform keystore, and expire refresh tokens on the server when a device is deregistered.
Note: For your team: where the token is kept instead.
Status
Open
Note: Re-tested on a new build, not on the same install.
The mobile test report
| Report section | Contents |
|---|---|
| Priorities for the product team | Which findings matter first and what parts of the product they affect. |
| Evidence by build and platform | The affected app version and feature, with device findings distinguished from API findings. |
| Fix recommendations by component | Which changes belong in Android, iOS, or the backend service. |
Download the sample report (PDF) ↗ A fictional scenario, not a client report.
Questions before booking
What goes into a mobile pentest quote?
The quote depends on the number of platforms and builds, the features in scope, and whether the backend APIs also need testing. Account for features that differ between the Android and iOS apps.
Do you need the source code?
It depends on what you want to learn. A test can be scoped around an installable build and suitable test access. If you need examination of the code itself, discuss a source code review separately.
Can we test just Android or just iOS?
Yes. Choose the build and platform you want covered. Results for one app do not carry over to the other, even when they share the same API.
Can we provide a test build?
Discuss it when defining scope. Point out any differences from the version in users’ hands, especially its security settings and server environment. The report reflects the build and environment that were actually tested.
Choose the builds you need tested
Send the system you want tested, roughly how big it is, and your target date.