Awesome Open Source
Awesome Open Source


version contributions

Scanning APK file for URIs, endpoints & secrets.



To install APKLeaks, simply:

$ git clone
$ cd apkleaks/
$ pip3 install -r requirements.txt


It's fairly simple,

$ python3 -f ~/path/to/file.apk


$ python3 -h
usage: apkleaks [-h] -f FILE [-o OUTPUT] [-p PATTERN]

optional arguments:
  -h, --help            show this help message and exit
  -f FILE, --file FILE  APK file to scanning
  -o OUTPUT, --output OUTPUT
                        Write to file results (NULL will be saved into random
  -p PATTERN, --pattern PATTERN
                        Path to custom patterns JSON

In general, if you don't provide -o argument, then it will generate results file automatically.

Custom patterns can be added with the following flag --pattern /path/to/rules.json to provide sensitive search rules in the JSON file format. If not set, it'll use default patterns from regexes.json file.

Example patterns file:

// rules.json
  "Amazon AWS Access Key ID": "AKIA[0-9A-Z]{16}",
$ python -f /path/to/file.apk -p rules.json -o ~/Documents/apkleaks-results.txt


Current version is v2.0.1, and still development.


apkleaks is distributed under Apache 2.


Since this tool includes some contributions, and I'm not an asshole, I'll publically thank the following users for their helps and resources:

  • @ndelphit - for his inspiring apkurlgrep, that's why this tool was made.
  • @dxa4481 and y'all who contribute to truffleHogRegexes.
  • @GerbenJavado & @Bankde - for awesome pattern to discover URLs, endpoints & their parameters from LinkFinder.
  • @tomnomnom - a gf patterns.
  • @pxb1988 - for awesome APK dissambler dex2jar.
  • @subho007 for standalone APK parser.
  • SHA2048#4361 (Discord user) that help me porting code to Python3.

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
python (50,968
reverse-engineering (450
static-analysis (243
bugbounty (170
apk (109
android-security (31
mobile-security (24

Find Open Source By Browsing 7,000 Topics Across 59 Categories