الكشف القابل للتفسير عن هجمات اليوم الصفري في إنترنت الأشياء الطبية باستخدام نمذجة السلاسل الزمنية المعتمدة على المحولات Explainable zero-day attack detection in IoMT using transformer-based time-series modeling

شارك:
المجلة: Scientific Reports، المجلد: 16، العدد: 1
DOI: https://doi.org/10.1038/s41598-026-50813-7
PMID: https://pubmed.ncbi.nlm.nih.gov/42168539
تاريخ النشر: 2026-05-21
المؤلف: Mahdee Jodayree وآخرون
الموضوع الرئيسي: أمن الشبكات وكشف التسلل

نظرة عامة

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

تم تقييم النموذج بدقة على معيار IoMT المتنوع CICIoMT2024، محققًا نتائج مثيرة للإعجاب بدقة 99.62% و99.30% ماكرو-F1 للتصنيف الثنائي، و98.90% دقة مع 98.40% ماكرو-F1 لتصنيف 19 فئة. في سيناريوهات اليوم الصفري، أظهر منطقة تحت منحنى التشغيل الاستقبالي (AUROC-OOD) تبلغ 0.975 ومعدل إيجابيات زائفة عند 95% معدل إيجابيات حقيقية (FPR@95%TPR) يبلغ 7.8%. ومن الجدير بالذكر أن النموذج أظهر أيضًا أداءً قويًا في نقل البيانات عبر مجموعات بيانات مستقلة مثل WUSTL-EHMS-2020، محققًا دقة إجمالية تقارب 99.6%. أظهرت دراسات الإزالة أن تضمين قناع البروتوكول والرؤوس المساعدة حسّن بشكل كبير حدود القرار، وقلل من الإنذارات الكاذبة، وزاد من توازن الفئات الأقل، مما يوفر نظام كشف مضبوط وعالي الدقة مناسب للنشر في العالم الحقيقي عبر مجموعات بيانات متنوعة.

مقدمة

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

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

النتائج

في هذا القسم، يقدم المؤلفون نتائج تجريبية من تقييمهم للنماذج على مجموعتين من البيانات: CICIoMT2024 وWUSTL-EHMS-2020، مع التركيز على الإعدادات الثنائية والمتعددة الفئات والمفتوحة (اليوم الصفري). يبلغون عن مقاييس الأداء بما في ذلك ماكرو-F1، والدقة، وAUROC، وFPR@95%TPR، مع نتائج متوسطة عبر عدة بذور. تقارن الدراسة طريقتهم المقترحة مع معايير قوية، مثل تدفق/المحول وNIDS بأسلوب ViT، وتفحص تأثير استراتيجيات الإزالة المختلفة التي تعدل المكونات الرئيسية للنموذج. بالإضافة إلى ذلك، يقارنون أداء VRAdam المدمج مع CMA-ES/Hyperband للتعديل الدقيق مقابل AdamW مع التخصيص الثابت لتقييم سرعة التقارب وتجارة باريدو.

تشمل الإعدادات التجريبية تقسيمًا خاليًا من التسرب، حسب الجلسة، للبيانات، مما يضمن عدم تداخل أي حزم من نفس الجلسة بين مراحل التدريب والتطوير والاختبار. بالنسبة للتقييمات المغلقة، يحقق النموذج نتائج مثيرة للإعجاب، بدقة 99.62% و99.30% ماكرو-F1 للتصنيف الثنائي، و98.90% دقة مع 98.40% ماكرو-F1 لتصنيف 19 فئة. كما أن قيم AUROC قريبة من مستويات السقف، مما يشير إلى أداء قوي عبر كل من فئات الهجمات المتكررة والأقل. تشير خطأ المعايرة المنخفض (ECE 0.6-1.3%) أيضًا إلى أن احتمالات مخرجات النموذج مضبوطة بشكل جيد، وهو أمر حاسم لاختيار العتبات الفعالة وتعزيز القابلية للتفسير في التطبيقات العملية.

المناقشة

