Skip to content

Manoj-engineer/SentinelPrime

Repository files navigation

SentinelPrime

An AI-driven Security Control Plane unifying Zero Trust Access (ZTNA), Endpoint Detection (EDR), and Network Detection (NDR) into a single automated enforcement loop.

License Status

🎯 What is SentinelPrime?

This is not another XDR platform. SentinelPrime answers a harder question that traditional security tools avoid:

"Why does this access, host, or network flow exist β€” and what is safe to block right now without breaking production?"

Most security platforms excel at detection but fail at decisive, contextual enforcement. SentinelPrime introduces a control-plane-first architecture where:

  • ZTNA is the primary enforcement surface
  • EDR and NDR provide deep runtime context
  • An AI correlation engine reconstructs intent and attack chains
  • Decisions are enforced automatically across identity, endpoint, and network layers

This creates a closed-loop security system instead of alert sprawl.

πŸ—οΈ Architecture

        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
        β”‚   Identity   β”‚  (Keycloak)
        β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜
               β”‚
        β”Œβ”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”
        β”‚     ZTNA     β”‚  (OpenZiti / Pomerium)
        β”‚ Enforcement  β”‚
        β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜
               β”‚
 β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
 β”‚     AI Control Plane       β”‚
 β”‚  (Correlation + Decisions) β”‚
 β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
        β”‚           β”‚
 β”Œβ”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”
 β”‚     EDR     β”‚ β”‚    NDR     β”‚
 β”‚ (Wazuh /    β”‚ β”‚ (Zeek /    β”‚
 β”‚  osquery)   β”‚ β”‚ Suricata)  β”‚
 β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ” Design Principles

  1. Control Plane > Tool Sprawl – Centralized decisions, distributed enforcement
  2. Intent-Aware Security – Evaluate resources based on why they exist, not just activity
  3. Pre-Access + Post-Access – Combine Zero Trust access control with continuous runtime evaluation
  4. Vendor-Agnostic – Every component is replaceable
  5. Research-First – A reference architecture, not a commercial product

πŸ› οΈ Technology Stack

Layer Component Technology
Identity & ZTNA Identity Provider Keycloak (OIDC, SAML)
ZTNA Enforcement OpenZiti or Pomerium
Endpoint Detection EDR Framework Wazuh + osquery
Network Detection NDR Framework Zeek + Suricata
AI Control Plane API Framework FastAPI (Python)
Event Streaming Kafka / Redpanda
Graph Database Neo4j
ML Models scikit-learn, PyTorch
Observability Logs & Metrics Elasticsearch, Prometheus, Grafana

πŸ” Closed-Loop Enforcement Flow

  1. Access Request: User/service requests access via ZTNA
  2. Telemetry Collection: Runtime data streams from EDR and NDR
  3. Context Correlation: AI engine correlates identity + host + network context
  4. Risk Assessment: Risk score and intent computed in real-time
  5. Automated Enforcement: Decision enforced automatically:
    • Revoke access via ZTNA API
    • Isolate host via EDR API
    • Block network flow via NDR/firewall
  6. Dynamic Policy Update: Policies adapt based on threat intelligence

πŸ“Š Key Metrics

  • Detection β†’ Enforcement Latency: Time from threat detection to automated response
  • Blast Radius: Number of systems affected before containment
  • Alert Accuracy: Real incidents vs. false positives
  • Policy Effectiveness: Successful access revocations without business impact

πŸš€ Quick Start

Prerequisites

  • Docker & Docker Compose v2.0+
  • Python 3.11+ (for local development)
  • 8GB+ RAM recommended
  • macOS/Linux (Windows WSL2 supported)

Deploy (5 Minutes)

# Clone the repository
git clone https://github.com/Manoj-engineer/SentinelPrime.git
cd SentinelPrime

