Skip to content

subhankarbhndr211/SecOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

12 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—
โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•โ–ˆโ–ˆโ•”โ•โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•
โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—  โ–ˆโ–ˆโ•‘     โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—
โ•šโ•โ•โ•โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ•  โ–ˆโ–ˆโ•‘     โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘โ•šโ•โ•โ•โ•โ–ˆโ–ˆโ•‘
โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘
โ•šโ•โ•โ•โ•โ•โ•โ•โ•šโ•โ•โ•โ•โ•โ•โ• โ•šโ•โ•โ•โ•โ•โ• โ•šโ•โ•โ•โ•โ•โ• โ•šโ•โ•โ•โ•โ•โ•โ•

Autonomous Security Operating System

License Version Status Python FastAPI React AI MITRE

An enterprise-grade, self-contained SOC platform powered by 8 autonomous detection agents and an AI triage engine โ€” deployable on a single Linux machine.


โš ๏ธ Project Status โ€” Early Phase

This project is in active early development. It is functional and deployable today, but represents the foundation of a much larger 2-year vision.

SecOS v6.0 is a working autonomous SOC platform โ€” all 8 agents run continuously, the AI triage engine is live, and endpoints can be connected from anywhere. However, many enterprise features are still being built.

What works today:

  • โœ… 8 autonomous detection agents running 24/7
  • โœ… AEGIS AI triage via Groq LLaMA 3.3-70b
  • โœ… Windows + Linux endpoint agents with one-line installers
  • โœ… 16-module React SOC dashboard with live WebSocket streaming
  • โœ… Full MITRE ATT&CK mapping across 11 tactics
  • โœ… Role-based access control (admin / analyst / soc_lead)
  • โœ… SOAR suggest mode with 6 response playbooks
  • โœ… ngrok support for remote endpoint connectivity

What is being built (see Roadmap):

  • ๐Ÿ”จ Docker Compose single-command deployment
  • ๐Ÿ”จ AEGIS agentic investigation chains
  • ๐Ÿ”จ TheHive + MISP + Cortex integration
  • ๐Ÿ”จ Multi-tenant MSSP support
  • ๐Ÿ”จ Cloud workload monitoring (AWS/Azure/GCP)
  • ๐Ÿ”จ Full autonomous SOAR response mode
  • ๐Ÿ”จ Custom correlation rules engine

Estimated timeline to full feature parity: ~2 years of active development.

Contributions, feedback, and ideas are welcome โ€” see CONTRIBUTING.md.


What is SecOS?

SecOS is a fully autonomous Security Operating System that replaces a traditional multi-vendor SOC stack with a single deployable platform. It collects telemetry from Windows and Linux endpoints, correlates events across 8 specialized detection engines, triages every alert using a Groq-powered LLM, and orchestrates response actions โ€” without requiring cloud infrastructure, expensive licensing, or a large team.

Built by a SOC analyst, for SOC analysts. Every design decision reflects real operational experience.


Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                        ENDPOINTS                            โ”‚
โ”‚   Windows Agent (PS)  ยท  Linux Agent  ยท  Log Sources        โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                   โ”‚ HTTP POST /api/ingest
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                    INGESTION LAYER                           โ”‚
โ”‚         FastAPI Gateway  ยท  PostgreSQL  ยท  Redis            โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                   โ”‚ secos:alerts (pub/sub)
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                   DETECTION LAYER                           โ”‚
โ”‚  SIEM ยท EDR ยท NDR ยท IAM ยท UEBA ยท SOAR ยท AEGIS AI ยท TIP     โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                   โ”‚
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                  AEGIS AI ENGINE                            โ”‚
โ”‚       Groq ยท llama-3.3-70b-versatile ยท Suggest Mode         โ”‚
โ”‚   Triage ยท Priority ยท Attack Stage ยท Recommendations        โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                   โ”‚ WebSocket live stream
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚              16-MODULE REACT DASHBOARD                      โ”‚
โ”‚  http://localhost:8080  ยท  Real-time alerts + AI decisions  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Quick Start

