Mobile app security testing is the process of checking an iOS or Android app, and the services behind it, for weaknesses that could expose user data or let attackers misuse the app. It combines static analysis, dynamic analysis, and manual penetration testing.
Mobile apps hold sensitive data such as payments, health records, and credentials, and they run on devices that attackers can touch, root, or reverse engineer. Testing the app alone is not enough: the APIs and third-party code behind it matter just as much.
This guide shows how to run mobile app testing for security against OWASP's current standards, which tools to use, and which best practices matter most in 2026.
TL;DR
30-second summary
Test against a published standard, not a home-made checklist. OWASP's Mobile Top 10 (2024) names the ten main risk areas, and its MASVS and MASTG define what to verify and how to test it. Combine static analysis, dynamic analysis, and manual penetration testing, test the backend as well as the app, run automated checks on every build, and add manual testing before major releases.
- Standards: the OWASP Mobile Top 10 (2024) for risk categories, MASVS for controls, and MASTG v2.0 for test procedures.
- Methods: static analysis, dynamic analysis, and manual penetration testing find different problems, so use all three.
- Scope: include APIs, third-party SDKs, and the build pipeline, not just the app binary.
- New in 2026: a stable MASTG v2.0, the EU Cyber Resilience Act reporting duty, and AI-generated code reaching production.
- Cadence: automate checks in CI/CD on every build, and schedule manual testing before major releases or when the risk profile changes.
What changed for mobile security testing in 2026

- OWASP MASTG v2.0 is stable. OWASP's mobile project released it in June 2026. Every test now links to a specific weakness and MASVS control, so a finding can be traced from control to weakness to test to demo.
- MASVS includes privacy. The standard now has eight control groups, with privacy sitting alongside storage, cryptography, authentication, network, platform, code, and resilience.
- The OWASP Mobile Top 10 (2024) is still the current list. It replaced the 2016 list, and OWASP still lists it as the final release.
- The EU Cyber Resilience Act reporting duty has started. Since September 11, 2026, manufacturers of products with digital elements must report actively exploited vulnerabilities and severe incidents, with an early warning within 24 hours and a full notification within 72 hours. The rest of the Act applies from December 11, 2027. The European Commission publishes the details, and legal counsel can confirm whether your app is in scope.
- AI-generated code is reaching production. More code is drafted by agents, and that adds a new class of review and testing work, covered below.
Why mobile app security testing matters
A mobile app has three exposure points. The device is one, because attackers can root it, jailbreak it, or instrument the app while it runs. The network is another, because traffic can be intercepted. The backend is the third, because attackers can call APIs directly without using the app at all. A flaw in any of the three can expose user data or enable fraud.
Security testing finds these flaws before release and gives developers specific evidence to fix. It also supports compliance with rules such as GDPR, PCI DSS, and HIPAA, which are covered in the regulations section below.
The OWASP Mobile Top 10 (2024): What to test
Use OWASP's list as the backbone of your test plan, and map every finding to one of its ten categories.
| ID | Risk | What to test |
|---|---|---|
| M1 | Improper Credential Usage | Hardcoded API keys and tokens, credentials in plain text, long-lived secrets shipped in the binary |
| M2 | Inadequate Supply Chain Security | Third-party SDKs and libraries, dependency versions, the build and signing pipeline |
| M3 | Insecure Authentication/Authorization | Login, session handling, biometric flows, server-side permission checks |
| M4 | Insufficient Input/Output Validation | Injection through deep links, WebViews, intents, and API responses |
| M5 | Insecure Communication | TLS settings, certificate validation, pinning, cleartext fallbacks |
| M6 | Inadequate Privacy Controls | Permissions, SDK data sharing, undeclared personal data in network traffic |
| M7 | Insufficient Binary Protections | Reverse engineering, tampering, repackaging, obfuscation |
| M8 | Security Misconfiguration | Debug flags, exported components, backup settings, default configurations |
| M9 | Insecure Data Storage | Local databases, preferences, logs, backups, screenshots |
| M10 | Insufficient Cryptography | Weak algorithms and modes, poor key handling, insecure random numbers |
Source: OWASP Mobile Top 10 2024
MASVS, MASWE, and MASTG: how OWASP's mobile project fits together
OWASP's Mobile Application Security (MAS) project publishes three connected resources. The MASVS says what an app should do, the MASWE catalogs the weaknesses that break those controls, and the MASTG explains how to test for each one.
| Resource | Question it answers | What it contains |
|---|---|---|
| MASVS | What should the app do? | Eight control groups: storage, cryptography, authentication, network, platform, code, resilience, and privacy |
| MASWE | What can go wrong? | Numbered weaknesses, such as MASWE-0004 (sensitive data hardcoded in the app package) and MASWE-0027 (insecure certificate validation) |
| MASTG | How do you test it? | Tests, demos, techniques, and best practices for Android and iOS, linked to the weaknesses above |
MAS Profiles let you set the depth of testing. A standard app can aim for baseline coverage, while high-risk apps such as banking and health apps should add the resilience tests that check root detection, tamper detection, and obfuscation.
Methods and tools for mobile app security testing
No single method catches everything. Static analysis reads the app without running it, dynamic analysis tests the running app, and manual penetration testing adds human judgment.
| Method | What it examines | Best for | Example tools |
|---|---|---|---|
| Static analysis (SAST) | Source code, manifests, binaries, and dependencies, without running the app | Hardcoded secrets, risky configuration, vulnerable libraries, weak cryptography calls | MobSF, Semgrep, SonarQube |
| Dynamic analysis (DAST) | The running app and its network traffic, on a device or emulator | Insecure traffic, TLS and pinning problems, session handling, data stored at runtime | Burp Suite, ZAP, mitmproxy |
| Runtime instrumentation | Hooks into the running app to observe or change its behavior | Checking cryptography and authentication logic, testing resilience controls, tracing API calls | Frida, objection |
| Reverse engineering | Decompiled and disassembled app binaries | Hidden secrets, logic flaws, how easily an attacker could tamper with the app | jadx, apktool, Ghidra, radare2 |
| Manual penetration testing | A tester attacking the app and backend as an attacker would | Chained issues, business logic abuse, anything automated tools miss | A mix of the tools above |
| Interactive testing (IAST) | Instrumented builds that report issues during test runs | Pinpointing where an issue sits in the code during QA | Vendor-specific tools, less common on mobile |
MobSF, the Mobile Security Framework, is a free open-source option that runs static and dynamic analysis on Android and iOS apps. The OWASP MASTG itself uses Semgrep, Frida, and radare2 in its demos, which makes them safe choices to learn first.
Run static analysis on every pull request, because it needs no device and gives fast feedback. Run dynamic checks on release candidates, where the app, backend, and network behave as they will in production. For setup guidance, see our post on integrating security testing into a CI/CD pipeline.
How to test a mobile app for security, step by step

