Penetration testing for mobile apps: what it covers

Penetration testing for mobile apps: static and dynamic analysis, storage, network, auth and APIs, OWASP MASVS and MASTG, the report and choosing a provider.

9 min read
Penetration testing for mobile apps: what it covers

Key takeaways

  • Penetration testing for mobile apps is an authorised attack on an Android or iOS app and the backend APIs it calls, combining static analysis of the app package with dynamic analysis on a test device.
  • The reference is the OWASP MAS project: MASVS 2.1.0 (January 2024) sets the controls in eight groups, MASWE 1.0.0 (August 2026) lists 78 weaknesses, MASTG 2.0.0 (June 2026) describes the tests.
  • MAS testing profiles set the depth: L1 treats other apps as hostile, L2 assumes an untrusted OS and physical access, R treats the user as the attacker, P covers privacy.
  • A mobile test differs from a web test on device storage, platform features and the binary in the attacker's hands; the backend APIs are common ground, and MASVS points to OWASP ASVS for them.
  • NIS2 Article 21(2)(e)(f) and DORA Articles 24-25 reach mobile apps through the systems they cover; ask for a report traceable to MASVS controls and a retest included.

Penetration testing for mobile apps is an authorised attack on an Android or iOS app and the backend APIs it calls. Testers combine static analysis of the app package with dynamic analysis on a test device, checking how the app stores data, uses cryptography, communicates, authenticates users and interacts with the platform, usually against OWASP MASVS and MASTG.

That definition matters when you compare offers. A mobile test is not a web application test pointed at an app store link: the app runs on a device the attacker can hold, root or jailbreak, and part of your logic and data travels with it. This guide explains what a mobile app penetration test covers, the OWASP reference framework and its current versions, how the work is organised, how it differs from a web test, what the report should contain, where EU rules come in, and how to choose a provider.

What a mobile app penetration test is

The OWASP Mobile Application Security Testing Guide (MASTG) uses mobile app security testing as its umbrella term for evaluating an app through static and dynamic analysis, and notes that the industry uses mobile app penetration testing and mobile app security review for roughly the same thing. It also makes a point that buyers often miss: a mobile app test is usually part of a wider assessment that includes the client-server architecture and the server-side APIs the app relies on.

In practice, then, the perimeter has two halves:

  • the app itself, as an APK or AAB on Android and an IPA on iOS, with its code, local storage, permissions, libraries and SDKs;
  • the backend the app calls: authentication endpoints, business APIs, third-party services. Many of the serious findings sit here, because the app shows an attacker exactly which requests the server accepts.

A test that covers only one half answers half the question. Agree in writing which half, or both, is in scope.

The reference framework: OWASP MASVS and MASTG

The OWASP Mobile Application Security (MAS) project, published at mas.owasp.org, provides three connected resources. Knowing the versions helps you read a proposal or a report.

  • MASVS (Mobile Application Security Verification Standard) defines what a secure app should do. The latest release on the project's GitHub is version 2.1.0, published in January 2024, which added the privacy group.
  • MASWE (Mobile Application Security Weakness Enumeration) lists concrete weaknesses. Version 1.0.0, the first stable release, came out in August 2026 with 78 weaknesses.
  • MASTG (Mobile Application Security Testing Guide) describes how to test. Version 2.0.0, released in June 2026, is the first stable release of the refactored guide. The project's release post counts 285 tests, 152 demos, 167 techniques and 135 tools.

The three link together: a MASVS control maps to MASWE weaknesses, and each weakness is checked by platform-specific MASTG tests. That chain is useful for you as a buyer, because a finding labelled with a MASTG test ID and a MASVS control can be traced and retested without interpretation.

The eight MASVS control groups

MASVS 2.1.0 organises its controls into eight groups that describe the mobile attack surface:

  • MASVS-STORAGE: sensitive data stored on the device (data at rest);
  • MASVS-CRYPTO: the cryptographic functions the app uses for sensitive data;
  • MASVS-AUTH: authentication and authorisation mechanisms;
  • MASVS-NETWORK: communication between the app and remote endpoints (data in transit);
  • MASVS-PLATFORM: interaction with the operating system and with other installed apps;
  • MASVS-CODE: secure data processing and keeping the app up to date;
  • MASVS-RESILIENCE: resistance to reverse engineering and tampering;
  • MASVS-PRIVACY: privacy controls for the app's users.

