Mobile App Development

Mobile App Security Testing: What You Need to Know

Mobile App Security Testing: What You Need to Know

The device configuration shapes the results as much as the code does. As of November 2026, Android’s network security configuration documentation states that apps targeting API level 24 or higher trust only the system certificate store by default, so a tester’s proxy certificate fails to expose HTTPS traffic unless the app lists user certificates or runs as a debug build.

That default says a lot about the job. Mobile app security testing checks iOS and Android apps for weaknesses in the binary, local storage, platform APIs, network traffic and backend services, mixing automated static and dynamic analysis with manual penetration testing.

Developers and security teams run it against a standard such as OWASP MASVS before release, then again after each platform change. Auditors do the same when they’re asked to.

What Is Mobile App Security Testing?

Four things a mobile app tester can do with the device in hand, the other names for the practice such as MAST, and how a security test differs from functional QA

In practice it means going through iOS and Android apps for weak spots in the binary, local storage, platform APIs and backend communication. Trailhead’s training describes it as analyzing apps to find security weaknesses such as misconfigurations and vulnerabilities.

The same work goes by a few names. The Cloud Security Alliance’s Mobile Application Security Testing working group shortens it to MAST (whitepaper 2016, landscape overview 2020). According to Snyk, the OWASP testing guide mentions mobile app security review as a synonym. Mobile app penetration testing gets used as well, though it is one method inside the practice and not the whole of it.

Here the attacker holds the device. A tester can unpack the app package, inspect local storage, hook running code and tamper with files, none of which a server-side web app exposes.

The OWASP MASVS reflects that split. Next to storage, network and authentication, it has control groups for platform interaction and for resilience against reverse engineering and tampering. Teams coming from web app testing need those extra skills.

The practice sits inside the wider work of securing a mobile app, next to secure design and runtime protection.

It is also not functional QA. A test proving the login screen works says nothing about whether the stored token can be read off the device.

What Parts of a Mobile App Get Tested?

Testing goes after the app binary, local data storage, network traffic, backend APIs and the entry points other apps can reach. Bundled third-party SDKs get checked alongside.

The binary is decompiled and inspected for hardcoded secrets and weak obfuscation. Missing tamper checks count as findings too.

On the device itself, files, databases, caches, logs and keychain or keystore entries all get a look.

Traffic testing covers TLS configuration and certificate validation, plus anything the app sends in the clear.

Every call the app makes lands on an API, and that API’s authentication and authorization need testing along with how it handles input.

Deep links, exported components and other endpoints that other apps can reach make up the entry points. OWASP lists unprotected endpoints (deeplink, activity, service) among its candidate risks.

Libraries compiled into the build are tracked as supply chain risk.

The MASVS control groups map roughly onto these targets. STORAGE, NETWORK and PLATFORM cover local storage, network traffic and entry points, while CODE and RESILIENCE cover the binary.

Backend APIs belong in scope because the app holds only half the data path. A hardened client talking to an API that skips authorization checks still leaks data.

Which Vulnerabilities Does Mobile App Security Testing Find?

The OWASP Mobile Top 10 (2024) is the reference list, and it ranks 10 risk categories from improper credential usage down to insufficient cryptography.

  1. Improper Credential Usage
  2. Inadequate Supply Chain Security
  3. Insecure Authentication/Authorization
  4. Insufficient Input/Output Validation
  5. Insecure Communication
  6. Inadequate Privacy Controls
  7. Insufficient Binary Protections
  8. Security Misconfiguration
  9. Insecure Data Storage
  10. Insufficient Cryptography

The list first appeared in 2014, was updated in 2016 and reached its latest edition in 2024. That is an eight-year gap between the last two editions.

Each target from the previous section surfaces different entries. Storage tests expose insecure data storage, and traffic interception does the same for insecure communication. Binary analysis finds embedded credentials and weak binary protections. Dependency checks are what turn up the supply chain problems.

Insufficient binary protections is the entry with no real web equivalent. Hiding logic through obfuscated code slows reverse engineering but does not stop it, so testers treat it as a delay and not a control.

OWASP says it builds the list from incident reports, vendor and researcher vulnerability reports, public datasets and surveys, and its progress report cites HackerOne, Ostorlab and CVE data.

Six risks missed the cut but are named as candidates for later: data leakage, hardcoded secrets, insecure access control, path overwrite and path traversal, unprotected endpoints, and unsafe sharing. Testers still check them, because they belong to the wider set of mobile app security threats.

Which Standards Define What to Test?

YouTube player

Use OWASP MASVS as the control baseline and MASTG for the test procedures. Add NIST SP 800-163 when you vet apps on behalf of an organization.

