DOI: https://doi.org/10.3390/fi17010025
تاريخ النشر: 2025-01-08
المؤلف: Maiada M. Mahmoud وآخرون
الموضوع الرئيسي: أمن الشبكات وكشف التسلل
نظرة عامة
تقدم ورقة البحث إطار عمل XI2S-IDS، وهو نظام كشف التسلل الذكي القابل للتفسير من مرحلتين مصمم لتعزيز الكشف وقابلية تفسير الهجمات الإلكترونية ذات التردد المنخفض. مع تطور التهديدات الإلكترونية جنبًا إلى جنب مع تقنيات مثل إنترنت الأشياء (IoT) و5G، تواجه أنظمة كشف التسلل التقليدية (IDSs) صعوبة في تحديد التسللات الدقيقة بسبب اعتمادها على نماذج التعلم الآلي غير الشفافة. يعالج إطار عمل XI2S-IDS هذه التحديات من خلال استخدام نهج تصنيف من مرحلتين: مصنف ثنائي يكشف عن الشذوذ يليه مصنف متعدد الفئات يركز على سجلات الهجمات. هذه البنية، جنبًا إلى جنب مع التفسيرات المعتمدة على SHAP، تعزز الشفافية وتسمح لمحللي الأمن بفهم أهمية الميزات وقرارات النموذج.
تشير النتائج التجريبية على مجموعات بيانات UNSW-NB15 وCICIDS2017 إلى أن XI2S-IDS يقلل بشكل كبير من معدلات السلبية الكاذبة للهجمات ذات التردد المنخفض مع الحفاظ على دقة عالية واسترجاع ودرجات F1. حقق المصنف الثنائي معدل سلبية كاذبة قدره 0.0004 لمجموعة CICIDS2017 و0.019 لمجموعة UNSW-NB15، مما يوضح فعاليته في تمييز الهجمات. كما تسلط الورقة الضوء على التحديات المستمرة في تطوير IDS، مثل عدم توازن الفئات والحاجة إلى التقييم في الوقت الحقيقي، خاصة في الكشف عن هجمات اليوم صفر. ستركز الأعمال المستقبلية على تقليل السلبية الكاذبة بشكل أكبر واختبار XI2S-IDS في بيئات الشبكة الحية، مع التأكيد على أهمية القابلية للتفسير والقدرة على التكيف في حلول الأمن السيبراني.
مقدمة
تسلط مقدمة ورقة البحث هذه الضوء على التقدم السريع في التقنيات المتصلة، مثل إنترنت الأشياء (IoT) و5G، التي حولت التفاعلات الرقمية ولكنها زادت أيضًا من مخاطر الأمن السيبراني. مع تحديد أكثر من 1.1 مليار عينة من البرمجيات الضارة حتى عام 2024 وارتفاع كبير في الهجمات الإلكترونية عبر مختلف القطاعات، أصبحت الحاجة إلى أنظمة كشف التسلل القوية (IDS) أمرًا بالغ الأهمية. تواجه IDS التقليدية تحديات في معالجة التهديدات المعقدة، مما دفع الباحثين لاستكشاف تقنيات التعلم الآلي (ML) والتعلم العميق (DL) لتعزيز قدرات الكشف. أظهرت نماذج بارزة مثل الذاكرة طويلة وقصيرة المدى (LSTM) والشبكات العصبية التلافيفية (CNN) والمشفّرات الذاتية (AE) وعدًا في تحسين دقة الكشف وقابلية التوسع.
على الرغم من هذه التقدمات، لا تزال قضايا مثل ارتفاع معدلات الإيجابيات الكاذبة، وقابلية التوسع، وغموض نماذج الصندوق الأسود تشكل تحديات كبيرة. تؤكد الورقة على أهمية القابلية للتفسير في IDS، خاصة في البيئات ذات المخاطر العالية مثل الرعاية الصحية والمالية، حيث يعد فهم قرارات النموذج أمرًا حيويًا للاستجابة في الوقت المناسب. يهدف نظام كشف التسلل الذكي القابل للتفسير من مرحلتين (XI2S-IDS) المقترح إلى معالجة هذه التحديات من خلال دمج ML وDL مع التركيز على القابلية للتفسير. يعزز هذا الإطار المكون من مرحلتين دقة الكشف للهجمات ذات التردد المنخفض مع تقديم رؤى حول عملية اتخاذ القرار من خلال التفسيرات المعتمدة على SHAP. تعد الورقة بإظهار تحسينات كبيرة في كل من معدلات الكشف وقابلية التفسير مقارنة بالنماذج التقليدية، مما يمهد الطريق لمزيد من استكشاف دقة IDS وقابلية التفسير في الأقسام التالية.
طرق
يعالج هيكل XI2S-IDS عدم التوازن الفئوي الكامن في مجموعات بيانات أنظمة كشف التسلل (IDS) من خلال استخدام عملية تصنيف من مرحلتين معززة بالذكاء الاصطناعي القابل للتفسير (XAI). في المرحلة الأولى، يميز مصنف التعلم الآلي (ML) الثنائي بين الحزم العادية (المعلمة بـ 0) وحزم الهجوم (المعلمة بـ 1)، موفرًا تفسيرًا عالميًا لقرارات النموذج من خلال SHAP (التفسيرات الإضافية لشابلي). تستخدم المرحلة الثانية مصنفًا متعدد الفئات يعتمد على التعلم العميق (DL) يتدرب حصريًا على سجلات الهجوم، مما يركز على تحديد أنواع الهجمات المحددة مع تجاهل السجلات العادية. يسمح هذا الفصل للمصنف الثنائي بإدارة التصنيف العادي مقابل غير العادي بشكل فعال، بينما يركز المصنف متعدد الفئات على خصائص فئات الهجمات المختلفة، وخاصة الهجمات ذات التردد المنخفض التي غالبًا ما تكون ممثلة تمثيلًا ناقصًا في مجموعات البيانات.
تسلط المنهجية الضوء على التحديات التي تطرحها الهجمات ذات التردد المنخفض، والتي يصعب الكشف عنها بسبب ندرتها في بيانات التدريب. بينما حققت الأبحاث السابقة دقة عالية في التصنيف الثنائي، فإنها غالبًا ما تتجاهل تعقيدات تحديد هذه الأنواع الأقل تكرارًا من الهجمات. من خلال عزل تدريب المصنف متعدد الفئات على سجلات الهجوم فقط، يعزز إطار عمل XI2S-IDS قدرته على التمييز بين أنواع الهجمات، مما يحسن دقة الكشف. تفترض الأبحاث أن هذا النهج المستهدف لا يقتصر على تحسين عملية التعلم لكشف الهجمات فحسب، بل أيضًا تحسين الأداء العام لـ IDS، مما يجعلها أكثر قدرة على التعرف على أنماط الهجوم الدقيقة.
نتائج
في قسم النتائج من الدراسة، تم تقييم أداء نماذج التعلم الآلي المختلفة لتصنيف ثنائي لحركة الشبكة باستخدام مقاييس مثل الدقة، والدقة، والاسترجاع، ودرجة F1، ومعدل السلبية الكاذبة (FNR)، ومعدل الإيجابية الكاذبة (FPR). تم تدريب النماذج على مجموعات بيانات CICIDS2017 وUNSW-NB15، حيث برز LightGBM كنموذج مفضل بسبب استرجاعه المتفوق ومعدل السلبية الكاذبة على مجموعة UNSW-NB15، على الرغم من أن XGBoost أظهر أداءً أفضل قليلاً في معدل الإيجابية الكاذبة على CICIDS2017. كشفت تحليل SHAP أن الميزات المتعلقة بأطوال الحزم وخصائص التدفق كانت مؤشرات مهمة للنشاط الخبيث، مما يتماشى مع أنماط التسلل المعروفة.
في المرحلة الثانية، تحول التركيز إلى تصنيف أنواع الهجمات المحددة باستخدام نماذج التعلم العميق، وخاصة BI-LSTM وهيكل CNN-BI-LSTM الهجين، مع تعزيز الأداء من خلال تقنية SMOTE لزيادة العينة. أشارت النتائج إلى أنه بينما أدت كلا النموذجين أداءً مشابهًا، كان BI-LSTM أكثر فعالية للهجمات ذات التردد المنخفض، مما أدى إلى اختياره كمصنف متعدد الفئات لإطار عمل XI2S-IDS. تضمنت عملية التصنيف العامة نهجًا من مرحلتين حيث تم تصنيف السجلات التي تم التعرف عليها على أنها هجمات بواسطة المصنف الثنائي بشكل إضافي بواسطة المصنف متعدد الفئات، مما يضمن توافق القيم المتوقعة مع الفئات الحقيقية للهجمات. كما أن الدراسة وضعت معيارًا من خلال مقارنة النهج المكون من مرحلتين مع طرق التصنيف التقليدية ذات المرحلة الواحدة، مما يظهر فعالية النظام المقترح.
نقاش
في هذا القسم، يناقش المؤلفون مقاييس التقييم وإطار عمل نظام كشف التسلل الذكي المكون من مرحلتين (XI2S-IDS) المقترح. يؤكدون على أن مقاييس الدقة التقليدية يمكن أن تكون مضللة في سياق أنظمة كشف التسلل (IDS)، خاصة بسبب انتشار الهجمات ذات التردد المنخفض. بدلاً من ذلك، يفضلون مقاييس مثل معدل السلبية الكاذبة (FNR)، والدقة، والاسترجاع، ودرجة F1 لتقديم تقييم أكثر شمولاً لأداء النموذج. تسلط الدراسة الضوء على أهمية تحقيق التوازن بين الإيجابيات الكاذبة والسلبية الكاذبة، خاصة في مجموعات البيانات غير المتوازنة النموذجية لتطبيقات IDS. يستخدم المؤلفون مجموعات بيانات UNSW-NB15 وCICIDS2017، التي تظهر عدم توازن فئوي كبير، لتقييم إطار عملهم.
يعمل إطار عمل XI2S-IDS في ثلاث مراحل: معالجة البيانات، والتصنيف الثنائي، والتصنيف متعدد الفئات. يتعلم المصنف الثنائي، الذي يستخدم بشكل أساسي نماذج التجميع مثل LightGBM وXGBoost، سلوك المستخدم العادي بشكل فعال ويقلل من معدل السلبية الكاذبة للهجمات ذات التردد المنخفض. تستخدم المرحلة الثانية مصنفًا متعدد الفئات تم تدريبه حصريًا على سجلات الهجوم، معززًا بتقنية SMOTE لمعالجة عدم التوازن الفئوي. تظهر النتائج أن النموذج المكون من مرحلتين يتفوق بشكل كبير على المصنفات التقليدية ذات المرحلة الواحدة، خاصة في الكشف عن أنواع الهجمات النادرة، كما يتضح من تحسين معدلات السلبية الكاذبة ودرجات F1 عبر كلا المجموعتين. يخلص المؤلفون إلى أن الهيكل المكون من مرحلتين، جنبًا إلى جنب مع التفسيرات المعتمدة على SHAP، يعزز كل من الدقة وقابلية التفسير لـ IDS، مما يمهد الطريق لحلول الأمن السيبراني الأكثر فعالية.
DOI: https://doi.org/10.3390/fi17010025
Publication Date: 2025-01-08
Author(s): Maiada M. Mahmoud et al.
Primary Topic: Network Security and Intrusion Detection
Overview
The research paper presents the XI2S-IDS framework, an Explainable, Intelligent 2-Stage Intrusion Detection System designed to enhance the detection and interpretability of low-frequency cyber attacks. As cyber threats evolve alongside technologies like IoT and 5G, traditional Intrusion Detection Systems (IDSs) struggle to identify subtle intrusions due to their reliance on opaque machine learning models. The XI2S-IDS framework addresses this challenge by employing a two-stage classification approach: a binary classifier that detects anomalies followed by a multi-class classifier focused on attack records. This structure, combined with SHAP-based explanations, improves transparency and allows security analysts to understand feature importance and model decisions.
Experimental results on the UNSW-NB15 and CICIDS2017 datasets indicate that XI2S-IDS significantly reduces false negative rates for low-frequency attacks while maintaining high precision, recall, and F1-scores. The binary classifier achieved an FNR of 0.0004 for CICIDS2017 and 0.019 for UNSW-NB15, demonstrating its effectiveness in distinguishing attacks. The paper also highlights ongoing challenges in IDS development, such as class imbalance and the need for real-time evaluation, particularly in detecting zero-day attacks. Future work will focus on further reducing false negatives and testing XI2S-IDS in live network environments, emphasizing the importance of explainability and adaptability in cybersecurity solutions.
Introduction
The introduction of this research paper highlights the rapid advancement of connected technologies, such as the Internet of Things (IoT) and 5G, which have transformed digital interactions but also heightened cybersecurity risks. With over 1.1 billion malware samples identified as of 2024 and a significant rise in cyber attacks across various sectors, the need for robust Intrusion Detection Systems (IDS) has become paramount. Traditional IDS face challenges in addressing sophisticated threats, prompting researchers to explore machine learning (ML) and deep learning (DL) techniques to enhance detection capabilities. Notable models like Long Short-Term Memory (LSTM), Convolutional Neural Networks (CNN), and AutoEncoders (AE) have shown promise in improving detection accuracy and scalability.
Despite these advancements, issues such as high false positive rates, scalability, and the opacity of black-box models remain significant challenges. The paper emphasizes the importance of explainability in IDS, particularly in high-stakes environments like healthcare and finance, where understanding model decisions is crucial for timely responses. The proposed eXplainable Intelligent 2-Stage Intrusion Detection System (XI2S-IDS) aims to address these challenges by integrating ML and DL with a focus on interpretability. This two-stage framework enhances detection accuracy for low-frequency attacks while providing insights into the decision-making process through SHAP-based explanations. The paper promises to demonstrate significant improvements in both detection rates and interpretability over traditional models, setting the stage for further exploration of IDS accuracy and explainability in subsequent sections.
Methods
The XI2S-IDS architecture addresses the inherent class imbalance in intrusion detection system (IDS) datasets by employing a two-stage classification process enhanced by explainable artificial intelligence (XAI). In the first stage, a binary machine learning (ML) classifier distinguishes between normal packets (labeled 0) and attack packets (labeled 1), providing a global explanation of the model’s decisions through SHAP (SHapley Additive exPlanations). The second stage utilizes a deep learning (DL) multi-class classifier that exclusively trains on attack records, thereby focusing on identifying specific attack types while disregarding normal records. This separation allows the binary classifier to effectively manage the normal versus abnormal classification, while the multi-class classifier hones in on the characteristics of various attack classes, particularly low-frequency attacks that are often underrepresented in datasets.
The methodology highlights the challenges posed by low-frequency attacks, which are difficult to detect due to their rarity in training data. While previous research has achieved high accuracy in binary classification, it often overlooks the complexities of identifying these less frequent attack types. By isolating the training of the multi-class classifier to only attack records, the XI2S-IDS framework enhances its ability to differentiate between attack types, thereby improving detection accuracy. The research posits that this targeted approach not only refines the learning process for attack detection but also optimizes the overall performance of the IDS, making it more adept at recognizing nuanced attack patterns.
Results
In the results section of the study, the performance of various machine learning models for binary classification of network traffic was evaluated using metrics such as accuracy, precision, recall, F1-score, false negative rate (FNR), and false positive rate (FPR). The models were trained on the CICIDS2017 and UNSW-NB15 datasets, with LightGBM emerging as the preferred model due to its superior recall and FNR on the UNSW-NB15 dataset, despite XGBoost showing slightly better FPR on CICIDS2017. The SHAP analysis revealed that features related to packet lengths and flow characteristics were significant indicators of malicious activity, aligning with known intrusion patterns.
In the second stage, the focus shifted to classifying specific attack types using deep learning models, particularly BI-LSTM and a hybrid CNN-BI-LSTM architecture, with SMOTE oversampling enhancing performance. The results indicated that while both models performed similarly, BI-LSTM was more effective for low-frequency attacks, leading to its selection as the multi-class classifier for the XI2S-IDS framework. The overall classification process involved a two-stage approach where records identified as attacks by the binary classifier were further categorized by the multi-class classifier, ensuring accurate alignment of predicted values with true attack classes. The study also established a benchmark by comparing the two-stage approach with traditional one-stage classification methods, demonstrating the efficacy of the proposed system.
Discussion
In this section, the authors discuss the evaluation metrics and framework of their proposed intelligent two-stage intrusion detection system (XI2S-IDS). They emphasize that traditional accuracy metrics can be misleading in the context of intrusion detection systems (IDS), particularly due to the prevalence of low-frequency attacks. Instead, they prioritize metrics such as false negative rate (FNR), precision, recall, and F1-score to provide a more comprehensive assessment of model performance. The study highlights the importance of balancing false positives and false negatives, especially in imbalanced datasets typical of IDS applications. The authors utilize the UNSW-NB15 and CICIDS2017 datasets, which exhibit significant class imbalances, to benchmark their framework.
The XI2S-IDS framework operates in three phases: data preprocessing, binary classification, and multi-class classification. The binary classifier, primarily utilizing ensemble models like LightGBM and XGBoost, effectively learns normal user behavior and reduces FNR for low-frequency attacks. The second stage employs a multi-class classifier trained exclusively on attack records, enhanced by the Synthetic Minority Oversampling Technique (SMOTE) to address class imbalances. The results demonstrate that the two-stage model significantly outperforms traditional single-stage classifiers, particularly in detecting rare attack types, as evidenced by improved FNRs and F1-scores across both datasets. The authors conclude that the two-stage architecture, combined with SHAP-based explanations, enhances both the accuracy and interpretability of IDS, paving the way for more effective cybersecurity solutions.
