APKdevastate CLI is a powerful Linux C++17 command-line application designed to analyze Android APK files for security risks, malware signatures, and suspicious behaviors. The tool helps identify potentially malicious applications by examining permissions, certificate information, and known Remote Access Trojan (RAT) signatures.
GUI Version for Windows: https://github.com/rafosw/APKdevastate
- Permission Analysis: Lists and evaluates dangerous Android permissions
- Certificate Verification: Validates APK signing certificates against trusted organizations
- RAT Detection: Scans for known Remote Access Trojan signatures
- Hash Generation: Calculates MD5, SHA1, and SHA256 hashes for file verification
- Encryption Detection: Identifies potentially obfuscated or encrypted code
- Risk Assessment: Provides an overall security evaluation of the analyzed APK
- Native Library Scan: Detects suspicious
.solibraries - Dynamic Loader Check: Identifies reflection and dynamic class loading
- Java Runtime Environment (for apktool & apksigner)
apktool,aapt,apksigner,jadx(Auto-downloaded if missing)
cmake(>= 3.16)g++(C++17 support)libssl-dev(OpenSSL)libzip-dev(libzip)
Clone the repository and run the build script. The script will automatically download necessary dependencies (like nlohmann/json and Android build tools) if they are not found.
chmod +x build.sh
./build.sh --releaseRun the tool from the terminal by providing the path to an APK file.
./apkdevastate --scan <file.apk> --scan <file.apk> Full scan (default behavior)
--hash <file.apk> Only compute hashes (MD5/SHA1/SHA256)
--manifest <file.apk> Extract and print AndroidManifest.xml
--permissions <file.apk> Print application permissions
--cert <file.apk> Print certificate/signer information
--strings <file.apk> Dump string resources from APK
--classes <file.apk> List all Java class names (smali)
--info <file.apk> Full package info (version, activities, services)
--help Show help menuLove APKdevastate? Give us a star on GitHub!
Disclaimer: APKdevastate does not guarantee 100% accuracy in all detections or results. Use at your own discretion.


