Development of a Lightweight SIEM for SMEs Using Rule-Based Correlation and Isolation Forest for Network Monitoring
Abstract
Small and Medium Enterprises (SMEs) face escalating cybersecurity threats yet commonly lack the financial and technical resources to deploy and manage enterprise-grade Security Information and Event Management (SIEM) systems. This study addresses that gap by designing, implementing, and evaluating a lightweight centralised SIEM that integrates rule-based correlation with Isolation Forest–based anomaly detection to improve threat detection and monitoring in SME environments. The system was built entirely from open-source components: Graylog served as the centralised log management platform while Python modules implemented the detection logic. Log events were structured as JSON, aggregated into fixed 5-minute time windows, and converted to numerical feature vectors for model training and evaluation. Testing was performed on a simulated SME-like dataset comprising normal operational activity and injected attack scenarios. The rule-based engine achieved perfect precision (1.000) but limited recall (0.333), correctly identifying all triggered alerts as true threats while missing four of six attack episodes. The Isolation Forest model achieved perfect recall (1.000) with an area under the ROC curve (AUC) of 0.937, detecting all six attack scenarios at an average Mean Time to Detect (MTTD) of 2.5 minutes, against an MTTD of 3.5 minutes for rules-only detection. The hybrid approach matched the Isolation Forest performance, confirming anomaly detection as the dominant component under these conditions. The findings demonstrate that open-source, lightweight SIEM solutions can deliver cost-effective and scalable cybersecurity monitoring for SMEs.