Zurück zum Ranking

dwisiswant0/apkleaks

Python

Scanning APK file for URIs, endpoints & secrets.

mobile-securityandroid-securityreverse-engineeringbugbountystatic-analysisapkscanning-apkapk-parser
Sterne-Wachstum
Sterne
6.2k
Forks
583
Wochenwachstum
Issues
20
6.2k6.2k6.2k6.2k
18. Juli19. Juli20. Juli22. Juli
ArtefaktePyPIpip install apkleaks
README

APKLeaks

version contributions

Scanning APK file for URIs, endpoints & secrets.

APKLeaks

Installation

It's fairly simple to install APKLeaks:

from PyPi

$ pip3 install apkleaks

from Source

Clone repository and install requirements:

$ git clone https://github.com/dwisiswant0/apkleaks
$ cd apkleaks/
$ pip3 install -r requirements.txt

from Docker

Pull the Docker image by running:

$ docker pull dwisiswant0/apkleaks:latest

Dependencies

The APKLeaks utilizes the jadx disassembler to decompile APK files. If jadx is not present in your system, it will prompt you to download it.

Usage

Simply,

$ apkleaks -f ~/path/to/file.apk
# from Source
$ python3 apkleaks.py -f ~/path/to/file.apk
# or with Docker
$ docker run -it --rm -v /tmp:/tmp dwisiswant0/apkleaks:latest -f /tmp/file.apk

Options

Here are all the options it supports.

| Argument | Description | Example | |--------------- |--------------------------------------------- |------------------------------------------------------------- | | -f, --file | APK file to scanning | apkleaks -f file.apk | | -o, --output | Write to file results (random if not set) | apkleaks -f file.apk -o results.txt | | -p, --pattern | Path to custom patterns JSON | apkleaks -f file.apk -p custom-rules.json | | -a, --args | Disassembler arguments | apkleaks -f file.apk --args="--deobf --log-level DEBUG" | | --json | Save as JSON format | apkleaks -f file.apk -o results.json --json |

Output

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

[!TIP] By default it will also save the results in text format, use --json argument if you want JSON output format.

Pattern

Custom patterns can be added with the following argument to provide sensitive search rules in the JSON file format: --pattern /path/to/custom-rules.json. If no file is set, the tool will use the default patterns found in regexes.json file.

Here's an example of what a custom pattern file could look like:

// custom-rules.json
{
  "Amazon AWS Access Key ID": "AKIA[0-9A-Z]{16}",
  // ...
}

To run the tool using these custom rules, use the following command:

$ apkleaks -f /path/to/file.apk -p rules.json -o ~/Documents/apkleaks-results.txt

Arguments (disassembler)

We give user complete discretion to pass the disassembler arguments. For example, if you want to activate threads in jadx decompilation process, you can add it with -a/--args argument, example: --args="--threads-count 5".

$ apkleaks -f /path/to/file.apk -a "--deobf --log-level DEBUG"

[!WARNING] Please pay attention to the default disassembler arguments we use to prevent collisions.

License

apkleaks is distributed under Apache 2.

Acknowledments

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

Ähnliche Repositories
MobSF/Mobile-Security-Framework-MobSF

Mobile Security Framework (MobSF) is an automated, all-in-one mobile application (Android/iOS/Windows) pen-testing, malware analysis and security assessment framework capable of performing static and dynamic analysis.

JavaScriptnpmGNU General Public License v3.0static-analysisdynamic-analysis
opensecurity.in
21.5k3.7k
Hacker0x01/hacker101

Source code for Hacker101.com - a free online web and mobile security class.

SCSSOthereducationhacking
hacker101.com
14.5k2.7k
OWASP/mastg

The OWASP Mobile Application Security Testing Guide (MASTG) is a comprehensive manual for mobile app security testing and reverse engineering. It describes technical processes for verifying the OWASP Mobile Security Weakness Enumeration (MASWE) weaknesses, which are in alignment with the OWASP MASVS.

PythonPyPICreative Commons Attribution Share Alike 4.0 Internationalmobile-apppentesting
mas.owasp.org
13.1k2.8k
OWASP/owasp-mastg

The Mobile Application Security Testing Guide (MASTG) is a comprehensive manual for mobile app security testing and reverse engineering. It describes the technical processes for verifying the controls listed in the OWASP Mobile Application Security Verification Standard (MASVS).

PythonPyPICreative Commons Attribution Share Alike 4.0 Internationalmobile-apppentesting
mas.owasp.org
12k2.4k
firerpa/lamda

Android Full-Stack Device Control Platform: WebRTC/H.264 remote desktop, UI/OCR/image-matching automation, one-click MITM, built-in Frida, proxy/VPN/frp/P2P networking, MCP/Agent, 160+ APIs, designed for multi-device clusters and engineered deployments.

PythonPyPIMIT Licenseadbandroid
device-farm.com
7.9k1.1k
charles2gan/GDA-android-reversing-Tool

the fastest and most powerful android decompiler(native tool working without Java VM) for the APK, DEX, ODEX, OAT, JAR, AAR, and CLASS file. which supports malicious behavior detection, privacy leaking detection, vulnerability detection, path solving, packer identification, variable tracking, deobfuscation, python&java scripts, device memory extraction, data decryption, and encryption, etc.

PythonPyPIApache License 2.0decompilervulnerability-scanners
twitter.com/charles_gan1
4.8k567
vaib25vicky/awesome-mobile-security

An effort to build a single place for all useful android and iOS security related stuff. All references and tools belong to their respective owners. I'm just maintaining it.

pentestingios
3.5k376
m0bilesecurity/RMS-Runtime-Mobile-Security

Runtime Mobile Security (RMS) 📱🔥 - is a powerful web interface that helps you to manipulate Android and iOS Apps at Runtime

JavaScriptnpmGNU General Public License v3.0mobile-securityandroid-security
twitter.com/mobilesecurity_
3k411
Impact-I/reFlutter

Flutter Reverse Engineering Framework

PythonPyPIGNU General Public License v3.0bugbountymobile-security
2.7k291
iddoeldor/frida-snippets

Hand-crafted Frida examples

JavaScriptnpmfridahooking
2.5k439
dpnishant/appmon

Documentation:

JavaScriptnpmApache License 2.0androidios-app
dpnishant.github.io/appmon
1.6k280
ptswarm/reFlutter

Flutter Reverse Engineering Framework

PythonPyPIGNU General Public License v3.0mobile-securityreverse-engineering
1.5k187