How cerebelici/siem_home works
Cerberus discovers hosts, persists an inventory, audits services and CVEs, and exposes findings and scan controls over HTTP. Its scheduler owns periodic and manual work; discovery also signals newly found hosts for immediate auditing. The graph includes inventory history/timeline and JSON export as documented capabilities. Source excerpts establish most calls; README statements support documented export, periodic behavior, and reactive scheduling where implementation details are not fully shown.
Main entry points: scheduler.go Scan scheduler · executor.go Nmap scan executor · storage.go SQLite inventory store · main.go Application startup
Components 14
Runtime coordination
- Application startup
cmd/sentinel/main.go - Runtime configuration
internal/config/config.go - Scan scheduler
internal/scheduler/scheduler.go
Host discovery
- Host discovery service
internal/discovery/service.go
Vulnerability auditing
- Nmap scan executor
internal/scanner/executor.go - Nmap result parser
internal/scanner/parser.go
Inventory and history
- Inventory data models
internal/model/models.go - SQLite inventory store
internal/storage/storage.go - Mock inventory seeding
internal/storage/seed.go
HTTP interface
- REST API server
internal/api/server.go - API handlers
internal/api/handlers.go - JSON inventory export
internal/storage/storage.go
Other components
- Operator or dashboard
- Nmap and vuln scripts
Connections 22
- Application startup → Runtime configuration: loads
cmd/sentinel/main.go - Application startup → SQLite inventory store: initializes
cmd/sentinel/main.go - Application startup → Nmap scan executor: creates
cmd/sentinel/main.go - Application startup → Scan scheduler: starts
cmd/sentinel/main.go - Application startup → REST API server: starts
cmd/sentinel/main.go - Scan scheduler → Host discovery service: runs scans
internal/scheduler/scheduler.go - Host discovery service → Nmap scan executor: runs discovery
internal/discovery/service.go - Host discovery service → SQLite inventory store: records hosts
internal/discovery/service.go - Host discovery service → Scan scheduler: queues new hosts
internal/scheduler/scheduler.go - Scan scheduler → Nmap scan executor: runs audits
internal/scheduler/scheduler.go - Nmap scan executor → Nmap and vuln scripts: executes scans
internal/scanner/executor.go - Nmap and vuln scripts → Nmap scan executor: returns XML
internal/scanner/executor.go - Nmap scan executor → Nmap result parser: parses XML
internal/scanner/executor.go - Nmap result parser → Inventory data models: produces results
internal/scanner/parser.go - Scan scheduler → SQLite inventory store: records audit results
internal/scheduler/scheduler.go - SQLite inventory store → Inventory data models: stores and returns
internal/storage/storage.go - Mock inventory seeding → SQLite inventory store: seeds records
internal/storage/seed.go - REST API server → API handlers: routes requests
internal/api/server.go - API handlers → SQLite inventory store: reads inventory
internal/api/handlers.go - API handlers → Scan scheduler: triggers scans
internal/api/handlers.go - API handlers → JSON inventory export: exports snapshot
README.md - Operator or dashboard → REST API server: sends requests
README.md