Join our Newsletter — 33% off our NHI Course

Android Activity Hijack

Android Activity Hijack is an attack where a malicious app or component intercepts or replaces an intended Android activity flow. It can capture credentials, divert transactions, or present a fake screen. Defenders check activity export settings, use explicit component calls where possible, and verify caller identity for sensitive actions.

How Android Activity Hijack Works

Android activity hijack abuses the way Android resolves and launches app screens. A malicious app, or a malicious component inside a larger app, can intercept an intended flow, substitute its own interface, or place a convincing fake screen in front of the user.

The attack matters because the activity boundary is often where users enter credentials, approve payments, or confirm sensitive actions. When that boundary is weak, the attacker does not need to break the underlying app logic to steal data or redirect the transaction.

In practice, the weakness is usually not the Android platform itself but the app’s use of exported activities, implicit intents, weak caller checks, or overly broad component exposure. The result is a trust break between the screen the user expected and the screen they actually received.

Why It Is Dangerous for Mobile Apps

Activity hijack can turn a normal navigation step into a credential theft or transaction diversion point. If a login, consent, or payment activity can be replaced, the attacker can capture secrets, alter the user’s choice, or collect tokens and other session material that the app never intended to expose.

This attack is especially dangerous when the activity represents a high-value action such as authentication, account recovery, money movement, or permission granting. A fake activity that looks identical to the legitimate one can create a strong illusion of continuity, which makes user self-defense unreliable.

Because the attacker operates through normal Android interaction paths, abuse can blend into legitimate app behaviour. That makes the issue less visible than malware that requests obvious privileges, and it can persist until the app’s component exposure is reviewed carefully.

How Defenders Reduce Exposure

Exposure review starts with the component model: identify which activities are exported, which ones are reachable through implicit intent handling, and which flows handle sensitive actions. Sensitive screens should prefer explicit component calls and should not rely on caller assumptions that are easy to bypass.

For sensitive operations, the app should verify the caller identity or otherwise bind the request to a trusted origin before taking action. That matters most where the activity decides whether a credential, approval, or transaction should proceed.

A broader mobile security baseline also helps because activity hijack often appears alongside other mobile weaknesses such as intent interception, deep link abuse, WebView exposure, or insecure state handling. Mobile App Security Guide is useful background for the control patterns that reduce this class of attack.

Detection and Review After Suspicious Activity

Defenders should treat unexpected screen transitions, anomalous activity launches, and unusual caller chains as signals worth investigation. If users report being shown the wrong screen, prompted for credentials in an unusual place, or redirected during a sensitive flow, review the affected activity path first.

Post-incident review should also ask whether any credentials, session material, or approval state were exposed while the fake or substituted screen was active. If the hijack affected authentication or a privileged transaction, the organisation should assume the user journey may have been manipulated even if the back end appears unchanged.

For broader Android and mobile attack patterns, OWASP API Security Top 10 is not a direct mapping to activities, but it is a helpful reminder that broken access boundaries often fail quietly until a sensitive action is abused.

Risk and Threat Considerations

Android activity hijack creates a direct trust boundary failure between what the user believes they launched and what actually receives input. The main risk is not just screen spoofing, but the theft or redirection of sensitive actions that were supposed to be handled by a trusted component.

Failure mechanism: The attacker exploits exported or reachable activities, implicit resolution, or weak origin checks so that a malicious screen or component can receive the user’s input instead of the intended one.

Impact: Credentials, approvals, tokens, and transaction intent can be captured or altered, leading to account compromise, fraudulent action, or downstream session abuse.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP ASVS, CIS Controls v8 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP ASVS V8 — Authorization Activity hijack is fundamentally an authorization boundary failure for sensitive app actions.
V4 — API and Web Service Sensitive mobile flows often depend on backend calls that must not trust a hijacked UI path.
Recommendation — Enforce authorization checks before sensitive activity actions. Bind sensitive app actions to verified server-side authorization.
CIS Controls v8 CIS-16 — Application Software Security Mobile component exposure and hijack resistance belong in secure application design and testing.
Recommendation — Test exported components and sensitive flows for hijackable entry points.
NIST SP 800-53 Rev 5 AC-3 — Access Enforcement The attack succeeds when the app fails to enforce who may invoke a sensitive action.
IA-2 — Identification and Authentication (Organizational Users) Sensitive activity flows often need strong user re-authentication before release of value or secrets.
Recommendation — Enforce access checks before privileged activities execute. Require re-authentication before high-risk in-app actions.

Practitioner Guidance

Why practitioners should care: Treat activity exposure as a design decision, not a default platform convenience. Any activity that handles login, consent, payment, or recovery should be reviewed as a high-risk interface because a single misrouted launch can undermine the whole flow.

What to watch for: Focus review on exported activities, implicit intent entry points, and any screen that accepts sensitive input without a strong caller check. If the screen can be reached from outside the app, assume it needs explicit trust validation rather than informal assumptions about who opened it.