DocumentRoleSize
MASVSControls an app should meet8 groups, 24 controls
MASWEWeaknesses that break those controls78 entries
MASTGProcedures that verify themAndroid and iOS tests by MASVS group

OWASP describes the chain as MASVS (standards), then MASWE (weaknesses), then MASTG (testing guide). The MASTG describes the technical processes for verifying the MASVS controls.

The 8 MASVS groups hold 24 numbered controls in total (OWASP MAS site, checked November 2026). They are storage, cryptography, authentication and authorization, network communication, platform interaction, code quality, resilience against reverse engineering and tampering, and privacy.

What the MASWE counts reveal

MASWE lists 78 weaknesses. Resilience holds 15, privacy 13, platform 12, cryptography 11, code 10, authentication 8, storage 6 and network 3.

Put together, 40 of the 78 weaknesses sit in resilience, privacy and platform behavior, while network communication has just 3. The numbers count catalogued weaknesses, not incidents, so read them as a map of how finely OWASP divides each area and not as a risk ranking.

The Top 10 and MASVS connect too. Cobalt notes that improper credential usage and insecure authentication/authorization both correspond to the MASVS-AUTH group.

NIST SP 800-163 and the old MSTG name

YouTube player

NIST SP 800-163 Rev. 1, Vetting the Security of Mobile Applications, was published in April 2019 and replaced the January 2015 edition. NIST wrote it with DHS co-authors. It outlines a vetting process organizations use to check that apps meet their security requirements and are reasonably free of vulnerabilities.

It defines the process. The technical test cases still come from the MASTG.

Older tutorials say MSTG. That is the earlier name of the guide now called the MASTG.

For your own app, MASVS controls plus MASTG tests do the job. Vetting apps you did not build calls for the NIST vetting process instead, and Mobile Top 10 categories give non-specialists a shared vocabulary in reports.

SAST, DAST, IAST or Penetration Testing: Which Method Fits?

YouTube player

No single method covers a mobile app. Static analysis reads the code and dynamic analysis attacks the running app. Interactive analysis watches from inside it, and a manual penetration test finds what the tools miss.

Pick by target. Code and dependencies suit static analysis. Runtime behavior and traffic go to dynamic analysis, and authorization and business logic need a human.

MethodFindsMain limitBest stage
SASTInsecure code patterns, hardcoded secretsFalse positives, language supportCommit and build
DASTRuntime and traffic flawsCannot name the source lineRelease candidate
IASTRuntime flows tied to sourceNeeds an instrumented buildQA builds
Manual penetration testingLogic and authorization flawsSlow, one build at one datePre-release

Automated methods

YouTube player

SAST scans code at rest, white-box style, and the results depend on the programming language.

DAST is black-box testing of a running application, so it only works once the app functions. It cannot pinpoint the exact line of code and can generate many false positives.

IAST watches internal flows at runtime and links findings back to source code.

Fuzzing injects invalid inputs to expose crashes and leaks, and software composition analysis tracks third-party dependencies and their known vulnerabilities.

Snyk names language coverage as a standing problem, since a toolset may not support Java, Kotlin, Objective-C and Swift alike. Hybrid apps built on web views also add web application risks on top.

SAST and DAST each give only a snapshot in time. That is the case for running them on every build, not once a year.

The MASTG has a section titled Avoiding False Positives that covers automated scanning tools. Read it before trusting a scanner report.

Manual penetration testing

YouTube player

A human tester interacts with the app to find higher-level issues such as design flaws and business logic errors. No scanner reliably replaces that.

Under Penetration Testing, the MASTG runs through the phases of a test in this order:

  1. Preparation
  2. Intelligence gathering
  3. Mapping the application
  4. Exploitation
  5. Reporting

The cost is time. It takes a skilled person, and the result describes one build on one date.

How Android and iOS Testing Differ

Android and iOS side by side for app isolation, main test effort, key storage, the key test question, package tooling and the test workstation

Android testing mostly means reading the manifest and checking exported components in a package you can open freely. iOS pulls the effort toward code signing and keychain protection classes, on a device Apple does not let you root.

On Android, each app gets a unique user ID and its own process, and the kernel enforces that sandbox. A receiver or service becomes exported once it declares an intent filter, and without one it defaults to not exported; an explicit android:exported value overrides the default. Any exported component is a test case.

On the iOS side, the securityd daemon decides keychain access from keychain-access-groups, application-identifier and application-group entitlements. Xcode and the iOS SDK run only on macOS, so the test workstation is usually a Mac.

Android builds ship as APK or AAB files, and how those two package formats differ matters less to a tester than the tooling. jadx opens both.

