Skip to content

Automated Android PoC generator for Task Hijacking and StrandHogg vulnerabilities via Docker.

License

Notifications You must be signed in to change notification settings

handshake-hk/android-task-affinity-poc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Android Task Affinity PoC Generator

This Docker image automates the generation of a Proof-of-Concept (PoC) Android application to demonstrate Task Affinity vulnerabilities (StrandHogg, Task Hijacking). It allows for rapid customization of the taskAffinity attribute and application branding via Docker.

Usage

The generated APK will be available in your local ./output directory after the build completes.

Basic Usage (Default image, no logo)

Set the targetapp environment variable to the package name of the app you wish to target.

docker run --rm \
  -v $(pwd)/output:/data/output \
  -e targetapp="com.example.victimapp" \
  ghcr.io/handshake-hk/android-task-affinity-poc

Custom Logo Injection

To make the PoC look more convincing, you can mount a custom .png from your host to the container.

docker run --rm \
  -v $(pwd)/output:/data/output \
  -v $(pwd)/my_custom_logo.png:/data/logo.png \
  -e targetapp="com.example.victimapp" \
  ghcr.io/handshake-hk/android-task-affinity-poc

Disclaimer

This tool is for educational and authorized security testing purposes only. Unauthorized use against systems without prior consent is illegal.

About

Automated Android PoC generator for Task Hijacking and StrandHogg vulnerabilities via Docker.

Topics

Resources

License

Stars

Watchers

Forks

Packages