- Define scope, assets, and threats. List the data and features that need the most protection, such as credentials, payments, and personal data. Note which APIs, SDKs, and environments are in scope, and sketch how data moves between the app, the device, and the backend.
- Choose the standard and the depth. Map the scope to the MASVS control groups and pick a MAS profile that matches the app's risk.
- Set up devices and tooling. Use real devices for realistic results, include rooted or jailbroken test devices to see how the app behaves on compromised hardware, and route traffic through an interception proxy.
- Run static analysis. Scan code and binaries for hardcoded secrets, review the Android manifest and iOS property lists for risky settings, and generate a software bill of materials (SBOM) to check dependencies for known vulnerabilities.
- Run dynamic analysis. Intercept traffic to check TLS, certificate validation, and pinning. Test session expiry and token handling. Inspect local storage, logs, backups, and screenshots for sensitive data, and send malformed input through deep links and WebViews.
- Test the backend and APIs. Check authentication, authorization, and rate limits directly on the API, because attackers will skip the app. Our API testing team covers this layer.
- Add manual penetration testing and resilience checks. Try to chain issues, bypass local authentication, hook functions at runtime, and repackage the app. For high-risk apps, also test root and jailbreak detection and anti-tampering controls.
- Report, fix, and retest. Rank findings by severity, link each to its OWASP and MASVS category, retest every fix, and add automated checks so the issue cannot return. Regression testing keeps fixed issues fixed.
Android and iOS: platform-specific checks
The same risk categories apply on both platforms, but the places to look differ.
| Area | Android | iOS |
|---|---|---|
| Local data | SharedPreferences, SQLite, DataStore, external storage | UserDefaults, Core Data, files in the app sandbox |
| Key and secret storage | Android Keystore | Keychain |
| Backups | Backup rules and which files they include | Which sensitive files are eligible for backup |
| Inter-app communication | Intents, exported activities, services, and broadcast receivers, PendingIntents | Custom URL schemes, universal links, app extensions |
| Network settings | Network Security Configuration, certificate pinning | App Transport Security (ATS) configuration, server trust evaluation |
| WebViews | JavaScript and file access settings, JavaScript bridges | WKWebView settings, native bridges |
| Debug and build settings | Debuggable flag, APK signing scheme, minimum SDK version | Debuggable entitlement, code signing, compiler protections |
Source: the OWASP MASTG
Best practices for mobile app security testing
- Test against a standard. Map every test and finding to the MASVS and the OWASP Mobile Top 10, so results are comparable between releases and between testers.
- Shift security left. Run secret scanning, dependency checks, and static analysis in CI/CD, and fix findings while the code is fresh. Our post on shift-left and shift-right testing explains the approach.
- Test the backend with the app. The app is only a client. Check authorization on every API object and function, not just in the interface.
- Treat third-party code as attack surface. Track SDK and library versions with an SBOM, check them against known vulnerabilities, and review every new package before it ships.
- Keep secrets off the device. Store tokens in the Android Keystore or iOS Keychain, never in code, and rotate any credential that has shipped inside a binary.
- Test on real devices and several OS versions. Behavior differs by version, vendor, and device state, and testing on one device is a risky strategy.
- Match resilience controls to risk. Banking, payment, and health apps should resist tampering and runtime hooking. A low-risk app may not need the same controls, so let your threat model decide.
- Test privacy as well as security. Check permissions, what data SDKs send, and whether network traffic carries personal data the app does not declare. Our post on GDPR and cookie law compliance testing covers the legal side.
- Combine automated and manual testing. Automation gives coverage on every build, and manual testing finds chained and business-logic issues. Schedule a manual penetration test before a public release and before and after major updates.
AI-generated code adds new risks to test for
GitHub's Octoverse 2026 reports that more than 40% of pull requests started with an agent's first draft by September 2026, up from 17% in March. Stack Overflow's 2026 survey shows what that costs. Respondents named the AI mistakes that cost them the most time:
| AI mistake | Share of respondents |
|---|---|
| Plausible but wrong code | 69.3% |
| Hallucinated package or config | 45.1% |
| Outdated APIs | 33.9% |
| Security or privacy issue | 23.5% |
Source: Stack Overflow Developer Survey 2026
Treat AI-written code like code from an unknown contributor. Run it through the same static analysis, secret scanning, and dependency checks as everything else. A package name that a model invents can be claimed by an attacker, so verify every dependency before it ships. Our guides to AI hallucinations in software testing, vibe coding risks and benefits, and AI in software testing go deeper.
Find the vulnerabilities before attackers do
TestDevLab runs security audits based on OWASP methodologies and penetration tests for iOS and Android apps. You get a clear list of findings to fix before release.
Regulations and standards that affect mobile app security testing
| Rule | Applies to | Why it matters for testing |
|---|---|---|
| GDPR | Personal data of people in the EU | Check permissions, SDK data sharing, consent flows, and data in transit and at rest |
| HIPAA | Health information in the US | Protect health data in storage and transit, as in healthcare apps |
| PCI DSS | Payment card data | Secure handling of card data in apps built for banking, financial services, and insurance |
| EU Cyber Resilience Act | Products with digital elements sold in the EU | Reporting of actively exploited vulnerabilities and severe incidents from September 11, 2026, and most other obligations from December 11, 2027 |
Which rules apply depends on your app, your users, and your markets. Keep test reports mapped to MASVS as part of your compliance record, and see the Commission's CRA page for scope.
Final thoughts
Mobile app security testing works best as a routine, not a one-off project. Anchor it in OWASP's standards, automate what you can in CI/CD, test the backend together with the app, and bring in manual penetration testing where the risk is highest. In 2026, add two checks to the routine: a review of AI-generated code and dependencies, and a record of your testing that supports duties such as CRA reporting.
FAQ
Most common questions
What is mobile app security testing?
Mobile app security testing checks an iOS or Android app, and the services behind it, for weaknesses that could expose user data or let attackers misuse the app. It combines static analysis, dynamic analysis, and manual penetration testing.
What is the OWASP Mobile Top 10?
It is OWASP's list of the ten main risk categories for mobile apps. The current edition is the 2024 release: improper credential usage, inadequate supply chain security, 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.
What is the difference between MASVS and MASTG?
The MASVS is the standard that defines the security controls a mobile app should meet. The MASTG is the guide that explains how to test those controls on Android and iOS. The MASWE sits between them and catalogs the weaknesses. MASTG v2.0 was released in June 2026.
How often should you test a mobile app's security?
Run automated checks on every build. Schedule a manual penetration test before a public release and before and after major updates, and test again after any security incident.
Does the EU Cyber Resilience Act apply to mobile apps?
Possibly. The Act covers hardware and software products with digital elements sold in the EU, and manufacturers must report actively exploited vulnerabilities and severe incidents from September 11, 2026. Whether a given app is in scope depends on how it is offered, so confirm with legal counsel.
Launch with confidence in your app's security
TestDevLab's QA engineers test your iOS and Android apps, their APIs, and the way they handle user data. You get clear findings your team can act on.





