Skip to content

elonmasai7/Masoc

Repository files navigation

MedShield ZeroTrust + MASOC

This repository contains two deployable security planes for healthcare clinics:

  • MedShield ZeroTrust: foundational controls (Wazuh, Suricata, OpenVAS, WireGuard, Restic)
  • MedShield Autonomous SOC (MASOC): real-time telemetry pipeline, ML detection, risk correlation, SOAR automation with human approval

Problem

Small and mid-sized healthcare clinics face high ransomware, phishing, and credential abuse risk, but usually lack enterprise SOC staffing and integrated tooling. Security data is often fragmented across endpoints, identity, email, and network controls, which slows detection and containment and increases patient-data and uptime risk.

Solution

MedShield provides a practical, containerized architecture with:

  • Zero Trust foundation controls (segmentation, VPN, SIEM/EDR, vulnerability scanning, encrypted backups)
  • MASOC real-time pipeline for telemetry ingestion, stream processing, ML-based anomaly detection, and risk correlation
  • SOAR automation with human-in-the-loop approvals for high-impact actions
  • Connector stubs for Entra/Okta, CrowdStrike/SentinelOne, Proofpoint/Mimecast, and STIX/TAXII threat intelligence feeds

Impact

  • Faster detection and prioritization of high-risk incidents
  • Quicker, policy-governed containment of ransomware and account compromise
  • Reduced alert fatigue through correlation, deduplication, and risk scoring
  • Better healthcare resilience with auditable response actions and recovery-focused operations
  • Scalable path from budget-friendly clinic deployment to enterprise-grade SOC integrations

1. ZeroTrust Stack

Main compose file: docker-compose.yml

  1. Bootstrap:
    ./scripts/bootstrap.sh
  2. Update secrets in .env and configs/restic/restic.env.
  3. Start:
    docker compose --env-file .env up -d
  4. Validate:
    ./scripts/validate.sh

2. MASOC Stack

MASOC compose file: docker-compose.masoc.yml

Services:

  • redpanda (Kafka API)
  • telemetry-ingestor (real-time event intake)
  • intel-ingestor (IOC ingestion API)
  • connector-hub (vendor connector pull/webhook stubs)
  • stream-processor (normalization + rule signals)
  • ml-engine (IsolationForest anomaly scoring)
  • risk-engine (correlation + unified risk + IOC matches)
  • soar-engine (response automation + approvals)
  • soc-dashboard (incident/action visibility)

Start MASOC:

docker compose -f docker-compose.masoc.yml up -d --build

Validate MASOC:

./scripts/validate-masoc.sh

Load IOC sample feed:

./scripts/masoc-load-iocs.sh

Generate test telemetry:

./scripts/masoc-simulate.sh

Test connector webhook stubs:

./scripts/masoc-test-connectors.sh

Key endpoints:

  • Telemetry ingest API: http://localhost:8088
  • Threat intel API: http://localhost:8089
  • Connector hub API: http://localhost:8092
  • SOAR API: http://localhost:8090
  • SOC dashboard: http://localhost:8091

Governance and Safety

  • High-impact SOAR actions require approval by policy in configs/masoc/soar_policy.yaml.
  • SOC access should be protected with MFA and RBAC.
  • Automated actions and analyst approvals are audit logged in MASOC SQLite state.

Important Deployment Notes

  • pfSense/OPNsense must run as dedicated gateway appliance/VM.
  • Medical networks should remain physically/virtually segmented outside Docker.
  • Enable immutable/offline backup strategy in addition to object storage.
  • Apply TLS and reverse-proxy hardening for all management APIs in production.

Documentation Map

  • ZeroTrust architecture: docs/architecture.md
  • ZeroTrust deployment: docs/deployment-plan.md
  • pfSense/OPNsense integration: docs/pfsense-opnsense-integration.md
  • Wazuh onboarding: onboarding/wazuh-agents.md
  • MASOC architecture: docs/masoc/architecture.md
  • MASOC deployment: docs/masoc/deployment.md
  • MASOC governance: docs/masoc/governance.md
  • MASOC enterprise expansion: docs/masoc/enterprise-expansion.md
  • MASOC connectors: docs/masoc/connectors.md

About

MedShield Autonomous SOC (MASOC) is an AI-driven security platform for healthcare clinics. It combines real-time monitoring, machine learning threat detection, and automated response to stop ransomware and unauthorized access. Built on Zero Trust principles, it protects patient data, medical systems, and critical infrastructure continuously.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors