On this page
A mobile app pentest is really two tests in one. The first looks at the app on the device: what it stores, how it talks to the network, how it handles links from other apps and how hard it is to tamper with. The second looks at the backend API the app calls, which is usually where the most serious findings are. Android and iOS share the same goals, but the platforms differ enough that the checks, the tooling and the typical findings change.
This guide walks through those differences using the OWASP Mobile Application Security Verification Standard (MASVS) control groups, so you know what a good mobile test covers on each platform.
What stays the same on both platforms
Whatever the platform, a mobile pentest checks the same MASVS areas:
- Storage (MASVS-STORAGE): sensitive data is not left in plain files, logs, caches or backups.
- Cryptography (MASVS-CRYPTO): keys are not hardcoded and strong, standard algorithms are used.
- Authentication (MASVS-AUTH): authentication and authorization are enforced by the backend, and local biometric checks unlock a Keystore/Keychain key rather than returning a simple true/false.
- Network (MASVS-NETWORK): all traffic uses TLS that is validated properly.
- Platform interaction (MASVS-PLATFORM): links, other apps and WebViews cannot abuse the app.
- Code quality (MASVS-CODE): dependencies are current and input is validated.
- Resilience (MASVS-RESILIENCE): tampering and reverse engineering are made harder, where your risk calls for it.
- Privacy (MASVS-PRIVACY): the app collects only what it needs.
The most important shared rule: never trust the app to enforce security. Anything the app can do, an attacker with a modified app or a proxy can do too. Every permission and limit must be checked by the server.
Android vs iOS at a glance
| Area | Android | iOS |
|---|---|---|
| Secure storage | Android Keystore (directly or via Tink) | Keychain with suitable accessibility classes |
| Where data leaks | SharedPreferences, external storage, logs, backups | Plists, app container files, caches, snapshots, backups |
| Talking to other apps | Intents, exported activities, services, content providers | URL schemes, universal links, app extensions |
| Network policy | Network Security Config | App Transport Security (ATS) |
| App package | APK/AAB, Java/Kotlin bytecode, easier to decompile | IPA, compiled Swift/Objective-C, encrypted from the App Store |
| Test devices | Emulators and rooted devices are common | Jailbroken devices or instrumented builds |
| Typical tooling | jadx, apktool, Frida, Objection, Burp Suite | Frida, Objection, class-dump, Hopper or Ghidra, Burp Suite |
Android: what testers focus on
Exported components and intents
Android apps talk to each other through intents. Any activity, service, broadcast receiver or content provider marked as exported can be started by other apps on the device. Testers review the manifest and check whether exported components open sensitive screens without authentication, accept untrusted data, or expose files and database rows through content providers.
Fix: export only what must be exported, protect components with permissions and validate all incoming intent data.
Storage and backups
Testers inspect the app’s private directory, SharedPreferences, databases and logs after using the app, looking for tokens, personal data or keys in plain text. They also check whether the app allows backups that would copy that data off the device, and whether anything is written to shared external storage.
Fix: keep keys in the Android Keystore (directly or through Google’s Tink library, now that Jetpack’s EncryptedSharedPreferences is deprecated), encrypt sensitive local data with them, disable or restrict backups, and keep sensitive values out of logs.
Network Security Config and WebViews
Testers check that cleartext traffic is disabled, that user-installed certificates are not trusted in release builds, and that WebViews do not enable JavaScript bridges or file access they do not need.
iOS: what testers focus on
Keychain and data protection
iOS offers the Keychain for secrets and data protection classes for files. Testers check that tokens and keys live in the Keychain with an accessibility class that fits their sensitivity, and that files holding personal data are protected while the device is locked. Common findings include tokens in UserDefaults, sensitive screens captured in app-switcher snapshots and data left in caches.
Fix: store secrets in the Keychain, choose strict accessibility classes, and blur or hide sensitive screens when the app moves to the background.
URL schemes and universal links
Custom URL schemes can be registered by any app, so they should never carry sensitive actions or tokens without validation. Universal links are tied to your domain and are safer. Testers check what each link can trigger and whether parameters are validated.
App Transport Security
ATS enforces secure connections by default. Testers review exceptions in the app’s configuration: broad exceptions that allow insecure loads are a common finding.
Certificate pinning and resilience: setting expectations
Many teams ask for certificate pinning, jailbreak or root detection and obfuscation. These raise the cost of attacking your app, which matters for banking, payments and apps that handle high-value data. They are not a substitute for server-side security: a determined attacker with a controlled device can work around client-side controls. Testers will tell you how much effort that took and whether the server stayed secure regardless.
Decide in scoping whether resilience is in scope. If it is, testers assess how well each control holds up. Either way, they need a way to observe the app’s traffic to test the backend, so share a test build without pinning or confirm they may work around it.
Don’t forget the backend API
On most mobile engagements, the highest-severity findings sit in the API: one user reading another user’s orders, a hidden admin endpoint, or a missing rate limit on OTP verification. Mobile apps often ship with API endpoints that the UI never uses, and attackers find them by reading the app package. Test the API with the same depth as the app. Our API penetration testing checklist covers what to verify.
How to prepare for a mobile pentest
- Share builds for both platforms (APK/AAB and IPA or TestFlight access), ideally debug or test builds.
- Provide accounts for each role, and two accounts per role for access-control testing.
- List the backend API hosts and environments in scope.
- Say whether resilience controls (pinning, root/jailbreak detection) are in scope.
Mobile app pentesting with WhyXpose
Our mobile app penetration testing covers Android and iOS, mapped to OWASP MASVS and MASTG, together with the API behind the app. Findings are triaged by WhyXpose AI and validated by an expert, scored with CVSS 3.1 and delivered to your dashboard with a fix, then retested once you ship it. Most mobile apps suit a grey-box approach, with accounts for each role.
Put this guide into practice
Android and iOS apps tested against OWASP MASVS and MASTG, with the backend API included.
Explore mobile app pentesting