ahmetmutlugun/pavise
GitHub: ahmetmutlugun/pavise
Pavise 是一款高性能的 iOS IPA 静态安全扫描工具,能在亚秒级时间内完成二进制防护、密钥泄露、危险 API、追踪器及供应链等维度的全面检测。
Stars: 1 | Forks: 0
# Pavise
[](https://crates.io/crates/pavise)
[](LICENSE)
[](https://github.com/ahmetmutlugun/pavise/actions/workflows/ci.yml)
[](https://ghcr.io/ahmetmutlugun/pavise)
针对 iOS IPA 文件的快速静态安全分析。亚秒级扫描,覆盖全面。
## 快速开始
```
# 安装
cargo install pavise
# 扫描
pavise app.ipa
# HTML 报告
pavise app.ipa --format html -o report.html
```
或者使用 Docker:
```
docker run --rm -v "$PWD:/work" ghcr.io/ahmetmutlugun/pavise pavise /work/app.ipa
```
## 检查内容
| 类别 | 示例 |
|----------|----------|
| 二进制防护 | NX, PIE, ARC, 加密, RPATH, 栈溢出保护 |
| Manifest 分析 | Info.plist, entitlements, provisioning profiles |
| 密钥检测 | 23 种模式 — AWS, GCP, Azure, GitHub, Stripe, Slack, OpenAI 等 |
| 危险 API | 15+ 个高风险 iOS API(strcpy, NSLog, malloc 等) |
| 追踪器检测 | 30+ 个广告/分析 SDK |
| 供应链 | 带有版本跟踪的 Framework 清单 |
| 网络情报 | DNS 解析与 IP 地理位置定位(`--network`) |
## 输出格式
JSON(默认)、SARIF 2.1.0、HTML 和 PDF。基于 OWASP 的 0–100 评分系统,分为 A–F 等级。
```
pavise app.ipa --format sarif -o report.sarif # IDE / GitHub Code Scanning
pavise app.ipa --format pdf -o report.pdf
pavise app.ipa --baseline previous.json # Diff against previous scan
pavise app.ipa --min-severity high # Filter by severity
pavise app.ipa --explain QS-BIN-001 # Explain a finding
pavise app.ipa --quiet # Score line only
```
## CI/CD
```
- uses: ahmetmutlugun/pavise/.github/actions/pavise@main
with:
ipa-path: build/App.ipa
format: sarif
fail-on: high
```
退出码:`0` 表示正常,`1` 表示存在高严重性发现,`2` 表示扫描错误。
## 自定义规则
```
rules:
- id: QS-SECRET-001
name: AWS Access Key
type: secret
severity: high
patterns:
- "AKIA[0-9A-Z]{16}"
```
通过 `--rules ./my-rules/` 传入自定义规则目录。
## 许可证
[MPL-2.0](LICENSE)
标签:iOS, LNA, Rust, 可视化界面, 多包管理, 机密检测, 目录枚举, 移动安全, 网络流量审计, 请求拦截, 通知系统, 错误基检测, 静态代码分析