op7ic/amphunt
GitHub: op7ic/amphunt
为 Cisco Secure Endpoint 提供高级威胁狩猎与自动化分析的 Python 工具集合。
Stars: 14 | Forks: 5
# amphunt
本仓库包含用于 [Cisco Secure Endpoint](https://www.cisco.com/site/us/en/products/security/endpoint-security/secure-endpoint/index.html) API 的高级威胁狩猎脚本。这些脚本利用 AMP API 搜索威胁、分析终端行为,并使用 API 版本 0 和 1 检测整个环境中的潜在妥协。
## 概述
这些脚本基于一个 Python 库(`amp_client`),它提供以下功能:
- **速率限制**:自动 API 速率限制管理
- **连接池**:通过连接复用提升性能
- **响应缓存**:减少冗余 API 调用
- **错误处理**:优雅的降级和自动重试
已知的 Windows SHA256 哈希值取自 [WINFINGER](https://github.com/op7ic/WINFINGER) 仓库,可用于搜索潜在的恶意命令,例如 `net user admin /add` 这类依赖内置 Windows 工具的命令。多个包含已知黑客工具包的 GitHub 仓库的哈希值也已提供,以增强检测能力。
## 安装
1. **克隆仓库:**
```
git clone https://github.com/op7ic/amphunt.git
cd amphunt
```
2. **安装 AMP 客户端库:**
```
pip install -e .
```
3. **配置 API 凭证:**
创建 `config.txt` 文件(参见[示例](config.txt)):
```
[settings]
client_id = YOUR_CLIENT_ID
api_key = YOUR_API_KEY
region = nam # nam, eu, or apjc
```
或使用环境变量:
```
export AMP_CLIENT_ID="your_client_id"
export AMP_API_KEY="your_api_key"
export AMP_REGION="nam" # nam, eu, or apjc
```
## AMP API 端点
选择适合您区域的端点:
- `nam` - 北美(`api.amp.cisco.com`)
- `eu` - 欧洲(`api.eu.amp.cisco.com`)
- `apjc` - 亚太、日本和中国(`api.apjc.amp.cisco.com`)
## 脚本文档
### 时间线分析
#### timeliner.py
提取所有端点的完整事件时间线,并为每个端点写入独立文件。
**用法:**
```
python3 timeliner.py -c -o
标签:AI SKILLs, AMP API, AMSI绕过, API v0, API v1, Cisco Secure Endpoint, IOC检测, PB级数据处理, Python, Windows 调试器, WINFINGER, 哈希匹配, 威胁情报, 威胁检测, 安全运维, 开发者工具, 数字取证, 无后门, 爬虫与收集, 端点取证, 端点安全, 端点监测, 网络安全, 自动化脚本, 补丁管理, 逆向工具, 隐私保护