How vimalrootben/zero-trust-continuous-authentication-framework-for-insider-threat-detection-and-response works
This is a Zero Trust endpoint detection and response platform. Its main workflow collects endpoint telemetry, sends it to the manager for normalization and evaluation, updates risk/trust and policy decisions, then records incidents and response commands; operators monitor and manage the system through the API and dashboard. The README also describes agent-side offline detection/queuing and Windows active response. Several internal links are documented or visible in excerpts; unsampled wiring is represented only where the README supports it.
Main entry points: pipeline.py Processing pipeline · agent_daemon.py Agent daemon · ingestion.py Telemetry ingestion · collectors.py Event collectors
Components 26
Endpoint agent
- Event collectors
agent/collectors.py - Agent daemon
agent/agent_daemon.py - Local detection
agent/rules/local_rule_engine.py - Offline event queue
agent/storage/offline_queue.py - Command receiver
agent/commands/command_receiver.py - Safe script execution
agent/execution/script_executor.py
Manager processing
- Telemetry ingestion
api/ingestion.py - Manager API
api/server.py - Canonical event model
engine/events/models.py - Wazuh adapter
engine/events/wazuh_adapter.py - Event serialization
engine/events/serialization.py - Processing pipeline
engine/pipeline.py - Behavior correlation
engine/correlation/engine.py - Condition evaluation
engine/events/conditions.py - Risk scoring
engine/risk/engine.py - Trust evaluation
engine/trust/engine.py - Adaptive policies
engine/policy/engine.py - SQLite persistence
storage/database.py - Background worker
api/background.py
Response execution
- Response decisions
engine/response/engine.py - Signed command builder
engine/response/command_builder.py - PowerShell executor
powershell/ps_executor.py - Windows sessions
powershell/windows_sessions.py
Operator interface
- Dashboard
dashboard/run_dashboard.py
Other components
- Managed endpoint
- Security operator
Connections 26
- Managed endpoint → Event collectors: produces telemetry
README.md - Event collectors → Agent daemon: supplies events
README.md - Agent daemon → Local detection: checks events
README.md - Agent daemon → Offline event queue: queues offline
README.md - Agent daemon → Telemetry ingestion: uploads telemetry
README.md - Telemetry ingestion → Wazuh adapter: adapts alerts
README.md - Wazuh adapter → Canonical event model: creates events
engine/events/wazuh_adapter.py - Event serialization → Canonical event model: encodes events
engine/events/serialization.py - Manager API → Telemetry ingestion: routes ingestion
README.md - Background worker → Processing pipeline: runs processing
README.md - Processing pipeline → Event serialization: builds context
engine/pipeline.py - Processing pipeline → Behavior correlation: correlates events
- Processing pipeline → Condition evaluation: evaluates rules
engine/pipeline.py - Processing pipeline → Risk scoring: updates risk
engine/pipeline.py - Processing pipeline → Trust evaluation: evaluates trust
engine/pipeline.py - Processing pipeline → Adaptive policies: evaluates policies
README.md - Processing pipeline → SQLite persistence: persists results
engine/pipeline.py - Trust evaluation → Risk scoring: reads scores
engine/trust/engine.py - Processing pipeline → Signed command builder: builds commands
engine/pipeline.py - Processing pipeline → Response decisions: dispatches actions
- Signed command builder → Command receiver: delivers commands
README.md - Command receiver → Safe script execution: dispatches scripts
README.md - Response decisions → PowerShell executor: executes templates
engine/response/engine.py - PowerShell executor → Windows sessions: checks sessions
- Security operator → Dashboard: views status
README.md - Dashboard → Manager API: uses API
README.md