Network Intrusion Detection Systems (NIDS) are essential in safeguarding networks from evolving cyber threats. Traditional signature-based NIDS, such as Snort, struggle with zero-day attacks and lack adaptability. This study presents a unified, empirical evaluation framework comparing Snort with machine learning (ML) models, specifically Random Forest, XGBoost, and Decision Tree, using the UNSW-NB15 dataset. By preserving real-world class distributions and assessing both multi-class and binary threat detection, the framework enables fair and practical comparisons. Results indicate that ensemble models, particularly Random Forest and XGBoost, significantly outperform Snort in both multi-class and binary threat detection tasks. Random Forest achieved an accuracy of 87% compared to Snort’s 56.21%, with false positive rates of 25% versus 62.5%, respectively. The Decision Tree and XGBoost models achieved accuracies of 80.2% and 82.84%, respectively, with low false positives and high recall rates. By standardising the comparison between rule-based and ML-based NIDS, this study offers a clearer understanding of their relative strengths in practical scenarios and supports the case for hybrid detection strategies.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Comparative Evaluation of Machine Learning and Signature-Based NIDS for Multi-class and Binary Threat Detection

  • Somayina C. Wen-Udeoji,
  • Maybin K. Muyeba,
  • Azadeh Mohammadi

摘要

Network Intrusion Detection Systems (NIDS) are essential in safeguarding networks from evolving cyber threats. Traditional signature-based NIDS, such as Snort, struggle with zero-day attacks and lack adaptability. This study presents a unified, empirical evaluation framework comparing Snort with machine learning (ML) models, specifically Random Forest, XGBoost, and Decision Tree, using the UNSW-NB15 dataset. By preserving real-world class distributions and assessing both multi-class and binary threat detection, the framework enables fair and practical comparisons. Results indicate that ensemble models, particularly Random Forest and XGBoost, significantly outperform Snort in both multi-class and binary threat detection tasks. Random Forest achieved an accuracy of 87% compared to Snort’s 56.21%, with false positive rates of 25% versus 62.5%, respectively. The Decision Tree and XGBoost models achieved accuracies of 80.2% and 82.84%, respectively, with low false positives and high recall rates. By standardising the comparison between rule-based and ML-based NIDS, this study offers a clearer understanding of their relative strengths in practical scenarios and supports the case for hybrid detection strategies.