في هذا القسم، يقدم المؤلفون مناقشة شاملة لمساهماتهم في أنظمة كشف التسلل (IDS) لإنترنت الأشياء الطبية (IoMT). يقدمون آلية انتباه متعددة المقاييس واعية للبروتوكول جديدة تستفيد من قيود البروتوكول ذات الحالة المحدودة لضمان تقدم الرسائل بشكل صحيح، مما يعالج الفجوات التي تم تحديدها في الاستطلاعات الأخيرة. بالإضافة إلى ذلك، يقترحون وحدة معايرة مفتوحة تدمج التصنيف عالي الدقة مع تسجيل مضبوطة خارج التوزيع (OOD)، مما يعزز قوة النموذج ضد الهجمات غير المعروفة. تظهر تقييماتهم التجريبية أن النموذج المقترح يحقق دقة تنافسية ودرجات ماكرو-F1 عبر مجموعات بيانات غير متجانسة مع الحفاظ على أداء OOD الفعال تحت ميزانيات الحافة المقيدة.

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

القيود

تنبع قيود الانتباه المقيد بـ FSM بشكل أساسي من اعتماده على دقة نموذج البروتوكول. يمكن أن تؤثر عوامل مثل الامتدادات الخاصة بالبائع، والتحديثات السريعة للبرامج الثابتة، والطبقات التحكمية المشفرة على التجريد ذي الحالة المحدودة، مما يؤدي إلى تصنيفات خاطئة محتملة للتسلسلات العدائية. قد يفشل FSM الخشن للغاية في معاقبة بعض الأفعال العدائية بشكل كافٍ، بينما يمكن أن يؤدي نموذج غير محدد بشكل صحيح إلى تضخيم معدلات الإيجابيات الزائفة (FPR) من خلال تصنيف التسلسلات الحميدة على أنها انتهاكات. على الرغم من أن الإغلاق المحدود k-step يساعد في التخفيف من هذه القضايا، إلا أنه لا يمكنه حساب الانتقالات غير المودلة بالكامل. يجب أن تركز الأبحاث المستقبلية على تحسين FSM التكيفي، مع دمج اكتشاف الحالة المدفوع بالبيانات والتحقق البشري، بالإضافة إلى معالجة عدم اليقين في حواف FSM لتعزيز دقة درجات الانتهاك.

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

Journal: Scientific Reports, Volume: 16, Issue: 1
DOI: https://doi.org/10.1038/s41598-026-50813-7
PMID: https://pubmed.ncbi.nlm.nih.gov/42168539
Publication Date: 2026-05-21
Author(s): Mahdee Jodayree et al.
Primary Topic: Network Security and Intrusion Detection

Overview

The research addresses the critical need for robust intrusion detection systems (IDS) in Internet of Things (IoT) and Internet of Medical Things (IoMT) networks, particularly in the face of challenges such as severe class imbalance, zero-day attacks, and deployment constraints. Traditional approaches often depend on extensive feature engineering and data augmentation, which can lead to closed-set models that perform poorly on heterogeneous datasets. To address these issues, the authors propose a novel architecture called the Protocol State-Masked, Multi-scale Transformer, which integrates finite-state protocol constraints into its self-attention mechanism. This architecture is enhanced with auxiliary heads for next-state prediction and violation scoring, along with an energy-based open-set module calibrated using Extreme Value Theory.

The model was rigorously evaluated on the heterogeneous IoMT benchmark CICIoMT2024, achieving impressive results with 99.62% accuracy and 99.30% macro-F1 for binary classification, and 98.90% accuracy with 98.40% macro-F1 for 19-class classification. In zero-day scenarios, it demonstrated an area under the receiver operating characteristic curve (AUROC-OOD) of 0.975 and a false positive rate at 95% true positive rate (FPR@95%TPR) of 7.8%. Notably, the model also exhibited strong cross-dataset transfer performance on the independent WUSTL-EHMS-2020 dataset, achieving approximately 99.6% overall accuracy. Ablation studies indicated that the inclusion of protocol masking and auxiliary heads significantly improved decision boundaries, reduced false alarms, and enhanced minority-class balance, thereby providing a calibrated and high-fidelity detection system suitable for real-world deployment across diverse datasets.

Introduction

The introduction of the paper addresses the growing complexity and diversity of Internet of Things (IoT) and Internet of Medical Things (IoMT) devices, which has heightened the need for effective network defenses in critical environments. Recent surveys indicate significant vulnerabilities across device, network, and cloud layers, emphasizing the increasing costs associated with undetected threats in medical and industrial contexts. The authors highlight the limitations of current intrusion detection systems (IDS) in edge environments, where there is a pressing need for low-latency, resource-efficient solutions that can handle open-set or out-of-distribution (OOD) traffic.

