الكشف المتقدم عن نفق DNS: نهج هجين للتعلم المعزز والطرق الميتاهيرستية
Advanced DNS tunneling detection: a hybrid reinforcement learning and metaheuristic approach

شارك:
المجلة: Frontiers in Computer Science، المجلد: 7
DOI: https://doi.org/10.3389/fcomp.2025.1728980
تاريخ النشر: 2026-01-15
المؤلف: Mahmoud Sammour وآخرون
الموضوع الرئيسي: أمن الشبكات وكشف التسلل

نظرة عامة

تتناول ورقة البحث القضية الحرجة لنفق DNS، وهو تهديد شبكي يستغل بروتوكول DNS للتواصل غير المصرح به واستخراج البيانات. لمواجهة هذا التحدي، يقترح المؤلفون إطار عمل جديد لاختيار الميزات الهجينة يجمع بين مصنف Random Forest مع مُحسّن الذئب الرمادي المدعوم بالتعلم المعزز (EnhancedRLGWO). تستخدم هذه الطريقة المبتكرة شبكة Dueling Deep Q-Network والتعلم القائم على المعارضة للتنقل بكفاءة في مساحة الميزات، مع تحديد مجموعة فرعية صغيرة من الميزات اللازمة للكشف الفعال.

تم تقييم الإطار المقترح باستخدام مجموعة بيانات CIRA-CIC-DoHBrw-2020، محققًا دقة مثيرة للإعجاب تبلغ 99.82% ودرجة F1 مرجحة تبلغ 99.79% مع 12 ميزة فقط. تتجاوز هذه الأداء بشكل كبير أنظمة الكشف عن نفق DNS المعتمدة على التعلم الآلي الحالية، بما في ذلك نموذج هجين حقق دقة 98.3% و baseline كامل الميزات من Random Forest بدقة 98.50%. تظهر النتائج قوة الطريقة في الكشف عن هجمات نفق DNS المختلفة، مثل Iodine و DNS2TCP و DNScat2، مع الحفاظ على أداء عالٍ. تسلط الدراسة الضوء على إمكانيات الخوارزميات المدعومة بالتعلم المعزز في أتمتة اختيار الميزات لتطبيقات الأمن السيبراني، خاصة في سياق حركة مرور DNS المشفرة عبر HTTPS.

مقدمة

تسلط مقدمة ورقة البحث هذه الضوء على الدور الحاسم لنظام أسماء النطاقات (DNS) في بنية الإنترنت، حيث يعمل بشكل أساسي كمترجم لعناوين IP الرقمية إلى أسماء نطاقات قابلة للقراءة البشرية. ومع ذلك، فإن ثقتها الفطرية واستخدامها الواسع يجعلها هدفًا للتهديدات السيبرانية، خاصة من خلال نفق DNS، حيث يتم إخفاء البيانات الضارة داخل استعلامات واستجابات DNS. تشكل هذه الطريقة السرية تحديات كبيرة في الكشف، خاصة مع تزايد اعتماد بروتوكولات DNS المشفرة مثل DNS عبر HTTPS (DoH)، مما يعقد تقنيات المراقبة التقليدية مثل فحص الحزم العميق.

لمعالجة هذه التحديات، تقترح الدراسة نهجًا للتعلم الآلي (ML) للكشف عن نفق DNS، باستخدام مصنف Random Forest (RF) بالتزامن مع طريقة متقدمة لاختيار الميزات تعرف باسم مُحسّن الذئب الرمادي المدعوم بالتعلم المعزز (EnhancedRLGWO). يهدف هذا النموذج الهجين إلى تعزيز دقة الكشف وكفاءة الحساب من خلال التنقل الذكي في مساحة الميزات. يتضمن EnhancedRLGWO شبكة Dueling Deep Q-Network (DQN) لتحسين عملية البحث، ويستخدم إعادة تشغيل التجربة ذات الأولوية (PER) للتعلم الفعال، ويركز على الميزات ذات الصلة بحركة مرور DNS المشفرة. تم وضع الابتكارات المقترحة لتحسين الكشف عن التهديدات المخفية داخل حركة مرور DNS بشكل كبير، مما يعزز من إمكانيات ML في تطبيقات الأمن السيبراني.

طرق

في هذا القسم، يوضح المؤلفون المنهجية المستخدمة في دراستهم، بدءًا من نظرة عامة على إطار البحث، ومجموعة البيانات، وتقنيات هندسة الميزات. المساهمة الأساسية للدراسة هي مُحسّن الذئب الرمادي المدعوم بالتعلم المعزز (EnhancedRLGWO)، الذي يتم شرحه بالتفصيل الفني.

للتحقق من النهج المقترح، نفذ المؤلفون تصميمًا تجريبيًا صارمًا من مرحلتين، ملتزمين بأفضل الممارسات المعمول بها في كل من أبحاث التحسين والتعلم الآلي للأمن السيبراني، كما تم الإشارة إليه في الأعمال السابقة (Roopesh et al., 2024; Almaiah et al., 2024; Almomani et al., 2025a). يهدف هذا التقييم المنظم إلى ضمان قوة وفعالية EnhancedRLGWO في التطبيقات العملية.