# Make scripts executable
chmod +x scripts/*.sh deploy.sh

# Deploy all core services
./deploy.sh

# Check service health
./scripts/status.sh

# Send test events
./scripts/quick-test.sh

Access Dashboards

Service URL Credentials
Control Plane API http://localhost:8000/docs No auth (dev mode)
Grafana http://localhost:3001 admin / sentinelprime
Neo4j Browser http://localhost:7474 neo4j / sentinelprime
Prometheus http://localhost:9090 No auth
Kibana http://localhost:5601 No auth

βœ… Implementation Status

🟒 Completed (Core Infrastructure)

  • βœ… Control Plane API - FastAPI service with health checks, metrics endpoints
  • βœ… Event Ingestion - REST API endpoints for EDR/NDR/ZTNA telemetry
  • βœ… Event Streaming - Kafka/Redpanda for real-time event processing
  • βœ… Graph Database - Neo4j for attack chain visualization and queries
  • βœ… ML Anomaly Detection - Isolation Forest with 10-feature behavioral analysis
  • βœ… Risk Scoring Engine - Multi-factor risk calculation (0-1 scale)
  • βœ… Correlation Engine - 3 pre-configured rules
  • βœ… Metrics Collection - Prometheus with Grafana dashboards
  • βœ… Event Storage - Elasticsearch for historical analysis
  • βœ… Docker Deployment - Needs to be tested

🟑 Framework Ready (Not Deployed)

EDR Layer

  • βœ… Wazuh adapter code complete
  • βœ… osquery adapter code complete
  • βœ… Installation guides
  • ❌ No actual agents deployed

NDR Layer

  • βœ… Zeek scripts complete
  • βœ… Suricata rules complete
  • βœ… Adapter code for event normalization
  • ❌ No actual sensors deployed

ZTNA Layer

  • βœ… OpenZiti adapter complete
  • βœ… Pomerium adapter complete
  • βœ… Policy templates
  • ❌ No ZTNA service running

πŸ”΄ Pending Work

  • Deploy EDR Agents
  • Deploy NDR Sensors
  • Deploy ZTNA Service
  • ML Model Training
  • Enforcement Integration

πŸ“ Repository Structure

SentinelPrime/
β”œβ”€β”€ control-plane/          # AI correlation & decision engine
β”œβ”€β”€ edr/                    # Endpoint Detection & Response
β”œβ”€β”€ ndr/                    # Network Detection & Response
β”œβ”€β”€ ztna/                   # Zero Trust Network Access
β”œβ”€β”€ orchestration/          # Enforcement engine and playbooks
β”œβ”€β”€ experiments/            # Attack simulations
β”œβ”€β”€ scripts/                # Deployment and testing utilities
β”œβ”€β”€ monitoring/             # Prometheus and Grafana configs
β”œβ”€β”€ docs/                   # Architecture and research notes
β”œβ”€β”€ docker-compose.yml      # Full stack deployment
└── deploy.sh               # One-command deployment

πŸ§ͺ Testing

Run Integration Tests

# Test all layers (EDR, NDR, ZTNA event ingestion)
./scripts/test-all-layers.sh

# Send sample events and verify processing
./scripts/quick-test.sh

# Check Neo4j graph data
docker exec -it sentinel-neo4j cypher-shell -u neo4j -p sentinelprime
> MATCH (n)-[r]->(m) RETURN n, r, m LIMIT 25;

Example Attack Simulation

# Run lateral movement simulation
cd experiments
python lateral_movement.py

# View detected attack chain in Neo4j Browser
# http://localhost:7474

πŸ”¬ Research Scope

This project is an academic/research proof-of-concept that:

βœ… Demonstrates

  • Feasibility of AI-driven security control planes
  • Cross-domain correlation (identity + endpoint + network)
  • Automated enforcement without human approval
  • Vendor-agnostic architecture patterns
  • Reproducible experiments and datasets

❌ Does NOT

  • Replace enterprise XDR/SIEM products
  • Provide production-ready security agents
  • Include proprietary threat intelligence
  • Offer commercial support or SLAs
  • Guarantee security effectiveness

Use for research, experimentation, and learning only.

πŸ“– Documentation

🀝 Contributing

Contributions are welcome! See CONTRIBUTING.md for guidelines.

Areas of Interest:

  • New correlation rules and ML models
  • Additional EDR/NDR/ZTNA integrations
  • Attack simulations and test datasets
  • Performance optimizations
  • Documentation improvements

πŸ“œ License

Apache License 2.0 - See LICENSE for details.

πŸ™ Acknowledgments

SentinelPrime builds upon excellent open-source projects:

  • Wazuh - HIDS/SIEM platform
  • osquery - SQL-based endpoint visibility
  • Zeek - Network security monitoring
  • Suricata - IDS/IPS engine
  • OpenZiti - Zero Trust networking
  • Neo4j - Graph database
  • FastAPI - Modern Python web framework

πŸ“§ Contact

For questions, feedback, or collaboration:


SentinelPrime: An experiment in what security looks like when decisions matter more than dashboards.

About

SentinelPrime is an open-source proof-of-concept for a superior, converged cybersecurity platform. It integrates ZTNA, EDR, NDR, and AI analytics to deliver proactive, automated defense beyond traditional XDR.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors