1Nilesh0837/War-room

GitHub: 1Nilesh0837/War-room

一个基于 Groq + Llama-3 多智能体协作的自动化事件响应平台,通过并行 AI Agent 实现零延迟的危机研判与处置闭环。

Stars: 0 | Forks: 0

# ⚡ WAR ROOM — AI Agent Swarm 危机响应 ### 由 Llama-3 (Groq FREE API) + FastAPI + 高级 UI 提供支持 ![War Room 仪表板](https://static.pigsec.cn/wp-content/uploads/repos/2026/06/1bef32919e213857.png) ## 🚀 3 步开始 ### 步骤 1 — 获取你的免费 Groq API key 1. 前往 **https://console.groq.com** 2. 注册 / 登录 3. 点击 "API Keys" → "Create API Key" 4. 复制 key(以 `gsk_...` 开头) ### 步骤 2 — 设置你的 API key ``` # 在根目录 war-room-v2 文件夹中打开 .env 文件: # 将 GROQ_API_KEY 的值替换为你的真实 key: GROQ_API_KEY=gsk_xxxxxxxxxxxxxxxxxxxx ``` ### 步骤 3 — 运行它 ``` # Terminal 1 — Backend: cd backend pip install -r requirements.txt uvicorn main:app --reload --port 8000 # Terminal 2 — Frontend: # 只需在浏览器中打开 frontend/index.html! # (无需 npm install) ``` **前端:** 在 Chrome/Firefox 中直接打开 `frontend/index.html`。搞定。✅ ## 📸 界面预览 | 指令仪表板 | 事件 Swarm 视图 | | :---: | :---: | | ![Dashboard](https://static.pigsec.cn/wp-content/uploads/repos/2026/06/6015c9410c213903.png) | ![Swarm](https://static.pigsec.cn/wp-content/uploads/repos/2026/06/83ec9481a7213908.png) | | 根本原因分析 | 通信与 Runbook | | :---: | :---: | | ![Root Cause](https://static.pigsec.cn/wp-content/uploads/repos/2026/06/687c1a6c0f213913.png) | ![Runbook](https://static.pigsec.cn/wp-content/uploads/repos/2026/06/151f7be70a213919.png) | | 集成操作 | 历史日志 | | :---: | :---: | | ![Integrations](https://static.pigsec.cn/wp-content/uploads/repos/2026/06/0286625923213928.png) | ![History](https://static.pigsec.cn/wp-content/uploads/repos/2026/06/916a7f593f213934.png) | ## 🎯 测试演示 1. 在浏览器中打开 `frontend/index.html` 2. 点击 **"💳 Payments down"** 预设 3. 点击 **"⚡ TRIGGER WAR ROOM"** 4. 展示 5 个 agent 同时启动(卡片亮起) 5. 指向实时流式传输的动态消息 6. 等待所有 agent 报告(约 15-30 秒) 7. 展示 Coordinator Synthesis 的结论 8. 点击 **"Send to Slack"** — 在 Slack 中展示真实消息 9. 点击 **"Create Jira Ticket"** — 展示创建的 ticket 10. 滚动查看完整的 War Room 报告 **你对评委说的话:** ## 📁 文件结构 ``` war-room-v2/ ├── .env ← Place your Groq key and integration URLs here ├── .gitignore ← Excludes environment files and local database logs ├── backend/ │ ├── main.py ← FastAPI server │ ├── agents.py ← 5 Groq agents (parallel Llama-3 models) │ ├── integrations.py ← Slack + Jira + PagerDuty integrations │ └── requirements.txt └── frontend/ ├── index.html ← Landing page & preview UI └── dashboard.html # Incident command center UI (open directly!) ``` ## 🔑 可选集成 ### Slack(最适合演示展示) 1. 前往 https://api.slack.com/apps 2. Create App → Incoming Webhooks → Add to channel 3. 复制 webhook URL 到 `.env` ### Jira 1. 前往 https://id.atlassian.com/manage-profile/security/api-tokens 2. 创建 token,将其与你的 Jira URL 一起添加到 `.env` ### PagerDuty 1. Services → Your Service → Integrations → Events API v2 2. 复制集成 key 到 `.env`
标签:AV绕过, FastAPI, Sysdig, 后端开发, 多模态安全, 网络调试, 自动化, 运维, 逆向工具