To address these challenges, the paper proposes an online, network-based IDS designed for multi-protocol IoMT, focusing on packet and flow granularity. The system aims to achieve millisecond-level latency and operate within modest memory and parameter constraints on edge devices. The authors introduce a novel approach that incorporates protocol semantics through finite state constraints into a multi-scale attention mechanism, enhancing representation learning aligned with the operational rules of industrial control systems. Additionally, they explore the effectiveness of energy-based and outlier exposure-based scoring methods, coupled with calibrated decision thresholds, to improve detection performance while filtering out anomalous traffic. The research investigates three key questions related to the efficacy of protocol-aware attention, the sustainability of high AUROC-OOD with low false positive rates, and the system’s ability to maintain real-time throughput under edge constraints without compromising detection quality.

Results

In this section, the authors present empirical results from their evaluation of models on two datasets: CICIoMT2024 and WUSTL-EHMS-2020, focusing on binary, multiclass, and open-set (zero-day) settings. They report performance metrics including Macro-F1, accuracy, AUROC, and FPR@95%TPR, with results averaged over multiple seeds. The study contrasts their proposed method against strong baselines, such as flow/Transformer and ViT-style NIDS, and examines the impact of various ablation strategies that modify key components of the model. Additionally, they compare the performance of VRAdam combined with CMA-ES/Hyperband fine-tuning against AdamW with fixed scalarization to assess convergence speed and Pareto trade-offs.

The experimental setup involves a leak-free, session-wise split of data, ensuring that no packets from the same session overlap between training, development, and testing phases. For the closed-set evaluations, the model achieves impressive results, with 99.62% accuracy and 99.30% Macro-F1 for binary classification, and 98.90% accuracy with 98.40% Macro-F1 for the 19-class classification. The AUROC values are also near ceiling levels, indicating robust performance across both frequent and minority attack classes. The low calibration error (ECE 0.6-1.3%) further suggests that the model’s output probabilities are well-calibrated, which is crucial for effective threshold selection and enhancing explainability in practical applications.

Discussion

In this section, the authors present a comprehensive discussion of their contributions to intrusion detection systems (IDS) for the Internet of Medical Things (IoMT). They introduce a novel protocol-aware multi-scale attention mechanism that leverages finite-state protocol priors to ensure valid message progressions, addressing gaps identified in recent surveys. Additionally, they propose an open-set calibration module that integrates high-accuracy classification with calibrated out-of-distribution (OOD) scoring, enhancing the model’s robustness against unknown attacks. Their empirical evaluations demonstrate that the proposed model achieves competitive accuracy and macro-F1 scores across heterogeneous datasets while maintaining effective OOD performance under constrained edge budgets.

The authors also highlight their unique approach to zero-day detection, where the model is designed to classify known attacks and reject unknown ones, diverging from traditional fixed-attack type assumptions. They detail the construction of a finite state machine (FSM) to encode protocol semantics, which aids in capturing the communication structure of IoMT devices. The evaluation protocol they establish includes various classification settings and metrics, ensuring a thorough assessment of the model’s performance. Overall, the findings indicate that the integration of protocol knowledge and principled OOD calibration can significantly enhance the effectiveness and deployability of IDS in IoMT environments.

Limitations

The limitations of FSM-constrained attention primarily stem from its reliance on the accuracy of the protocol model. Factors such as vendor-specific extensions, rapid firmware updates, and encrypted control planes can compromise the finite-state abstraction, leading to potential mischaracterizations of adversarial sequences. An overly coarse FSM may fail to penalize certain adversarial actions adequately, while a mis-specified model could inflate false positive rates (FPR) by misclassifying benign sequences as violations. Although the limited k-step closure helps mitigate these issues, it cannot fully account for unmodeled transitions. Future research should focus on adaptive FSM refinement, incorporating data-driven state discovery and human validation, as well as addressing uncertainty in FSM edges to enhance the accuracy of violation scores.

Additionally, the sensitivity of transformer-based detectors to distribution shifts and real-world noise poses challenges, particularly when protocol semantics are incomplete or evolving. The proposed two-branch design aims to improve robustness by separating representation learning from uncertainty and out-of-distribution (OOD) scoring. Furthermore, low-amplitude attacks that remain within valid transitions can evade detection by subtly perturbing rates, complicating the identification of violations. To address this, the model could benefit from cost-sensitive training and contextual priors to enhance signal-to-noise ratios. Lastly, calibration drift presents a practical concern, as changes in benign traffic distributions can affect exceedance thresholds. To counter this, the authors recommend implementing online recalibration and using protocol-specific fits to maintain model accuracy in deployment.