Skip to main content

sdanalyzer

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.

screenshot

Installation

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 git@github.com:Te-k/sdanalyzer.git
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,flush,phones,import,delete}
                        Subcommand
    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.

License

This code is released under GPLv3 license.

Metadata

Release files for sdanalyzer 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sdanalyzer 0.1.7
File Size Uploaded
sdanalyzer-0.1.7.tar.gz 32.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sdanalyzer 0.1.7
File Interpreter ABI Platform
sdanalyzer-0.1.7-py3-none-any.whl Python 3 none any Details

Total release size: 66.1 kB

Release files / sdanalyzer-0.1.7.tar.gz

Download URL sdanalyzer-0.1.7.tar.gz
Size 32.4 kB
Tags Source
SHA-256 checksum
How to use checksums
00036eec3091a53a46be4093256defd2db92d89212f0cf8d3e687fde5ceb0ad9
BLAKE2b-256 checksum
How to use checksums
868114c495fa53c9547b949158b6c8906e09ba653e19370b35ed172eebae29c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.7

Release files / sdanalyzer-0.1.7-py3-none-any.whl

Download URL sdanalyzer-0.1.7-py3-none-any.whl
Size 33.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
939d6c9329b8236737ac973c65056347d43ac6758da6172bf6ec80f657f0344a
BLAKE2b-256 checksum
How to use checksums
5b3376323d9eb5030cd48b039e4b1a26c737175bd60394e9e8a154785ca15481
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.7

Release history Release notifications | RSS feed

This release

0.1.7 This release

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page