OWASP MASVS and MASTG

OWASP’s mobile verification pair: MASVS is the standard of security requirements a mobile app must meet, and MASTG is the testing guide that says how to verify each one.

What they are

Both belong to the OWASP Mobile Application Security (MAS) flagship project, which also publishes MASWE, a list of mobile-specific security and privacy weaknesses (OWASP MAS).

  • MASVS (Mobile Application Security Verification Standard). A checklist of requirements, each with an ID (e.g. MASVS-STORAGE-1, “the app securely stores sensitive data”) and a pass/fail criterion. It gives auditors, developers and customers a shared vocabulary (AppSec Santa).
  • MASTG (Mobile Application Security Testing Guide). A manual for mobile app security testing and reverse engineering that describes how to verify the MASVS controls through the MASWE weaknesses. It is split into Knowledge, Tests, Techniques, Demos, Tools, Apps and Best Practices (OWASP MASTG).

The chain is MASVS control → MASWE weakness → MASTG test. A MASTG test case says what to look for, which tools to use, how to reproduce on iOS and Android, and what a passing implementation looks like (AppSec Santa).

MASVS control groups

MASVS v2.1.0 has eight control groups (Vervali):

GroupCoversTypical findings
STORAGESensitive data on the device: files, logs, backups, clipboard, cachesTokens in SharedPreferences/NSUserDefaults. AppSec Santa says this group yields the most findings
CRYPTOPrimitives and key management through Keystore / Secure EnclaveAES-GCM with a key baked into the binary, where the key storage is the flaw
AUTHCredentials, biometrics, sessions, server-side authZClient-side role checks that Frida can flip, and biometric prompts that only release a boolean
NETWORKTLS ≥1.2, certificate validation, pinningTrusting a user CA. The tester measures how hard the pinning is to bypass
PLATFORMIPC, URL schemes, Universal/App Links, WebViews, permissionsExported components without permission checks
CODEBuild config, debug flags, error handling, third-party librariesDebuggable builds, outdated or over-privileged SDKs
RESILIENCEObfuscation, anti-tamper, root/jailbreak, debugger and hook detectionRepackaged builds that still run, and detections that are removed in seconds
PRIVACYLimiting sensitive-data access and giving users control over personal dataAnalytics, crash and ad SDKs that see every screen

Sources: AppSec Santa, Atlant Security, Vervali.

Levels. Two secondary guides describe MASVS as having L1 (baseline, for every app), L2 (defense-in-depth, for banking, health and payment apps) and a separate R (resilience against reverse engineering) category (AppSec Santa, 42gears). Vervali says financial and healthcare apps need “MASVS Level 2”. MASTG itself still refers to the anti-reversing controls as MASVS-R: if an app claims those protections, testers run a resilience assessment in which they play the reverse engineer and try to bypass them (MASTG tampering chapter). Vervali’s description of v2.1.0 lists only the control groups and does not mention levels, so check the live standard before you cite a level.

What’s in the MASTG

Each kind of content in the MASTG has its own ID scheme:

  • Tests, MASTG-TEST-xxxx, grouped by platform and MASVS group. Examples: MASTG-TEST-0001 checks local storage on Android by inspecting /data/data/<pkg>/ (SharedPreferences, SQLite, cache) with adb, sqlite3 or objection. MASTG-TEST-0022 covers custom certificate stores and pinning. MASTG-TEST-0236 covers cleartext traffic. MASTG-TEST-0028 covers Android deep links (AppSec Santa, MASTG-TECH-0012, MASTG-TOOL-0031).
  • Techniques, MASTG-TECH-xxxx. For example, MASTG-TECH-0012 bypasses certificate pinning with frida-multiple-unpinning, objection’s android sslpinning disable, Xposed modules, or by statically patching the pins or truststore (MASTG-TECH-0012).
  • Tools, MASTG-TOOL-xxxx. For example, MASTG-TOOL-0031 is Frida, with objection as -0038 and Fridump as -0106. The Frida page links back to the tests and techniques that use it (MASTG-TOOL-0031).
  • Knowledge, MASTG-KNOW-xxxx, and platform setup chapters. For example, the iOS chapter’s lab needs a macOS host, Xcode, a jailbroken device and an interception proxy (MASTG iOS testing).

