AttackMapper 是一款用于红队行动的 CLI 工具,可生成攻击路径、将技术映射到 MITRE ATT&CK 框架,并集成实时威胁情报。生成带有攻击流可视化的交互式 HTML 报告。
┌─────────────────┬─────────────────────────────────────────┐
│ Active Directory│ Kerberos, ADCS, GPO, DCSync, Golden Ticket│
│ AWS │ IAM, S3, Lambda, EC2 权限提升 │
│ Azure │ Entra ID, Key Vault, 托管标识 │
│ GCP │ IAM, Cloud Functions, 服务账户 │
│ Network │ 传统网络攻击向量 │
└─────────────────┴─────────────────────────────────────────┘
# 克隆仓库
git clone https://github.com/Sai-Jagadeesh/attackmapper.git
cd attackmapper
# 安装
pip install -e .
# 验证
attackmapper --help
# Active Directory
attackmapper ad
# 云基础设施
attackmapper aws
attackmapper azure
attackmapper gcp
# 网络
attackmapper network
# 完整攻击链报告
attackmapper full-chain --infra ad --output report.html --format html
# 按攻击阶段过滤
attackmapper ad --category credential_access
# 更新威胁源
attackmapper update-intel
# 查看威胁情报
attackmapper threat-intel --infra ad
AttackMapper 集成了来自多个来源的实时威胁情报:
| 来源 | 数据 |
|---|---|
| CISA KEV | 已知被利用漏洞 |
| AlienVault OTX | 开放威胁交换源 |
| CVE 数据库 | 实时漏洞跟踪 |
cp .env.example .env
# AlienVault OTX API 密钥(免费获取于 otx.alienvault.com)
OTX_API_KEY=your_api_key_here
# Fork 并克隆
git checkout -b feature/your-feature
git commit -m 'Add feature'
git push origin feature/your-feature
# 提交 Pull Request
MIT 许可证
警告 本工具仅用于授权的安全测试和红队行动。请务必在扫描不属于您的系统前获得适当授权。作者不对本工具的滥用负责。
专为红队行动打造
| 功能特性 | 描述 |
|---|
| 攻击路径映射 | 可视化从侦察到影响的完整杀伤链 |
| MITRE ATT&CK 集成 | 技术映射到官方 ATT&CK 框架 |
| 实时威胁情报 | 实时 CVE、威胁行为者和热门 TTP |
| 多基础设施支持 | AD、AWS、Azure、GCP 和网络攻击路径 |
| 交互式报告 | 支持过滤和搜索的现代 HTML 仪表盘 |
| 命令 | 描述 |
|---|
attackmapper ad | Active Directory 攻击路径 |
attackmapper aws | AWS 云攻击路径 |
attackmapper azure | Azure 云攻击路径 |
attackmapper gcp | GCP 云攻击路径 |
attackmapper network | 网络攻击路径 |
attackmapper full-chain | 生成完整攻击链 |
attackmapper threat-intel | 查看威胁情报 |
attackmapper update-intel | 更新威胁情报源 |