Android application security testing
An Android app is a client that ships to whoever installs it. Anything compiled into it is public: endpoints, keys, business rules, feature flags. The interesting question is not whether the APK can be read, it is what an attacker can do once they have read it and can run the app with their own hands on the device.
Testing combines static analysis of the package with dynamic testing on a real device, and reports findings against OWASP MASVS so remediation can be tracked the same way as any other control gap.
Static analysis
Manifest and components. Every exported activity, service, receiver and content provider, what intent filters they accept, and whether the permission protecting them can be held by any application or is only declared and never enforced.
Deep links and intent redirection. Custom schemes and App Links that route user input into internal screens, and internal components that forward an attacker-supplied intent to a protected component the calling app could not reach directly.
Secrets and endpoints. Strings, resources, assets and native libraries searched for API keys, tokens, signing material and internal hostnames that are not reachable by an attacker through the UI.
Data at rest. Shared preferences, SQLite, caches and external storage for sensitive values written in plaintext, plus flags such as allowBackup and debuggable that widen exposure.
Network configuration. Cleartext allowances, trust anchors for user-installed certificates, custom certificate validation and pinning implementations that can be inspected statically.
WebView usage. JavaScript bridges, file access settings and content loading from remote or user-controlled origins.
Cryptography. Custom crypto, hardcoded IVs and keys, ECB mode, weak random sources, and hashing used where a password KDF is required.
Third-party SDKs. What the bundled SDKs collect and where they send it, which matters for both attack surface and data protection obligations.
Dynamic testing
- Proxy the app's traffic with a user certificate installed, and observe what breaks where pinning is implemented.
- Instrument the running process to read decrypted values, exercise authorization logic and confirm whether client-side checks are controls or cosmetics.
- Launch exported components directly, from a second app or with
am, and record what happens with hostile input. - Test root and tamper detection for what it actually protects, not for whether it displays a warning.
What gets reported
Each finding states the component or file, the exact command or intent used to trigger it, the device and OS version, and the impact an attacker gains: data readable from another app, action performed without user intent, credential usable outside the app. Fixes are described as control changes, since hiding a check in the client is not a fix.
Common questions
Is a decompiled APK enough to assess an Android app?
No. Static analysis finds exported components, hardcoded secrets and permission mistakes, but cannot show what the running app does with them. Most real findings combine both: a static candidate, such as an exported activity, then a runtime test proving another app can launch it and what that does with the input.
What are the most common Android findings?
Exported or unprotected activities, services and receivers that accept intents from any app; secrets and internal endpoints left in resources or native libraries; plaintext data in shared preferences or external storage; WebView JavaScript bridges exposed to untrusted pages; and network security configurations that permit cleartext traffic.
Does obfuscation stop the analysis?
It raises the cost, it does not stop it. R8 and ProGuard rename classes but leave string constants, resources, native libraries and the manifest intact, and runtime instrumentation reads values after the app has run. Obfuscation is an obstacle to work through, not a mitigation.
Related: AI and LLM security testing · API security testing · how an assessment runs