New user dealGet a quick pentest for $100.89 $10.89. New user deal.Claim it →
← All articles

Android App Vulnerability Scanner: A Practical Guide

An Android app vulnerability scanner takes your APK (or AAB), unpacks it, and checks the manifest, bytecode, resources and bundled files against known weak patterns: exported components, cleartext traffic, hardcoded secrets, weak crypto calls, debuggable builds. It is fast and cheap enough to run on every release. It cannot judge your business logic or your backend, so treat it as a first filter, not a verdict.

This guide is about the tooling side: what scanners look at, how to run an open-source one, how to map results to the OWASP mobile standards, and where you still need a human. For the broader question of scoping a full mobile engagement, see our mobile app penetration testing guide.

What an Android app vulnerability scanner actually analyzes

An APK is a ZIP archive. A scanner reads these parts of it:

  • AndroidManifest.xml: permissions, exported components, debuggable, backup flags, the network security config reference.
  • DEX bytecode (decompiled to Java/Smali): calls to crypto APIs, WebView settings, logging, SQL construction, custom TrustManager implementations.
  • Resources and assets: strings, XML configs, bundled JSON, embedded certificates and keystores.
  • Native libraries (.so): usually only shallow checks like hardening flags and embedded strings.
  • Hybrid code: for React Native, Cordova and similar apps, the JavaScript bundle is where much of your logic and many of your secrets live.

This is static analysis. Dynamic analysis runs the app on an emulator or device and watches traffic, storage and runtime behavior. Many tools do both; the findings differ, and so does the effort required. If the SAST/DAST distinction is fuzzy, SAST vs DAST covers it.

The standard to measure against: OWASP MASVS and MASTG

Don't let a scanner's own rule list define "secure". The OWASP MASVS is the Mobile Application Security Verification Standard, and it groups controls into eight areas:

MASVS groupWhat it covers
STORAGESensitive data at rest on the device
CRYPTOCryptography protecting sensitive data
AUTHAuthentication and authorization mechanisms
NETWORKCommunication between app and remote endpoints
PLATFORMInteraction with the OS and other installed apps
CODEData processing and keeping the app up to date
RESILIENCEResistance to reverse engineering and tampering
PRIVACYControls protecting user privacy

The OWASP MASTG (Mobile Application Security Testing Guide) is the companion that describes how to verify those controls, with Android-specific tests organized under each MASVS group. A practical use: take your scanner report, tag each finding with a MASVS group, and note which groups have no coverage at all. Those gaps are your manual-testing scope.

Running MobSF, the open-source option

MobSF (Mobile Security Framework) is a GPL-3.0 licensed framework that does static and dynamic analysis for Android, iOS and Windows apps, and exposes REST APIs and CLI tools for CI/CD use. According to its README, the static analyzer accepts APK, APKS, XAPK, AAB, JAR, AAR, DEX and SO files, plus source code as a ZIP, and handles JavaScript bundles (including Hermes bytecode) inside hybrid apps built with React Native, Cordova, Capacitor and similar frameworks.

The quickest way to try it is the Docker image listed on the project page:

docker run -it --rm -p 8000:8000 opensecurity/mobile-security-framework-mobsf:latest

Then open http://localhost:8000 and upload a build you own. Only scan APKs you built or are authorized to test; downloading a competitor's app and probing its backend is a different matter, and static analysis of the file alone is still subject to the app's license terms.

Cheap checks you can do without any scanner

Before reaching for a tool, two read-only commands from the Android SDK tell you a lot. These assume aapt and apkanalyzer from the SDK build-tools and command-line tools are on your PATH:

# Declared permissions
aapt dump permissions app-release.apk

# Full decoded manifest: look for debuggable, allowBackup, exported components
apkanalyzer manifest print app-release.apk

Check the manifest for android:debuggable="true" on a release build, android:allowBackup="true" when the app stores sensitive data, android:usesCleartextTraffic="true", and any <activity>, <service>, <receiver> or <provider> with android:exported="true" that does not need to be reachable by other apps.

What static scanning catches well

These are patterns a scanner can match reliably, because they are visible in the file itself:

  1. Misconfigured manifest flags. Debuggable release builds, permissive backup settings, unprotected exported components.
  2. Cleartext and weak transport settings. Android's network security configuration lets an app opt out of cleartext traffic, restrict trusted CAs and pin certificates. A scanner can flag a missing config, a cleartext allowance, or a base-config that trusts user-added CAs. Per the Android docs, apps targeting Android 6.0 (API 23) and lower trust the user-added CA store by default, so the target SDK matters here.
  3. Hardcoded secrets. API keys, tokens, and credentials in strings.xml, assets, or the code itself. These are the findings that most often turn into real incidents, because anyone who downloads your app can extract them in minutes.
  4. Weak crypto usage. ECB mode, static IVs, MD5/SHA-1 for security purposes, hardcoded keys.
  5. Dangerous API use. WebView with JavaScript enabled and an exposed JavascriptInterface, world-readable files, logging of sensitive values, custom trust managers that accept every certificate.
  6. Known vulnerable libraries, where the tool has a dependency database and can fingerprint the bundled versions.

