OWASP MASVS
Verifying a mobile app against the Mobile Application Security Verification Standard
The OWASP Mobile Application Security Verification Standard (MASVS) sets out what a secure Android or iOS app looks like, grouped into control areas like storage, network and authentication. Its companion, the MASTG testing guide, explains how to test each one. Here a reviewer checks a banking app.
Intermediate · 5 steps
| Publisher | OWASP MAS project |
|---|---|
| Current version | MASVS v2 |
| Control groups | STORAGE, CRYPTO, AUTH, NETWORK, PLATFORM, CODE, RESILIENCE, PRIVACY |
| Testing guide | OWASP MASTG |
| Testing profiles | L1, L2, R (resilience) |
| Web counterpart | OWASP ASVS |
Step by step
MASVS-STORAGE Where does sensitive data live?
The reviewer inspects what the app writes to the device. The refresh token is stored in the platform Keystore/Keychain, which is protected by hardware, but a debug log file still contains full API responses with account numbers. That's a finding.
MASVS-NETWORK Can traffic be intercepted?
The reviewer routes the phone through a test proxy with its own certificate authority. The app refuses to connect because it trusts only the system certificates and pins the bank's public key, so the session can't be read or changed in transit.
MASVS-AUTH Who decides you're logged in?
Fingerprint login unlocks a key in the Keystore that signs a challenge from the server, so the server makes the decision. The reviewer also checks that a transfer still needs a fresh server-verified step, rather than a simple "is unlocked" flag inside the app that could be flipped.
MASVS-PLATFORM and CODE How the app talks to the OS
The reviewer checks deep links, exported components and WebViews. A deep link
bank://transfer?to=…opens the transfer screen with fields pre-filled from the link, which another app or a web page could trigger. It still needs confirmation, but should be restricted. Third-party libraries are up to date.RESILIENCE, PRIVACY and the report Extra layers, then results
For a banking app the team also tests the resilience profile: the app detects a rooted device and a modified app and limits what can be done. Privacy controls check that only necessary data is collected. The report maps every result to a MASVS control and a MASTG test.
Best practices
- Store tokens and keys in the Android Keystore or iOS Keychain, never in plain files or preferences
- Use TLS everywhere, validate certificates properly, and consider pinning for high-risk apps
- Do authentication and authorization on the server; the app is under the user's control
- Check exported components, deep links and WebViews for unintended access
- Add resilience controls (root/jailbreak and tamper detection) only on top of the basics
More in Secure Development.
Packets
| No. | Time | Source | Destination | Protocol | Info | Size |
|---|