SRINIVASAN55/CyberCommandCenter
GitHub: SRINIVASAN55/CyberCommandCenter
一个零依赖的单文件 AI 安全运营平台,集成了威胁情报、ML 异常检测、APT 模拟和蜜罐功能,帮助蓝队快速构建威胁狩猎和安全监控能力。
Stars: 1 | Forks: 0
```
██████╗██╗ ██╗██████╗ ███████╗██████╗ ██████╗ ██████╗
██╔════╝╚██╗ ██╔╝██╔══██╗██╔════╝██╔══██╗ ██╔════╝██╔════╝
██║ ╚████╔╝ ██████╔╝█████╗ ██████╔╝ ██║ ██║
██║ ╚██╔╝ ██╔══██╗██╔══╝ ██╔══██╗ ██║ ██║
╚██████╗ ██║ ██████╔╝███████╗██║ ██║ ╚██████╗╚██████╗
╚═════╝ ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═════╝
```
# 🛡️ CyberCommandCenter
**AI 驱动的安全运营平台**
[](https://python.org)
[](https://attack.mitre.org)
[](LICENSE)
[](https://github.com/SRINIVASAN55/CyberCommandCenter)
*单文件、零依赖的 SOC 平台,用于威胁狩猎、异常检测和 APT 模拟*
## 🚀 什么是 CyberCommandCenter?
CyberCommandCenter 是一个完全使用 Python 构建的**生产级安全运营中心 (SOC) 平台**。它将实时威胁情报、基于 ML 的异常检测、MITRE ATT&CK 模拟和交互式蜜罐结合在一起——所有这些都在一个没有强制依赖项的单文件中实现。
专为:**安全分析师 · 渗透测试人员 · SOC 团队 · 蓝队防御者** 构建
## ✨ 功能
| 模块 | 描述 |
|--------|-------------|
| 🔍 **威胁情报引擎** | 通过 AbuseIPDB 获取实时 IP 信誉,本地 IOC 数据库(IP、域名、哈希、User-Agent),带缓存的批量查询 |
| 🤖 **ML 异常检测器** | 孤立森林 (sklearn) 结合 Z-score 回退机制,8 特征日志向量,自动基线训练,可解释的告警 |
| 🎯 **APT 模拟器** | 6 个 APT 组织,11 项 MITRE ATT&CK v14 战术,完整杀伤链模拟,HTML + JSON 报告 |
| 🍯 **TCP 蜜罐** | 多服务模拟(SSH/HTTP/FTP),攻击者指纹识别,JSONL 会话日志记录 |
| 📊 **SOC 仪表盘** | 富终端实时布局,实时告警,颜色编码的严重程度,分析师工作流 |
| 🔎 **IOC 扫描器** | 跨 IP、域名、文件哈希、User-Agent 的批量 IOC 扫描 |
## ⚡ 快速开始
```
# Clone the repo
git clone https://github.com/SRINIVASAN55/CyberCommandCenter.git
cd CyberCommandCenter
# 无依赖运行(仅使用 stdlib)
python cyber_command_center.py --demo
# Install optional packages for full features
pip install -r requirements.txt
# Launch live SOC dashboard
python cyber_command_center.py --dashboard
# Simulate APT attack (e.g. APT29 Cozy Bear)
python cyber_command_center.py --simulate-apt --apt-group apt29
# Start honeypot on ports 22, 80, 21
python cyber_command_center.py --honeypot
# Analyze a log file for anomalies
python cyber_command_center.py --analyze /var/log/auth.log
```
## 🎯 支持的 APT 组织
| 组织 | 别名 | 国家 | 战术 |
|-------|-------|--------|---------|
| APT28 | Fancy Bear | 俄罗斯 🇷🇺 | 鱼叉式网络钓鱼 → 凭据转储 → 横向移动 |
| APT29 | Cozy Bear | 俄罗斯 🇷🇺 | 供应链 → C2 → 数据外泄 |
| APT41 | Double Dragon | 中国 🇨🇳 | 水坑攻击 → 持久化 → 间谍活动 |
| Lazarus | Hidden Cobra | 朝鲜 🇰🇵 | 勒索软件 → 金融盗窃 |
| APT34 | OilRig | 伊朗 🇮🇷 | DNS 隧道 → 长期访问 |
| Sandworm | Voodoo Bear | 俄罗斯 🇷🇺 | ICS/SCADA → 基础设施攻击 |
## 🧠 MITRE ATT&CK 覆盖范围
```
Initial Access → Execution → Persistence → Privilege Escalation →
Defense Evasion → Credential Access → Discovery → Lateral Movement →
Collection → Command & Control → Exfiltration
```
已映射全部 11 项战术。每次模拟攻击都会生成技术 ID(例如 `T1566.001`、`T1059.003`),并附带真实世界的 APT 归因。
## 📁 项目结构
```
CyberCommandCenter/
├── cyber_command_center.py # Main platform (single file, ~800 lines)
├── requirements.txt # Optional dependencies
├── config.sample.json # API key configuration template
└── README.md # This file
```
## 🔧 配置
```
cp config.sample.json config.json
# Edit config.json and add your API keys:
# - abuseipdb_key: Get free key at https://www.abuseipdb.com/api
# - virustotal_key: Get free key at https://www.virustotal.com/gui/join-us
```
## 🏗️ 架构
```
┌─────────────────────────────────────────────┐
│ CyberCommandCenter │
├──────────┬──────────┬───────────┬───────────┤
│ Threat │ Anomaly │ APT │ Honeypot │
│ Intel │ Detector │ Simulator │ │
│ Engine │ (ML/IsoF)│ (MITRE) │ (TCP/Multi│
│ │ │ │ service) │
├──────────┴──────────┴───────────┴───────────┤
│ SOC Dashboard (Rich Terminal UI) │
├─────────────────────────────────────────────┤
│ IOC Scanner │ Report Generator │ CLI Args │
└─────────────────────────────────────────────┘
```
## 📊 示例输出
```
╔══════════════════════════════════════════════╗
║ 🛡️ CYBER COMMAND CENTER | SOC DASHBOARD ║
╠══════════════════════════════════════════════╣
║ Threats Detected: 7 Anomalies: 3 ║
║ Intel Lookups: 142 IOCs Blocked: 29 ║
╠══════════════════════════════════════════════╣
║ [CRITICAL] 185.220.101.45 — TOR exit node ║
║ [HIGH] Brute force: 847 attempts/min ║
║ [MEDIUM] Lateral movement: SMB detected ║
╚══════════════════════════════════════════════╝
```
## 👤 作者
**S. Srinivasan** — 安全研究员与开发者
- GitHub: [@SRINIVASAN55](https://github.com/SRINIVASAN55)
- LinkedIn: [srinivasan132](https://linkedin.com/in/srinivasan132)
⭐ **如果觉得有用,请给本仓库点个 Star!** ⭐
*用 ❤️ 为蓝队社区构建*
标签:APT模拟, CISA项目, Python, 威胁情报, 安全运营, 开发者工具, 异常检测, 扫描框架, 无后门, 蜜罐, 证书利用, 逆向工具