Skip to content

sandeepmothukuri/AI-Augmented-SOC-Lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 AI-Augmented SOC Lab

CI Website MITRE ATT&CK

A full open-source Security Operations Center (SOC) lab enhanced with a local AI decision-support layer. Built for learning, research, and practical blue-team skill development.


πŸ“ Architecture

Logs / Events
(Wazuh, Suricata, Zeek)
        ↓
   SIEM (Elastic via Wazuh)
        ↓
    Alert Trigger
        ↓
     Shuffle (SOAR)
        ↓
   Enrichment Phase
   β”œβ”€ MISP (threat intel)
   β”œβ”€ Cortex analyzers
   └─ External APIs
        ↓
   AI Engine (Ollama + LangChain)
        ↓
   Output:
   - Alert summary
   - Severity classification
   - MITRE ATT&CK mapping
   - Response recommendation
        ↓
   TheHive Case Creation
        ↓
   Analyst Decision / Automated Response

πŸ› οΈ Stack

Component Role
Wazuh SIEM + EDR + Log aggregation
Suricata Network IDS/IPS
Zeek Network traffic analysis
TheHive Case management
Cortex Alert enrichment / analyzers
Shuffle SOAR / workflow automation
MISP Threat intelligence platform
Ollama Local LLM inference (privacy-safe)
LangChain AI pipeline orchestration

πŸ“Έ Screenshots

Wazuh SIEM β€” Security Operations Dashboard

Central hub for all security events, agent status, and compliance across your environment.

Wazuh Security Operations Dashboard


Wazuh β€” Endpoint Security View

Per-agent telemetry including vulnerability detection, FIM, and active threats.

Wazuh Endpoint Security


Wazuh β€” Threat Intelligence Panel

Correlates alerts against known threat intel feeds and MITRE ATT&CK techniques.

Wazuh Threat Intelligence


TheHive β€” Enriched Case Management

Each AI-triaged alert auto-creates a structured case with playbook tasks and IOCs.

TheHive Case Management


TheHive β€” Centralized Alert Management

All incoming alerts from Wazuh/Suricata are queued, prioritized, and assigned here.

TheHive Alert Management


TheHive + Cortex β€” Automated Analysis & Response

Cortex analyzers enrich alerts with VirusTotal, AbuseIPDB, and passive DNS lookups.

TheHive Cortex Response


Shuffle SOAR β€” Workflow Automation

Drag-and-drop workflow connects Wazuh webhooks β†’ MISP enrichment β†’ AI Engine β†’ TheHive case creation.

Shuffle SOAR Workflow


MISP β€” Live Threat Intelligence Dashboard

Real-time IOC feeds, event correlations, and threat actor tracking from the community.

MISP Live Dashboard


MISP β€” Trending Threat Indicators

Tracks rising IOCs, malware families, and attack patterns across sharing communities.

MISP Trending Indicators


Ollama β€” Local LLM Interface (Open WebUI)

Privacy-safe local AI model running LLaMA 3 / Mistral β€” no data leaves your network.

Ollama Open WebUI


βš™οΈ AI Use Cases

1. Alert Summarization

Converts raw log data into structured, analyst-readable summaries with MITRE ATT&CK mapping.

2. False Positive Reduction

AI filters known scanners, internal vulnerability scans, and maintenance window traffic.

3. Automated Triage (L1 Replacement Layer)

AI classifies alerts as: CLOSE / ESCALATE / ENRICH β€” with confidence score.

4. Playbook Generation

Given an alert type, AI generates a step-by-step incident response workflow.

5. Natural Language SIEM Queries

Ask questions in plain English and get Elasticsearch DSL queries back.


πŸš€ Quick Start

Prerequisites

  • Docker + Docker Compose
  • 16 GB RAM minimum (32 GB recommended)
  • 100 GB disk space
  • Linux (Ubuntu 22.04 recommended) or WSL2

1. Clone the repo

git clone https://github.com/sandeepmothukuri/ai-soc-lab.git
cd ai-soc-lab

2. Deploy the core stack

chmod +x scripts/deploy.sh
./scripts/deploy.sh

3. Pull the AI model

./scripts/setup-ollama.sh

4. Start the AI engine

cd ai-engine
pip install -r requirements.txt
python app.py

5. Import Shuffle workflows

Import the JSON files from shuffle-workflows/ into your Shuffle instance.


πŸ“ Project Structure

ai-soc-lab/
β”œβ”€β”€ docker/                    # Docker Compose configs per service
β”‚   β”œβ”€β”€ docker-compose.wazuh.yml
β”‚   β”œβ”€β”€ docker-compose.thehive.yml
β”‚   β”œβ”€β”€ docker-compose.shuffle.yml
β”‚   β”œβ”€β”€ docker-compose.misp.yml
β”‚   └── docker-compose.ollama.yml
β”œβ”€β”€ ai-engine/                 # Python AI pipeline
β”‚   β”œβ”€β”€ app.py                 # FastAPI server
β”‚   β”œβ”€β”€ analyzer.py            # Core alert analysis logic
β”‚   β”œβ”€β”€ prompts/               # LLM prompt templates
β”‚   β”‚   β”œβ”€β”€ triage.txt
β”‚   β”‚   β”œβ”€β”€ summary.txt
β”‚   β”‚   └── playbook.txt
β”‚   └── requirements.txt
β”œβ”€β”€ shuffle-workflows/         # SOAR automation workflows
β”‚   β”œβ”€β”€ ssh-bruteforce.json
β”‚   β”œβ”€β”€ malware-detection.json
β”‚   └── data-exfiltration.json
β”œβ”€β”€ wazuh-config/              # Custom Wazuh rules and decoders
β”‚   β”œβ”€β”€ custom-rules.xml
β”‚   └── ossec.conf
β”œβ”€β”€ thehive-config/            # TheHive case templates
β”‚   └── case-templates.json
β”œβ”€β”€ scripts/                   # Deployment and utility scripts
β”‚   β”œβ”€β”€ deploy.sh
β”‚   β”œβ”€β”€ setup-ollama.sh
β”‚   β”œβ”€β”€ test-pipeline.sh
β”‚   └── send-test-alert.py
└── docs/                      # Extended documentation
    β”œβ”€β”€ setup-guide.md
    β”œβ”€β”€ ai-prompts.md
    β”œβ”€β”€ mitre-mapping.md
    └── screenshots/           # All UI screenshots

πŸ” Security Considerations

  • All LLM inference runs locally via Ollama β€” no data leaves your network
  • AI output is advisory only β€” analysts retain final decision authority
  • Every AI decision is logged with timestamp, confidence score, and reasoning
  • Avoid sending raw logs to cloud-based LLMs

πŸ“Š Day-by-Day Build Plan

Day Task
1-2 Deploy Wazuh + connect endpoints
3 Deploy TheHive + Cortex
4 Deploy Shuffle + configure webhooks
5 Install Ollama + pull LLaMA 3
6-7 Connect pipeline: Shuffle β†’ AI Engine β†’ TheHive

πŸ€– Supported AI Models (via Ollama)

Model Size Best For
llama3 8B General triage, balanced
mistral 7B Fast triage, low RAM
phi3 3.8B Minimal resources
llama3:70b 70B High-accuracy analysis

πŸ“œ License

MIT β€” free to use, modify, and share.


🀝 Contributing

Pull requests welcome. See docs/setup-guide.md to get started.


πŸ‘€ Author

Sandeep Mothukuri


πŸ—‚οΈ All Repositories

Repository Description
ai-soc-lab AI-augmented SOC with Wazuh + TheHive + Ollama (LLaMA3) for automated triage
advanced-soc-lab-v2.0 12-tool SOC lab with OpenSearch, Suricata, Zeek, MISP, Caldera, Velociraptor
Autonomous-SOC-Lab Autonomous SOC with AI-driven detection and self-healing playbooks
soc-threat-hunting-lab Threat detection lab β€” Zeek, RITA, Arkime, Velociraptor, OSQuery, MISP
soc-lab-free Free SOC lab β€” OpenVAS, Wazuh, pfSense, Proxmox Mail, Lynis
soc-lab SOC analyst home lab β€” Wazuh SIEM, Sysmon, MITRE ATT&CK mapping
cyberblue Containerised blue team platform β€” SIEM, DFIR, CTI, SOAR, Network Analysis

⭐ Star this repo if it helped you β€” it helps other SOC analysts find it!

About

πŸ€– AI-powered SOC lab β€” Wazuh SIEM + TheHive + Shuffle + MISP + Ollama LLaMA3 for LLM-powered alert triage, AI threat analysis, and automated incident response. Free & open-source.

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors