Android platform checks

Android exported components security testing

An exported component can be started or queried by other apps. Many must be exported to work. The question is whether one exposes data or actions that should require authorization.

What "exported" means

Android apps are built from four component types: activities, services, broadcast receivers and content providers. The android:exported attribute in the manifest controls whether components belonging to other apps can reach them.

Exporting is not a vulnerability by itself. A launcher activity, a share target or a receiver for a documented system broadcast has to be exported. A finding needs more than the attribute: it needs a sensitive action or data that another app can reach without the check the app intended.

These checks belong to MASVS-PLATFORM, which covers how an app uses inter-process communication and other platform mechanisms.

Know the manifest defaults

The effective value depends on the app's target SDK, so record it with the finding. Scroll the table horizontally on small screens.

When a component is exported if the attribute is missing
SituationEffective behavior
Target SDK 31 (Android 12) or higher, component has an intent filterThe attribute must be declared explicitly; otherwise the app cannot be installed.
Lower target SDK, component has an intent filterExported by default.
No intent filter (activity, service or receiver)Not exported by default.
Content provider, target SDK 16 or lowerExported by default; from target SDK 17 the default is not exported.

See the Android 12 behavior change and the provider element reference for the exact rules.

Static review: build an inventory

  • List every exported component with its type, intent filters and any android:permission, readPermission or writePermission.
  • For each custom permission, record its protectionLevel. A normal permission can be requested by any app; signature limits callers to apps signed with the same key.
  • For providers, note grantUriPermissions, path permissions and the authority string.
  • Follow the code that handles incoming intents or queries: what extras it reads, whether it checks the caller and what it does with the input.

Prioritize components that open authenticated screens, start payments or account changes, return files or database rows, or forward an incoming intent to another component. A component that passes a received intent onward without validation can let another app reach components that are not exported.

Runtime check: confirm reachability

On an authorized test device with a test build and test accounts, try to reach the component the way another app would. For a first check, tools such as adb shell am start, am broadcast and content query can send an intent or query to a named component.

Record what happened: the screen shown, the data returned or the action performed, and whether the app asked for authentication. Note that commands run from adb shell act as the shell user, which holds permissions an ordinary third-party app does not. For stronger evidence, repeat the call from a separate unprivileged test app.

If the component rejected the call or required a permission, that is a useful negative result. Report it as tested and not reachable under those conditions, not as proof that the component is safe for every input.

Example: a deep link into an account screen

Suppose a manifest exports an activity that shows account settings, with no permission and an intent filter for a custom scheme. That is a signal worth testing, not yet a finding.

In an authorized session, launch the activity from an unprivileged test app while logged out. If the settings screen opens with another test user's data or allows a change without re-authentication, the record has observed evidence. If the app redirects to login, record the check as performed with no bypass observed.

This example describes an assessment method, not a finding measured by AppBreach on a customer app.

Report it with the evidence

Include the component name, the manifest entry, the target SDK, the caller used and the observed result. Recommend the narrowest fix: stop exporting the component, protect it with a signature permission, or check the caller and re-authenticate before sensitive actions.

Use the MASVS checklist to place the check in a full assessment, and the report evidence guide to separate a candidate from a verified finding. AppBreach pairs static manifest and code checks with optional authorized real-device Android verification; runtime coverage depends on the approved scope and available environment.

Related reading