Skip to main content

Tool to analyze APK files

Project description


Tool to analyze a large number of Android applications easily. It consist of a command line tool extracting data from all applications, storing it in a local database, and then opening a web interface to manually analyze the results in a user-friendly way.



You can install sdanalyzer directly from pypi : pip install sdanalyzer.

You can also download the code from the git repository, and install it from the source code :

git pull
cd sdanalyzer
pip install .

How to use it

Create a new phone :

sdanalyzer phones --create "Roberto's Phone"
1	Roberto's Phone	None

Import APKs:

sdanalyzer import --phone 1 .

Run the web server to check the APKs:

sdanalyzer serve

Once you have done your analysis, you can delete the local database with sdanalyzer flush

You can check all the options of the sdanalyzer command :

$ sdanalyzer -h
usage: sdanalyzer [-h] {serve,flush,phones,import,delete} ...

Launches sdanalyzer

positional arguments:
    serve               Launch the web app
    flush               Flush the database
    phones              List phones
    import              Import apks
    delete              Delete a phone and related data
    export              Export information on all apks of a phone

optional arguments:
  -h, --help            show this help message and exit

Infos on how it works

  • This tool largely relies on androguard
  • The local database is an sqlite database stored in ~/.config/sdanalyzer/db.db
  • An incomplete list of trusted APK signing certificates is provided with the tool. It has been built manually and is helpful to quickly sort apps, but it is clearly incomplete so use at your own risk.
  • A few yara rules are provided with the tool but if you want to rely on Yara for detection, you are encouraged to provide additional yara rules with the -y option to the sdanalyzer import command.

Feel free to open issues for new feature ideas or bugs.


This code is released under GPLv3 license.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sdanalyzer-0.1.7.tar.gz (32.4 kB view hashes)

Uploaded Source

Built Distribution

sdanalyzer-0.1.7-py3-none-any.whl (33.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page