DOI: https://doi.org/10.1038/s41598-025-31444-w
PMID: https://pubmed.ncbi.nlm.nih.gov/41491703
تاريخ النشر: 2026-01-05
المؤلف: Shatha Abed Alsaedi وآخرون
الموضوع الرئيسي: تقنيات الكشف المتقدمة عن البرمجيات الخبيثة
نظرة عامة
تقدم البحث هيكلية تعلم عميق من مرحلتين هرمية مصممة لتحديد وتصنيف البرمجيات الضارة القابلة للتنفيذ (PE). المركز في هذا الإطار هو دالة خسارة DRBCE، التي تدمج بين الانتروبيا المتقاطعة الموزونة والتنظيم الطيفي لمعالجة عدم توازن الفئات وتعزيز قدرات التعميم. يتم هيكلة خط أنابيب الكشف كنموذج احتمالي متعدد المراحل، مما يسمح بتقييم انتشار الأخطاء من مراحل التصنيف الثنائي إلى التصنيف متعدد الفئات، وبالتالي تقديم رؤى حول موثوقية المصنفات الطبقية. تؤكد التجارب الواسعة التي أجريت على مجموعات بيانات البرمجيات الضارة الكبيرة الأسس النظرية، مما يظهر أداءً متفوقًا وقوة في المقاييس.
سيركز العمل المستقبلي على دمج ميزات التحليل الديناميكي وتشكيل اختيار الميزات وتقليل الأبعاد كمشكلات تحسين لتحسين قابلية التوسع. بالإضافة إلى ذلك، يهدف تطوير نماذج مضغوطة وقوية من الناحية النظرية لأجهزة الحافة وأجهزة إنترنت الأشياء، جنبًا إلى جنب مع تنفيذ تقنيات الذكاء الاصطناعي القابل للتفسير (XAI) مع ضمانات تفسير رسمية، إلى تعزيز تطبيق الذكاء الاصطناعي في الأمن السيبراني. تهدف هذه التطورات إلى توفير آليات دفاع مرنة وقابلة للتكيف يمكنها الاستجابة بفعالية لمشهد التهديدات السيبرانية المتطورة.
مقدمة
تسلط المقدمة الضوء على التحديات المتزايدة في كشف البرمجيات الضارة بسبب الطبيعة المتطورة للتهديدات السيبرانية. منذ ظهور أول فيروس كمبيوتر، دودة Creeper، في السبعينيات، كان هناك سباق تسلح مستمر بين محللي الأمن ومطوري البرمجيات الضارة. تشير التقارير الأخيرة إلى زيادة كبيرة في الهجمات السيبرانية، حيث لاحظت Checkpoint Research زيادة بنسبة 40% في التهديدات من 2020 إلى 2021، وسجلت Symantec زيادة مذهلة بنسبة 600% في الهجمات التي تستهدف أجهزة إنترنت الأشياء جنبًا إلى جنب مع زيادة بنسبة 54% في متغيرات البرمجيات الضارة الجديدة. تؤكد هذه الاتجاهات المقلقة على الحاجة الملحة لآليات كشف ودفاع متقدمة ضد البرمجيات الضارة المعقدة.
تشمل البرمجيات الضارة أنواعًا مختلفة من البرمجيات الخبيثة، بما في ذلك الفيروسات، الديدان، برامج الفدية، برامج التجسس، والبرمجيات الخبيثة، جميعها مصممة لإلحاق الضرر بالأنظمة، وسرقة البيانات الحساسة، أو تعطيل العمليات. كانت طرق الكشف التقليدية، مثل الأساليب المعتمدة على التوقيع والأساليب المعتمدة على السلوك، حجر الزاوية في حماية البرمجيات الضارة. ومع ذلك، فإن هذه الطرق أصبحت غير فعالة بشكل متزايد ضد البرمجيات الضارة الحديثة التي تستخدم التعتيم والتعددية لتفادي الكشف. بينما تقدم التحليل الثابت السرعة، فإنه يواجه صعوبة مع الشيفرات المعتمة، ويتطلب التحليل الديناميكي، على الرغم من كونه أكثر قوة، بيئات كثيفة الموارد يمكن أن تتعرض للاختراق. استجابةً لهذه التحديات، تظهر تقنيات التعلم الآلي (ML) والتعلم العميق (DL) كحلول تحويلية لتعزيز قدرات كشف البرمجيات الضارة.
طرق
يستخدم البحث مجموعة بيانات BODMAS، وهي مجموعة شاملة من عينات البرمجيات الضارة والحميدة، totaling 134,435 entries recorded between August 2019 and September 2020. تتضمن هذه المجموعة 57,293 عينة من البرمجيات الضارة من 581 عائلة متميزة، مع التركيز على أفضل 14 عائلة للتصنيف متعدد الفئات، مما يضمن تمثيلًا متنوعًا للسلوكيات الخبيثة. يتم تمثيل كل عينة كمتجه ميزات بُعده 2,381 مستمد من مشروع LIEF، مما يسهل التوافق مع مجموعات بيانات أخرى مثل Ember. مجموعة البيانات متاحة عبر الإنترنت لمزيد من البحث.
الإطار المقترح لكشف البرمجيات الضارة في ملفات Portable Executable (PE) يعالج التحديات الرئيسية مثل فضاءات الميزات عالية الأبعاد، عدم توازن الفئات، القابلية للتفسير، والكفاءة الحسابية. يتصور هذه التحديات كمشكلات تصميم خسارة منتظمة ومشكلات تحسين مقيدة بدلاً من كونها عقبات هندسية بسيطة. يتضمن الإطار تقنيات معالجة مسبقة متقدمة وتحسين منهجي للمعلمات، وهيكلها كخط أنابيب هرمي يقوم أولاً بإجراء الكشف الثنائي يليه تصنيف متعدد الفئات. يضمن هذا النهج القوة وقابلية التعميم، خاصة عند تطبيقه على مجموعات بيانات كبيرة مثل BODMAS. يتكون الإطار من أربعة مكونات مترابطة: معالجة البيانات المسبقة، التدريب والتحسين باستخدام مشكلة تحسين غير محدبة، مقاييس الأداء التي تشمل كل من المقاييس الكلاسيكية والمبنية رياضيًا، وتمثيل الشيفرة الزائفة لخوارزمية الكشف، جميعها تهدف إلى تعزيز دقة وقابلية تفسير المصنفات.
النتائج
يقدم قسم النتائج ملخصًا شاملاً لنتائج التصنيف التي تم تحقيقها في الدراسة. تشير مقاييس الأداء إلى أن النموذج المقترح يظهر تحسينًا كبيرًا مقارنة بالطرق الأساسية، حيث يحقق دقة تبلغ $X\%$، دقة تبلغ $Y\%$، واسترجاع يبلغ $Z\%$. تشير هذه النتائج إلى أن النموذج يلتقط بفعالية الأنماط الأساسية في البيانات، مما يؤدي إلى تحسين أداء التصنيف.
بالإضافة إلى ذلك، تتضمن التحليل مقارنة بين خوارزميات مختلفة، مع تسليط الضوء على نقاط القوة والضعف في كل نهج. من الجدير بالذكر أن الطريقة المقترحة تفوقت على المصنفات التقليدية في كل من مجموعات البيانات المتوازنة وغير المتوازنة، مما يبرز قوتها وقابليتها للتطبيق عبر سيناريوهات مختلفة. كما تؤكد النتائج على أهمية اختيار الميزات وتقنيات المعالجة المسبقة في تحسين نتائج التصنيف.
المناقشة
تسلط قسم المناقشة في الورقة الضوء على التقدمات الكبيرة في كشف البرمجيات الضارة من خلال إطار عمل جديد للتعلم العميق من مرحلتين يعالج التحديات الرئيسية في هذا المجال. يستخدم النظام المقترح دالة خسارة الانتروبيا المتقاطعة الثنائية المنتظمة (DRBCE) المخصصة، التي تدمج بين الانتروبيا المتقاطعة الموزونة والتنظيم الطيفي، مما يعزز استقرار النموذج والتعميم، خاصة في سياق مجموعات البيانات غير المتوازنة. يستخدم هذا الإطار أولاً مصنفًا ثنائيًا للتمييز بين ملفات Portable Executable (PE) الحميدة والخبيثة، يليه مصنف متعدد الفئات يصنف البرمجيات الضارة المكتشفة إلى عائلات محددة. لا يحسن هذا النهج كفاءة المعالجة فحسب، بل يعزز أيضًا قابلية تفسير النتائج.
يؤكد البحث على أهمية معالجة القضايا مثل عدم توازن الفئات وانتشار الأخطاء في النماذج الهرمية، والتي تم تجاهلها إلى حد كبير في الأدبيات الحالية. من خلال تحسين المعلمات بشكل منهجي باستخدام KerasTuner وإجراء تحليل انتشار الأخطاء الاحتمالية، يؤسس الدراسة أساسًا رياضيًا قويًا لأنظمة كشف البرمجيات الضارة. تظهر النتائج مقاييس أداء متفوقة، حيث تحقق دقة عالية في كل من التصنيفات الثنائية (99.89%) ومتعددة الفئات (96.62%)، مما يثبت فعالية المنهجية المقترحة. تسهم هذه العمل بشكل كبير في مجال الأمن السيبراني الآلي، مقدمةً حلاً قابلاً للتوسع لمواجهة التهديد المتزايد للهجمات السيبرانية.
القيود
يظهر الإطار المقترح أداءً ملحوظًا؛ ومع ذلك، يجب الاعتراف بعدة قيود. أولاً، قد يحد اعتماده على مجموعات الميزات عالية الأبعاد المستمدة من رؤوس PE من قابليته للتطبيق في السيناريوهات التي تكون فيها هذه الميزات متاحة وكاملة. بالإضافة إلى ذلك، تؤثر جودة وتنوع مجموعات البيانات المستخدمة للتدريب والتحقق بشكل كبير على فعالية الإطار، خاصة في حالات عدم توازن الفئات أو العائلات البرمجية الضارة الممثلة بشكل غير كافٍ.
علاوة على ذلك، يمكن أن تعيق المتطلبات الحسابية المرتبطة بضبط المعلمات وتدريب النموذج، خاصة لمجموعات البيانات الكبيرة، نشر الإطار في التطبيقات الزمنية الحقيقية ذات الموارد المحدودة. كما أن نهج التحليل الثابت يواجه تحديات في كشف البرمجيات الضارة المعقدة التي تستخدم تقنيات التهرب، مثل التعددية أو تعديل سلوك وقت التشغيل. لمعالجة هذه القيود، يجب أن تستكشف الأعمال المستقبلية التحليل الديناميكي، وتقليل الميزات، وتطوير هياكل نماذج خفيفة الوزن. أخيرًا، بينما يعزز تحسين المعلمات الشامل عبر KerasTuner الأداء، فإنه يتطلب تكاليف حسابية كبيرة، مما يستدعي النظر في تكييفات نماذج أكثر كفاءة، مثل هياكل MobileNet أو النماذج الكمية، للتنفيذ العملي في البيئات ذات الموارد المحدودة.
DOI: https://doi.org/10.1038/s41598-025-31444-w
PMID: https://pubmed.ncbi.nlm.nih.gov/41491703
Publication Date: 2026-01-05
Author(s): Shatha Abed Alsaedi et al.
Primary Topic: Advanced Malware Detection Techniques
Overview
The research presents a hierarchical two-stage deep learning architecture designed for the identification and classification of Portable Executable (PE) malware. Central to this framework is the DRBCE loss function, which integrates weighted cross-entropy with spectral regularization to address class imbalance and enhance generalization capabilities. The detection pipeline is structured as a multi-stage probabilistic model, allowing for the assessment of error propagation from binary to multiclass classification stages, thereby providing insights into the reliability of layered classifiers. Extensive experiments conducted on large-scale malware datasets validate the theoretical foundations, demonstrating superior performance and robustness in metrics.
Future work will focus on incorporating dynamic analysis features and formalizing feature selection and dimensionality reduction as optimization problems to improve scalability. Additionally, the development of compact, theoretically robust models for edge and IoT devices, alongside the implementation of explainable AI (XAI) techniques with formal interpretability guarantees, aims to enhance the application of AI in cybersecurity. These advancements are intended to provide resilient and adaptable defense mechanisms that can effectively respond to the evolving landscape of cyber threats.
Introduction
The introduction highlights the escalating challenges in malware detection due to the evolving nature of cyber threats. Since the emergence of the first computer virus, the Creeper Worm, in the 1970s, there has been a continuous arms race between security analysts and malware developers. Recent reports indicate a significant rise in cyberattacks, with Checkpoint Research noting a 40% increase in threats from 2020 to 2021, and Symantec documenting a staggering 600% rise in attacks targeting IoT devices alongside a 54% increase in new malware variants. This alarming trend underscores the urgent need for advanced detection and defense mechanisms against sophisticated malware.
Malware encompasses various malicious software types, including viruses, worms, ransomware, spyware, and trojans, all designed to harm systems, steal sensitive data, or disrupt operations. Traditional detection methods, such as signature-based and behavior-based approaches, have been the cornerstone of malware protection. However, these methods are increasingly ineffective against modern malware that employs obfuscation and polymorphism to evade detection. While static analysis offers speed, it struggles with obfuscated code, and dynamic analysis, though more robust, requires resource-intensive environments that can be compromised. In response to these challenges, machine learning (ML) and deep learning (DL) techniques are emerging as transformative solutions for enhancing malware detection capabilities.
Methods
The research employs the BODMAS dataset, a comprehensive collection of malware and benign samples, totaling 134,435 entries recorded between August 2019 and September 2020. This dataset includes 57,293 malware samples from 581 distinct families, with a focus on the top 14 families for multiclass classification, ensuring a diverse representation of malicious behaviors. Each sample is represented as a 2,381-dimensional feature vector derived from the LIEF project, facilitating compatibility with other datasets like Ember. The dataset is accessible online for further research.
The proposed framework for malware detection in Portable Executable (PE) files addresses key challenges such as high-dimensional feature spaces, class imbalance, interpretability, and computational efficiency. It conceptualizes these challenges as regularized loss design and constrained optimization problems rather than mere engineering hurdles. The framework incorporates advanced preprocessing techniques and systematic hyperparameter optimization, structured as a hierarchical pipeline that first performs binary detection followed by multiclass categorization. This approach ensures robustness and generalizability, particularly when applied to large-scale datasets like BODMAS. The framework consists of four interconnected components: data preprocessing, training and optimization using a non-convex optimization problem, performance measures that include both classical and mathematically grounded metrics, and a pseudocode representation of the detection algorithm, all aimed at enhancing the accuracy and interpretability of the classifiers.
Results
The results section presents a comprehensive summary of the classification outcomes achieved in the study. The performance metrics indicate that the proposed model demonstrates a significant improvement over baseline methods, achieving an accuracy of $X\%$, precision of $Y\%$, and recall of $Z\%$. These findings suggest that the model effectively captures the underlying patterns in the data, leading to enhanced classification performance.
Additionally, the analysis includes a comparison of various algorithms, highlighting the strengths and weaknesses of each approach. Notably, the proposed method outperformed traditional classifiers in both balanced and imbalanced datasets, underscoring its robustness and applicability across different scenarios. The results also emphasize the importance of feature selection and preprocessing techniques in optimizing classification outcomes.
Discussion
The discussion section of the paper highlights significant advancements in malware detection through a novel two-stage deep learning framework that addresses key challenges in the field. The proposed system employs a custom Doubly Regularized Binary Cross-Entropy (DRBCE) loss function, which integrates weighted cross-entropy with spectral regularization, enhancing model stability and generalization, particularly in the context of imbalanced datasets. This framework first utilizes a binary classifier to distinguish between benign and malicious Portable Executable (PE) files, followed by a multiclass classifier that categorizes detected malware into specific families. This hierarchical approach not only improves processing efficiency but also enhances the interpretability of the results.
The research underscores the importance of addressing issues such as class imbalance and error propagation in hierarchical models, which have been largely overlooked in existing literature. By systematically optimizing hyperparameters using KerasTuner and conducting a probabilistic error propagation analysis, the study establishes a robust mathematical foundation for malware detection systems. The results demonstrate superior performance metrics, achieving high accuracy in both binary (99.89%) and multiclass (96.62%) classifications, thereby validating the effectiveness of the proposed methodology. This work contributes significantly to the field of automated cybersecurity, offering a scalable solution to combat the increasing threat of cyberattacks.
Limitations
The proposed framework exhibits notable performance; however, several limitations must be acknowledged. Firstly, its reliance on high-dimensional feature sets derived from PE headers may restrict its applicability to scenarios where such features are both accessible and complete. Additionally, the quality and diversity of datasets used for training and validation significantly influence the framework’s effectiveness, particularly in cases of class imbalance or underrepresented malware families.
Moreover, the computational demands associated with hyperparameter tuning and model training, especially for large-scale datasets, could impede the framework’s deployment in real-time applications with limited resources. The static analysis approach also poses challenges in detecting sophisticated malware that employs evasion techniques, such as polymorphism or runtime behavior modification. To address these limitations, future work should explore dynamic analysis, feature reduction, and the development of lightweight model architectures. Finally, while exhaustive hyperparameter optimization via KerasTuner enhances performance, it incurs substantial computational costs, necessitating the consideration of more efficient model adaptations, such as MobileNet-style architectures or quantized models, for practical implementation in resource-constrained environments.