MAS profiles: how deep the test goes

The old verification levels have become MAS testing profiles, each with its own attacker model. MAS-L1 assumes other apps on the device are hostile. MAS-L2 assumes the operating system cannot be trusted and the attacker may have the device in hand. MAS-R assumes the user is the attacker, for example a reverse engineer or a cheater. MAS-P covers privacy rather than an attacker. The project suggests examples: a news app may sit at L1 plus P, while apps handling payment, health or location data sit at L2 plus P. Choosing the profile is a risk decision for you and the provider to make together, and it shapes the scope more than any other single choice.

What gets tested

Static analysis

The tester examines the app without running it: decompiled code or source code, the manifest or Info.plist, declared permissions, embedded libraries and SDKs, hard-coded secrets such as API keys or tokens, and the cryptographic APIs in use. MASTG recommends asking for the source code where possible, because it lets the tester confirm each anomaly at code level and use the testing time better. Automated scanners help here, but MASTG notes that their results need review by a person, because false positives are common.

Dynamic analysis

The tester runs the app on a rooted or jailbroken device, or an emulator, and observes it while it works: files written to the app sandbox, traffic intercepted through a proxy, functions instrumented at runtime with tools such as Frida. MASTG describes dynamic analysis as working both at the platform layer and against the backend services and APIs.

The areas the analysis covers

  • Data storage: credentials, tokens or personal data left in plain text in shared preferences, databases, logs, backups or the keyboard cache.
  • Network communication: TLS configuration, certificate validation, certificate pinning where the risk justifies it, and data sent over channels it should not use.
  • Authentication and sessions: how tokens are issued, stored and revoked, local biometric checks that the server never verifies, and logout that leaves the session alive on the backend.
  • Backend APIs: authorisation on every endpoint, access to other users' objects, business logic that the app enforces only on the client side.
  • Platform interaction: exported components, deep links and custom URL schemes, WebViews, inter-process communication.
  • Resilience: root and jailbreak detection, anti-tampering and obfuscation, where the profile calls for them.

How the engagement runs

MASTG describes a classic mobile penetration test in five steps:

  1. Preparation: scope, applicable controls, testing goals, a shared definition of sensitive data and written authorisation.
  2. Intelligence gathering: the business purpose of the app, its architecture, supported OS versions and the remote services it uses.
  3. Mapping the application: entry points, features and data, with test cases prepared for each.
  4. Exploitation: confirming which weaknesses are real and what they allow.
  5. Reporting: documenting the findings, how they were exploited and what data the tester reached.

A practical detail from the same guide: certificate pinning and root detection can slow testing considerably. MASTG suggests asking the development team for two builds, a release build to check that those controls work and resist bypass, and a debug build with some controls switched off so the rest of the app can be tested efficiently. Decide this at scoping, not on day two of the test.

Mobile app test versus web application test

The two overlap on the backend and differ almost everywhere else:

  • Where the code runs. A web app runs on your servers. A mobile app runs on a device you do not control, so anything inside the package, from keys to business rules, can be extracted.
  • Data on the device. Local storage, caches and backups are a whole test area that a web test does not have.
  • Platform features. Permissions, deep links, inter-process communication and WebViews are specific to Android and iOS, and each platform needs its own tests.
  • Different false positives. MASTG warns that scanners built for browser-based apps often report issues such as CSRF or reflected cross-site scripting that do not apply to a mobile client. A report full of them is a sign the test was run with web tools.
  • Common ground. For the backend, MASVS points to the OWASP Application Security Verification Standard (ASVS). If your app and web portal share the same APIs, one well-scoped API test can serve both.

Our guide to penetration testing services covers the other test types and how they fit together.

What the report should contain

MASTG lists the elements of a good pentest report: an executive summary, the scope and context, the methods used, the sources of information, prioritised findings, detailed findings and recommendations for each issue. For a mobile test, ask for a few more things:

  • the app versions and builds tested, per platform, and the OS versions and devices used;
  • for each finding, the MASVS control and, where applicable, the MASTG test it relates to, so developers and auditors can trace it;
  • reproducible evidence: the request, the file or the code path, and what it exposed;
  • severity that reflects your context, not only a generic score;
  • a retest with the status of each finding after the fixes.