Relation to the Mobile Top 10

The OWASP Mobile Top 10 is an awareness list that says what to worry about. MASVS turns those risks into testable requirements, and MASTG says how to test them. Guides recommend using MASVS alongside the Top 10 (42gears). Pentest vendors tag each finding with both its MASVS control and its Top 10 category, and add PCI DSS, HIPAA, SOC 2, GDPR or ISO 27001 clauses for auditors (Atlant Security). Some sources map MASVS groups onto threat areas, for example third-party SDK audits to MASVS-CODE and obfuscation or anti-tamper to MASVS-RESILIENCE (Vervali).

How teams use them

  • Requirements and scoping. Use MASVS to define the requirements and MASTG to choose the verification techniques (Advanced Mobile Pentesting lab). Before running tests, decide what counts as “sensitive data” for this app, such as payment tokens or medical records (AppSec Santa).
  • Test plan and evidence. Keep a tracker with one row per MASVS requirement: pass, fail, N/A or not tested, plus the MASTG test ID, platform, evidence and remediation status. That tracker becomes the compliance artifact (AppSec Santa).
  • Cadence. AppSec Santa suggests running a scanner on every build with gates that block a release when STORAGE or CRYPTO requirements fail. Add a manual MASTG pass before major releases, about one to three days per platform, and a full MASVS review every quarter. 42gears puts a full-MASVS enterprise assessment at two to three weeks (AppSec Santa, 42gears).
  • Reporting at scale. NowSecure groups its findings across hundreds of apps by MASVS group: NETWORK, STORAGE plus PLATFORM for broad FileProviders, PLATFORM for WebView bridges, and CRYPTO plus STORAGE for hardcoded keys, which it links to MASWE-0003 (NowSecure).
  • Defensive libraries. RASP SDKs document which MASVS-RESILIENCE controls they cover. MobShield, for example, maps each Android and iOS module to the same controls (MobShield).

Mapping to tooling

No single tool covers every MASVS requirement (AppSec Santa):

  • MobSF is open source. Its static analysis covers STORAGE, CRYPTO, CODE and parts of NETWORK and PLATFORM, and dynamic mode adds runtime checks. It is the usual choice for automated baseline checks and has a REST API for CI.
  • NowSecure covers all groups.
  • AppKnox covers STORAGE, CRYPTO, NETWORK, CODE and part of AUTH, and also maps findings to PCI-DSS and HIPAA.
  • Oversecured is strongest on STORAGE, PLATFORM and CODE.
  • Zimperium zScan covers NETWORK and RESILIENCE.
  • Automated scanners handle presence checks. Proving that pinning or detection survives a Frida bypass needs a human with a device.

mobsfscan rules still carry legacy MSTG-* IDs (e.g. MSTG-STORAGE-3, MSTG-NETWORK-4, MSTG-RESILIENCE-1) next to 2016-era Mobile Top 10 labels (mobsfscan). Expect to translate these IDs when you combine tool output with a current MASVS tracker.

Versions and notable changes

  • MSTG became MASTG in the 2023 refactor, and the test IDs were completely restructured (AppSec Santa).
  • MASVS v2.1.0 (18 Jan 2024) added the MASVS-PRIVACY group, bringing the total to eight (Vervali).
  • MASTG’s last numbered release is v1.7.0 (31 Oct 2023). The guide has since become a continuously updated web edition on mas.owasp.org, organised by MASVS group. Vervali advises treating the live edition as authoritative and recording the exact control IDs tested against (Vervali).
  • MASTG v2 tests are replacing the v1 tests. Deprecated v1 pages such as MASTG-TEST-0070 (iOS Universal Links, MASVS-PLATFORM-1) are marked “should not be used anymore” and point to their v2 replacements (MASTG-TEST-0070).

Sources