Key storage differs too. On Android, the AndroidKeyStore provider arrived in Android 4.3 (API level 18), and key material never enters the app process. A compromised app can still use a key but cannot extract it, and only the key’s use authorizations, such as a user authentication requirement, limit that use.

So the test question is whether sensitive keys demand authentication at all.

On iOS, keychain items sit under two AES-256-GCM keys, and the per-row secret key always requires a round trip through the Secure Enclave. The “this device only” classes are tied to the device UID, so backups of those items cannot be restored to another device.

Testers check the protection class of every item, since that choice decides what a backup or a locked phone exposes.

Store review does not replace any of this. Apple’s App Review Guidelines (section 1.6) require appropriate security measures and (section 2.1) tell developers to test on-device before submitting, which keeps the testing duty with the submitter.

Which Tools Cover Which Test Target?

Pair one static tool with one runtime tool per platform, then add a proxy for traffic. Commercial platforms bundle those jobs and add automation.

TargetToolsRole
Binary and codejadx, Apktool, GhidraDecompile, decode, disassemble
Automated scanningMobSF, SemgrepStatic and dynamic analysis, rule-based checks
Runtime behaviorFrida, objection, drozerHooking, runtime exploration, IPC testing
Network trafficBurp Suite, ZAPIntercepting proxies
Managed platformsNowSecure, AppknoxAutomation plus expert testing

For the binary, jadx turns Dex, APK and AAB files into Java source, though its authors warn it cannot decompile everything perfectly. Apktool decodes resources to nearly original form and rebuilds the APK after edits.

Ghidra, created and maintained by the NSA Research Directorate, adds disassembly and decompilation for the native libraries a Java decompiler cannot read.

MobSF’s static analyzer takes APK, IPA and APPX binaries or source code, and its dynamic analyzer covers both Android and iOS. The MASTG demos use Semgrep for static checks.

Frida injects JavaScript into native apps so you can hook functions and read memory. objection builds on Frida and works without a jailbreak, covering SSL pinning bypass and keychain dumps.

drozer acts as an app to probe the Android runtime and other apps’ IPC endpoints. As of November 2026, its README describes a beta rewrite for Python 3 that requires Python 3.8.

Burp Suite needs a proxy listener plus a manual proxy on the device. ZAP, which its site now credits as ZAP by Checkmarx, offers an intercepting proxy and active scan, though its feature list does not mention mobile.

NowSecure describes automated SAST, DAST, IAST and API analysis, and Appknox runs binary SAST without source code and DAST on real devices. Both are vendor self-descriptions.

For one app, the open-source stack is enough to start. Managed platforms earn their cost once builds ship often enough that manual runs fall behind.

A longer list of mobile pentest tools exists for teams that outgrow this set.

How to Run a Mobile App Security Test, Step by Step

Testing splits into setup and execution. Setup comes first, and skipping it is why most first attempts stall at the proxy.

Test environment setup

Android

YouTube player

The MASTG notes that emulators run apps slowly and may not give realistic results, though they make it easy to switch SDK versions or create several devices.

Start with the Android Studio emulator for early passes, then confirm findings on a physical phone. Android Debug Bridge talks to both an emulator and a connected device, and a few adb commands cover most setup.

For traffic, create a Burp listener, set the device’s manual proxy, export Burp’s CA certificate as a .der file and add it to the device trust store. Burp’s documentation warns that from Android 7 some of these steps need a rooted device.

When you build the app yourself, there is a shortcut. The debug-overrides element in the network security configuration applies only when the build is debuggable, and pinning is skipped for chains that use a debug-only trust anchor.

iOS

YouTube player

A real device beats the simulator for most work. Apps compiled for a real device do not run in the simulator, which limits its use for black box analysis and reverse engineering. The MASTG iOS testing chapter recommends a jailbroken iPhone or iPad, and objection runs without a jailbreak when that is not an option.

Here two sources pull in different directions. The MASTG notes that jailbreak availability depends on the iOS version and that Apple patches known vulnerabilities through updates, while Corellium argues jailbreaks are obsolete for research and testing and sells virtual iOS devices with built-in root.

The gap comes from who is writing and what they sell. The MASTG describes Corellium as an enterprise product with per-user licensing and no community licenses, and Corellium is a vendor. Pick a physical jailbroken device on an older iOS build, or a virtual device for current versions.

Test execution order

  1. Scope the test and list the targets and MASVS groups that apply to this app.
  2. Run static analysis: decompile, read the manifest and entitlements, and search for secrets and exported components.
  3. Run dynamic analysis: exercise the app on the prepared device while hooking calls and watching storage and traffic.
  4. Replay captured requests through the proxy against the backend API, and change user identifiers to test authorization.
  5. Reproduce each finding by hand and discard scanner noise.
  6. Report findings mapped to MASVS controls, then retest after the fix.

