OfficialTech-X-JT/jambersec
GitHub: OfficialTech-X-JT/jambersec
JamberSec 是一个 AI 驱动的自托管开源安全平台,通过统一仪表板编排十余款顶尖渗透测试工具,实现全流程自动化漏洞扫描与报告生成。
Stars: 0 | Forks: 0
# JamberSec
### AI 驱动的安全平台 —— 自托管,开源
[](LICENSE)
[](https://nodejs.org)
[](https://github.com/OfficialTech-X-JT/jambersec/stargazers)
[](https://github.com/OfficialTech-X-JT/jambersec/issues)
[](CONTRIBUTING.md)
**JamberSec** 是一个强大且自托管的安全平台,将全球最顶尖的开源渗透测试工具汇聚于一个精美且深色的仪表板之下——具备 AI 驱动的分析、实时扫描输出、自动化 pipeline、定时扫描以及 PDF 报告生成功能。

[文档](docs/) | [报告 Bug](https://github.com/OfficialTech-X-JT/jambersec/issues) | [请求功能](https://github.com/OfficialTech-X-JT/jambersec/issues)
## 功能
### 全流程扫描
分 5 个连续阶段**自动启动 15+ 顶尖工具**,每个阶段支持并行执行:
```
Phase 1 -- OSINT & Recon --> BBOT, Amass, Subfinder, gau
Phase 2 -- Port Blast --> Masscan (2000x), RustScan (100x), Naabu
Phase 3 -- Web Intelligence --> httpx, Katana, tlsx, dnsx
Phase 4 -- Vulnerability Hunt --> Nuclei v3, Dalfox, Ghauri, Feroxbuster
Phase 5 -- AI Analysis --> Strix AI (LLM-powered)
```
### 顶尖工具库
| 类别 | 工具 | 速度 | 描述 |
|---|---|---|---|
| 端口扫描 | **Masscan** | 2000x | 25 Gbps 扫描器 —— 6 分钟扫描全网 |
| 端口扫描 | **RustScan** | 100x | 异步 Rust —— 3 秒内扫描 65535 个端口 |
| 侦察 | **BBOT** | 50+ 模块 | 多合一侦察框架 |
| 子域名 | **Amass** | 深度 | OWASP —— 最彻底的子域名枚举 |
| 漏洞 | **Nuclei v3** | 5 万 CVE | 基于模板的 CVE 扫描器 |
| XSS | **Dalfox** | 智能 | 支持解析 DOM 的最快 XSS 扫描器 |
| SQLi | **Ghauri** | 绕过 WAF | 现代 SQLi —— 比 SQLMap 更智能 |
| 目录 Fuzz | **Feroxbuster** | 50x | 基于 Rust 的递归目录 fuzzer |
| 爬取 | **Katana** | 感知 JS | 下一代 Web 爬虫 |
| HTTP | **httpx** | 100x | 技术检测、CDN 及状态探测 |
### 核心平台功能
- **实时终端** —— 每个工具支持基于 WebSocket 的实时输出流
- **PDF 报告** —— 每次扫描均可导出专业的 PDF
- **定时扫描** —— 基于 Cron 的自动化调度
- **目标管理** —— 保存和组织目标
- **扫描历史** —— 完全可搜索的扫描数据库
- **密码保护** —— 安全的会话身份验证
- **深色模式** —— 默认提供高级深色 UI
## 架构
```
Browser (SPA)
Dark Dashboard + WebSocket Client
|
| HTTPS / WSS
v
Nginx Reverse Proxy
(SSL Termination, Port 443)
|
v
Express.js Backend (Port 3501)
+-- REST API (/api/*)
+-- WebSocket (real-time output)
+-- node-cron (scheduler)
+-- Tool Execution Engine (child_process.spawn)
|
v
SQLite Database
(scans, targets, schedules)
|
+----+----+
| |
CLI Tools Go Binaries Python Tools
masscan nuclei bbot
rustscan httpx ghauri
ferox katana
nmap dalfox
subfinder
```
## 快速开始
### 前置条件
- Ubuntu 20.04+ / Debian 11+
- Node.js 18+
- Go 1.21+
- Python 3.9+
- 建议 2GB+ 内存
### 1. 克隆
```
git clone https://github.com/OfficialTech-X-JT/jambersec.git
cd jambersec
```
### 2. 安装依赖
```
npm install
```
### 3. 配置环境
```
cp .env.example .env
nano .env
```
### 4. 安装安全工具
```
chmod +x scripts/install-tools.sh
sudo bash scripts/install-tools.sh
```
### 5. 启动
```
# 开发
npm run dev
# Production (PM2)
npm run start:prod
```
访问 `http://localhost:3501` 并使用您配置的密码登录。
## 配置
所有配置均通过 `.env` 文件进行:
```
# Authentication
ACCESS_PASSWORD=your_secure_password_here
# AI 集成(可选)
LLM_PROVIDER=groq
LLM_MODEL=llama-3.3-70b-versatile
LLM_API_KEY=your_llm_api_key_here
# 服务器
PORT=3501
NODE_ENV=production
# Tool 路径
GO_BIN_PATH=/home/ubuntu/go/bin
STRIX_PATH=/home/ubuntu/.local/bin/strix
```
## Docker
```
# 构建与运行
docker-compose up -d
# 查看日志
docker-compose logs -f jambersec
```
## 项目结构
```
jambersec/
+-- server.js Main Express + WebSocket server
+-- package.json Node.js dependencies
+-- .env.example Environment variable template
+-- public/
| +-- index.html Single-page dashboard
+-- scripts/
| +-- install-tools.sh One-click tool installer
+-- docs/
| +-- installation.md Detailed install guide
| +-- api.md REST API reference
+-- docker/
| +-- Dockerfile
| +-- docker-compose.yml
+-- LICENSE MIT License
+-- CONTRIBUTING.md
+-- SECURITY.md
```
## REST API 参考
| 方法 | Endpoint | 描述 |
|--------|----------|-------------|
| `POST` | `/api/login` | 身份验证 |
| `POST` | `/api/logout` | 退出登录 |
| `GET` | `/api/auth` | 检查认证状态 |
| `POST` | `/api/scan/start` | 启动单工具扫描 |
| `POST` | `/api/scan/stop` | 停止正在运行的扫描 |
| `GET` | `/api/scans` | 列出所有扫描 |
| `GET` | `/api/scan/:id/log` | 获取扫描输出 |
| `GET` | `/api/scan/:id/report` | 下载 PDF 报告 |
| `POST` | `/api/pipeline/start` | 启动全 pipeline 扫描 |
| `GET` | `/api/targets` | 列出目标 |
| `POST` | `/api/targets` | 添加目标 |
| `DELETE` | `/api/targets/:id` | 删除目标 |
| `GET` | `/api/schedules` | 列出计划任务 |
| `POST` | `/api/schedules` | 创建计划任务 |
| `PATCH` | `/api/schedules/:id/toggle` | 切换计划任务状态 |
| `DELETE` | `/api/schedules/:id` | 删除计划任务 |
| `GET` | `/api/stats` | 平台统计数据 |
### WebSocket 事件
```
// Subscribe to scan output
ws.send(JSON.stringify({ type: 'subscribe', scanId: 'uuid' }));
// Subscribe to pipeline
ws.send(JSON.stringify({ type: 'pipeline_subscribe', pipelineId: 'uuid' }));
// Incoming events:
// { type: 'log', data: 'terminal output' }
// { type: 'done', scanId: 'uuid', findings: 5 }
// { type: 'phase_start', phase: 'Phase 1', phaseIdx: 0 }
// { type: 'pipeline_done', pipelineId: 'uuid' }
```
## 安全
- 所有 endpoint 均需密码身份验证
- 代码中无凭证 —— 所有密钥均通过 `.env` 读取
- 使用 HTTP-only cookie 的基于会话的身份验证
- 建议 HTTPS —— 部署在带有 SSL 的 Nginx 之后
有关我们的安全策略,请参阅 [SECURITY.md](SECURITY.md)。
## 致谢
JamberSec 集成了以下令人惊叹的开源项目。
所有依赖分叉均维护在 [OfficialTech-X-JT](https://github.com/OfficialTech-X-JT) 用户主页下。
### ProjectDiscovery 套件
| 工具 | 原始仓库 | 我们的 Fork | 描述 |
|------|----------|----------|-------------|
| Nuclei v3 | [projectdiscovery/nuclei](https://github.com/projectdiscovery/nuclei) | [Fork](https://github.com/OfficialTech-X-JT/nuclei) | 50,000+ CVE 模板 |
| httpx | [projectdiscovery/httpx](https://github.com/projectdiscovery/httpx) | [Fork](https://github.com/OfficialTech-X-JT/httpx) | HTTP 探测 |
| Subfinder | [projectdiscovery/subfinder](https://github.com/projectdiscovery/subfinder) | [Fork](https://github.com/OfficialTech-X-JT/subfinder) | 子域名枚举 |
| Katana | [projectdiscovery/katana](https://github.com/projectdiscovery/katana) | [Fork](https://github.com/OfficialTech-X-JT/katana) | Web 爬虫 |
| dnsx | [projectdiscovery/dnsx](https://github.com/projectdiscovery/dnsx) | [Fork](https://github.com/OfficialTech-X-JT/dnsx) | DNS 工具包 |
| Naabu | [projectdiscovery/naabu](https://github.com/projectdiscovery/naabu) | [Fork](https://github.com/OfficialTech-X-JT/naabu) | 端口扫描器 |
| tlsx | [projectdiscovery/tlsx](https://github.com/projectdiscovery/tlsx) | [Fork](https://github.com/OfficialTech-X-JT/tlsx) | TLS 分析 |
### 端口扫描
| 工具 | 原始仓库 | 我们的 Fork | 速度 |
|------|----------|----------|-------|
| Masscan | [robertdavidgraham/masscan](https://github.com/robertdavidgraham/masscan) | [Fork](https://github.com/OfficialTech-X-JT/masscan) | 2000x |
| RustScan | [RustScan/RustScan](https://github.com/RustScan/RustScan) | *(Fork 限制了上游)* | 100x |
### Web 与漏洞利用
| 工具 | 原始仓库 | 我们的 Fork | 描述 |
|------|----------|----------|-------------|
| Feroxbuster | [epi052/feroxbuster](https://github.com/epi052/feroxbuster) | [Fork](https://github.com/OfficialTech-X-JT/feroxbuster) | 目录 fuzzer |
| Dalfox | [hahwul/dalfox](https://github.com/hahwul/dalfox) | [Fork](https://github.com/OfficialTech-X-JT/dalfox) | XSS 扫描器 |
| Ghauri | [r0oth3x49/ghauri](https://github.com/r0oth3x49/ghauri) | [Fork](https://github.com/OfficialTech-X-JT/ghauri) | SQLi 工具 |
### 侦察框架
| 工具 | 原始仓库 | 我们的 Fork | 描述 |
|------|----------|----------|-------------|
| BBOT | [blacklanternsecurity/bbot](https://github.com/blacklanternsecurity/bbot) | [Fork](https://github.com/OfficialTech-X-JT/bbot) | 50+ 侦察模块 |
| Amass | [owasp-amass/amass](https://github.com/owasp-amass/amass) | [Fork](https://github.com/OfficialTech-X-JT/amass) | OWASP 子域名枚举 |
| gau | [lc/gau](https://github.com/lc/gau) | [Fork](https://github.com/OfficialTech-X-JT/gau) | 获取所有 URL |
| Jaeles | [jaeles-project/jaeles](https://github.com/jaeles-project/jaeles) | [Fork](https://github.com/OfficialTech-X-JT/jaeles) | Web 扫描器 |
## 许可证
基于 **MIT License** 分发。更多信息请参阅 [LICENSE](LICENSE)。
由 [OfficialTech-X-JT](https://github.com/OfficialTech-X-JT) 充满爱心地制作
如果它帮助到了您,请为本仓库点个 Star!
标签:CISA项目, GitHub, GNU通用公共许可证, MITM代理, Node.js, Web安全, 实时处理, 密码管理, 插件系统, 日志审计, 自定义脚本, 蓝队分析, 请求拦截, 逆向工具