Test Android task hijacking and overlay abuse — StrandHogg 1.0 (taskAffinity) and 2.0 (CVE-2020-0096), tapjacking via TYPE_APPLICATION_OVERLAY, and SYSTEM_ALERT_WINDOW/accessibility UI abuse. Tier 1. Use to assess credential-phishing and UI-redress risk. Aligns to OWASP MASTG MASVS-PLATFORM.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Android Task Hijacking Overlay?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-android-task-hijacking-overlay)
---
name: android-task-hijacking-overlay
description: Test Android task hijacking and overlay abuse — StrandHogg 1.0 (taskAffinity) and 2.0 (CVE-2020-0096), tapjacking via TYPE_APPLICATION_OVERLAY, and SYSTEM_ALERT_WINDOW/accessibility UI abuse. Tier 1. Use to assess credential-phishing and UI-redress risk. Aligns to OWASP MASTG MASVS-PLATFORM.
---
# Android Task Hijacking / StrandHogg & Overlay/Tapjacking
Assess whether a malicious app can impersonate the target's task or overlay its sensitive screens to phish or redress UI.
## Trigger phrases
`task hijacking, strandhogg, taskaffinity, cve-2020-0096, tapjacking, overlay attack, system_alert_window, accessibility abuse, filtertoucheswhenobscured`
## Method
1. **StrandHogg 1.0 (taskAffinity) check:** review the manifest — do target activities rely on default/non-empty `taskAffinity` without `launchMode` hardening? PoC app sets `android:taskAffinity="<target.package>"` + `launchMode="singleTask"` (+ `allowTaskReparenting="true"`), then surfaces a phishing screen atop the victim task.
2. **StrandHogg 2.0 (CVE-2020-0096):** reflection-based, no attacker-side manifest markers; patched May 2020 — flag devices below that patch level (`adb shell getprop ro.build.version.security_patch`).
3. **Tapjacking:** build an overlay (`TYPE_APPLICATION_OVERLAY`) that passes touches through to a sensitive screen; the victim is vulnerable if it lacks `filterTouchesWhenObscured`/doesn't handle `FLAG_WINDOW_IS_OBSCURED`.
4. **Overlay/accessibility abuse:** `SYSTEM_ALERT_WINDOW` + an accessibility service to read protected fields or inject UI actions.
## Modern / rare techniques
- **[NEW/RARE] StrandHogg 1.0 vs 2.0** — 1.0 is manifest-detectable on the victim (weak `taskAffinity`/`launchMode`); 2.0 is a platform bug → report by patch level.
- **[NEW/RARE] Tapjacking on security-relevant actions** (grant permission, confirm payment) where the victim doesn't obscure-filter touches.
- **Accessibility-service UI scraping** of protected input fields is increasingly used by malware → flag missing `FLAG_SECURE` + sensitive fields.
## Bypass / evasion
Overlays may be throttled on recent Android — test on the lowest in-scope patch level / `minSdk` device to demonstrate the realistic worst case.
## Escalation / chaining
Credential phishing, UI redress, clickjacking of security-relevant actions → account takeover; combine with `android-manifest-analysis` (taskAffinity/launchMode audit) and `android-logcat-clipboard-leakage` (FLAG_SECURE gaps).
## Backend & tooling
Preferred Kali path (native Kali / WSL+Kali / Kali-SSH / Kali-MCP / HexStrike). Needs the user's device/emulator (adb; a PoC malicious app for StrandHogg/overlay). Windows-local last resort. See `zazy-orchestrator`.
## Verification (background, before reporting)
Reproduce the hijack/overlay on an in-scope device — the malicious activity actually surfaces in the victim's task, or the overlay captures taps on a sensitive action — before marking CONFIRMED. Note the exact patch level for StrandHogg 2.0.
## Evidence
The vulnerable manifest config / patch level, the PoC behavior (screenshot/recording of the hijack or overlay), and the action captured. Remediation: `taskAffinity=""` + `launchMode="singleInstance"` on sensitive activities; `FLAG_SECURE` + `filterTouchesWhenObscured`; detect overlays; raise minSdk/patch level.