Comprehensive APK security analysis and forensic investigation tool for Android applications
npm install anais-apk-forensicAutomated security analysis tool for Android APK files. Built for security researchers, malware analysts, and penetration testers.


Anais analyzes APK files and generates detailed security reports. It can detect malware, identify vulnerabilities, and help you understand what an Android app is doing under the hood.
Features:
- Decompiles APKs with APKTool and JADX
- Scans for malware with YARA rules
- Detects obfuscation (ProGuard, R8, DPT-Shell, DexProtector, Bangcle)
- Runs static security analysis (SAST)
- Analyzes network behavior and manifest permissions
- Identifies encrypted payloads through entropy analysis
- Supports dynamic analysis with Frida
Prerequisites:
- Python 3.8+
- Java 8+
- Node.js 14+
- APKTool, JADX, and YARA
Install via npm:
``bash`
npm install -g anais-apk-forensic
Or from source:
`bash`
git clone https://github.com/reezcode/Anais-APK-Forensic-Automation.git
cd Anais-APK-Forensic-Automation
npm install
npm run build
./scripts/setup.sh
Basic analysis:
`bash`
anais /path/to/app.apk
Reports are saved to ~/Documents/Anais-Reports/ in both Markdown and JSON formats.
Dynamic analysis:
`bashInstall Frida server
./scripts/dynamic_analysis_helper.sh install-frida
Configuration
Edit
analyzer_config.json` to customize analysis behavior, enable/disable tools, or change output paths.Each analysis generates:
- report.md - Human-readable report with findings and recommendations
- report.json - Machine-readable data for automation
- Decompiled source code (APKTool and JADX output)
- YARA scan results
- SAST findings
- Network and manifest analysis
Severity levels:
- 🔴 CRITICAL (70-100): Confirmed malicious, take immediate action
- 🟠 HIGH (40-69): Suspicious, needs investigation
- 🟡 MEDIUM (20-39): Security concerns worth reviewing
- 🟢 LOW (0-19): Minor issues
Pull requests welcome. Please fork the repo, create a feature branch, and submit a PR. 4. Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
This tool is intended for security research and educational purposes only. Always obtain proper authorization before analyzing applications you do not own.
Reezcode24
MIT License - see LICENSE for details.
This tool is for authorized security testing and research only. Don't analyze apps you don't own without permission.