A professional Android APK Static Analysis Tool developed by IMRAN SARWER for Android Application Security Assessment, Secure Code Review, and Mobile Security Research.
APK Security Auditor is a Python-based Android Security Analysis Tool designed to perform static security assessments on Android APK files.
The tool leverages:
- APKTool
- JADX
- Python Automation
- OWASP MASVS Security Checks
to identify common Android application security weaknesses including:
- Debuggable Applications
- Exported Components
- Insecure Storage Usage
- Weak Cryptography
- Hardcoded Secrets
- Firebase Endpoints
- Dangerous Permissions
- Network Security Issues
The tool automatically generates professional TXT, JSON, and HTML reports with risk scoring and security findings.
The tool automatically performs:
- APK Decompilation
- AndroidManifest Analysis
- Smali Source Analysis
- JADX Java Source Analysis
- Risk Scoring
- Security Report Generation
- Debuggable Application Detection
- Backup Enabled Detection
- Cleartext Traffic Detection
- Network Security Configuration Analysis
- Exported Activities Detection
- Exported Services Detection
- Exported Receivers Detection
- Exported Providers Detection
- Deep Link Discovery
- Dangerous Permissions Detection
- Custom Permission Analysis
The tool scans decompiled Smali files for:
- Hardcoded Secrets
- API Keys
- JWT Tokens
- Firebase Endpoints
- Runtime Command Execution
- SharedPreferences Usage
- External Storage Usage
- WebView Security Issues
- Weak Cryptography Patterns
The tool automatically decompiles APK files using JADX and scans Java source code for:
- Security Misconfigurations
- Dangerous API Usage
- Storage Security Issues
- Network Security Issues
- Sensitive Information Exposure
The tool automatically generates:
Human-readable security report.
Machine-readable report for automation and integration.
Professional browser-based report.
The tool calculates:
- MD5
- SHA1
- SHA256
for APK integrity verification.
Automatic application risk calculation based on detected findings.
Security findings are mapped to relevant OWASP MASVS categories.
- Python 3
- APKTool
- JADX
- Java Runtime Environment (JRE)
sudo apt update
sudo apt install -y \
python3 \
python3-pip \
apktool \
jadx \
default-jrepython3 --version
apktool --version
jadx --version
java -versionExpected Output:
Python 3.x
APKTool 2.x
JADX 1.x
OpenJDK 17+
python3 apk_auditor.py app.apkExample:
python3 apk_auditor.py samples/test.apk========================================================================
SCAN SUMMARY
========================================================================
Package : com.example.app
Risk Score : 56/100 (MEDIUM)
HIGH : 2
MEDIUM : 5
LOW : 0
INFO : 1
========================================================================
After execution:
reports/
├── app_report.txt
├── app_report.json
└── app_report.html
The tool can identify:
- App is Debuggable
- Backup Enabled
- Exported Components
- Dangerous Permissions
- SharedPreferences Usage
- External Storage Usage
- Insecure HTTP URLs
- Firebase Endpoints
- Cleartext Traffic
- Runtime Command Execution
- WebView Security Risks
- Hardcoded Secrets
- Weak Cryptography
APK-Security-Auditor/
│
├── apk_auditor.py
├── README.md
├── .gitignore
│
├── findings.png
├── html-reports.png
├── reports.png
├── terminal.png
│
├── output/
├── reports/
└── screenshots/
| Feature | Status |
|---|---|
| APKTool Integration | ✅ |
| JADX Integration | ✅ |
| Manifest Analysis | ✅ |
| Smali Analysis | ✅ |
| Java Source Analysis | ✅ |
| Risk Scoring | ✅ |
| HTML Reports | ✅ |
| JSON Reports | ✅ |
| TXT Reports | ✅ |
| APK Hashing | ✅ |
| OWASP MASVS Mapping | ✅ |
Planned Features:
- VirusTotal API Integration
- MobSF Integration
- APK Certificate Analysis
- APK Signing Verification
- SSL Pinning Detection
- Firebase Security Misconfiguration Checks
- Root Detection Analysis
- Frida Detection
- Emulator Detection
- PDF Report Generation
- CVSS Scoring
- MITRE ATT&CK Mapping
- Python
- APKTool
- JADX
- Android Security
- Static Code Analysis
- OWASP MASVS
Cyber Security Student
Android Security Researcher
Mobile Application Security Enthusiast
GitHub:
https://github.com/jamaliimran07
This project was developed to strengthen practical knowledge in:
- Android Security
- Mobile Application Assessment
- Static Analysis
- Secure Code Review
- Security Automation
This tool is intended strictly for:
- Educational Purposes
- Security Research
- Authorized Security Assessments
Always obtain proper authorization before testing or analyzing third-party applications.
The author assumes no responsibility for misuse of this tool.
If you find this project useful, consider giving it a star on GitHub.



