AI 驱动的 SOC 仿真平台
Redefining the Future of Security Operations: Full-Stack SOC Parallel Simulation, Multi-Agent Collaboration, and Data-Driven Autonomous Defense
This project is a cutting-edge Agentic SOC Parallel Simulation Platform designed to explore the extreme potential of Large Action Models (LAM) in the field of cybersecurity. By integrating the DeepSeek Reasoning Model, Multi-Agent Collaboration, and the MCP (Model Context Protocol) standard, we have built a full-stack, end-to-end, fully automated virtual SOC team.
Here, AI is no longer a simple script executor but a digital analyst with expert-level Chain of Thought. From Purple Team generating attack traffic, to Blue Team developing detection rules, and finally to the Operations Team handling triage, forensics, and response, seven specialized agents conduct autonomous exercises and self-evolution in a parallel space. It can peel back the layers of massive data like a human expert, construct dynamic attack graphs, and take decisive action, elevating the efficiency and intelligence of security operations to a new dimension.


♾️ Full-Stack SOC Parallel Simulation
🤖 Multi-Agent Collaboration Swarm
📊 Data-Driven Detection Engineering
🧠 Deep Reasoning & Cognitive Intelligence
🕸️ Dynamic Threat Graph
streamlit-agraph.🛡️ Async Human-AI Symbiosis
PENDING_APPROVAL mechanism, allowing AI to continue other tasks after submitting high-risk operation requests, waiting for asynchronous confirmation from human experts on the dashboard.This project adopts a layered architecture design, simulating a real enterprise-grade security operations environment:
graph TD
User[Security Analyst] -->|Interact/Approve| UI["Streamlit Dashboard"]
UI -->|HTTP Request| MCP["MCP Server (FastAPI)"]
UI -->|Status Monitor| AgentCore["AI Agent Core"]
subgraph AgentTeam ["AI Agent Team (Brain)"]
AgentCore --> Purple[Purple Team Agent]
AgentCore --> Detection[Detection Eng Agent]
AgentCore --> Engine[Analysis Engine Agent]
AgentCore --> Triage[Triage Agent]
AgentCore --> Forensic[Forensics Agent]
AgentCore --> Commander[Commander Agent]
AgentCore --> Reporter[Reporter Agent]
end
subgraph DataLayer ["Data Layer (Memory)"]
Purple -->|Write| Warehouse[(Security Data Warehouse OCSF)]
Detection -->|Read| Warehouse
Engine -->|Scan| Warehouse
end
subgraph MCPTools ["MCP Tools (Hands and Eyes)"]
MCP --> VT["VirusTotal API"]
MCP --> Graph[Knowledge Graph Engine]
MCP --> Firewall[Firewall Simulation]
MCP --> Payload["Payload Analyzer"]
end
Forensic -->|Call Tools| MCP
Commander -->|Execute Response| MCPDashboard (Streamlit): app/main.py
MCP Server (FastAPI): mcp_server/main.py
AI Agent (Python): agent/
core.py: The "brain" of operations. Defines the base Agent class and the 7 specialized roles (Purple, Detection, Engine, Triage, Forensics, Commander, Reporter).engine.py: The Analysis Engine responsible for matching OCSF telemetry against detection rules.ocsf.py: Defines the OCSF (Open Cybersecurity Schema Framework) data models.The following demonstrates how the system handles a complete parallel simulation exercise:
check_ip_reputation to confirm the source IP is malicious.analyze_payload to identify the attachment as a malicious downloader.graph_add_relation to build the graph: IP(45.33...) --[Delivers]--> Host(Workstation).Host(Workstation) node, forming an attack chain.PENDING_APPROVAL, analyst clicks "Approve" on the interface.Clone the project and install dependencies:
pip install -r requirements.txt
You need to open two terminal windows to run the following commands respectively:
Terminal 1: Start MCP Tool Server
python3 -m uvicorn mcp_server.main:app --reload --port 8000
Terminal 2: Start Web Dashboard
python3 -m streamlit run app/main.py
http://localhost:8501.DeepSeek API Key and VirusTotal API Key (optional) in the "System Configuration" sidebar. Configuration is valid only for the current session; no need to modify local files..
├── app/ # Frontend Interface (Streamlit)
│ └── main.py # Main Program: UI Layout, State Management, Visualization
├── mcp_server/ # Tool Service (FastAPI)
│ └── main.py # Provides APIs for IP Reputation, Firewall, Graph Management, etc.
├── agent/ # Agent Core Logic
│ ├── core.py # Defines BaseAgent and specialized Agent roles
│ ├── engine.py # Analysis Engine: Responsible for rule matching and alert triggering
│ └── ocsf.py # Data Standard: OCSF Telemetry Data Model Definition
├── requirements.txt # Project Dependencies
└── README.md # Project Documentation