Requirements

  • Ubuntu 20.04+ / Debian / WSL2
  • Python 3.10+, PostgreSQL 13+, Redis 6+
  • 4GB RAM minimum
# 1. Clone
git clone https://github.com/subhankarbhndr211/SecOS.git
cd SecOS

# 2. Configure
cp .env.example .env
nano .env  # Add GROQ_API_KEY (free at console.groq.com)

# 3. Start
sudo bash start.sh
  • Dashboard โ†’ http://localhost:8080
  • API โ†’ http://localhost:8000/api/health

Default credentials (change in production):

admin   / Admin1234
analyst / Analyst123
soc     / SOCteam123

Connect an Endpoint

Linux โ€” one line

curl -s http://YOUR_SECOS_IP:8000/install.sh | sudo bash -s -- --server YOUR_SECOS_IP

Windows โ€” PowerShell as Administrator

Invoke-WebRequest http://YOUR_SECOS_IP:8000/install-agent-windows.ps1 -OutFile install.ps1
.\install.ps1 -Server YOUR_SECOS_IP

Remote machine (different network)

# On SecOS server โ€” expose via ngrok
ngrok http 8000
# โ†’ https://abc123.ngrok-free.app

# On remote endpoint
curl -s https://abc123.ngrok-free.app/install.sh | sudo bash -s -- --server https://abc123.ngrok-free.app

๐Ÿ“– Full integration guide โ†’ docs/AGENT-INTEGRATION.md


Detection Agents

Agent Function Key Detections Status
SIEM Log correlation SSH brute force, privilege escalation, account changes โœ… Live
EDR Endpoint detection Malicious processes, FIM, network anomalies โœ… Live
NDR Network detection C2 beaconing, port scans, malicious IPs โœ… Live
IAM Identity monitoring Account creation, privilege changes, lockouts โœ… Live
UEBA Behavioral analytics Off-hours activity, lateral movement, velocity spikes โœ… Live
SOAR Response orchestration 6 playbooks, suggest/auto mode โœ… Live
AEGIS AI triage engine LLM-powered P1โ€“P4 prioritization โœ… Live
TIP Threat intelligence IOC management, indicator enrichment โœ… Live

AEGIS AI Triage

Every HIGH/CRITICAL alert is analyzed by llama-3.3-70b-versatile:

{
  "decision": "ESCALATE",
  "priority": "P1",
  "confidence": 0.94,
  "attack_stage": "Credential Access",
  "mitre_technique": "T1110.001",
  "recommended_actions": [
    "Block source IP immediately",
    "Reset compromised account credentials",
    "Review auth logs for successful logins from same IP"
  ]
}

Rule-based fallback activates automatically when API is unavailable.


Roadmap

Full autonomous SOC vision โ€” estimated ~2 years to complete all phases. This is an honest, long-term commitment to building something genuinely useful for the security community.

โœ… Phase 1 โ€” Foundation (Complete ยท v6.0 ยท March 2026)

  • Core ingestion pipeline (FastAPI + PostgreSQL + Redis pub/sub)
  • 8 autonomous detection agents running continuously
  • AEGIS AI triage engine (Groq LLaMA 3.3-70b-versatile)
  • Windows PowerShell endpoint agent
  • Linux Python endpoint agent
  • One-line installers for both platforms
  • 16-module React 18 dashboard with WebSocket live streaming
  • MITRE ATT&CK mapping across 11 tactics
  • Role-based access control
  • SOAR suggest mode with 6 playbooks
  • ngrok remote endpoint support
  • GitHub CI pipeline with secret scanning

๐Ÿ”จ Phase 2 โ€” Hardening & Integration (Q2โ€“Q3 2026)

  • Docker Compose single-command deployment
  • TLS/HTTPS for dashboard and API (Let's Encrypt)
  • JWT-based API authentication
  • TheHive integration (case management)
  • MISP integration (threat intelligence feeds)
  • Cortex integration (automated alert enrichment)
  • Alert deduplication and suppression engine
  • Agent heartbeat monitoring (offline alerts)
  • Structured JSON logging with ELK/Grafana support
  • Sigma rule import and execution
  • YARA rule scanning on endpoints

๐Ÿ”ฎ Phase 3 โ€” Autonomous Intelligence (Q4 2026 โ€“ Q1 2027)

  • AEGIS agentic investigation chains (multi-step autonomous analysis)
  • SOAR auto-mode (fully automated containment and response)
  • Threat hunting query engine
  • Attack simulation framework (validate detection coverage)
  • Custom correlation rules builder (no-code UI)
  • Forensics timeline reconstruction
  • Automated IOC extraction and threat actor profiling
  • ML-based anomaly detection (self-learning baselines)
  • False positive feedback loop (AEGIS learns from analyst decisions)

๐Ÿš€ Phase 4 โ€” Enterprise Scale (Q2โ€“Q4 2027)

  • Multi-tenant MSSP support
  • Cloud workload monitoring (AWS CloudTrail, Azure Sentinel, GCP)
  • Kubernetes / container workload agents
  • Active Directory / LDAP / SSO integration
  • SLA tracking and management reporting
  • Compliance reporting (ISO 27001, SOC 2, NIST CSF)
  • Full REST API for external integrations
  • High availability / clustered deployment
  • Mobile dashboard (React Native)
  • Marketplace for community detection packs

Project Structure

SecOS/
โ”œโ”€โ”€ agents/
โ”‚   โ”œโ”€โ”€ api.py                          # FastAPI gateway + WebSocket
โ”‚   โ”œโ”€โ”€ agent_siem.py                   # Log correlation
โ”‚   โ”œโ”€โ”€ agent_edr.py                    # Endpoint detection
โ”‚   โ”œโ”€โ”€ agent_ndr.py                    # Network detection
โ”‚   โ”œโ”€โ”€ agent_iam.py                    # Identity monitoring
โ”‚   โ”œโ”€โ”€ agent_ueba.py                   # Behavioral analytics
โ”‚   โ”œโ”€โ”€ agent_soar.py                   # Response orchestration
โ”‚   โ”œโ”€โ”€ agent_aegis.py                  # AI triage engine
โ”‚   โ”œโ”€โ”€ agent_tip.py                    # Threat intelligence
โ”‚   โ””โ”€โ”€ windows/
โ”‚       โ”œโ”€โ”€ SecOS-Agent.ps1             # Windows endpoint agent
โ”‚       โ””โ”€โ”€ install-agent-windows.ps1  # Windows installer
โ”œโ”€โ”€ frontend/
โ”‚   โ””โ”€โ”€ index.html                      # React 18 dashboard
โ”œโ”€โ”€ docs/
โ”‚   โ”œโ”€โ”€ AGENT-INTEGRATION.md            # Endpoint integration guide
โ”‚   โ””โ”€โ”€ SecOS-v6-Documentation.docx    # Full technical docs
โ”œโ”€โ”€ .github/
โ”‚   โ”œโ”€โ”€ workflows/ci.yml               # GitHub Actions CI
โ”‚   โ””โ”€โ”€ ISSUE_TEMPLATE/
โ”œโ”€โ”€ install-agent-linux.sh             # Linux one-line installer
โ”œโ”€โ”€ start.sh                           # Full stack startup
โ”œโ”€โ”€ .env.example                       # Environment template
โ”œโ”€โ”€ CONTRIBUTING.md
โ”œโ”€โ”€ SECURITY.md
โ””โ”€โ”€ CHANGELOG.md

Author

Subhankar Bhandari SOC Analyst ยท Security Engineer ยท Builder

8 years in IT ยท 4+ years in SOC operations

TryHackMe ISC2 ArcSight


Contributing

All contributions welcome โ€” detection rules, new agents, bug fixes, documentation improvements. See CONTRIBUTING.md.

License

MIT โ€” see LICENSE.


"Enterprise security without the enterprise budget."

SecOS โ€” Built by a SOC analyst. For SOC analysts.

Early phase ยท Active development ยท ~2 years to full vision

โญ Star this repo if you find it useful โ€” it helps more people discover it.

About

๐Ÿ” Autonomous SOC Platform โ€” 8 AI agents, MITRE ATT&CK, Groq triage, 16-module dashboard. Early phase โ€” 2-year roadmap to full enterprise SOC.

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors