x-glacier/kali-pentest / kali-pentest-zh
kali-pentest-zh
Flagged通过 SSH 或 Docker 使用 Kali Linux CLI 工具执行授权渗透测试。 覆盖:信息收集、漏洞分析、嗅探与欺骗、Web/API 渗透、漏洞利用、密码攻击、无线、云原生安全、RFID/NFC、VoIP/ICS、逆向工程、取证分析、后渗透/C2、报告生成。
references/cloud-native/tools/azurehound.md
View on GitHub# AzureHound
- **Category**: Cloud-Native / Azure
- **Risk Level**: 🔴 High
---
## 描述
azurehound 为 BloodHound CE 收集 Azure Active Directory 和 Azure Resource Manager 数据。它通过枚举用户、组、应用程序、服务主体、订阅、资源组、虚拟机、密钥保管库和角色分配来映射 Azure 租户中的攻击路径。是本地 Active Directory SharpHound 的 Azure 对应工具。使用 Go 编写,输出的 JSON 文件可直接导入 BloodHound CE 进行基于图的攻击路径分析。
## 安装
```bash
sudo apt install azurehound
```
替代方式(从 GitHub 发布页下载):
```bash
wget https://github.com/SpecterOps/AzureHound/releases/latest/download/azurehound-linux-amd64.zip
unzip azurehound-linux-amd64.zip
chmod +x azurehound
sudo mv azurehound /usr/local/bin/
```
## 参数说明
### 顶层标志
| 参数 | 说明 |
|-----------|-------------|
| `-c, --config <file>` | AzureHound 配置文件(默认:~/.config/azurehound/config.json) |
| `-j, --jwt <token>` | 使用已获取的 JWT 认证到 Azure |
| `-r, --refresh-token <token>` | 使用已获取的刷新令牌认证到 Azure |
| `--json` | 以 JSON 格式输出日志 |
| `--log-file <file>` | 将日志输出到此文件 |
| `--proxy <url>` | 设置 AzureHound 服务的代理 URL |
| `-U, --user-agent <string>` | 自定义 User-Agent 头 |
| `-v, --verbosity <int>` | 详细级别(默认 0)[最小:-1,最大:2] |
### 子命令
| 子命令 | 说明 |
|-----------|-------------|
| `list` | 列出 Azure 对象(为 BloodHound CE 收集数据) |
| `start` | 启动 BloodHound Enterprise 的 Azure 数据收集服务 |
| `configure` | 配置 AzureHound |
### `list` 子命令
收集 Azure 数据。支持收集特定对象类型:
| 用法 | 说明 |
|-----------|-------------|
| `list` | 收集所有 Azure 数据 |
| `list az-rm` | 收集 Azure Resource Manager 数据 |
| `list az-ad` | 收集 Azure Active Directory 数据 |
| `list az-ad --users` | 仅收集用户对象 |
| `list az-ad --groups` | 仅收集组对象 |
| `list az-ad --apps` | 仅收集应用程序对象 |
| `list az-ad --service-principals` | 仅收集服务主体对象 |
| `-o, --output <file>` | 输出文件路径(JSON 格式,`list` 子命令标志) |
## 常用命令
### 场景 1:使用 JWT 认证并收集所有数据
```bash
# 使用 JWT 令牌认证并收集所有数据
azurehound -j <jwt-token> list -o output.json
# 使用刷新令牌认证
azurehound -r <refresh-token> list -o output.json
```
### 场景 2:收集特定数据类型
```bash
# 仅收集 Azure AD 数据
azurehound -j <jwt-token> list az-ad -o azuread.json
# 仅收集 Azure Resource Manager 数据
azurehound -j <jwt-token> list az-rm -o azurerm.json
# 仅收集用户
azurehound -j <jwt-token> list az-ad --users -o users.json
```
### 场景 3:使用配置文件
```bash
# 使用配置文件运行(先通过 `azurehound configure` 配置凭据)
azurehound -c config.json list -o output.json
```
### 场景 4:导入 BloodHound CE
```bash
# 通过 API 将收集的数据上传到 BloodHound CE
curl -X POST https://<bloodhound-ce>/api/v2/file-upload \
-H "Authorization: Bearer <api-token>" \
-F "file=@output.json"
```
## 注意事项
1. azurehound 至少需要目标租户的 Reader 权限才能枚举对象。已认证主体的权限越多,收集的数据越完整。
2. 收集的 JSON 输出专为 BloodHound CE(社区版)设计——确保 BloodHound 实例已更新到支持 Azure 数据导入的版本。
3. 自动化收集时,建议使用配置文件(`-c`)预配置凭据,而非在命令行中直接传递。使用 `azurehound configure` 交互式设置配置。
4. 数据收集会在 Azure AD 审计日志中生成记录——需与评估范围协调并关注检测风险。
5. 租户配置通过配置文件或 `list` 子命令标志处理——没有顶层 `--tenant` 标志。
---
## 官方参考
- [AzureHound (GitHub)](https://github.com/SpecterOps/AzureHound)
- [azurehound — Kali Tools](https://www.kali.org/tools/azurehound/)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |