LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

apkleaks

Scan APKs for hardcoded secrets and keys

TLDR

Scan APK for hardcoded secrets
$ apkleaks -f [app.apk]
copy
Scan with JSON output
$ apkleaks -f [app.apk] -o [results.json]
copy
Scan with custom patterns
$ apkleaks -f [app.apk] -p [patterns.json]
copy
Verbose output
$ apkleaks -f [app.apk] -v
copy

SYNOPSIS

apkleaks -f apkfile [-o output] [-p patterns] [options_]

DESCRIPTION

apkleaks scans Android APK files for hardcoded secrets, API keys, and sensitive information. It decompiles the APK, searches through code and resources using regex patterns, and reports potential security issues.The tool helps identify accidental exposure of credentials, private keys, URLs with tokens, and other sensitive data that developers may have inadvertently included in their applications.

PARAMETERS

-f file

APK file to analyze
-o file
Output file for results
-p file
Custom patterns file (JSON)
-a args
Additional arguments to pass to the jadx decompiler.
--json
Output results in JSON format.
-v, --verbose
Verbose output, including matched line numbers.
--disassemble
Disassemble bytecode (slower, may catch additional secrets).

DETECTED PATTERNS

- API keys (AWS, Google, Facebook, etc.)- Private keys and certificates- Tokens and secrets in URLs- Hardcoded passwords- Database credentials- Custom regex patterns

INSTALL

brew install apkleaks
copy
nix profile install nixpkgs#apkleaks
copy

CAVEATS

May produce false positives requiring manual verification. Only detects string-based secrets; encrypted or obfuscated data won't be found. Decompilation may fail for heavily protected APKs.

HISTORY

apkleaks was created for Android security assessments, automating the process of identifying leaked secrets that manual code review might miss.

SEE ALSO

apktool(1), jadx(1), androguard(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid