
Comprehensive Android security vulnerability demonstrations featuring CVE-2017-13156 (Janus), broadcast receiver exploitation, external storage threats, and rooted device attacks. Educational PoCs with working code, exploitation scripts, and security controls for developers and researchers. To be updated...
A comprehensive collection of proof-of-concept Android security vulnerabilities and attack vectors
This repository serves as an educational resource showcasing real-world Android security threats and their corresponding mitigation strategies. Each demonstration includes working code examples, detailed attack vectors, and security controls to help developers understand and prevent these vulnerabilities in production applications.
⚡ This repository is actively maintained and continuously expanding
My most comprehensive and technically advanced demonstration
A complete reproduction of the infamous Janus signature bypass vulnerability that affected Android 6.0 and earlier versions.
What it demonstrates:
minSdkVersion security warningsTechnical achievements:
make_janus_proper_old.py, scam_android.py)📁 View Janus Vulnerability Demo →
| Threat | Description | Demo Apps |
|---|---|---|
| Fake Banking App | OCBC Bank UI clone with tampered backend endpoints | FakeApp/ocbcClone/ |
Attack Vector: APK decompilation → endpoint modification → repackaging → sideloading Impact: Credential harvesting, financial fraud Mitigation: App signing verification, secure distribution channels
| Component | Description | Demo Apps |
|---|---|---|
| Victim App |
Attack Vector: Custom permission bypass → broadcast replay → unauthorized actions Impact: Remote triggering of sensitive functionality, DoS attacks Mitigation: Signature-level permissions, internal-only receivers
📁 View Broadcast Receiver Demo →
| Component | Description | Demo Apps |
|---|---|---|
| Secure Logger |
Attack Vector: READ_EXTERNAL_STORAGE permission abuse → recursive file scanning → data exfiltration
Impact: Sensitive data exposure, credential theft
Mitigation: AES encryption, Android Keystore, scoped storage (API 29+)
📁 View External Storage Demo →
📁 View WRITE_EXTERNAL_STORAGE Demo too! →
| Threat | Description | Demo Apps |
|---|---|---|
| Root-based DoS | Battery optimizer that corrupts banking app session files | rootedDevice Threat/batteryBooster/ |
Attack Vector: Root privilege escalation → file system tampering → session corruption Impact: Forced logouts, user experience degradation, app instability Mitigation: Root detection, SafetyNet/Play Integrity API, secure storage
crypto-js)arm64-v8a, x86_64Each demo includes:
After exploring this repository, developers will understand:
# Clone the repository
git clone https://github.com/nictjh/threatDemos.git
cd threatDemos
# Install Android SDK and build tools
# Set up Android Studio AVD emulators
# Install Node.js, Python 3, React Native CLI
Each threat category has its own setup instructions: refer to the directory's README.md
# Example: Janus Vulnerability
cd "JanusVuln/"
python3 make_janus_proper_old.py app-release23.apk nuclear_mainapp.dex janus-test.apk
python3 scam_android.py janus-test.apk janus-final.apk
# Example: External Storage Threat
cd "READ_EXTERNAL_STORAGE Threat/mobile/"
npm install
npm run android
Run each demo in controlled environments:
Crafted by Nicholas Tok CSA Cybersecurity Engineer Intern
Built with hours of reverse engineering, emulator debugging, and security research.
This repository is intended solely for educational and research purposes. All demonstrations should be:
The author assumes no responsibility for misuse of these educational materials.
| Device cache cleaner with exposed sensitive receivers |
Exposed BroadCastReceiver Threat/victimapp/ |
| Attacker App | Malicious app exploiting weak broadcast permissions | Exposed BroadCastReceiver Threat/attackerapp/ |
| Encrypted credential logging with Android Keystore |
READ_EXTERNAL_STORAGE Threat/mobile/ |
| Malicious Scanner | Cookie Clicker game that secretly harvests external files | READ_EXTERNAL_STORAGE Threat/loggerMobile/ |
| Metric | Count |
|---|
| Total Threat Categories | 4 |
| Demo Applications | 8+ |
| CVEs Demonstrated | 1 (CVE-2017-13156) |
| Android API Levels Tested | 23, 28, 29, 36 |
| Custom Exploitation Scripts | 6+ Python tools |
| Documentation Files | 10 detailed READMEs |