mysterious75/prometheus
GitHub: mysterious75/prometheus
Prometheus 是一个 AI 驱动的自主安全测试平台,通过多阶段流水线和对抗性验证机制自动发现并确认 Web 应用与基础设施中的漏洞。
Stars: 0 | Forks: 0
发现真实漏洞。通过概念验证进行确认。生成执行报告。
安装 •
功能 •
命令 •
API •
架构 •
定价
## 免责声明
## 什么是 Prometheus?
Prometheus 是一个**开源、AI 驱动的安全测试平台**,能够自主发现并验证 Web 应用、API、网络和云基础设施中的漏洞。
|
**为什么选择 Prometheus?**
- **21 个漏洞扫描器**,带有对抗性验证
- **5 阶段 pipeline**(侦察、搜寻、验证、追踪、报告)
- **777 个核心 payload** + 2,861 个 WAF 绕过变体
- **1,242+ 报告知识库**
- **Skill/插件系统**,按需加载
- **API 自动发现**(OpenAPI/Swagger/GraphQL)
- **支持离线工作** — 无需 API 密钥
- 用于自动化和 CI/CD 的 **REST API**
- **范围强制执行** — 强力阻止超出范围的测试
|
**支持的平台**
| 平台 | 状态 |
|----------|--------|
| Linux (Ubuntu/Debian) | 完全支持 |
| Linux (Fedora/RHEL) | 完全支持 |
| Linux (Arch) | 完全支持 |
| macOS (Intel + Apple Silicon) | 完全支持 |
| Windows 10/11 | 支持 (PowerShell) |
| Docker | 社区支持 |
| WSL2 (Windows Subsystem for Linux) | 完全支持 |
|
## 安装说明
### Linux (Ubuntu / Debian)
```
# 安装前置依赖
sudo apt update && sudo apt install -y python3 python3-pip python3-venv git
# 克隆并安装
git clone https://github.com/mysterious75/prometheus.git
cd prometheus
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
# 可选:安装外部工具以增强扫描
sudo apt install -y nmap whois dnsutils
pip install sqlmap sherlock-project
go install -v github.com/projectdiscovery/nuclei/v3/cmd/nuclei@latest
go install -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest
go install -v github.com/projectdiscovery/httpx/cmd/httpx@latest
# 运行
python3 -m src.entry
```
### Linux (Fedora / RHEL / CentOS)
```
# 安装前置依赖
sudo dnf install -y python3 python3-pip git
# 克隆并安装
git clone https://github.com/mysterious75/prometheus.git
cd prometheus
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
# 可选:安装外部工具
sudo dnf install -y nmap whois bind-utils
pip install sqlmap sherlock-project
# 运行
python3 -m src.entry
```
### Linux (Arch / Manjaro)
```
# 安装前置依赖
sudo pacman -S python python-pip git
# 克隆并安装
git clone https://github.com/mysterious75/prometheus.git
cd prometheus
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
# 可选:安装外部工具
sudo pacman -S nmap whois dnsutils
pip install sqlmap sherlock-project
# 运行
python3 -m src.entry
```
### macOS (Intel & Apple Silicon)
```
# 安装前置依赖(如果尚未安装)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install python3 git go
# 克隆并安装
git clone https://github.com/mysterious75/prometheus.git
cd prometheus
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
# 可选:安装外部工具
brew install nmap
pip install sqlmap sherlock-project
go install -v github.com/projectdiscovery/nuclei/v3/cmd/nuclei@latest
go install -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest
go install -v github.com/projectdiscovery/httpx/cmd/httpx@latest
# 运行
python3 -m src.entry
```
### Windows 10/11 (PowerShell)
```
# 安装前置依赖
# 从 https://www.python.org/downloads/ 安装 Python 3.10+
# 从 https://git-scm.com/download/win 安装 Git
# 在安装过程中勾选“Add Python to PATH”
# 克隆并安装
git clone https://github.com/mysterious75/prometheus.git
cd prometheus
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
# 可选:安装外部工具
pip install sqlmap sherlock-project
# 从 https://nmap.org/download.html 安装 nmap
# 从 https://go.dev/dl/ 安装 Go,然后执行:
# go install github.com/projectdiscovery/nuclei/v3/cmd/nuclei@latest
# 运行
python -m src.entry
```
### Windows (WSL2 — 推荐用于 Windows)
```
# 在 WSL2 终端 (Ubuntu) 中:
sudo apt update && sudo apt install -y python3 python3-pip python3-venv git
git clone https://github.com/mysterious75/prometheus.git
cd prometheus
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python3 -m src.entry
```
### Docker
```
git clone https://github.com/mysterious75/prometheus.git
cd prometheus
docker build -t prometheus .
docker run -it prometheus
```
### 一键安装 (Linux/macOS)
```
git clone https://github.com/mysterious75/prometheus.git && cd prometheus && bash install.sh
```
安装程序会自动:
- 检测您的操作系统和包管理器
- 检查 Python 3.10+(如果缺少则进行安装)
- 创建虚拟环境
- 安装 Python 依赖
- 如果可用,安装外部工具
- 创建全局 `prometheus` 命令
### pip 安装 (所有平台)
```
git clone https://github.com/mysterious75/prometheus.git
cd prometheus
pip install -e .
# 然后运行:prometheus
```
## 首次扫描
```
prometheus # Start interactive CLI
authorize example.com # Authorize target
scan example.com # Full autonomous scan
```
### 快速命令
```
prometheus scan example.com # Full autonomous scan
prometheus owasp https://target.com # OWASP methodology (12 phases)
prometheus crypto target.com # SSL/TLS deep analysis
prometheus quick target.com # Fast scan (top vulns only)
prometheus stealth target.com # Slow, stealthy scan
```
### REST API
```
python -m src.api.app # Start API server
# 打开 http://localhost:8000/docs 查看交互式文档
```
### Python 库
```
from src.main import Prometheus
p = Prometheus()
result = p.assess("example.com")
print(result["findings"])
```
## 功能
### 21 个漏洞扫描器
|
**注入**
- SQL Injection(198 种模式,8 种 DBMS)
- XSS(上下文感知、DOM、存储型、WAF 绕过)
- Command Injection(Linux + Windows)
- SSTI(Jinja2、Twig、Freemarker、Velocity、ERB、Pug)
- XXE(文件读取、SSRF、盲注)
- HTTP Smuggling(CL.TE / TE.CL / TE.TE)
|
**访问与逻辑**
- IDOR / BOLA(多会话)
- Auth Bypass(默认凭据、管理面板)
- Path Traversal(30+ 编码绕过)
- Open Redirect(28 种绕过技术)
- CORS 配置错误
- Race Conditions
|
**配置**
- 暴露的敏感信息(25 种正则表达式模式)
- 安全 Header(10 个关键 header)
- SSL/TLS/密码学(弱密码、证书验证)
- 业务逻辑(价格篡改、跳过步骤)
- Session 管理(cookie 标志、CSRF、JWT)
- OWASP 测试方法论(12 个阶段)
|
### 对抗性验证
三阶段验证消除了误报:
```
Finding ──> Hunter (confirm) ──> Skeptic (disprove) ──> Referee (verdict)
│
┌───────────────────┼───────────────────┐
│ │ │
CONFIRMED LIKELY_FALSE_POS FALSE_POSITIVE
│ │ │
KEEP KEEP (low) DROP
```
### Payload 引擎
```
777 Core Payloads
├── SQLi: 235 ├── XSS: 194 ├── SSRF: 73
├── CMDi: 78 ├── SSTI: 43 ├── Others: 154
Dynamic Variant Generation
├── URL encoding ├── Double URL encoding
├── HTML entity ├── Unicode
├── Case variation ├── Comment injection
└── Whitespace substitution
Result: 2,861+ effective payloads with WAF bypass
Learning System: Caches successful payloads
Context-Aware: DBMS, WAF, framework detection
```
### 5 阶段 Pipeline
```
Stage 1 RECON Fast model Subdomains, ports, HTTP, crawl, API discovery
Stage 2 HUNT Primary model Run all 21 vulnerability scanners
Stage 3 VALIDATE Reasoning model Adversarial review (Hunter-Skeptic-Referee)
Stage 4 TRACE Primary model Prove attacker input reaches vulnerable sink
Stage 5 REPORT Fast model Executive report with confirmed findings only
```
### Skill/插件系统
8 个 YAML skill 文件,包含结构化的方法论、payload 和检测模式:
```
sqli.yml xss.yml ssrf.yml idor.yml auth_bypass.yml api_security.yml cloud_security.yml session_mgmt.yml
```
Skill 会根据目标特征按需自动加载。
## 命令
|
**评估**
| 命令 | 描述 |
|---------|-------------|
| `scan ` | 完整的自主评估 |
| `recon ` | 仅执行侦察 |
| `osint ` | OSINT(用户名/域名) |
| `quick ` | 快速扫描(主要漏洞) |
| `stealth ` | 缓慢、隐蔽的扫描 |
|
**基于 OWASP / 书籍**
| 命令 | 描述 |
|---------|-------------|
| `owasp ` | OWASP Testing Guide v4 |
| `business ` | 业务逻辑测试 |
| `session ` | Session 管理 |
| `crypto ` | SSL/TLS 分析 |
| `api ` | API 安全 |
| `report ` | 执行报告 |
|
**系统**
| 命令 | 描述 |
|---------|-------------|
| `authorize ` | 授权目标 |
| `revoke ` | 撤销授权 |
| `targets` | 列出已授权目标 |
| `kb [query]` | 知识库 |
| `history` | 历史扫描记录 |
| `pricing` | 定价方案 |
| `bounty` | Bug bounty 项目 |
| `status` | 系统状态 |
| `tools` | 工具可用性 |
|
## API
基于 FastAPI 的 REST API,用于自动化和 CI/CD 集成:
```
python -m src.api.app
# 交互式文档位于 http://localhost:8000/docs
```
| 方法 | Endpoint | 描述 |
|--------|----------|-------------|
| `POST` | `/scan` | 启动新的扫描 |
| `GET` | `/scan/{id}` | 获取扫描状态和结果 |
| `GET` | `/scans` | 列出所有扫描 |
| `GET` | `/findings` | 获取发现结果(按严重程度、类型过滤) |
| `GET` | `/report/{id}` | 获取报告(Markdown 或 JSON 格式) |
| `POST` | `/authorize` | 授权目标 |
| `GET` | `/targets` | 列出已授权目标 |
| `GET` | `/status` | 系统状态 |
| `GET` | `/tools` | 工具可用性 |
### Python 客户端
```
from src.api.client import PrometheusClient
client = PrometheusClient(base_url="http://localhost:8000", api_key=***
scan_id = client.scan("example.com")
result = client.wait_for_scan(scan_id)
findings = client.get_findings(scan_id, severity="HIGH")
report = client.get_report(scan_id, format="markdown")
```
## 架构
```
src/
├── core/ Foundation
│ ├── config.py Configuration
│ ├── auth.py Authorization-first security
│ ├── scope.py Scope enforcement
│ ├── state.py Scan state persistence (resume)
│ └── resources.py System resource monitoring
│
├── agent/ AI Agent brain
│ ├── orchestrator.py Multi-agent orchestrator
│ ├── pipeline.py 5-stage pipeline
│ ├── recon_agent.py Reconnaissance specialist
│ ├── scan_agent.py Vulnerability scanning specialist
│ ├── exploit_agent.py Exploit validation specialist
│ └── report_agent.py Report generation specialist
│
├── scanner/ Vulnerability detection (21 scanners)
│ ├── sqli.py SQL Injection (198 patterns, 8 DBMS)
│ ├── xss.py XSS (context-aware, DOM, stored)
│ ├── ssrf.py SSRF (23 cloud, 32 internal targets)
│ ├── adversarial.py Adversarial validation
│ ├── payload_engine.py 777 core payloads + variants
│ ├── api_discovery.py OpenAPI/Swagger/GraphQL discovery
│ ├── owasp_methodology.py OWASP Testing Guide v4
│ ├── business_logic.py Business logic testing
│ ├── session_manager.py Session management
│ ├── crypto_scanner.py SSL/TLS/crypto
│ ├── api_security.py API security
│ └── executive_report.py Executive report generator
│
├── skills/ Skill/plugin system
│ ├── loader.py On-demand skill loading
│ └── *.yml 8 skill files
│
├── tools/ External tool wrappers
│ ├── nuclei.py Nuclei (177 fallback paths)
│ ├── sqlmap.py SQLMap (128 fallback payloads)
│ ├── subfinder.py Subfinder (246 fallback prefixes)
│ ├── httpx.py httpx (HTTP probing)
│ ├── portscan.py Nmap (320 fallback ports)
│ └── sherlock.py Sherlock (123 fallback platforms)
│
├── brain/ LLM router (14 providers)
├── knowledge/ Knowledge base (1,242+ reports)
├── api/ REST API (FastAPI)
├── market/ Market features
├── cli/ Interactive CLI
├── main.py Orchestrator (with LLM)
└── offline.py Orchestrator (without LLM)
```
## 工具回退机制
每个工具在没有外部二进制文件的情况下也能工作(Python 回退模式):
| 工具 | 二进制模式 | 回退模式 | 回退范围 |
|------|-------------|---------------|---------------|
| Nuclei | 12,000+ YAML 模板 | HTTP 路径检查 | 177 条路径 |
| Subfinder | 40+ 被动来源 | crt.sh + DNS 暴力破解 | 246 个前缀 |
| httpx | HTTP 探测 | Python httpx | 完整 |
| SQLMap | SQLi 利用 | 基础 SQLi payload | 128 个 payload |
| Sherlock | 400+ 平台 | 基于 HTTP 的检查 | 123 个平台 |
| Nmap | 端口扫描 + 服务探测 | Python socket | 320 个端口 |
## 支持的 LLM 提供商
| 提供商 | 角色 | 免费层级 |
|----------|------|-----------|
| DeepSeek | 主要 | 便宜,上下文长 |
| Gemini (1-3 个密钥) | 快速 | 每个每天 150K token |
| OpenRouter | 回退 | 提供免费模型 |
| OpenAI | 备用 | 付费 |
| Anthropic | 备用 | 付费 |
| Qwen、Kimi、GLM | 备用 | 免费层级 |
## 定价
| 层级 | USD | INR | 功能 |
|------|-----|-----|----------|
| **Free** | $0 | Rs.0 | 5 个 URL/月,5 个扫描器,CLI |
| **Pro** | $19/月 | Rs.1,499/月 | 无限 URL,全部 21 个扫描器,API,OWASP 方法论 |
| **Team** | $99/月 | Rs.7,499/月 | + 5 名成员,持续扫描,CI/CD,合规性 |
| **Enterprise** | $299/月 | Rs.22,499/月 | + SSO,本地部署,自定义 playbook,SLA |
## 测试
```
python -m pytest tests/ -v # Run all tests
python -m pytest tests/ --tb=short # Quick smoke test
```
**251 个通过,99.6% 通过率**
## 安全性
- **需要授权** — 仅扫描已授权目标
- **范围强制执行** — 强力阻止超出范围的测试目标
- **速率限制** — 可配置的每秒请求数(默认:10)
- **资源监控** — 系统过载时自动降速
- **无 shell 注入** — 命令使用参数列表,从不使用 `shell=True`
- **API 密钥保留在本地** — `.env` 已被 gitignore
- **状态持久化** — 扫描进度保存到磁盘,可断点续传
## 贡献
1. Fork 该仓库
2. 创建一个功能分支 (`git checkout -b feature/amazing-feature`)
3. 提交您的更改 (`git commit -m 'Add amazing feature'`)
4. 推送到该分支 (`git push origin feature/amazing-feature`)
5. 发起一个 Pull Request
## 开源协议
MIT License — 详情请参阅 [LICENSE](LICENSE)。
## 鸣谢
| 项目 | 贡献 | 开源协议 |
|---------|--------------|---------|
| [ProjectDiscovery](https://github.com/projectdiscovery) | Nuclei、Subfinder、httpx | MIT |
| [SnailSploit/Claude-Red](https://github.com/SnailSploit/Claude-Red) | Skill 系统架构 | MIT |
| [codexstar69/bug-hunter](https://github.com/codexstar69/bug-hunter) | 对抗性验证模式 | MIT |
| [ZephrFish/harness-kit](https://github.com/ZephrFish/harness-kit) | 5 阶段 pipeline 设计 | Public |
| [The-XSS-Rat/subScraper](https://github.com/The-XSS-Rat/subScraper) | 有状态扫描设计 | Public |
| [DevCop95/bugbounty-lab101](https://github.com/DevCop95/bugbounty-lab101) | 范围强制执行 | MIT |
| [rawfilejson/awesome-osint-arsenal](https://github.com/rawfilejson/awesome-osint-arsenal) | 工具清单 | MIT |
| [Brutecat](https://brutecat.com/articles/hacking-google-with-ai/) | API 发现技术 | Blog |
| [Joseph Thacker](https://josephthacker.com/hacking/2026/07/01/we-built-a-hackbot.html) | Hackbot 方法论 | Blog |
| [Niels Provos](https://www.provos.org/p/finding-zero-days-with-any-model/) | 编排 > 模型 | Blog |
| 安全研究社区 | 1,242+ 份 bug bounty 报告 | Various |
专为授权安全测试而构建。请负责任地使用。
报告 Bug •
请求功能
标签:AV绕过, CISA项目, FastAPI, LNA, Python, REST API, 主机安全, 安全测试, 密码管理, 攻击性安全, 无后门, 网络测绘, 自动化渗透测试, 请求拦截, 逆向工具