Advanced Threat Detection, Analysis & SOC Automation Lab
ThreatForge is an enterprise-grade Security Operations Center (SOC) platform and cybersecurity detection lab designed for SOC Analysts, Threat Hunters, and Security Engineers.
It focuses on:
- Real-world attack detection
- SIEM & EDR correlation rules
- Malware & network traffic analysis
- Threat hunting scenarios
- Incident response playbooks
- AI-powered autonomous triage
This repository simulates real SOC Level 2+ operations and demonstrates practical detection engineering skills.
- Build production-ready detection rules
- Simulate real cyber attacks (APT / malware / phishing)
- Improve SOC triage & incident response
- Create a threat hunting knowledge base
- Develop automation-ready security workflows
- AI-powered autonomous threat investigation
- Deep PCAP Parsing - Client-side pure JS parser for .pcap/.pcapng/.cap files
- Protocol Decoding - Ethernet, IP, TCP, UDP, ICMP, DNS, HTTP, TLS, QUIC, SSH, SMB, RDP, FTP, SMTP
- TCP Stream Reassembly - Reconstruct and analyze TCP conversations
- Hex Dump View - Wireshark-style packet hex display
- C2 Detection - Detect known RAT ports (7492, 10042, 4444, etc.)
- Beaconing Detection - Identify C2 beacon patterns
- Malicious Payload Analysis - Pattern-based malware detection
- MITRE ATT&CK Mapping - Map detections to ATT&CK techniques
- IOC & behavioral detection - Domain generation, DNS tunneling, suspicious TLS
- Threat actor simulation - APT-style attack scenarios
- PowerShell attack detection - Fileless attack detection
- LOLBins & fileless attack detection
- Privilege escalation & lateral movement detection
- Windows Event Log detections - 4624, 4688, 4672
- Correlation rules - Multi-stage attack detection
- Incident Response Playbooks:
- Ransomware response
- Phishing investigation
- Endpoint compromise handling
- Cloud security incident response (AWS/Azure)
- LLM-Powered Triage - OpenAI, Anthropic, Groq, Gemini integration
- Autonomous Investigation - Auto-analyze IOCs with VT & AbuseIPDB
- Risk Scoring - Calculate risk scores for each IP/endpoint
- Recommendations - Context-aware remediation actions
- Auto alert triage - AI-based threat classification
- Export Reports - JSON, Markdown, CSV formats
- CVE Database - Auto-ingestion from NVD (National Vulnerability Database)
- CVE Analysis - AI-powered CVE analysis with detection rules
- EPSS Scoring - Exploit Prediction Scoring System integration
- KEV Integration - CISA Known Exploited Vulnerabilities catalog
- CVSS Analysis - Severity scoring and vulnerability prioritization
- MITRE ATT&CK Mapping - Map CVEs to ATT&CK techniques
- Search & Filter - Search CVEs by keyword, severity, date
- Email Parsing - Extract IOCs from .eml/.msg files
- IOC Extraction - URLs, IPs, domains, hashes
- Typosquatting Detection - Impersonation detection
- Safe Sandbox - Client-side analysis only (no auto-execution)
# Install dependencies
npm install
# Start the server
node server/server.js
# Open in browser
http://localhost:3001# Install Python dependencies
cd packet-engine
pip install -r requirements.txt
# Start AI service
cd ai-service
pip install -r requirements.txt
python zeroday_ai.pyCopy .env.example to .env and configure:
# Database (PostgreSQL)
DB_HOST=localhost
DB_PORT=5432
DB_NAME=threatforge_soc
DB_USER=postgres
DB_PASSWORD=your_password
# Threat Intelligence APIs
VIRUSTOTAL_API_KEY=your_key
ABUSEIPDB_API_KEY=your_key
GREYNOISE_API_KEY=your_key
PORTAL_API_KEY=your_key
# Server Configuration
PORT=3001
NODE_ENV=developmentDatabase Setup (PostgreSQL):
CREATE DATABASE threatforge_soc;
-- The app will auto-create tables on startup| Component | Technology |
|---|---|
| Frontend | Vanilla JS, HTML, CSS |
| Backend | Node.js, Express |
| Database | PostgreSQL (CVE storage, IOC data) |
| Packet Engine | Python (Scapy, PyShark) |
| AI Service | Python (FastAPI, Pydantic) |
| CVE Source | NVD API, CISA KEV, First.org EPSS |
| Deployment | Docker, Kubernetes |
ThreatForge/
βββ public/ # Frontend UI (Single Page App)
β βββ index.html # Main application
β βββ js/ # Client-side scripts
β β βββ packet-parser.js
β βββ static/ # CSS, assets
βββ server/ # Express backend
β βββ routes/ # API endpoints
β β βββ packet.js # Packet analysis routes
β β βββ phishing.js # Phishing analysis
β β βββ ioc.js # IOC enrichment
β β βββ mitre.js # MITRE ATT&CK
β βββ services/ # Background services
β β βββ cveIngestion.js
β β βββ feedEngine.js
β βββ packet/ # Packet processing modules
βββ packet-engine/ # Python packet analyzers
β βββ packet_analyzer.py
β βββ deep_analyzer.py
β βββ live_monitor.py
βββ ai-service/ # Python AI service
β βββ zeroday_ai.py
βββ tests/ # Test files
βββ k8s/ # Kubernetes configs
βββ docs/ # API documentation
# Build image
docker build -t threatforge .
# Run container
docker run -p 3001:3001 threatforge
# Or use docker-compose
docker-compose up -d| Category | Examples |
|---|---|
| RAT/C2 | njRAT, AsyncRAT, Metasploit (ports 7492, 4444, etc.) |
| Beaconing | Regular interval C2 communication patterns |
| DNS Tunneling | Long domain names, fast-flux detection |
| Phishing | Email impersonation, typosquatting, malicious URLs |
| Fileless Attacks | PowerShell encoded commands, WMI abuse |
| Deprecated TLS | TLSv1.0/1.1 used by malware |
Contributions welcome! Please:
- Fork the repository
- Create a feature branch
- Submit a pull request
MIT License
Version: 7.0
Author: Subhankar Bhandari
GitHub: https://github.com/subhankarbhndr211/ThreatForge