Nawaz Mamoona, Tahira Shireen, Shah Dilawar, Ali Shujaat, Tahir Muhammad
Department of Computer Science, International Islamic University, Islamabad, Pakistan.
Department of Computer Science, Bacha Khan University, Charsadda, Pakistan.
Sci Rep. 2025 Jul 10;15(1):24961. doi: 10.1038/s41598-025-10092-0.
The rapid proliferation of Internet of Things (IoT) devices has introduced significant security challenges, with Distributed Denial of Service (DDoS) attacks posing a critical threat to network integrity. Traditional detection methods often rely on computationally intensive models, rendering them unsuitable for resource-constrained IoT environments. To address this limitation, this study proposes a lightweight and scalable machine learning-based DDoS detection framework specifically designed for IoT networks. Utilizing the NSL-KDD dataset, the framework employs an Extra Trees Classifier (ETC) for feature selection, reducing dimensionality while retaining critical attributes. Reduced features were selected to enhance performance and reduce processing cost. Three supervised learning models, Random Forest, Logistic Regression, and Naïve Bayes, were implemented and evaluated based on their detection accuracy, precision, recall, and F1-score. Experimental results demonstrate that the Random Forest model achieves exceptional accuracy (99.88%), precision (99.93%), recall (99.81%), and F1-score (99.87%), outperforming both Logistic Regression (91.61% accuracy) and Naïve Bayes (87.62% accuracy). Furthermore, the proposed framework significantly reduces computational overhead compared to deep learning-based approaches, making it highly suitable for IoT deployments. This research advances IoT security by providing a scalable, efficient, and accurate solution for detecting DDoS attacks, thereby bridging the gap between high-performance requirements and resource limitations in real-world IoT applications.
物联网(IoT)设备的迅速激增带来了重大的安全挑战,分布式拒绝服务(DDoS)攻击对网络完整性构成了严重威胁。传统的检测方法通常依赖于计算密集型模型,使其不适用于资源受限的物联网环境。为了解决这一局限性,本研究提出了一种专门为物联网网络设计的基于机器学习的轻量级且可扩展的DDoS检测框架。该框架利用NSL-KDD数据集,采用Extra Trees Classifier(ETC)进行特征选择,在保留关键属性的同时降低维度。选择减少后的特征以提高性能并降低处理成本。实现了三种监督学习模型,即随机森林、逻辑回归和朴素贝叶斯,并基于它们的检测准确率、精确率、召回率和F1分数进行评估。实验结果表明,随机森林模型实现了卓越的准确率(99.88%)、精确率(99.93%)、召回率(99.81%)和F1分数(99.87%),优于逻辑回归(准确率91.61%)和朴素贝叶斯(准确率87.62%)。此外,与基于深度学习的方法相比,所提出的框架显著降低了计算开销,使其非常适合物联网部署。本研究通过提供一种可扩展、高效且准确的DDoS攻击检测解决方案,推进了物联网安全,从而弥合了现实世界物联网应用中高性能要求与资源限制之间的差距。