SENTINEL: A Hybrid Rule-Based and Explainable AI Architecture for Internal Network Intrusion Detection and Prevention
Abstract
The increasing complexity of modern network environments has exposed significant limitations in traditional rule-based Intrusion Detection Systems (IDS), particularly in detecting zero-day attacks and low-rate internal reconnaissance. In parallel, approaches fully based on artificial intelligence (AI) often impose substantial computational overhead and lack interpretability in their decision-making processes. To address these challenges, this paper proposes SENTINEL, a hybrid Network Intrusion Detection and Prevention System (NIDS/IPS) that integrates a probabilistic machine learning module for anomaly detection with a deterministic rule-based component for handling known threats. To identify the most suitable classification model, six algorithms were systematically evaluated, with Random Forest selected due to its favorable trade-off between detection performance and computational efficiency. The machine learning component is trained on the UNSW-NB15 dataset, and feature selection is conducted using Pearson correlation coefficient analysis to improve model efficiency. Furthermore, the system incorporates an explainable artificial intelligence (XAI) approach that pairs global feature-attribution weights with instance-level Shapley attributions computed for each blocked alert, providing system administrators with per-alert decision rationale rather than model-wide statistics alone. Experimental evaluations demonstrate that the proposed hybrid architecture maintains a lightweight operational footprint suitable for resource-constrained environments. In particular, the classifier achieves 88.17% accuracy at a per-packet inference latency of 3.50 milliseconds, with a deliberate 1.5-second inter-layer buffer preventing the two layers from acting on the same source twice. An ablation of the two layers under identical replayed traffic, and a comparison against Snort and Suricata on the same captures, are also reported.