MrRogueKnight/security-operations-dashboard

GitHub: MrRogueKnight/security-operations-dashboard

基于 Python 的企业 SOC 模拟平台,通过合成安全数据演示威胁检测、事件响应和安全态势分析的完整流程。

Stars: 0 | Forks: 0

# 🛡️ 安全运营仪表板 **企业 SOC 模拟器 | 威胁检测 | 事件响应 | 安全分析** [![Kaggle](https://img.shields.io/badge/Kaggle-Notebook-20BEFF?style=for-the-badge&logo=kaggle&logoColor=white)](https://www.kaggle.com/code/mrrogueknight/security-operations-dashboard) [![GitHub](https://img.shields.io/badge/GitHub-Repository-181717?style=for-the-badge&logo=github&logoColor=white)](https://github.com/MrRogueKnight/security-operations-dashboard) [![Python](https://img.shields.io/badge/Python-3.8+-3776AB?style=for-the-badge&logo=python&logoColor=white)](https://www.python.org/) [![SQLite](https://img.shields.io/badge/SQLite-Database-003B57?style=for-the-badge&logo=sqlite&logoColor=white)](https://www.sqlite.org/) [![License](https://img.shields.io/badge/License-MIT-green?style=for-the-badge)](LICENSE) [![LinkedIn](https://img.shields.io/badge/LinkedIn-Connect-0A66C2?style=for-the-badge&logo=linkedin&logoColor=white)](https://www.linkedin.com/in/mrrogueknight/) ## 📊 企业安全运营中心 (SOC) 模拟器 **一个基于 Python 的综合安全分析平台,模拟真实的 SOC 运营、威胁检测和事件响应。** ## 🎯 项目概述 **安全运营仪表板** 是一个教育性质的网络安全项目,模拟了完整的安全运营中心环境。它展示了完整的安全数据 pipeline —— 从合成日志生成、威胁检测到事件响应和高管报告。 本项目是作为在 Edu Skills 进行的 **8 周道德黑客实习** 的主要交付成果而开发的,并辅以 **Google 网络安全专业证书**。 ## ✨ 核心特性 | 特性 | 描述 | | :--- | :--- | | **类 SIEM 日志收集** | 生成超过 18,600 条合成安全事件(认证、网络、恶意软件、防火墙) | | **威胁检测引擎** | 5 条映射到 MITRE ATT&CK 框架的检测规则 | | **告警生成** | 71+ 条具有严重性分类的告警 | | **事件响应** | 4 个涵盖完整事件生命周期(检测 → 恢复)的 playbook | | **分析仪表板** | 用于安全态势分析的 9 个交互式可视化图表 | | **高管报告** | 自动生成带有建议的专业安全报告 | | **单元测试** | 8 项全面测试确保系统可靠性 | | **框架对齐** | NIST CSF, MITRE ATT&CK, OWASP Top 10, CISSP | ## 🏗️ 系统架构 ``` flowchart TD A[Data Sources Synthetic] --> B[SQLite Database 10 Tables] B --> C[Threat Detection Engine 5 Rules] C --> D[Alert Correlation] D --> E[Incident Response 4 Playbooks] E --> F[Visualization Dashboard 9 Charts] F --> G[Executive Report] subgraph B[Database Tables] B1[Assets] B2[Users] B3[Auth Logs] B4[Network Traffic] B5[Firewall Logs] B6[Malware Events] B7[Vulnerabilities] B8[Alerts] B9[Incidents] B10[Playbooks] end subgraph C[Detection Rules] C1[Brute Force
T1110] C2[Impossible Travel
T1078] C3[Port Scanning
T1046] C4[Malware Activity
T1203] C5[SQL Injection
T1190] end subgraph E[Incident Response] E1[Detection] E2[Analysis] E3[Containment] E4[Eradication] E5[Recovery] end subgraph F[Dashboard Charts] F1[Authentication Status] F2[Threat Type Distribution] F3[Attack Timeline] F4[Vulnerability Severity] F5[MFA Adoption Rate] F6[Malware Detections] F7[Incident Severity] F8[Asset Criticality] F9[NIST CSF Assessment] end ``` ## 🛠️ 使用的技术
| 类别 | 技术 | | :--- | :--- | | **语言** | ![Python](https://img.shields.io/badge/Python-3776AB?style=flat-square&logo=python&logoColor=white) | | **数据库** | ![SQLite](https://img.shields.io/badge/SQLite-003B57?style=flat-square&logo=sqlite&logoColor=white) | | **数据处理** | ![Pandas](https://img.shields.io/badge/Pandas-150458?style=flat-square&logo=pandas&logoColor=white) ![NumPy](https://img.shields.io/badge/NumPy-013243?style=flat-square&logo=numpy&logoColor=white) | | **可视化** | ![Matplotlib](https://img.shields.io/badge/Matplotlib-11557C?style=flat-square&logo=python&logoColor=white) ![Seaborn](https://img.shields.io/badge/Seaborn-1273B3?style=flat-square&logo=python&logoColor=white) | | **安全框架** | NIST CSF, MITRE ATT&CK, OWASP Top 10, CISSP |
## 📁 项目结构 ``` security-operations-dashboard/ │ ├── 📓 security-operations-dashboard.ipynb # Main Jupyter Notebook ├── 📄 executive_security_report.txt # Generated security report ├── 🖼️ security_dashboard.png # Dashboard visualization ├── 📖 README.md # Project documentation └── 📜 LICENSE # MIT License ``` ## 🚀 快速开始 ### 1. 克隆仓库 ``` git clone https://github.com/MrRogueKnight/security-operations-dashboard.git cd security-operations-dashboard ``` ### 2. 安装依赖 ``` pip install pandas numpy matplotlib seaborn sqlite3 bcrypt ``` ### 3. 运行 Notebook ``` jupyter notebook security-operations-dashboard.ipynb ``` ### 4. 或在 Kaggle 上运行 点击下方徽章直接在 Kaggle 上运行: [![Kaggle](https://img.shields.io/badge/Run_on_Kaggle-20BEFF?style=for-the-badge&logo=kaggle&logoColor=white)](https://www.kaggle.com/code/mrrogueknight/security-operations-dashboard) ## 📊 仪表板预览 该仪表板包含 9 个关键可视化图表: | 图表 | 目的 | | :--- | :--- | | **认证状态** | IAM 健康监控(成功/失败率) | | **威胁类型分布** | 最常见的攻击类型 | | **攻击时间线** | 24 小时攻击模式分析 | | **漏洞严重性** | 开放漏洞的 OWASP 分类 | | **MFA 采用率** | IAM 最佳实践评估 | | **恶意软件检测** | 恶意软件类型分布 | | **事件严重性** | 事件响应工作负载评估 | | **资产重要性** | 高价值资产识别 | | **NIST CSF 评估** | 框架实施状态 | ## 🧪 单元测试 8 项全面测试确保系统可靠性: | 测试 | 状态 | | :--- | :---: | | 数据库连接 | 通过 | | Schema 创建 | 通过 | | 数据填充 | 通过 | | 暴力破解检测 | 通过 | | 配置验证 | 通过 | | 指标计算 | 通过 | | 事件与 Playbook 关联 | 通过 | | MITRE ATT&CK 映射 | 通过 | ## 📐 框架对齐 | 框架 | 实施 | | :--- | :--- | | **NIST CSF v2.0** | 所有 6 项功能:治理、识别、保护、检测、响应、恢复 | | **MITRE ATT&CK** | 5 项战术:T1110, T1046, T1190, T1203, T1078 | | **OWASP Top 10** | 5 个类别:A03, A05, A07, A08, A02 | | **CISSP 领域** | 涵盖所有 8 个领域 | | **CIA 三要素** | 机密性、完整性、可用性 | ## 📈 示例输出 ### 高管安全报告 ``` ================================================================================ EXECUTIVE SECURITY SUMMARY REPORT ================================================================================ Generated: August 01, 2026 at 14:00 Organization: Enterprise SOC Simulator (Educational) Report Type: Security Posture Assessment ================================================================================ 1. EXECUTIVE SUMMARY ================================================================================ Overall Security Score: 77% (Heuristic) Security Posture: Moderate ================================================================================ 2. SECURITY METRICS ================================================================================ Assets Managed: 50 Patch Compliance: 40.0% Users with MFA: 66.0% Open Vulnerabilities: 39 Critical Vulnerabilities: 11 Total Incidents: 5 Open Incidents: 0 Total Alerts: 71 ================================================================================ 6. RECOMMENDATIONS ================================================================================ Immediate Actions (0-30 days): - Patch all 30 systems with Critical Patch Required status - Remediate 11 Critical vulnerabilities - Enable MFA for 17 users currently without it ``` ## 🛡️ 演示的安全概念 | 类别 | 概念 | | :--- | :--- | | **核心原则** | CIA 三要素、最小权限原则、纵深防御 | | **运营** | 事件响应、SIEM 运营、威胁情报 | | **管理** | 漏洞管理、IAM、框架对齐 | ## 📚 参考资料 - **Google 网络安全专业证书 (2026)** - **NIST 网络安全框架 v2.0** - **MITRE ATT&CK 框架** - **OWASP Top 10 (2021)** - **CISSP 知识体系通用标准** ## 📄 许可证 本项目基于 MIT 许可证授权 - 详情请参阅 [LICENSE](LICENSE) 文件。 ## 👤 作者 **Prashant Ranjan** - [![Kaggle](https://img.shields.io/badge/Kaggle-@MrRogueKnight-20BEFF?style=flat-square&logo=kaggle&logoColor=white)](https://www.kaggle.com/mrrogueknight) - [![GitHub](https://img.shields.io/badge/GitHub-@MrRogueKnight-181717?style=flat-square&logo=github&logoColor=white)](https://github.com/MrRogueKnight) - [![LinkedIn](https://img.shields.io/badge/LinkedIn-@MrRogueKnight-0A66C2?style=flat-square&logo=linkedin&logoColor=white)](https://www.linkedin.com/in/mrrogueknight/) ## ⭐ 鸣谢 - **Edu Skills** – 提供实习机会 - **Google 网络安全证书** – 提供理论基础 - **开源社区** – 提供工具和库
### ⭐ 如果您觉得这个项目有用,请给它点个 Star! ❤️ 在道德黑客实习期间(8 周)用心打造 | 2026 年 8 月
标签:NoSQL, Python, SQLite, 安全教育, 安全运营中心, 无后门, 网络映射, 逆向工具