How birdman58/seimlite works
SEIMlite is a lightweight homelab SIEM. Its main workflow discovers active services, normalizes SSH logs and process violations into events, evaluates those events against SSH threat rules, persists events and alerts in SQLite, and surfaces alerts through the API and live dashboard. The README also documents topology, service and statistics views, and dynamic SSH configuration. Several API routes and dashboard behaviors are only partially excerpted, so their documented capabilities are shown without assuming unobserved implementation details.
Main entry points: main.go Application startup · engine.go Correlation engine · server.go HTTP API server · ssh_monitor.go Process monitor
Components 17
Startup and discovery
- Application startup
cmd/SEIMlite/main.go - SSH configuration
internal/config/config.go - Service discovery
internal/discovery/services.go
SSH monitoring
- Process monitor
internal/collector/ssh_monitor.go - SSH log normalizer
internal/normalizer/ssh.go - Normalized event
internal/models/alerts.go
Event detection
- Correlation engine
internal/correlator/engine.go - SSH detection rules
internal/correlator/service/ssh.go - Event query interface
internal/eventstore/store.go - Correlation alert
internal/models/alerts.go
Persistence
- SQLite storage
internal/storage/db.go
API and dashboard
- HTTP API server
internal/api/server.go - WebSocket hub
internal/api/hub.go - WebSocket client
internal/api/client.go - Dashboard UI
web/static/script.js - Embedded web assets
web/embed.go
Other components
- Homelab operator
Connections 31
- Homelab operator → Application startup: starts
README.md - Application startup → SSH configuration: loads
cmd/SEIMlite/main.go - Application startup → SQLite storage: initializes
cmd/SEIMlite/main.go - Application startup → HTTP API server: starts
cmd/SEIMlite/main.go - Application startup → WebSocket hub: creates
cmd/SEIMlite/main.go - Application startup → Service discovery: runs
cmd/SEIMlite/main.go - Application startup → Process monitor: starts
cmd/SEIMlite/main.go - Application startup → Correlation engine: starts
cmd/SEIMlite/main.go - Application startup → SSH detection rules: registers
cmd/SEIMlite/main.go - Application startup → SSH log normalizer: starts
cmd/SEIMlite/main.go - Service discovery → Application startup: reports services
cmd/SEIMlite/main.go - SSH configuration → Process monitor: configures
internal/collector/ssh_monitor.go - Process monitor → Normalized event: creates
internal/collector/ssh_monitor.go - Process monitor → SQLite storage: stores events
internal/collector/ssh_monitor.go - Process monitor → Correlation engine: dispatches events
internal/collector/ssh_monitor.go - SSH log normalizer → Normalized event: creates
internal/normalizer/ssh.go - SSH log normalizer → SQLite storage: stores events
internal/normalizer/ssh.go - SSH log normalizer → Correlation engine: dispatches events
- Correlation engine → SSH detection rules: evaluates
internal/correlator/engine.go - Correlation engine → Event query interface: provides queries
internal/correlator/engine.go - Event query interface → SQLite storage: queries
internal/storage/db.go - Correlation engine → Correlation alert: generates
internal/correlator/engine.go - Correlation engine → SQLite storage: stores alerts
internal/correlator/engine.go - Correlation engine → HTTP API server: notifies
internal/correlator/engine.go - HTTP API server → WebSocket hub: runs
internal/api/server.go - WebSocket client → WebSocket hub: registers clients
internal/api/client.go - HTTP API server → Embedded web assets: serves assets
internal/api/server.go - Homelab operator → HTTP API server: requests data
README.md - Dashboard UI → HTTP API server: fetches views
web/static/script.js - HTTP API server → Dashboard UI: streams alerts
README.md - Homelab operator → Dashboard UI: views
README.md