Device security

What Is Mobile Application Security Testing (MAST)?

MAST tests the compiled app your users actually install, on a real device, behind the login. Here is how it works, what it finds, and how to run it in CI.

Cysoro Security TeamPublished · 9 min read
Storage ✓Crypto ✓Network 1 issueAuth ✓ Hardcoded key found DEVICE SECURITY Mobile app security testing Test the app users install
Quick answer

Mobile application security testing, or MAST, finds security and privacy flaws in iOS and Android apps before and after release. It analyzes the compiled app binary, runs the app on a real device to see how it stores data, handles logins and talks to APIs, and inspects the third-party SDKs bundled inside it. OWASP MASVS defines the requirements a secure app should meet, and OWASP MASTG defines how to test against them.

Key takeaways

  • MAST tests the compiled app on a real device, not just the source code, so it finds flaws source scanners miss.
  • OWASP MASVS sets the requirements and MASTG sets the test method, with eight security domains to cover.
  • Run automated MAST on every build in CI, and add human penetration testing for major releases and high-risk apps.

Your users install a compiled app on a device you do not control. Anyone can download it, decompile it, attach a debugger and watch its traffic. Mobile application security testing exists to find what that person would find, before they do.

What is mobile application security testing?

Mobile application security testing, or MAST, is the process of finding security and privacy flaws in iOS and Android apps. It analyzes the compiled app binary, runs the app on a device to see how it stores data, handles logins and talks to APIs, and inspects the third-party SDKs bundled inside it.

MAST is its own category because mobile apps run on devices you do not control. A web app runs on a server you control, with a browser as the client. A mobile app inverts that: the client runs on a device the user, and any attacker who gets that device, fully controls.

That hostile-client assumption changes everything. Testing must assume the app can be taken apart, its storage read, its traffic intercepted and its code modified, and then check whether any of that actually exposes data or functionality.

How is MAST different from SAST, DAST and penetration testing?

MAST, SAST, DAST and penetration testing answer different questions, and most mobile programs need more than one of them.

ApproachWhat it testsWhere it falls short for mobileWhere it fits
SASTSource code in the repositoryNever sees the compiled app, bundled SDKs or runtime behaviorCode checks in pull requests
Web DASTA running web app or API, from outsideCannot run a mobile app or inspect on-device storageBackend and API testing
MASTThe compiled app, statically and on a deviceAutomation does not replace a human for novel business logic abuseEvery build, in CI/CD
Mobile pen testingThe app, attacked by a skilled humanToo slow and costly to run on every buildMajor releases and high-risk apps

Source-code scanners test what your developers wrote. MAST tests the app your users actually install, including everything added at build time and everything bundled inside it. That is why teams run both: SAST catches code issues early, and MAST catches what survives into the shipped binary.

Four layers of mobile app security testing1. Binary SASTReads source andcompiled binarywithout running it2. Dynamic DASTRuns the app on areal device, logged inwatches behavior3. API testingChecks every APIthe app calls andits auth checks4. SDK inventoryLists every SDK,its vulnerabilitiesand its data flows
The four layers of mobile application security testing. Illustration by Cysoro.

What are OWASP MASVS and MASTG?

OWASP MASVS, the Mobile Application Security Verification Standard, defines the security requirements a mobile app should meet. OWASP MASTG, the Mobile Application Security Testing Guide, defines how to test against them.

The OWASP Mobile Application Security project recommends starting with MASVS to define what secure means for your app, then using MASTG as the baseline for manual testing or as a template for automated tests during or after development. MASVS requirements can be used in planning and architecture, while MASTG test cases apply during testing.

MASTG v2.0.0, released in 2026, is the first stable release of the fully refactored guide. It connects each requirement to specific weaknesses in the MASWE catalog and to concrete, runnable test cases, so a compliance requirement can be traced all the way to a test on a real device.

What are the eight OWASP MASVS domains?

A complete MAST test covers the eight OWASP MASVS domains, plus the APIs the app calls and every third-party SDK embedded in the build.

  • Storage: sensitive data must not leak through local storage, logs, caches, backups or the keyboard cache, and keys must live in the platform keystore.
  • Cryptography: the app must use proven libraries, proper primitives and a suitable random number generator, not custom or weak crypto.
  • Authentication: session tokens, biometric unlock and OAuth2 flows must be implemented correctly, with tokens that cannot be reused after logout.
  • Network communication: the app must use TLS with appropriate settings, and certificate pinning must actually work, not just be present.
  • Platform interaction: permissions, inter-process communication and exported components must not expose data or functionality to other apps.
  • Code quality: release builds must be hardened, with compiler protections and exploit mitigations enabled.
  • Resilience: anti-tampering and anti-reversing controls, such as obfuscation, root and jailbreak detection and runtime checks, where the threat model needs them.
  • Privacy: personal data collection, sharing and retention must match the app's privacy promises and the law.

MASVS also defines testing profiles that tailor the controls to the app's risk: the baseline profile is what every app should meet, and deeper profiles add checks for apps handling sensitive data or functionality. If your app handles payments or health data, test beyond the baseline.

What are the OWASP Mobile Top 10 risks?

The OWASP Mobile Top 10, last updated in 2024, names the ten most critical mobile application security risks. MAST programs test apps against all ten.

Improper credential usage sits at number one: hardcoded passwords, API keys and tokens left in the app package, where anyone who downloads the app can extract them. Inadequate supply chain security is second, covering vulnerable or malicious SDKs and libraries bundled into the app.

The rest of the list covers insecure authentication and authorization, insufficient input and output validation, insecure communication, inadequate privacy controls, insufficient binary protections, security misconfiguration, insecure data storage and insufficient cryptography. A good MAST report maps each finding to the relevant Top 10 risk and MASVS requirement, so developers can see why it matters.

Testing behind the login matters more than most teams expect. NowSecure research found that authenticated mobile app security testing finds 78 percent more sensitive data risk than unauthenticated testing, because most sensitive behavior only happens after login.

What methods does MAST use?

No single method covers a mobile app. MAST runs several methods across the lifecycle, each catching what the others miss.

Static analysis (SAST)

Static analysis reads the source code or the compiled binary without executing it. It catches hardcoded secrets, weak cryptographic calls and risky platform API use before anything is released. Tools such as MobSF analyze APK and IPA files this way.

Dynamic analysis (DAST)

Dynamic analysis observes the running app on a device or emulator. It finds issues that only appear at runtime, such as broken certificate pinning, data written to unprotected storage, and logic flaws reachable through instrumentation tools such as Frida.

Interactive analysis (IAST) and API testing

Interactive testing instruments the running app and watches its internal behavior, while API testing probes the backend endpoints the app calls. Almost every mobile app talks to a backend, and those services are prone to the same attacks as web apps, so backend testing is part of MAST, not a separate job.

Manual penetration testing

Manual testing adds a human who attacks business logic, chains findings together and tries the abuse cases automation cannot imagine. It is too slow for every build, so teams reserve it for major releases, high-risk apps and compliance deadlines. Learn how to spot a compromised device in our guide to knowing if your phone is hacked.

How MAST runs from build to fix1. UploadIPA or APK2. AnalyzeBinary and SDKs3. RunOn real devices4. ReportMapped to MASVS5. FixWith evidenceEvery finding ships with the file, the runtime behavioror the captured request that proves it, plus a fix.Risk-based release policies decide which findings block a release.
How MAST runs from build upload to fix. Illustration by Cysoro.

What does MAST actually find?

The most common findings are unglamorous: session tokens in logs, personal data in unprotected storage, hardcoded API keys, weak TLS, bypassable certificate pinning and data sent to the wrong endpoint.

Third-party SDKs are a growing source of risk. Analytics, advertising, payment and AI SDKs become part of the app you ship, running with the same access to user data as your own code. MAST inventories every component inside the compiled app and watches what each one does at runtime, including which AI services receive user prompts.

AI features deserve special attention in 2026. Mobile apps now embed AI models, call third-party AI services and send user prompts off the device, sometimes through SDKs the security team has not reviewed. MAST should detect AI SDKs and models inside apps and show what data flows to them.

How do you run MAST in CI/CD?

Automated MAST belongs on every build. Connect it to your pipeline so tests start when a build is created, findings go to the developers' ticketing system, and risk-based policies decide which findings block a release.

  1. Test every release candidate. Upload the IPA or APK automatically from GitHub Actions, GitLab, Azure DevOps, Jenkins, CircleCI or Bitrise.
  2. Test behind the login. Give the tester valid credentials so it exercises authenticated flows, where most sensitive data risk lives.
  3. Map findings to MASVS. Every finding should name the requirement it violates and the evidence that proves it.
  4. Gate on risk, not count. Block releases only on findings above a threshold, or teams will learn to ignore the tool.
  5. Retest on change. New builds, updated SDKs, changed security controls and new AI features all need a fresh test.

Manual testing still has a place. Add a deeper manual test before major releases and after significant changes to authentication, payments, sensitive data handling or third-party SDKs. High-risk apps in banking, healthcare and government usually need both on a fixed schedule set by their compliance requirements.

How do you choose a MAST tool?

Test shortlisted vendors against one of your own apps. Compare coverage of the compiled binary, real-device dynamic analysis, testing behind the login, SDK and API visibility, false-positive rates, CI integrations, mapping to OWASP MASVS and access to expert pen testers when you need them.

Check findings against both static evidence from the binary and dynamic evidence from the running app before they reach developers. A tool that floods the backlog with unproven findings gets switched off, so evidence quality matters as much as coverage.

Also check the platform differences. iOS testing deals with IPA files, the keychain and App Transport Security. Android testing deals with APKs, the keystore, exported components and intents. OWASP MASVS applies to both, and MASTG documents platform-specific test cases for each. You can check the backend side of your app with our free security headers checker.

What mistakes should you avoid?

The most common mistake is testing only the source code and calling it mobile security testing. Source scanning never sees the compiled app, bundled SDKs or runtime behavior, which is where most mobile risk lives.

Other mistakes include testing unauthenticated only, testing on emulators and assuming the results match real devices, ignoring SDKs because you did not write them, and treating a clean scan as proof the app is secure. A clean automated scan means the automated checks passed; it does not mean a human attacker found nothing.

Do not ship secrets in the appAny API key, token or password inside the app package can be extracted by anyone who downloads the app. Move secrets to the backend and use short-lived tokens instead.

Finally, do not forget the backend. A secure app talking to an insecure API is still insecure. Test the API with the same rigor as the app, and check your TLS configuration with our free SSL checker.

The bottom line

MAST tests the app your users actually install: the compiled binary, on a real device, behind the login, with every SDK inside it. OWASP MASVS tells you what secure means, and MASTG tells you how to test for it.

Run automated MAST on every build, add human testing for major releases, and treat SDKs and AI features as part of your app, not someone else's problem. Start by checking your app's backend with the free SSL checker.

Frequently asked questions

What is mobile application security testing in simple terms?

It is security testing for iOS and Android apps. Testers analyze the compiled app, run it on a real phone, check how it stores data and talks to its backend, and look for flaws an attacker could exploit after downloading the app.

What is the difference between MAST and SAST?

SAST scans source code in the repository. MAST tests the compiled iOS or Android app, both by analyzing the binary and by running it on a device. MAST finds issues SAST cannot see, such as bundled SDKs, secrets added at build time and on-device data storage.

What does OWASP MASVS cover?

MASVS defines the security requirements a mobile app should meet across eight domains: storage, cryptography, authentication, network communication, platform interaction, code quality, resilience against reverse engineering, and privacy.

How often should mobile apps be security tested?

Run automated testing on every build or release candidate. Add a deeper manual test before major releases and after significant changes to authentication, payments, sensitive data handling or third-party SDKs.

Why test mobile apps on real devices instead of emulators?

Certificate pinning, root and jailbreak detection, keychain and keystore handling and many SDK behaviors only work as they do in production on physical hardware. Emulators change how the app behaves, so results can miss issues real users face.

What are the most common mobile app vulnerabilities?

The OWASP Mobile Top 10 for 2024 lists improper credential usage first, followed by inadequate supply chain security, insecure authentication and authorization, and insufficient input and output validation, among others.

Can mobile app security testing run in a CI pipeline?

Yes. Modern MAST tools integrate with GitHub Actions, GitLab, Azure DevOps, Jenkins, CircleCI and Bitrise. Tests start when a build is created, and findings go to the developers ticketing system, with risk-based policies deciding which findings block a release.

Sources

  1. OWASP — Introduction to the Mobile Application Security Project
  2. OWASP — Using the MASVS
  3. OWASP — MASTG v2.0.0 release
  4. OWASP — Mobile Top 10 2024
  5. NowSecure — Mobile app security testing
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against the OWASP Mobile Application Security project (MASVS, MASTG and the Mobile Top 10 2024) and NowSecure's MAST overview.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free