نتائج

يستعرض قسم النتائج التحقق التجريبي من مُحسّن EnhancedRLGWO. في البداية، يتم تقييم الأداء العام للمُحسّن باستخدام سلسلة من وظائف القياس القياسية، مما يظهر فعاليته في مهام التحسين. بعد ذلك، يتم تطبيق المنهجية على القضية الحرجة لاختيار الميزات للكشف عن نفق DNS، حيث يتم تقييم أداء نموذج التصنيف الناتج. يبرز هذا النهج المزدوج كل من مرونة المُحسّن وتطبيقه المحدد على تحديات الأمن السيبراني في العالم الحقيقي.

مناقشة

تقدم ورقة البحث إطار عمل جديد للكشف عن نفق DNS في حركة المرور المشفرة، مع التركيز بشكل خاص على DNS عبر HTTPS (DoH). تشمل المساهمات الرئيسية تطوير مُحسّن الذئب الرمادي المدعوم بالتعلم المعزز (EnhancedRLGWO)، الذي يدمج شبكة Dueling Deep Q-Network (DQN) مع إعادة تشغيل التجربة ذات الأولوية (PER) لتعزيز عملية تحسين مُحسّن الذئب الرمادي (GWO). يعالج هذا النهج الهجين قيود GWO القياسي من خلال تحسين التوازن بين الاستكشاف العالمي والاستغلال المحلي، مما يؤدي إلى آلية اختيار ميزات أكثر فعالية. تحدد الدراسة مجموعة ميزات مضغوطة من 12 ميزة بيانات وصفية من طبقة النقل، محققة تقليصًا في الأبعاد بنسبة 57% وتظهر أداءً متقدمًا في الكشف مع درجة F1 مرجحة ودقة تبلغ 99.82% على مجموعة بيانات CIRA-CIC-DoHBrw-2020.

كما تسلط الورقة الضوء على تحدي نفق DNS، الذي يستغل بروتوكولات DNS لتجاوز تدابير الأمان، خاصة في مواجهة التشفير الذي يعيق أنماط حركة المرور. تكافح طرق الكشف التقليدية مع حركة مرور DoH، مما يستلزم تقنيات متقدمة مثل التعلم الآلي للتصنيف الفعال. يبرز المؤلفون أهمية اختيار الميزات في تعزيز أداء النموذج ويقترحون استخدام الخوارزميات الميتاهيرستية لهذا الغرض. لا يحسن إطار عمل EnhancedRLGWO اختيار الميزات فحسب، بل يتضمن أيضًا التعلم المعزز لتكييف عملية التحسين ديناميكيًا، مما يعالج تعقيدات تحليل حركة المرور المشفرة. بشكل عام، تسهم هذه الدراسة بشكل كبير في مجال أمان الشبكات من خلال توفير حل قوي وفعال للكشف عن الأنشطة الضارة داخل حركة مرور DNS المشفرة.

القيود

تعترف الدراسة بعدة قيود قد تؤثر على قابلية تعميم وملاءمة نتائجها. أولاً، يعتمد التقييم على مجموعة بيانات عامة واحدة، والتي، على الرغم من كونها شاملة، قد لا تمثل تمامًا تنوع حركة المرور الشبكية؛ وبالتالي، فإن التحقق الإضافي على مجموعات بيانات متنوعة ضروري لضمان القوة. ثانيًا، على الرغم من أن النموذج النهائي الذي يتكون من 12 ميزة فعال من حيث الحساب، فإن عملية التحسين المدعومة بالتعلم المعزز (RL) تتطلب تكلفة حسابية أعلى أثناء التدريب مقارنة بالطرق الأكثر بساطة. أخيرًا، تم تصميم الإطار حاليًا للتحليل غير المتصل، مما يتطلب جهود هندسية إضافية لتكييفه لتطبيقات الكشف في الوقت الحقيقي وبمعدل خطي.

Journal: Frontiers in Computer Science, Volume: 7
DOI: https://doi.org/10.3389/fcomp.2025.1728980
Publication Date: 2026-01-15
Author(s): Mahmoud Sammour et al.
Primary Topic: Network Security and Intrusion Detection

Overview

The research paper addresses the critical issue of DNS tunneling, a network threat that exploits the DNS protocol for unauthorized communication and data exfiltration. To combat this challenge, the authors propose a novel hybrid feature selection framework that combines a Random Forest classifier with an Enhanced Reinforcement Learning-Guided Grey Wolf Optimizer (EnhancedRLGWO). This innovative approach utilizes a Dueling Deep Q-Network and Opposition-Based Learning to efficiently navigate the feature space, identifying a minimal subset of features necessary for effective detection.

