Skip to main content

APKLeaks: Discover leaks within APK files

I was recently combing through GitHub for a tool that I tend to use on mobile application penetration tests when I came across APKLeaks. I currently make use of Mobile Security Framework for discovering sensitive information within the APK files but thought – why not try a new tool. ApkLeaks specifically scans APK files for URIs, endpoints, and secrets.


There are a ways to complete the installation:

  1. PyPi
    1. pip3 install apkleaks
  2. Source
    1. git clone
    1. cd apkleaks/
    1. pip3 install -r requirments.txt
  3. Docker
    1. docker pull dwisiswant0/apkleaks:latest

I chose to do from PyPi – simple installation and worked perfectly on the new Mac M1.


Running apkleaks from the terminal will bring of the basic help menu otherwise apkleaks -h will provide additional information on each of the flags allowed for execution.

Now let’s move into some real examples – I went ahead and downloaded a couple APK files from APKPure to test this tool against. To prevent any exposure of the application tested against – I went ahead and blurred the output of the tool but you get the jist of it.

The above screenshot breaks down multiple categories the tool may discover items within source code. I have noticed that quite few of the items flagged have been false positives, however the tool has a very high processing time that can provide additional items to review – it just makes sense to add this to my testing playbook when testing mobile applications.

More from White Oak Security

White Oak Security is a highly skilled and knowledgeable cyber security testing company that works hard to get into the minds of opponents to help protect those we serve from malicious threats through expertise, integrity, and passion.

Read more from White Oak Security’s pentesting team.

Also – Brett made a short video to accompany this blog. Located on White Oak’s YouTube channel here –