Step 2 goes wrong when the decompiler output is incomplete, and step 3 when pinning blocks the proxy. Both cases send you back to the setup above.

When to Run Security Tests in the Development Lifecycle

Testing pipeline with semgrep ci on every commit, MobSF on every build and dynamic plus manual tests on a signed release candidate, then a retest when the target SDK moves

Wire scans into the pipeline, hold the slower tests for a release gate, and retest whenever the target SDK moves. A fix costs less the earlier a finding appears. Trailhead’s comparison rates static testing as more cost effective than dynamic testing, which it calls comparatively more expensive.

At commit time, Semgrep Code runs in CI with the semgrep ci command. At build, MobSF integrates with CI/CD pipelines through REST APIs and CLI tools, so a continuous integration run can fail the build on a new finding.

The release gate is where dynamic and manual tests run, against a signed release candidate, since that is the artifact users will install.

Retesting matters because platform defaults move with the target SDK. As of November 2026, Android’s documentation lists these changes:

Target SDKDocumented changeRetest focus
API 24 (Android 7.0)User-added CAs not trusted by defaultTraffic interception
API 28 (Android 9)Cleartext off by default, per-app SELinux sandboxHTTP calls, shared data
Android 10 targetsLegacy external storage flag defaults to falseStorage tests

For apps targeting API 24 or higher, the default trust anchors are the system store only, and the Android 9 and Android 10 sandbox changes apply to apps targeting those versions. Raising the target SDK changes both the attack surface and the test setup.

When Mobile App Security Testing Falls Short

Pros and cons of automated versus manual mobile testing, three test environments that mislead, and why pinning checks are speed bumps and login apps need a human pass

Defenses that block the test

Pinning stops an honest tester before it stops an attacker. One developer on Apple’s forums reported implementing pinning from Apple’s own guidance, only for a pen testing team to bypass it with Objection and Frida.

That is a reason to test pinning and root or jailbreak checks as speed bumps. Never treat them as controls.

Environments that mislead

  • Emulators run apps slowly and may not give realistic results, per the MASTG, and Snyk says testing on actual devices reflects real-world vulnerability scenarios more accurately
  • The iOS simulator cannot run device builds
  • Public jailbreaks age out fast

Automated and manual testing compared

Automated testing repeats on every build and costs less per run once it is configured. Without an operator, though, pinning or root checks stop it cold, and the output needs triage.

Manual testing adapts when defenses block a tool and reaches authorization and logic flaws. It depends on one tester’s skill and cannot run on every commit.

A scanner-only program is the wrong fit for apps that handle logins or payments. Add a human pass before release.

After each fix, add a regression testing pass so the patch does not reopen a finding elsewhere.

Mobile App Security Testing FAQ

How much does mobile app security testing cost?

It depends on scope, not a fixed rate. The number of platforms, the backend APIs in scope and the depth of manual testing set the price.

MobSF is free under the GPL-3.0 license, so tooling is rarely the expensive part. Tester time is.

What security testing does Apple expect before App Store submission?

Section 1.6 of Apple’s guidelines requires appropriate security measures for user data, and section 2.1 tells developers to test on-device before submitting.

Neither replaces a MASVS-based test, so run your own first.

What should a mobile app security test report contain?

Each finding needs a severity rating, reproduction steps, the affected component and the MASVS control it breaks.

Add fix guidance and a retest status. Developers can then close items without a follow-up call.

Should testing be done in-house or by a third party?

Split it. Keep static scans and pipeline checks in-house, and bring in an outside tester before major releases.

A tester who did not write the code reads it differently, and that is where fresh findings come from.

Where to Start With Mobile App Security Testing

For a team new to this, the first move is an automated MobSF scan of the release build. Traffic and storage testing on a real device comes next, and a manual penetration test follows.

  1. Static scan of the release build
  2. Dynamic pass on a physical device
  3. Manual test before launch

The order follows dependency. The scan needs no prepared device, the dynamic pass needs a working proxy setup, and the manual test needs a stable build to justify its fee.

You pay in noise now for depth later. Scanner false positives eat early hours, but they clear hardcoded secrets and exported components so the paid tester spends time on authorization and logic flaws.

This position was verified in November 2026. It changes when the target SDK rises or a new Mobile Top 10 edition ships, and a ready-made mobile app security checklist turns the sequence into release gates.

Bogdan Sandu

Stay sharp. Ship better code.

Every week: one curated article, one tool worth knowing, one tip you can use tomorrow. No noise, no padding.