The proposed framework was evaluated using the CIRA-CIC-DoHBrw-2020 dataset, achieving an impressive accuracy of 99.82% and a weighted F1-score of 99.79% with only 12 features. This performance significantly surpasses existing machine learning-based DNS tunneling detection systems, including a hybrid model that achieved 98.3% accuracy and a full-feature Random Forest baseline with 98.50% accuracy. The results demonstrate the robustness of the method in detecting various DNS tunneling attacks, such as Iodine, DNS2TCP, and DNScat2, while maintaining high performance. The study highlights the potential of reinforcement learning-guided metaheuristics in automating feature selection for cybersecurity applications, particularly in the context of encrypted DNS-over-HTTPS traffic.

Introduction

The introduction of this research paper highlights the critical role of the Domain Name System (DNS) in internet infrastructure, primarily functioning as a translator of numeric IP addresses into human-readable domain names. However, its inherent trust and widespread use make it a target for cyber threats, particularly through DNS tunneling, where malicious data is concealed within DNS queries and responses. This covert method poses significant detection challenges, especially with the increasing adoption of encrypted DNS protocols like DNS over HTTPS (DoH), which complicates traditional monitoring techniques such as deep packet inspection.

To address these challenges, the study proposes a machine learning (ML) approach for detecting DNS tunneling, utilizing the Random Forest (RF) classifier in conjunction with an advanced feature selection method known as the Reinforcement Learning-Guided Gray Wolf Optimizer (EnhancedRLGWO). This hybrid model aims to enhance detection accuracy and computational efficiency by intelligently navigating the feature space. The EnhancedRLGWO incorporates a Dueling Deep Q-Network (DQN) to optimize the search process, employs Prioritized Experience Replay (PER) for efficient learning, and focuses on features relevant to encrypted DNS traffic. The proposed innovations are positioned to significantly improve the detection of hidden threats within DNS traffic, thereby reinforcing the potential of ML in cybersecurity applications.

Methods

In this section, the authors detail the methodology employed in their study, beginning with an overview of the research framework, dataset, and feature engineering techniques. The core contribution of the study is the Enhanced Reinforcement Learning-Guided Gray Wolf Optimizer (EnhancedRLGWO), which is explained in technical detail.

To validate the proposed approach, the authors implemented a rigorous two-stage experimental design, adhering to established best practices in both optimization research and cybersecurity machine learning, as referenced in previous works (Roopesh et al., 2024; Almaiah et al., 2024; Almomani et al., 2025a). This structured evaluation aims to ensure the robustness and effectiveness of the EnhancedRLGWO in practical applications.

Results

The results section details the empirical validation of the EnhancedRLGWO optimizer. Initially, the optimizer’s general performance is assessed using a series of standard benchmark functions, demonstrating its effectiveness in optimization tasks. Subsequently, the methodology is applied to the critical issue of feature selection for DNS tunneling detection, where the performance of the resulting classification model is evaluated. This dual approach highlights both the optimizer’s versatility and its specific applicability to real-world cybersecurity challenges.

Discussion

The research paper presents a novel framework for detecting DNS tunneling in encrypted traffic, specifically focusing on DNS-over-HTTPS (DoH). The key contributions include the development of the Enhanced Reinforcement Learning-Guided Gray Wolf Optimizer (EnhancedRLGWO), which integrates a Dueling Deep Q-Network (DQN) with Prioritized Experience Replay (PER) to enhance the optimization process of the Gray Wolf Optimizer (GWO). This hybrid approach addresses the limitations of standard GWO by improving the balance between global exploration and local exploitation, resulting in a more effective feature selection mechanism. The study identifies a compact feature subset of 12 transport-layer metadata features, achieving a dimensionality reduction of 57% and demonstrating state-of-the-art detection performance with a weighted F1-score and accuracy of 99.82% on the CIRA-CIC-DoHBrw-2020 dataset.

The paper also contextualizes the challenge of DNS tunneling, which exploits DNS protocols to bypass security measures, particularly in the face of encryption that obscures traffic patterns. Traditional detection methods struggle with DoH traffic, necessitating advanced techniques such as machine learning for effective classification. The authors highlight the importance of feature selection in enhancing model performance and propose the use of metaheuristic algorithms for this purpose. The EnhancedRLGWO framework not only improves feature selection but also incorporates reinforcement learning to dynamically adapt the optimization process, thereby addressing the complexities of encrypted traffic analysis. Overall, this research contributes significantly to the field of network security by providing a robust and efficient solution for detecting malicious activities within encrypted DNS traffic.

Limitations

The research acknowledges several limitations that may affect the generalizability and applicability of its findings. Firstly, the evaluation is based on a single public dataset, which, while comprehensive, may not fully represent the diversity of network traffic; thus, further validation on varied datasets is necessary to ensure robustness. Secondly, although the final model comprising 12 features is computationally efficient, the reinforcement learning (RL)-guided optimization process incurs a higher computational cost during training compared to more straightforward methods. Lastly, the framework is currently tailored for offline analysis, necessitating additional engineering efforts to adapt it for real-time, line-rate detection applications.