What static scanning does not catch

This is the part vendors rarely lead with. A clean scan means "no known bad patterns were found", not "the app is secure".

GapWhy a scanner misses it
Broken access control / IDORThe flaw is in the server's authorization logic, not in the APK
Business-logic abuseNeeds understanding of what the app is supposed to do
Backend API vulnerabilitiesThe APK only shows endpoints, not how the server behaves
Runtime-only behaviorDynamically loaded code, runtime-decrypted strings, conditional paths
Certificate pinning bypassRequires instrumenting a running app
Real exploitabilityA scanner flags an exported component; a human confirms whether it leaks anything
False positivesPattern matching flags test keys, dead code and library internals

The backend point deserves emphasis. Most serious mobile bugs end up being API bugs: the app is a client, and an attacker can ignore it entirely and talk to the API directly. Our API security testing guide covers that side. Scanner findings from the APK are a useful way to discover endpoints, but the testing happens against the server.

A workable scanning workflow

A pragmatic setup for a small team shipping an Android app:

  1. On every release candidate, scan the signed release build (not the debug build, since flags differ) with MobSF or a similar tool, and fail the pipeline on high-severity findings you have agreed on in advance.
  2. Triage, don't dump. For each finding record: MASVS group, real or false positive, owner, fix or accepted-risk note. A 200-line report nobody triages is worse than a 10-line one that is.
  3. Search for secrets separately. Hardcoded keys deserve their own pass, including the JavaScript layer for hybrid apps. If your Android app has a web counterpart, the same keys often appear in both.
  4. Test the backend the app talks to. Pull endpoints from the scan, then test authentication, authorization and rate limits on the API.
  5. Add manual testing for the MASVS groups the scanner can't verify (AUTH, PLATFORM, RESILIENCE where relevant), at least before major releases or an enterprise security review.

How often to repeat the manual step depends on release cadence; how often should you pentest gives a framework.

Where SecurityInfinity fits

SecurityInfinity has an Android binary analysis scanner for Android apps, and an iOS app audit scanner if you ship on both platforms. Beyond the app binary, the surrounding attack surface matters: the platform's autonomous agents run recon, web, network and secrets checks against domains you have verified you own, scans are read-only, and each finding comes with evidence and exact remediation ordered by severity. That is useful for the API and web infrastructure your app depends on.

For a one-time, engineer-verified assessment, the Startup Pentest covers the external attack surface of web apps, APIs, subdomains and cloud exposure from $499 per application, and the authenticated option from $999 per application adds testing across every user role, including access-control and IDOR review. See pricing for the continuous scanning plans.

Choosing between scanner types

NeedReasonable choice
Free first pass on an APKMobSF static analysis
Gate on every CI buildA scanner with a CLI or REST API (MobSF offers both)
Compliance evidence for a questionnaireScanner output plus a human-verified report; see vulnerability assessment vs penetration testing
Confidence in authorization and logicManual or authenticated pentest of the backend

Next step

If you want to see what an automated scan finds on the web and API side of your product, start a scan. If you need a report a customer will accept, look at the Startup Pentest.

Frequently asked questions

What is the best Android app vulnerability scanner?

There is no single best one. MobSF is the most widely used open-source option and covers both static and dynamic analysis. Commercial tools trade cost for support, reporting and integrations. Pick based on whether it fits your CI pipeline and whether its findings map to OWASP MASVS.

Can a scanner find all vulnerabilities in an Android app?

No. Static scanners find pattern-based issues in the APK, such as insecure manifest flags, hardcoded secrets and weak crypto. They don't find broken access control, business-logic flaws or most backend API bugs, which require manual testing against the running service.

Is MobSF free to use?

Yes. The project is open source under GPL-3.0 and you can self-host it with Docker. Check the repository's license terms if you plan to embed it in a commercial product rather than just run it internally.

What is the difference between OWASP MASVS and MASTG?

MASVS is the standard: a list of security controls grouped into areas like storage, crypto and network. MASTG is the testing guide that explains how to verify each control on a real app. You use MASVS to decide what to check and MASTG to learn how.

Do I need a scanner if I already do penetration testing?

Usually both. A scanner runs on every build and catches regressions like a re-enabled debug flag or a newly committed key. A pentest is periodic and finds the logic and authorization problems a scanner can't. See automated vs manual penetration testing for the trade-offs.

Find what attackers can see, before they do.

AI pentesting agents test your web app, API and cloud, and every finding comes with evidence and a fix. First report in about 10 minutes.

Stay ahead of attackers.

New vulnerabilities, breach write-ups and practical fixes. A few emails a month.