x-glacier/kali-pentest / kali-pentest-zh
kali-pentest-zh
Flagged通过 SSH 或 Docker 使用 Kali Linux CLI 工具执行授权渗透测试。 覆盖:信息收集、漏洞分析、嗅探与欺骗、Web/API 渗透、漏洞利用、密码攻击、无线、云原生安全、RFID/NFC、VoIP/ICS、逆向工程、取证分析、后渗透/C2、报告生成。
references/forensics/tools/chainsaw.md
View on GitHub# Chainsaw
- **Category**: Forensics / Windows Event Log Analysis
- **Risk Level**: 🟢 Low
---
## 描述
一款高速取证工具,用于在 Windows 事件日志(EVTX)、MFT 文件及其他 Windows 工件中进行威胁狩猎。使用 Sigma 规则和自定义 Chainsaw 检测规则,在大量日志集合中识别攻击者技术、可疑命令和 IoC。对于红队操作员(验证自身行动是否留有日志痕迹)和执行威胁狩猎的事件响应人员而言均不可或缺。
## 安装
```bash
sudo apt install chainsaw
```
## 参数说明
### `chainsaw hunt <dir>` — 使用检测规则进行狩猎
| 参数 | 说明 |
|------|------|
| `-s <dir>` | 包含 Sigma 规则的路径 |
| `-r <dir>` | 包含额外狩猎规则的路径 |
| `--mapping <file>` | 告知 Chainsaw 如何使用第三方规则的映射文件 |
| `--json` | 以 JSON 格式打印输出 |
| `--csv` | 以 CSV 格式打印输出 |
| `-o <file>` | 结果输出路径 |
### `chainsaw search <keyword> <dir>` — 关键词搜索
| 参数 | 说明 |
|------|------|
| `-e <regex>` | 要搜索的字符串或正则表达式模式 |
| `-t <filter>` | Tau 表达式搜索条件(例如 `Event.System.EventID: =4104`) |
| `--json` | 以 JSON 格式打印输出 |
| `-i` | 匹配时忽略大小写(`--ignore-case`) |
## 常用命令
```bash
# 使用 Sigma 规则进行威胁狩猎
chainsaw hunt /mnt/evidence/evtx/ -s sigma/ --mapping mappings/sigma-event-logs-all.yml -r rules/
# 狩猎并输出 JSON
chainsaw hunt /mnt/evidence/evtx/ -s sigma/ --mapping mappings/sigma-event-logs-all.yml --json -o results.json
# 搜索 mimikatz 相关指标
chainsaw search mimikatz /mnt/evidence/evtx/
# 搜索 PowerShell 事件(Event ID 4104)
chainsaw search -t 'Event.System.EventID: =4104' /mnt/evidence/evtx/
# 使用特定正则表达式模式搜索
chainsaw search -e "powershell.*-enc" /mnt/evidence/evtx/
# 将事件导出为 JSON 供手动审查
chainsaw dump /mnt/evidence/evtx/ --json -o events.json
```
## 注意事项
1. 单独下载 Sigma 规则和映射文件:`git clone https://github.com/SigmaHQ/sigma.git`
2. Chainsaw 速度极快——使用并行线程在数秒内处理数千个 EVTX 文件。
3. 使用 `hunt` 进行自动化威胁检测;使用 `search` 进行有针对性的关键词或正则表达式狩猎。
4. 作为红队操作员,可对自己的攻击日志运行 Chainsaw,验证留下了哪些证据。
5. 在事件响应工作流中,将 Volatility3(内存取证)与 Chainsaw(事件日志分析)配合使用。
---
## 官方参考
- [Chainsaw (GitHub)](https://github.com/WithSecureLabs/chainsaw)
- [Kali chainsaw](https://www.kali.org/tools/chainsaw/)
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 |