Watching for the threats that come from inside the walls β and actively enforcing endpoint security baselines.
Featuring live Risk Score assessment (84 CRITICAL), detected VPN network egress (104.28.247.83), uplink/downlink volume sparklines, and active CIS Compliance Enforcement controls.
| Monitored Endpoints View | Authentication Portal |
|---|---|
![]() |
![]() |
For evaluation, demonstrations, and test deployments, Dikoryx is pre-configured with default administrator credentials:
| Role | Username | Password | Access Level |
|---|---|---|---|
| Administrator | admin |
admin |
Full System & Endpoint Telemetry Access |
Note: Additional accounts can be registered dynamically via the
POST /api/v1/signupAPI endpoint. All database passwords are cryptographically hashed using Argon2.
Most security software guards the perimeter β firewalls, proxies, and external intrusion detection. Dikoryx focuses on what occurs within the endpoint:
- Behavioral Anomaly Detection: Flags disgruntled employees exfiltrating confidential files to USB drives, rapid file modifications/deletions, abnormal clipboard activity, or developer workstations tunneling traffic through VPNs/proxies.
- Continuous CIS Compliance & Automated Enforcement: Continuously audits endpoint configurations against CIS benchmarks (Firewall, BitLocker, Screen Lock, Windows Defender, USB storage restrictions) and automatically enforces compliant system states when deviations occur.
Dikoryx couples a lightweight endpoint agent with a high-throughput FastAPI backend and a cyber-themed React dashboard to evaluate behavioral risk scores and compliance postures in real time.
π Complete Architectural Blueprint, Data Dictionary & Threat Model: Read the full ARCHITECTURE.md
πΌοΈ Direct Asset Links: System Architecture Diagram (PNG) β’ ER Schema Diagram (PNG)
flowchart TD
subgraph AnalystLayer ["Analysis & Security Operations (SOC)"]
Analyst["π§βπ» Security Analyst / SOC Operator<br/>(Interactive Web Browser)"]
end
subgraph PresentationLayer ["Presentation Layer"]
Frontend["π» React 18 + Vite Dashboard<br/>Threat Matrix β’ Live Network Telemetry β’ CIS Compliance Panel"]
end
subgraph BackendLayer ["Backend Microservices"]
Backend["βοΈ FastAPI Gateway & Ingestion<br/>Telemetry API β’ Auth & Tokens β’ Compliance Router"]
RiskEngine["π§ Hybrid Risk Engine<br/>IsolationForest ML β’ Rule Heuristics β’ Compliance Posture Weighting"]
end
subgraph DataLayer ["Data Persistence"]
DB[("ποΈ PostgreSQL / SQLite Database<br/>Users β’ Events β’ Logs β’ Telemetry β’ Compliance Audits")]
end
subgraph AgentLayer ["Endpoint Agent (Python Daemon)"]
direction TB
TelemetryCollector["π‘ Telemetry Collectors<br/>USB β’ Files β’ psutil Network β’ Processes β’ Clipboard"]
ComplianceAuditor["π‘οΈ CIS Compliance Auditor<br/>Firewall β’ BitLocker β’ Screen Lock β’ Antivirus β’ USBSTOR"]
AutoEnforcer["β‘ Automated Policy Enforcer<br/>Self-Healing Registry & Netsh Auto-Remediation"]
TelemetryCollector --> AgentCore["Agent Orchestrator & Batcher"]
ComplianceAuditor --> AutoEnforcer
AutoEnforcer --> AgentCore
end
Analyst <-->|"HTTPS / Web GUI"| Frontend
Frontend <-->|"REST API (JSON)"| Backend
Backend <-->|"Real-Time Assessment"| RiskEngine
Backend <-->|"Persist & Query Records"| DB
AgentCore -->|"Ingest Telemetry & Compliance (HTTPS)"| Backend
-
Continuous Telemetry & Compliance Auditing:
- The endpoint daemon continuously streams low-overhead telemetry (file modifications, USB attachments, process creation, clipboard hooks, and network bandwidth via
psutil). - Concurrently, the CIS Compliance Auditor inspects local host configurations against critical security controls.
- The endpoint daemon continuously streams low-overhead telemetry (file modifications, USB attachments, process creation, clipboard hooks, and network bandwidth via
-
Automated User Enforcement & Self-Healing:
- When policy deviations are detected (e.g., firewall disabled, missing screen lock timeout, or unrestricted USB ports), the Automated Policy Enforcer triggers native system remediation (
netsh, Windows Registry policies, andmanage-bde). - The agent records both pre- and post-enforcement states and tags the remediation in the outgoing
COMPLIANCE_STATUSevent.
- When policy deviations are detected (e.g., firewall disabled, missing screen lock timeout, or unrestricted USB ports), the Automated Policy Enforcer triggers native system remediation (
-
Ingestion & Risk Scoring:
- The FastAPI Backend validates and ingests telemetry batches.
- The Hybrid Risk Engine combines unsupervised ML (
IsolationForest) with heuristic rules. Compliance failures act as risk multipliers that escalate the endpoint's overall Threat Level (e.g., fromLOWtoHIGHorCRITICAL).
-
Live SOC Visibility:
- The React Dashboard renders real-time threat gauges, telemetry sparklines, active process counts, and the CIS Compliance Enforcement Panel, detailing individual control statuses (
PASS,FAIL,ENFORCED) and calculated compliance percentages.
- The React Dashboard renders real-time threat gauges, telemetry sparklines, active process counts, and the CIS Compliance Enforcement Panel, detailing individual control statuses (
Dikoryx actively inspects and self-heals key operating system controls:
| Security Control | Benchmark Standard | Audit Mechanism | Automated Enforcement Action |
|---|---|---|---|
| Windows Firewall | CIS Controls v8 (Profile Protection) | netsh advfirewall show allprofiles |
Automatically enables all firewall profiles (set allprofiles state on) |
| Screen Lock & Inactivity | CIS Benchmark (Lockout Timeout) | Registry: HKCU\Control Panel\Desktop (ScreenSaveTimeOut) |
Configures 300s timeout & forces ScreenSaverIsSecure=1 |
| Antivirus Protection | CIS Endpoint Defense (AV Service) | PowerShell Get-MpComputerStatus / AMServiceEnabled |
Validates active Windows Defender engine status |
| Disk Encryption | CIS Data Protection (Storage At Rest) | manage-bde -status (BitLocker Protection) |
Audits volume protection status across mounted volumes |
| USB Storage Lockdown | CIS Removable Media Policy | Registry: HKLM\SYSTEM\CurrentControlSet\Services\USBSTOR |
Enforces policy lockdown by disabling mass storage drivers (Start=4) |
Self-Healing Loop: If a local user or malware alters system security settings, the agent detects the drift on its next cycle, re-applies policy enforcement, and notifies the backend dashboard immediately.
| Layer | Technologies & Tools |
|---|---|
| Frontend | React 18, Vite, Lucide Icons, Recharts, Custom High-Contrast Cyber Theme |
| Backend | FastAPI, Uvicorn, SQLAlchemy, Pydantic, Passlib, Argon2-cffi |
| Compliance & Enforcement | Windows Security APIs, Netsh, Registry (reg), Manage-BDE, PowerShell Host APIs |
| Database | PostgreSQL (Neon / AWS RDS / Self-hosted) or SQLite |
| Endpoint Agent | Python 3.11+, psutil, requests, pyyaml, Windows Telemetry Collectors |
| Machine Learning | scikit-learn (IsolationForest), Rule-Based Behavioral Threat Engines |
# Navigate to backend directory
cd backend
# Create and activate virtual environment
python -m venv venv
# Windows:
venv\Scripts\activate
# Linux/macOS:
# source venv/bin/activate
# Install dependencies
pip install -r requirements.txt
# Configure environment variables
cp .env.example .env
# Edit .env with your PostgreSQL DATABASE_URL if using cloud DB
# Start backend server
uvicorn backend.main:app --reload --host 127.0.0.1 --port 8000Interactive OpenAPI documentation will be accessible at: http://127.0.0.1:8000/docs
# Navigate to frontend directory
cd frontend
# Install packages
npm install
# Configure environment variables
cp .env.example .env
# Set VITE_BACKEND_URL=http://127.0.0.1:8000 (or production backend URL)
# Launch development dashboard
npm run devOpen your browser at: http://localhost:5173 and log in with admin / admin.
# In the project root:
pip install -r agent/requirements.txt
# Run the agent daemon (runs telemetry + compliance monitor + enforcement)
python -m agent.agentAgent behavior and policy enforcement can be adjusted via agent/config.yaml or inline configuration:
agent:
interval_sec: 10 # Telemetry reporting interval in seconds
server_url: "http://127.0.0.1:8000"
compliance:
interval_sec: 300 # Compliance audit cadence (5 minutes)
enforce: true # Set to true to enable automated self-healing remediation
max_screen_timeout_sec: 300Before deploying Dikoryx into a production enterprise environment, implement the following operational safeguards:
- Production Credentials: Replace or disable the hardcoded
admin/adminfallback inbackend/api/auth.pyfor sensitive environments, and enforce strong password complexity policies. - Database Hashing: Passwords must always be hashed with Argon2 or bcrypt before persistence. Never store unhashed passwords in database records.
- By default,
REQUIRE_AGENT_AUTH=falseis set for rapid local testing. - In production, set
REQUIRE_AGENT_AUTH=trueinbackend/.env. Every endpoint agent must then be registered to an organization and supply a cryptographically secureBearer <api_key>in theAuthorizationheader.
- In
backend/main.py, restrictallow_origins=["*"]to your actual frontend domain:app.add_middleware( CORSMiddleware, allow_origins=["https://dikoryx.vercel.app"], allow_credentials=True, allow_methods=["GET", "POST", "OPTIONS"], allow_headers=["*"], )
- Always enforce TLS connection strings when using cloud databases (e.g., Neon, AWS RDS, Supabase):
DATABASE_URL=postgresql://user:pass@host/dbname?sslmode=require&channel_binding=require
- Keep
.env, local SQLite database files (*.db), runtime agent state files (agent/state.json,agent_identity.json), and log files strictly ignored in.gitignore. - Use cloud provider secret injection (Vercel Environment Variables, AWS Secrets Manager, GitHub Secrets) during deployment pipelines.
dikoryx/
βββ agent/ # Endpoint telemetry & enforcement daemon
β βββ collectors/ # Specialized telemetry collectors
β β βββ windows/ # Windows OS collectors
β β βββ compliance.py # CIS Compliance & Policy Enforcement collector
β β βββ file_ops.py # File creation, deletion, modification monitor
β β βββ usb.py # Removable drive insertion & file inventory
β β βββ process.py # Process creation & thread analyzer
β β βββ clipboard.py # Clipboard hook & exfiltration detector
β βββ agent.py # Main agent orchestration & heartbeat loop
β βββ compliance_monitor.py # Continuous baseline evaluation & compliance scoring
β βββ vpn_api.py # Public IP & VPN/proxy network telemetry
β βββ requirements.txt # Agent dependencies (psutil, requests, pyyaml)
β
βββ backend/ # FastAPI application
β βββ api/ # REST API routers
β β βββ auth.py # Argon2 authentication & session tokens
β β βββ agents.py # Agent registration & health monitoring
β β βββ systems.py # Endpoint overview & system metrics
β β βββ telemetry.py # High-throughput telemetry & compliance ingestion
β βββ database.py # SQLAlchemy models and schema definitions
β βββ risk_engine.py # Hybrid ML & behavioral risk scoring engine
β βββ requirements.txt # Backend dependencies
β βββ main.py # Application entrypoint & middleware
β
βββ frontend/ # React 18 + Vite cyber dashboard
β βββ src/
β β βββ components/ # Reusable UI components
β β β βββ SystemDetails.jsx # Threat vector, sparklines & CIS compliance view
β β β βββ SystemDetails.css # Cyberpunk styling & animated compliance badges
β β β βββ CyberGauge.jsx # SVG threat rating gauge
β β β βββ StatRow.jsx # Metric visualization rows
β β βββ Pages/ # Primary views (Dashboard, AgentSelect, Login)
β β βββ App.jsx # Application router & session state
β βββ package.json
β
βββ docs/
β βββ screenshots/ # Showcase UI images (dashboard, agent_select, login)
β βββ architecture.png # High-resolution System Architecture & Data Flow diagram
β βββ er_diagram.png # Complete Relational ER Schema diagram
β βββ ARCHITECTURE.md # In-depth architectural blueprint & data dictionary
β
βββ .gitignore # Production exclusion rules
βββ .vercelignore # Vercel deployment exclusions
βββ README.md # Comprehensive project documentation
Built for the threats that don't come through the front door β and the policies that keep the endpoint secure.



