كشف الشذوذ في حركة الشبكة المشفرة باستخدام التعلم الذاتي المراقب
Anomaly detection in encrypted network traffic using self-supervised learning

شارك:
المجلة: Scientific Reports، المجلد: 15، العدد: 1
DOI: https://doi.org/10.1038/s41598-025-08568-0
PMID: https://pubmed.ncbi.nlm.nih.gov/40695909
تاريخ النشر: 2025-07-22
المؤلف: Sadaf Sattar وآخرون
الموضوع الرئيسي: أمن الشبكات وكشف التسلل

نظرة عامة

تقدم البحث ET-SSL، وهي طريقة جديدة لاكتشاف الشذوذ في حركة المرور الشبكية المشفرة باستخدام التعلم التبايني الذاتي. تستفيد هذه الطريقة من الميزات الإحصائية على مستوى التدفق – مثل طول الحزمة، ووقت الوصول بين الحزم، ومدة التدفق، وبيانات التعريف البروتوكولية – مما يسمح بالكشف الفعال عن الشذوذ دون الحاجة إلى مجموعات بيانات مصنفة أو تحليل الحمولة. يعزز ET-SSL أداء تصنيف حركة المرور المعتمد على SSL مع الحفاظ على تعقيد حسابي منخفض من خلال تعظيم التمييز بين حركة المرور العادية والشاذة. أظهر النموذج نتائج مثيرة للإعجاب على مجموعات بيانات مثل CIC-Darknet2020، محققًا دقة بنسبة 96.8%، ومعدل إيجابيات حقيقية (TPR) بنسبة 92.7%، ومعدل إيجابيات كاذبة (FPR) بنسبة 1.2%، مع قدرات كشف في الوقت الحقيقي عند تأخيرات تتراوح بين 15 مللي ثانية و25 مللي ثانية وسرعات معالجة تصل إلى 10 جيجابت في الثانية.

في الختام، يحدد ET-SSL الشذوذ في حركة المرور المشفرة بشكل فعال دون فك التشفير، محققًا معدل كشف بنسبة 95% ويظهر متانة ضد هجمات اليوم صفر وتقنيات التهرب (TPR = 90%، FPR = 5%). استهلاك الطاقة للنظام منخفض، عند 0.5 جول لكل كشف، مما يجعله مناسبًا للنشر على أجهزة الحافة ذات الطاقة المنخفضة. بينما يعترف البحث بالقيود، مثل الاعتماد على حركة المرور المحاكية، تشير النتائج إلى أن نماذج التعلم الذاتي يمكن أن تسهل الكشف الآمن والفعال عن الشذوذ في الوقت الحقيقي في البيئات المشفرة. ستركز الأعمال المستقبلية على تقليل التأخير ودمج ET-SSL في أطر أمان الشبكات الحالية.

مقدمة

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

لمعالجة هذه التحديات، تستكشف الورقة تقنيات التعلم الآلي المختلفة، بما في ذلك النماذج الخاضعة للإشراف مثل آلات الدعم الناقل (SVMs) والشبكات العصبية العميقة (DNNs)، التي تتطلب مجموعات بيانات مصنفة كبيرة غالبًا ما تكون غير متاحة في البيئات المشفرة. تميل الطرق غير الخاضعة للإشراف، على الرغم من كونها مفيدة، إلى إنتاج معدلات إيجابيات كاذبة عالية بسبب عدم قدرتها على التمييز بين حركة المرور الشرعية والضارة. يقترح المؤلفون إطار عمل جديد، ET-SSL (كشف الشذوذ في حركة المرور المشفرة باستخدام التعلم التبايني الذاتي)، الذي يستخدم التعلم التبايني لتعزيز دقة الكشف عن الشذوذ من خلال تجميع حركة المرور العادية بفعالية وتمييزها عن الشذوذ. تم تصميم ET-SSL للعمل بكفاءة في الوقت الحقيقي، وقادر على معالجة 10 جيجابت في الثانية من حركة المرور المشفرة مع الحد الأدنى من التأخير، ولا يتطلب بيانات مصنفة، مما يجعله قابلاً للتكيف مع التهديدات الناشئة.

الطرق

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

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

النتائج

في هذا القسم، يقدم المؤلفون النتائج التجريبية لنموذج ET-SSL المقترح عبر مجموعات بيانات مختلفة، باستخدام مقاييس التقييم مثل معدل الكشف، والدقة، والاسترجاع، ومقياس F1، ومعدل الإيجابيات الكاذبة (FPR)، ومعدل النقل. تشير النتائج إلى أن نموذج ET-SSL يحدد بفعالية هجمات اليوم صفر، مما يظهر إمكانيته للتطبيق في أنظمة الوقت الحقيقي على نطاق واسع. تؤكد النتائج على متانة النموذج وقابليته للتوسع، مما يبرز أهميته في تعزيز تدابير الأمان ضد التهديدات الناشئة.

المناقشة

تناقش ورقة البحث التحديات المتعلقة بالكشف عن الشذوذ في حركة المرور الشبكية المشفرة بسبب انتشار تشفير الحمولة، مما يعقد طرق الكشف عن الشذوذ التقليدية. يقترح المؤلفون إطار عمل جديد، كشف الشذوذ في حركة المرور المشفرة باستخدام التعلم التبايني الذاتي (ET-SSL)، الذي يستفيد من الميزات الإحصائية على مستوى التدفق المستخرجة من حركة المرور المشفرة دون الحاجة إلى فك التشفير. تشمل الميزات الرئيسية المستخدمة توزيعات طول الحزمة، والفواصل الزمنية بين الحزم، ومدة التدفق، وعدد الحزم، وبيانات التعريف البروتوكولية. من خلال اعتماد نهج التعلم التبايني، يقوم ET-SSL بتحسين تمثيل هذه الميزات، مما يعزز دقة الكشف مع الحفاظ على الكفاءة والخصوصية.

يتضمن إطار عمل ET-SSL دالة خسارة مزدوجة تجمع بين خسارة التباين مع خسارة كشف الشذوذ، مما يمكّن النموذج من التمييز بفعالية بين أنماط حركة المرور العادية والشاذة، بما في ذلك هجمات اليوم صفر. يتم تقييم أداء النموذج باستخدام ثلاث مجموعات بيانات – CIC-Darknet2020، ISCX VPN-nonVPN، وUNSW-NB15 – مما يظهر دقة عالية، ومعدلات إيجابيات كاذبة منخفضة، والقدرة على اكتشاف هجمات اليوم صفر مع الحد الأدنى من التأخير. تشير النتائج إلى أن ET-SSL يتفوق على النماذج التقليدية الخاضعة للإشراف وغير الخاضعة للإشراف، مما يجعله حلاً قويًا للكشف عن الشذوذ في الوقت الحقيقي في بيئات الشبكة المشفرة. تدعم قابلية التوسع وكفاءة الموارد للإطار تطبيقه العملي في سيناريوهات حركة المرور الديناميكية.

Journal: Scientific Reports, Volume: 15, Issue: 1
DOI: https://doi.org/10.1038/s41598-025-08568-0
PMID: https://pubmed.ncbi.nlm.nih.gov/40695909
Publication Date: 2025-07-22
Author(s): Sadaf Sattar et al.
Primary Topic: Network Security and Intrusion Detection

Overview

The research presents ET-SSL, a novel method for detecting anomalies in encrypted network traffic using self-supervised contrastive learning. This approach leverages flow-level statistical features—such as packet length, inter-arrival time, flow duration, and protocol metadata—allowing for effective anomaly detection without the need for labeled datasets or payload analysis. ET-SSL enhances the performance of SSL-based traffic classification while maintaining low computational complexity by maximizing the distinction between normal and anomalous traffic. The model demonstrated impressive results on datasets like CIC-Darknet2020, achieving 96.8% accuracy, a true positive rate (TPR) of 92.7%, and a false positive rate (FPR) of 1.2%, with real-time detection capabilities at latencies between 15 ms and 25 ms and processing speeds up to 10 Gbps.

In conclusion, ET-SSL effectively identifies anomalies in encrypted traffic without decryption, achieving a detection rate of 95% and demonstrating robustness against zero-day attacks and evasion techniques (TPR = 90%, FPR = 5%). The system’s energy consumption is low, at 0.5 Joules per detection, making it suitable for deployment on low-power edge devices. While the study acknowledges limitations, such as reliance on simulated traffic, the results indicate that self-supervised learning models can facilitate safe and efficient real-time anomaly detection in encrypted environments. Future work will focus on reducing latency and integrating ET-SSL into existing network security frameworks.

Introduction

The introduction of the research paper discusses the challenges posed by the increasing use of encryption protocols, such as TLS and VPNs, which render traditional network security techniques, particularly deep packet inspection (DPI), ineffective. As encrypted traffic obscures packet content, anomaly detection has transitioned from payload-based analysis to flow-level statistical methods. The authors categorize existing approaches into four main research directions: rule-based methods, supervised learning, unsupervised learning, and self-supervised learning. They highlight the limitations of traditional rule-based systems, which struggle with encrypted traffic and are unable to generalize to unknown attack signatures, thus failing to address zero-day attacks.

To address these challenges, the paper explores various machine learning techniques, including supervised models like Support Vector Machines (SVMs) and Deep Neural Networks (DNNs), which require large labeled datasets that are often unavailable in encrypted environments. Unsupervised methods, while useful, tend to produce high false positive rates due to their inability to distinguish between legitimate and malicious traffic. The authors propose a novel framework, ET-SSL (Encrypted Traffic Anomaly Detection with Self-Supervised Contrastive Learning), which utilizes contrastive learning to enhance anomaly detection accuracy by effectively clustering normal traffic and distinguishing it from anomalies. ET-SSL is designed to operate efficiently in real-time, capable of processing 10 Gbps of encrypted traffic with minimal latency, and does not require labeled data, making it adaptable to emerging threats.

Methods

The methodology presented in this paper introduces a novel Self-Supervised Learning (SSL) framework aimed at detecting anomalies in encrypted network traffic. This framework leverages contrastive learning to extract features from encrypted data without the need for decryption, thereby ensuring compliance with privacy regulations. Key components of the methodology include the representation of encrypted traffic through statistical and temporal characteristics, such as packet duration and inter-packet intervals, as well as the application of a contrastive loss function to effectively cluster normal traffic while distinguishing anomalous patterns in the embedding space.

The learned feature embeddings serve as the basis for detecting anomalies that diverge from established normal traffic patterns, including the identification of zero-day anomalies. The proposed architecture emphasizes privacy preservation by operating directly on encrypted data, which is a significant advancement in the field of anomaly detection. The subsequent subsections will elaborate on the formulation of the contrastive learning model, along with the specific training and evaluation procedures, contributing to the development of a robust framework tailored to the complexities of encrypted traffic in contemporary cybersecurity contexts.

Results

In this section, the authors present the experimental results of the proposed ET-SSL model across various datasets, utilizing evaluation metrics such as detection rate, precision, recall, F1 measure, false positive rate (FPR), and throughput. The findings indicate that the ET-SSL model effectively identifies zero-day attacks, showcasing its potential for application in large-scale real-time systems. The results underscore the model’s robustness and scalability, highlighting its relevance in enhancing security measures against emerging threats.

Discussion

The research paper discusses the challenges of detecting anomalies in encrypted network traffic due to the prevalence of payload encryption, which complicates traditional anomaly detection methods. The authors propose a novel framework, Encrypted Traffic Anomaly Detection using Self-Supervised Contrastive Learning (ET-SSL), which leverages flow-level statistical features extracted from encrypted traffic without the need for decryption. Key features utilized include packet length distributions, inter-packet time intervals, flow duration, packet count, and protocol metadata. By employing a contrastive learning approach, ET-SSL optimizes the representation of these features, enhancing detection accuracy while maintaining efficiency and privacy.

The ET-SSL framework incorporates a dual loss function that combines contrastive loss with an anomaly detection loss, enabling the model to effectively distinguish between normal and anomalous traffic patterns, including zero-day attacks. The model’s performance is evaluated using three datasets—CIC-Darknet2020, ISCX VPN-nonVPN, and UNSW-NB15—demonstrating high accuracy, low false positive rates, and the ability to detect zero-day attacks with minimal latency. The results indicate that ET-SSL outperforms traditional supervised and unsupervised models, making it a robust solution for real-time anomaly detection in encrypted network environments. The framework’s scalability and resource efficiency further support its practical application in dynamic traffic scenarios.