EUVIMEDScopri EUVIMED
Open access · CC BY 4.0

Explainable Logic-Driven Firewall Anomaly Detection with Knowledge Graph Visualization and Machine Learning Validation

Abdelrahman Osman Elfaki, Abdulhadi Albluwi, Amer Aljaedi, Mohamed Hussien Mohamed Nerma

Electronics · 2026-04-17 · 15 (8) · 1714

DOI: 10.3390/electronics15081714 ↗

At a glance

Journal article in Electronics, published online on 2026-04-17. Written by Abdelrahman Osman Elfaki and 3 co-authors. 33 references. The full text is freely available (open access, CC BY 4.0).

AbstractDati bibliograficiCiteRelated studies

Abstract (original language)

Firewall policy misconfigurations remain a major source of security vulnerabilities in modern networks, particularly as firewall rule sets grow in size and complexity. Such misconfigurations, commonly referred to as firewall anomalies, can lead to unintended access control behavior and undermine network security. In this paper, we propose a formal logic rule-based framework for the systematic detection and investigation of firewall anomalies, supported by knowledge graph-based visualization. First-order logic (FOL) is employed to precisely model firewall rules and to define major anomaly types, including shadowing, redundancy, correlation, generalization, and irrelevance, in both single and distributed firewall environments. The proposed framework introduces explicit and comprehensive logical definitions for each anomaly type, enabling deterministic, interpretable, and complete detection of rule conflicts and overlaps. Complex anomalies, particularly correlation and generalization, are systematically decomposed into well-defined logical cases to facilitate the accurate identification of subtle, order-dependent interactions among firewall rules. To enhance usability and analysis, firewall rules and detected anomalies are represented using Neo4j knowledge graphs, providing intuitive visual insights into rule relationships and anomaly causes. The effectiveness of the proposed approach is validated using a real operational backbone network dataset collected from Stanford University’s campus network. Experimental results demonstrate the framework’s ability to accurately detect both simple and complex firewall anomalies under realistic network conditions. To further validate the proposed logic rules, a machine learning-based evaluation was conducted. The findings confirm their effectiveness in accurately characterizing firewall anomalies. Unlike machine learning or heuristic-based methods, the proposed approach does not require training data and guarantees formal correctness and explainability. These features make it a robust and practical solution for firewall policy verification and network security management.

Cite

APA

Elfaki, A. O., Albluwi, A., Aljaedi, A., & Nerma, M. H. M. (2026). Explainable Logic-Driven Firewall Anomaly Detection with Knowledge Graph Visualization and Machine Learning Validation. Electronics, 15(8), 1714. https://doi.org/10.3390/electronics15081714

Vancouver

Elfaki AO, Albluwi A, Aljaedi A, Nerma MHM. Explainable Logic-Driven Firewall Anomaly Detection with Knowledge Graph Visualization and Machine Learning Validation. Electronics. 2026;15(8):1714. doi:10.3390/electronics15081714

BibTeX
@article{Elfaki2026,
  author = {Elfaki, Abdelrahman Osman and Albluwi, Abdulhadi and Aljaedi, Amer and Nerma, Mohamed Hussien Mohamed},
  title = {Explainable Logic-Driven Firewall Anomaly Detection with Knowledge Graph Visualization and Machine Learning Validation},
  journal = {Electronics},
  year = {2026},
  volume = {15},
  number = {8},
  pages = {1714},
  doi = {10.3390/electronics15081714}
}
Start for free →