Don’t Let Attackers Hijack Your App’s Task
summary
A malicious app can inject an Activity into another app’s task and present a fake login without root or zero‑day exploits, demonstrated working on a real device and on Android 17 emulator. StrandHogg 1 relies on manifest taskAffinity discoverable by static analysis; StrandHogg 2 builds dynamic attacks with ordered intents using FLAG_ACTIVITY_NEW_TASK then a plain launch to land on top. Defenses that actually work include empty taskAffinity, singleInstance launch mode, isTaskRoot checks, intent allow‑listing and using the system photo picker.
AI-written summary · about
chapters (12)
- 0:00Introduction to task hijacking
- 1:47Android’s security model flaws
- 5:23Activity launch modes explained
- 6:06What is StrandHogg attack
- 7:30StrandHogg 1 static attack
- 10:17StrandHogg 2 dynamic attack
- 13:07System-level protections
- 14:09Mitigation strategies
- 16:36Intent hijacking risks
- 19:26Cross-UID activity switch
- 20:27Storage access framework
- 21:11Key takeaways and best practices
