๐ ThreatCopilot is an AI-powered Security Operations Center (SOC) investigation platform that helps security analysts detect, investigate, and understand security threats through automated detection, MITRE ATT&CK mapping, evidence collection, and AI-assisted analysis.
Built using FastAPI, Elasticsearch, PostgreSQL, and React, ThreatCopilot provides an end-to-end workflow for threat detection and incident investigation.
- Capture live network connections
- Collect endpoint network telemetry
- Store events in Elasticsearch
- Monitor network activity in real time
- Behavioral detection rules
- High Connection Volume detection
- Automated alert generation
- Severity-based classification
- Alert investigation workflow
- MITRE ATT&CK mapping
- Evidence collection
- Automated threat summaries
- Analyst recommendations
- Threat explanation generation
- Context-aware investigation summaries
- Analyst-friendly incident insights
- Investigation recommendations
- PostgreSQL-backed alert storage
- Investigation history tracking
- Alert retrieval APIs
- Investigation session management
- Interactive analyst terminal
- Investigation history panel
- Incident report generation
- Modern cybersecurity-inspired UI
๐ Network Traffic
โ
โผ
๐ก Network Monitor
โ
โผ
๐ Elasticsearch
โ
โผ
๐จ Detection Engine
โ
โผ
๐๏ธ PostgreSQL Alerts
โ
โผ
๐ต๏ธ Investigation Engine
โ
โโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโ
โผ โผ โผ
๐บ๏ธ MITRE Mapper ๐ Evidence ๐ค AI Analysis
Collector
โโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโ
โผ
๐ป ThreatCopilot Dashboard
โ
โผ
๐ SOC Incident Reports
- FastAPI
- Python
- Uvicorn
- PostgreSQL
- Elasticsearch
- React
- Vite
- Tailwind CSS
- MITRE ATT&CK Framework
- Detection Engineering
- Threat Investigation
- Network Monitoring
backend/
โ
โโโ app/
โ โโโ auth/
โ โโโ routes/
โ โ โโโ auth.py
โ โ โโโ history.py
โ โ โโโ network.py
โ โ โโโ logs.py
โ โ
โ โโโ services/
โ โ โโโ network_monitor.py
โ โ โโโ detection_engine.py
โ โ โโโ alert_service.py
โ โ โโโ alert_analyzer.py
โ โ โโโ evidence_collector.py
โ โ โโโ mitre_mapper.py
โ โ โโโ ai_investigator.py
โ โ โโโ report_generator.py
โ โ
โ โโโ schemas/
โ โโโ db/
โ โโโ core/
โ
โโโ frontend/
โโโ src/
โ โโโ components/
โ โโโ App.jsx
โ โโโ main.jsx
โโโ public/
POST /network/captureCollects live network connections and stores them in Elasticsearch.
POST /network/analyzeApplies detection rules and generates security alerts.
GET /network/alertsFetches alerts stored in PostgreSQL.
GET /network/investigate/{alert_id}Performs:
โ Alert Retrieval โ MITRE ATT&CK Mapping โ Evidence Collection โ Threat Analysis โ Recommendation Generation
{
"alert_type": "High Connection Volume",
"severity": "MEDIUM",
"mitre_id": "T1046",
"mitre_name": "Network Service Discovery",
"tactic": "Discovery",
"connection_count": 18,
"summary": "Source IP 8.8.8.8 generated 18 network connections. This activity maps to MITRE ATT&CK T1046.",
"recommendation": [
"Review the owning process",
"Check destination reputation",
"Investigate related network activity"
]
}ThreatCopilot maps detected behaviors to MITRE ATT&CK techniques to provide investigation context.
| Alert Type | Technique | Tactic |
|---|---|---|
| High Connection Volume | T1046 โ Network Service Discovery | Discovery |
git clone https://github.com/Mp771/siem-threat-copilot.git
cd siem-threat-copilotcd backend
python -m venv venv
# Windows
venv\Scripts\activate
pip install -r requirements.txt
uvicorn app.main:app --reloadBackend:
http://127.0.0.1:8000
Swagger API Docs:
http://127.0.0.1:8000/docs
cd frontend
npm install
npm run devFrontend:
http://localhost:5173
โ Network Connection Monitoring โ Elasticsearch Integration โ Detection Engine โ Alert Generation โ PostgreSQL Alert Storage โ MITRE ATT&CK Mapping โ Evidence Collection โ Investigation Workflows โ Analyst Recommendations โ React Dashboard
- ๐จ Port Scan Detection
- ๐ Brute Force Detection
- ๐ก Beaconing Detection
- ๐ Threat Intelligence Enrichment
- ๐ฆ VirusTotal Integration
- ๐ AbuseIPDB Integration
- โฑ๏ธ Timeline Reconstruction
- ๐ PDF Incident Reports
- ๐ฅ Role-Based Access Control (RBAC)
- ๐ง LLM-Powered Threat Analysis
Mannat Pal
๐ฏ Cybersecurity Enthusiast ๐ก๏ธ SOC Analyst & Detection Engineering ๐ฌ Malware Analysis & Threat Hunting
๐ GitHub: https://github.com/Mp771
โญ If you found this project useful, consider giving it a star!