Where EU rules come in

Neither NIS2 nor DORA mentions mobile apps by name, but both reach them through the systems they cover.

NIS2. Article 21(2) of Directive (EU) 2022/2555 includes among the minimum risk-management measures security in network and information systems acquisition, development and maintenance, including vulnerability handling and disclosure (point (e)), and policies and procedures to assess the effectiveness of those measures (point (f)). For an entity whose customers or staff use a mobile app, testing that app is a direct way to produce evidence for both points. National transposing laws add detail, and our NIS2 service page covers the wider picture.

DORA. Under Article 24 of Regulation (EU) 2022/2554, financial entities other than microenterprises run a digital operational resilience testing programme, use independent testers (internal or external), set procedures to prioritise, classify and remedy what the tests reveal, and at least yearly run appropriate tests on all ICT systems and applications supporting critical or important functions. Article 25 lists the tests the programme may include, among them source code reviews where feasible and penetration testing. A banking, insurance or payment app is often exactly that kind of application. More on the framework on our DORA service page.

How to choose a mobile penetration testing provider

  • Do they test both platforms, with real devices? Ask which Android and iOS versions they use and how they handle rooted and jailbroken devices.
  • Is the backend in scope? If the offer covers only the app package, ask who tests the APIs.
  • Which methodology and which profile? A credible answer names the MASVS and MASTG versions and proposes a profile that matches your data.
  • How much is manual? Automated mobile scanners are a starting point. Ask for the split between scanning and manual work.
  • What does a sample report look like? Look for MASVS mapping, evidence and app-specific fixes.
  • Is the retest included? And within what window after delivery.

If you release often, a single annual test leaves most builds untested. A continuous model such as penetration testing as a service can follow the release cycle, alongside vulnerability management for the infrastructure behind the app.

What drives time and effort

Two apps that look similar in the store can need very different effort. The factors that move it:

  • number of platforms: Android and iOS are two test streams, even for a cross-platform app;
  • features, roles and API endpoints in scope;
  • the MAS profile chosen: L2 or R adds tests that L1 does not need;
  • resilience controls such as pinning, root detection and obfuscation, and whether debug builds are available;
  • source code access, which shortens the work and deepens it;
  • test environment: a backend in staging with test accounts for every role, or testing against production;
  • retest included or separate.

A reliable estimate follows a scoping call that fixes these points.

In short: penetration testing for mobile apps looks at the app on the device and at the APIs behind it, through static and dynamic analysis, against OWASP MASVS 2.1.0 and MASTG 2.0.0. Choose the profile on the basis of your data, ask for a report traceable to MASVS controls, and include the retest. AmagisTech runs offensive testing as part of its cybersecurity services. If you want to scope a test for your app, talk to our team.

Frequently asked questions

It covers the app and the backend it calls. Testers analyse the app package statically (code, permissions, libraries, hard-coded secrets) and run it on a test device to check data storage, cryptography, network traffic, authentication, sessions and platform interaction, then test the APIs the app uses. The usual reference is OWASP MASVS for the controls and MASTG for the test procedures.
MASVS is the standard: it defines the security controls a mobile app should meet, in eight groups from storage to privacy, and its latest release is 2.1.0. MASTG is the testing guide: it describes how to verify those controls on Android and iOS, and version 2.0.0, released in June 2026, links every test to a weakness in the MASWE catalogue.
A mobile app runs on a device the attacker controls, so the test covers data stored on the device, the code inside the package and platform features such as permissions, deep links and inter-process communication. The backend APIs are common ground: if the app and a web portal share them, one well-scoped API test can serve both.
An executive summary, scope and context, methods, sources of information, prioritised and detailed findings with recommendations, as MASTG lists. For mobile, also ask for the app builds and OS versions tested, the MASVS control and MASTG test for each finding, reproducible evidence and the retest status of each finding.
Neither names mobile apps. NIS2 Article 21(2) requires security in system development and maintenance, including vulnerability handling, and procedures to assess whether measures work. DORA Article 24 requires financial entities other than microenterprises to test, at least yearly, all ICT systems and applications supporting critical or important functions, and Article 25 lists penetration testing among the tests.

Let's talk about your security.

A 30-minute call to understand where you stand today and tell you, with no commitment, where it pays to start.

Book a call