How jeet6421/cybrot-soc-core works
Cybrot SOC Core is a multi-tenant hospital security-operations service. Its central workflow accepts hospital telemetry, normalizes and evaluates events, creates alerts for analyst triage, and supports approved response actions and operational review. The graph also preserves documented MFA, Suricata monitoring, executive reporting, service tiers, and durable response jobs. Source excerpts establish selected calls; README statements support documented runtime capabilities. Other relationships are omitted where the excerpts do not show the caller or data transfer.
Main entry points: app.py SOC API and workflow · worker.py Durable response jobs · schema.sql PostgreSQL data store · telemetry.py Suricata ingest
Components 19
Telemetry and detection
- SOC API and workflow
app.py - Suricata ingest
routes/telemetry.py - Hospital telemetry rules
hospital.py - Detection rules
detect.py - Synthetic event generator
generate.py
Identity and operations
- Credentials and TOTP
auth.py - MFA enrollment routes
routes/mfa.py - Audit and job reads
routes/ops_reads.py - Analyst console
static/index.html
Response execution
- Durable response jobs
worker.py - Action allowlist
playbooks.py - Ansible executor
ansible_runner.py - Containment playbooks
ansible/playbooks/contain
Reporting and storage
- Executive reporting
routes/executive.py - Service tier policy
tiers.py - Partition maintenance
partitions.py - PostgreSQL data store
db/schema.sql
Other components
- Hospital log sender
- Hospital analyst
Connections 24
- Hospital log sender → Suricata ingest: sends events
README.md - Hospital log sender → SOC API and workflow: sends events
README.md - Suricata ingest → Hospital telemetry rules: normalizes records
routes/telemetry.py - Suricata ingest → SOC API and workflow: passes normalized events
routes/telemetry.py - Hospital analyst → SOC API and workflow: signs in and triages
README.md - SOC API and workflow → Detection rules: evaluates events
app.py - SOC API and workflow → Hospital telemetry rules: uses telemetry rules
app.py - SOC API and workflow → MFA enrollment routes: registers routes
app.py - MFA enrollment routes → SOC API and workflow: uses app helpers
routes/mfa.py - MFA enrollment routes → Credentials and TOTP: uses TOTP helpers
routes/mfa.py - SOC API and workflow → PostgreSQL data store: stores events and alerts
README.md - SOC API and workflow → Executive reporting: registers routes
app.py - Executive reporting → Service tier policy: checks tier policy
routes/executive.py - Executive reporting → PostgreSQL data store: reads report data
routes/executive.py - Hospital analyst → Audit and job reads: reviews audit and jobs
routes/ops_reads.py - Audit and job reads → PostgreSQL data store: queries audit and jobs
routes/ops_reads.py - SOC API and workflow → Durable response jobs: queues approved actions
README.md - Durable response jobs → PostgreSQL data store: claims and records jobs
worker.py - Durable response jobs → Ansible executor: dispatches executors
worker.py - Ansible executor → Action allowlist: validates actions
ansible_runner.py - Ansible executor → Containment playbooks: runs approved playbooks
ansible_runner.py - Durable response jobs → Partition maintenance: checks storage readiness
worker.py - Synthetic event generator → Hospital log sender: generates test data
README.md - Analyst console → Hospital analyst: presents SOC console