aparoid: Static and dynamic Android application security analysis
Aparoid
Aparoid is a framework designed for Android application analysis. It offers an automated set of tools to discover vulnerabilities and other risks in mobile applications. It is built using the Flask framework and offers a web GUI to upload APK files and explore the contents/results.
The current version offers the following features:
- APK decompilation using jadx
- A vulnerability detection system (rules configurable using the dashboard)
- Binary file risk analysis
- Custom features for frameworks like React Native, Flutter, Xamarin, and Cordova
- Android Manifest security checks
- Dynamic analysis on all (rooted) Android devices (physical, emulated and cloud-based)
- Frida scripts for the bypass of root detection, SSL pinning, and debugger detection (custom scripts are also supported)
- Automatic installation of a root CA certificate (also supports Burp Suite)
- HTTP(S) interception proxy and real-time traffic viewer using Kafka
- The real-time application stored data browser
Aparoid features
Aparoid checks for a lot of code vulnerabilities and issues.
A list of vulnerabilities can be browsed with followable references to the source code.
Additionally, it also analyses native binaries for hardening techniques and gives some information on how the technique can improve security.
The static code analysis engine offers an easy-to-use database system to add or maintain static code vulnerabilities.
One of the most awesome features is the option to automatically create Frida patches based on the decompiled source code.
The dynamic analyser can be used to enumerate, install instrument installed applications. Additionally, this is also where you can automatically install the correct frida version for your device.
Once you have selected a package you can control frida scripts and route all of the application’s traffic through a proxy server. Aparoid uses mitmproxy by default to intercept traffic and log it to Kafka.
The dynamic page also offers the functionality to browse the application data in real-time.
Install
git clone https://github.com/stefan2200/aparoid.git
cd aparoid
docker-compose up
Local version
sudo apt-get install python3 python3-pip sqlite3 default-jre android-tools-adb gunicorn libmagic1
git clone https://github.com/stefan2200/aparoid
cd aparoid
python3 -m pip install –upgrade requirements.txt# The python-magic-bin library is required on Windows
python3 -m pip install python-magic-bin# Start the server on port 7300
./start.sh
Optionally, it is recommended to install Kafka if you want to use most of the dynamic analysis features. The command below also installs Postgres (way faster than SQLite). You can switch to Postgres by modifying the config.py file.
cd collector
docker-compose up -d