# 使用 Homebrew, Nix 安装 apkleaks

查看 apkleaks 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:apkleaks
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install apkleaks
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#apkleaks
```

  证据: nixpkgs package indexes: pkgs/by-name/ap/apkleaks/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:apkleaks
- **软件包管理器:** Homebrew
- **版本:** 2.6.3
- **来源摘要:** Scanning APK file for URIs, endpoints & secrets
- **主页:** <https://github.com/dwisiswant0/apkleaks>
- **最后更新:** 2026-07-13T10:08:46Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- apkleaks (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.6.3
## 项目历史与用法

APKLeaks is a Python CLI for scanning APK files for URIs, endpoints, and secrets. It is part Android reverse-engineering helper, part bug-bounty reconnaissance tool, and part regex-based secret scanner.

### 项目历史

The public GitHub repository was created in May 2020. Its README positions the tool around APK scanning and documents installation from PyPI, source, and Docker, with jadx used as the disassembler when available.

The README credits apkurlgrep as an inspiration and acknowledges pattern sources and related tooling such as truffleHogRegexes, LinkFinder, gf patterns, dex2jar, and a standalone APK parser. That makes the project a packaging point for several mobile-reconnaissance ideas rather than a pure APK parser.

### 采用历史

The project is distributed through PyPI, Docker, and source installation according to its README. The supplied package metadata also records Homebrew and Nix packages, showing that the tool crossed from Python security circles into general CLI package indexes.

GitHub repository metadata showed more than 6k stars and hundreds of forks at research time, which is unusually high for a narrow APK scanner and reflects adoption in mobile-security and bug-bounty workflows.

### 使用方式

The common invocation is apkleaks -f path/to/file.apk, with optional output file selection, JSON output, custom pattern JSON via --pattern, and disassembler arguments passed through with --args. If no output path is supplied, the README says it generates a result file automatically.

APKLeaks does not document a fixed user config file. Pattern customization is an explicit per-run path to a JSON rules file, while the default regexes live inside the project repository.

### 为什么软件包爱好者会关心

APKLeaks is interesting as a small packaged security CLI because it composes other tools and pattern corpora behind a simple command. Package users care less about a library API and more about whether pipx, brew, nix, or Docker can put a scanner in PATH quickly during APK triage.

Its release stream also shows maintenance for platform compatibility, including Python 3.12 and 3.13 support and a move to pyproject.toml in the 2.6.x series.

### 时间线

- 2020: Public dwisiswant0/apkleaks repository created on GitHub.
- 2021: 2.6.0 release added token and identifier patterns such as GitHub access tokens, Discord bot tokens, JWTs, and CTF flag patterns.
- 2024: 2.6.2 added Python 3.12 support.
- 2024: 2.6.3 migrated to pyproject.toml and fixed Python 3.13 compatibility.

### Related projects

- APKLeaks relies on jadx for APK decompilation and credits apkurlgrep, truffleHogRegexes, LinkFinder, gf, dex2jar, and a standalone APK parser as influences or resources.

### 来源

- <https://api.github.com/repos/dwisiswant0/apkleaks>
- <https://api.github.com/repos/dwisiswant0/apkleaks/releases>
- <https://github.com/dwisiswant0/apkleaks#readme>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- Nix - apkleaks: normalized package name match | nixpkgs package indexes: pkgs/by-name/ap/apkleaks/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/apkleaks.yml](https://github.com/mxcl/pkgdb/blob/main/combined/apkleaks.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
