Strengthening Digital Security: Dynamic Attack Detection with LSTM, KNN, and Random Forest

Ansarullah Hasas, Mohammad Shuaib Zarinkhail, Musawer Hakimi, Mohammad Mustafa Quchi
{"title":"Strengthening Digital Security: Dynamic Attack Detection with LSTM, KNN, and Random Forest","authors":"Ansarullah Hasas, Mohammad Shuaib Zarinkhail, Musawer Hakimi, Mohammad Mustafa Quchi","doi":"10.32996/jcsts.2024.6.1.6","DOIUrl":null,"url":null,"abstract":"Digital security is an ever-escalating concern in today's interconnected world, necessitating advanced intrusion detection systems. This research focuses on fortifying digital security through the integration of Long Short-Term Memory (LSTM), K-Nearest Neighbors (KNN), and Random Forest for dynamic attack detection. Leveraging a robust dataset, the models were subjected to rigorous evaluation, considering metrics such as accuracy, precision, recall, F1-score, and AUC-ROC. The LSTM model exhibited exceptional proficiency in capturing intricate sequential dependencies within network traffic, attaining a commendable accuracy of 99.11%. KNN, with its non-parametric adaptability, demonstrated resilience with a high accuracy of 99.23%. However, the Random Forest model emerged as the standout performer, boasting an accuracy of 99.63% and showcasing exceptional precision, recall, and F1-score metrics. Comparative analyses unveiled nuanced differences, guiding the selection of models based on specific security requirements. The AUC-ROC comparison reinforced the discriminative power of the models, with Random Forest consistently excelling. While all models excelled in true positive predictions, detailed scrutiny of confusion matrices offered insights into areas for refinement. In conclusion, the integration of LSTM, KNN, and Random Forest presents a robust and adaptive approach to dynamic attack detection. This research contributes valuable insights to the evolving landscape of digital security, emphasizing the significance of leveraging advanced machine learning techniques in constructing resilient defenses against cyber adversaries. The findings underscore the need for adaptive security solutions as the cyber threat landscape continues to evolve, with implications for practitioners, researchers, and policymakers in the field of cybersecurity.","PeriodicalId":509154,"journal":{"name":"Journal of Computer Science and Technology Studies","volume":"77 19","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-01-03","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Computer Science and Technology Studies","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.32996/jcsts.2024.6.1.6","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Digital security is an ever-escalating concern in today's interconnected world, necessitating advanced intrusion detection systems. This research focuses on fortifying digital security through the integration of Long Short-Term Memory (LSTM), K-Nearest Neighbors (KNN), and Random Forest for dynamic attack detection. Leveraging a robust dataset, the models were subjected to rigorous evaluation, considering metrics such as accuracy, precision, recall, F1-score, and AUC-ROC. The LSTM model exhibited exceptional proficiency in capturing intricate sequential dependencies within network traffic, attaining a commendable accuracy of 99.11%. KNN, with its non-parametric adaptability, demonstrated resilience with a high accuracy of 99.23%. However, the Random Forest model emerged as the standout performer, boasting an accuracy of 99.63% and showcasing exceptional precision, recall, and F1-score metrics. Comparative analyses unveiled nuanced differences, guiding the selection of models based on specific security requirements. The AUC-ROC comparison reinforced the discriminative power of the models, with Random Forest consistently excelling. While all models excelled in true positive predictions, detailed scrutiny of confusion matrices offered insights into areas for refinement. In conclusion, the integration of LSTM, KNN, and Random Forest presents a robust and adaptive approach to dynamic attack detection. This research contributes valuable insights to the evolving landscape of digital security, emphasizing the significance of leveraging advanced machine learning techniques in constructing resilient defenses against cyber adversaries. The findings underscore the need for adaptive security solutions as the cyber threat landscape continues to evolve, with implications for practitioners, researchers, and policymakers in the field of cybersecurity.
加强数字安全:利用 LSTM、KNN 和随机森林进行动态攻击检测
在当今互联世界中,数字安全问题日益突出,需要先进的入侵检测系统。本研究的重点是通过整合长短期记忆(LSTM)、K-近邻(KNN)和随机森林来加强数字安全,从而实现动态攻击检测。利用强大的数据集,对这些模型进行了严格的评估,并考虑了准确度、精确度、召回率、F1-分数和 AUC-ROC 等指标。LSTM 模型在捕捉网络流量中错综复杂的顺序依赖关系方面表现出了非凡的能力,准确率高达 99.11%,令人称赞。KNN 具有非参数适应性,以 99.23% 的高准确率展示了其复原能力。不过,随机森林模型表现突出,准确率高达 99.63%,并展示了卓越的精确度、召回率和 F1 分数指标。比较分析揭示了细微的差异,为根据具体的安全要求选择模型提供了指导。AUC-ROC 比较增强了模型的判别能力,其中随机森林模型一直表现出色。虽然所有模型都在真阳性预测方面表现出色,但对混淆矩阵的详细审查让我们深入了解了需要改进的领域。总之,LSTM、KNN 和随机森林的集成为动态攻击检测提供了一种稳健的自适应方法。这项研究为不断发展的数字安全领域提供了宝贵的见解,强调了利用先进的机器学习技术构建抵御网络对手的防御系统的重要性。研究结果强调,随着网络威胁形势的不断变化,需要有适应性的安全解决方案,这对网络安全领域的从业人员、研究人员和政策制定者都有借鉴意义。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信