Skip to content

Mobile banking app security testing with OWASP MASVS

B2Bnetwork team · · 6 min

IT in banking

In brief

A security test of a mobile banking app against OWASP MASVS checks the iOS and Android app in eight control groups: data storage, cryptography, authentication, network communication, platform interaction, code quality, resilience against analysis and tampering, and privacy. MASVS says what the app must meet, and the MASTG guide describes how to check it. For a banking app you usually choose the L2, R and P profiles, test the app together with the API it uses, and run a retest after the fixes.

MASVS, MASTG and MASWE: three documents from one project

The OWASP Mobile Application Security project has three parts that are worth telling apart when you order a test and read the report:

DocumentWhat it containsWhat it is for in a bank
MASVSsecurity requirements for mobile apps, split into control groupsrequirements for the app team and acceptance criteria
MASTGa testing guide: techniques, tools and test cases for iOS and Androidthe scope and method of the test
MASWEa catalog of weaknesses mapped to MASVS controlsdescribing findings in the report in one shared language

Since version 2.0, MASVS has no verification levels. They were replaced by MAS testing profiles, which differ in their assumption about the attacker. L1 assumes that other apps on the device are the adversaries. L2 assumes the operating system cannot be trusted and an attacker may have the device in hand. R treats the device user as the attacker, someone who analyzes and modifies the app. P covers privacy and responsible handling of personal data. For apps with business logic and high-risk data, such as banking apps, OWASP gives the combination of L2, P and R as an example.

The eight control groups in a banking app

MASVS groupWhat it means in a banking appSample test case
STORAGEtokens, customer data and history in device storageis the refresh token stored outside the system keystore
CRYPTOkeys for signing operations, local encryptionis the key generated in secure hardware and impossible to export
AUTHlogin, biometrics, transfer authorizationdoes bypassing the biometric screen give access to data without the server
NETWORKcommunication with the bank's APIdoes the app reject a substituted certificate and pin the server identity
PLATFORMdeep links, WebView, clipboard, screenshotsdoes a link from a text message open the transfer screen with a planted payee
CODEup-to-date libraries, input validationdoes the app force an update when a version has a known vulnerability
RESILIENCEdetecting root, jailbreak, debuggers and tamperingdoes a modified app connect to the production API
PRIVACYdata minimization, consents, analyticsdoes an analytics library send the customer ID to an external service

Functional testing on many devices, device selection and accessibility are covered in Mobile banking apps: how to test across many devices. Here the question is whether the app protects the customer's money and data.

How to plan the test

Five things need to be agreed before the start:

  1. Scope: both platforms, the app version, the features (login, transfers, cards, adding a device, changing limits) and the API the app uses.
  2. Profiles: L2, R and P for a transactional app; L1 with P may be enough for an information-only app without account access.
  3. Builds: a test build with protections switched off makes testing logic easier, but resilience controls must be checked on a build identical to the one in the app store.
  4. Environment and accounts: the bank's test environment with test accounts, cards and limits, and devices with and without root or jailbreak.
  5. Rules of engagement: the time window, an incident contact, and approval for tests on an environment that connects to external systems.

An engineer runs the manual test: static analysis of the app package, observation of network traffic, runtime instrumentation and attempts to bypass protections. A scanner helps find known issues, but it will not tell you whether transfer authorization can be bypassed.

Typical findings and how to fix them

FindingRiskFix
a session token in the app's ordinary preferencessession theft from a backup or a rooted devicethe system keystore, a short token lifetime
customer data in logsleakage through diagnostic toolsremoving sensitive data from logs in the production build
the balance visible in the app switcheranother person reads itmasking the screen when the app goes to the background
no certificate pinninginterception on a network with a substituted certificatepublic key pinning with a rotation plan
transfer authorization only in the appbypass in a modified appserver-side verification of every operation
a deep link without parameter validationa planted payee or amountvalidation and confirmation of the data by the customer

Many of the most serious findings sit not in the app but in the API: no check that the customer may access a given account, or limits enforced only in the interface. That is why the app test also covers the API against the OWASP API Security Top 10, described in API security.

The report, the retest and the release cycle

The report should map every finding to a MASVS control and a MASWE weakness, give the risk, evidence and fix, and include a short summary for the board. After the fixes, a retest closes the list and shows what has been resolved.

A banking app changes every few weeks, so one test a year is not enough. A practical setup:

  • on every release: static analysis and a dependency scan in the CI/CD pipeline;
  • on a larger change (a new login method, a new payment feature): a manual test of the changed scope;
  • periodically: a full test against MASVS for both platforms.

DORA requires financial entities to have a digital operational resilience testing program in which penetration tests are one type of test. A mobile app test therefore belongs in the annual test plan, and its report is evidence for the auditor. The most advanced type of test, run in production, is covered in TLPT and TIBER-EU.

B2Bnetwork engineers run such tests as part of our Security testing service: from agreeing the scope, through manual and tool-based testing, to a report with a risk rating and a retest. A similar scope was covered in our case study on security testing of an insurer's customer portal and app.

Questions and answers

How is MASVS different from the OWASP Top 10?

The OWASP Top 10 is a list of the most common risk categories for web applications. MASVS is a requirements standard for mobile apps, with specific controls and the related MASTG testing guide. A mobile banking app test uses MASVS for the app and the OWASP API Security Top 10 for the API it uses.

How often should a mobile banking app's security be tested?

Static analysis and a library scan on every release, a manual test on every larger change to login, authorization or payments, and a full MASVS test periodically, according to the bank's test plan. The frequency follows from the risk assessment and the DORA testing program, not from the calendar.

Is root and jailbreak detection mandatory?

MASVS places it in the RESILIENCE group, which matters for apps that handle sensitive data. For a banking app it is standard, but it does not replace server-side protection. Detection can be bypassed, so its role is to make attacks harder and provide a risk signal, while decisions about operations are still made on the server.

Does a mobile app test cover the backend?

It should cover the API the app uses, because that is where access control to accounts and authorization of operations live. A full test of the bank's infrastructure and internal systems is usually a separate scope. The boundary should be written down before the start, so the report states clearly what was checked.

What it looks like in a project

Working on banking systems? Talk to an engineer who knows their constraints.

Let's talk

Read more: IT in banking

All in IT in banking →