AsHfIEXE/HellForge
GitHub: AsHfIEXE/HellForge
一个模块化、事件驱动的开源攻击面管理平台,整合被动侦察、漏洞发现、JS 情报提取与多因素风险评分为一体。
Stars: 1 | Forks: 0
# HELLFORGE
### *构建攻击面。狩猎不可能。*
[](https://opensource.org/licenses/MIT)
[](https://python.org)
[](https://fastapi.tiangolo.com)
[](https://reactjs.org)
[](#系统架构)
**HellForge** 是一个模块化、事件驱动的攻击面管理(ASM)和安全情报平台。它将被动侦察、HTTP 情报、JavaScript 密钥提取、漏洞关联、多因素风险评分和 AI 辅助的威胁向量分析统一在一个生态系统中。
## 系统架构
```
Web Dashboard (React + Vite + Cyber UI)
│
┌──────────────────────────────────────┼──────────────────────────────────────┐
▼ ▼ ▼
REST API (v1) WebSocket Telemetry CLI Utility
│ │ │
└──────────────────────────────────────┼──────────────────────────────────────┘
▼
Topic-Based Event Bus Manager
│
┌───────────────┬───────────────┬──────┴────────┬───────────────┬───────────────┐
▼ ▼ ▼ ▼ ▼ ▼
scan_bus asset_bus http_bus finding_bus risk_bus system_bus
(ScanContext) (AssetEvent) (HTTPEvent) (FindingEvent) (RiskEvent)
│ │ │ │ │ │
└───────────────┴───────────────┼───────────────┴───────────────┴───────────────┘
▼
Categorized Plugin Marketplace
┌────────────────────────────────┐
│ plugins/official/ │
│ ├── subfinder │
│ ├── httpx │
│ └── nuclei │
│ plugins/community/ │
│ plugins/private/ │
└────────────────────────────────┘
│
▼
Multi-Factor Risk Scoring Engine
│
▼
SQLAlchemy Async Relational Database
```
## 核心功能
- **事件驱动的 Topic 引擎:** 解耦的 Pub/Sub 消息传递机制可防止不相关的插件之间发生事件洪泛(`scan`、`asset`、`http`、`finding`、`risk`、`system`)。
- **不可变 DTO 契约:** 严格的 Pydantic 模型(`ScanContext`、`AssetEvent`、`HTTPEvent`、`FindingEvent`、`RiskEvent`)确保插件之间干净地进行通信,而不会直接更改 ORM 状态。
- **模块化多因素风险引擎:** 使用独立的评分器(`ExposureScorer`、`CVEScorer`、`TechnologyScorer`、`AuthScorer`)动态计算 0–100 的资产风险评分。
- **分类插件市场:** 自动从 `plugins/official`、`plugins/community` 和 `plugins/private` 发现插件,并进行 `plugin.yaml` 清单验证。
- **HellForge CLI 工具:** 完整的命令行套件(`hellforge doctor`、`hellforge scan`、`hellforge plugin`、`hellforge report`、`hellforge ai`)。
- **赛博玻璃质感仪表盘:** 交互式 React 仪表盘,具有 D3.js 网络拓扑图和实时的 AI Security Copilot。
## 快速开始
### 1. 前置条件
- Python 3.10+
- Node.js 18+
### 2. 后端设置
```
cd backend
pip install -r requirements.txt
python -m pytest tests # Run automated test suite
python app/main.py # Launch FastAPI server
```
### 3. 前端仪表盘设置
```
cd frontend
npm install
npm run dev
```
### 4. Docker 部署
```
docker-compose up --build
```
## CLI 使用
`hellforge` CLI 允许安全工程师直接从终端执行扫描、检查插件市场并运行系统健康检查。
```
# 运行系统诊断
python cli/hellforge_cli.py doctor
# 添加目标 domain
python cli/hellforge_cli.py target add example.com
# 执行 Event-Driven Scan Pipeline
python cli/hellforge_cli.py scan example.com
# 列出已安装的 marketplace plugins 和 event subscriptions
python cli/hellforge_cli.py plugin
# 生成 Executive Security Posture Report
python cli/hellforge_cli.py report
# 查询 HellForge AI Copilot
python cli/hellforge_cli.py ai "Explain XSS vector on dev portal"
```
## 编写第三方插件
插件是位于 `plugins/community/标签:AV绕过, FastAPI, GitHub, MITM代理, Python, React, SOC工具, Syscalls, 动态插桩, 安全侦察, 实时处理, 密码管理, 无后门, 漏洞发现, 请求拦截, 逆向工具