IDEAS home Printed from https://ideas.repec.org/a/alk/jcsts0/v6y2024i1id6568.html

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

Author

Listed:
  • Ansarullah Hasas

    (Information Technology Department, Kabul University, Kabul, Afghanistan)

  • Mohammad Shuaib Zarinkhail

    (Associate Professor, Information Systems Department, Kabul University, Kabul, Afghanistan)

  • Musawer Hakimi

    (Assistant Professor, Computer Science Department, Samangan University, Samangan, Afghanistan)

  • Mohammad Mustafa Quchi

    (Assistant Professor, Network Engineering Department, Faryab University, Faryab, Afghanistan)

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.

Suggested Citation

  • Ansarullah Hasas & Mohammad Shuaib Zarinkhail & Musawer Hakimi & Mohammad Mustafa Quchi, 2024. "Strengthening Digital Security: Dynamic Attack Detection with LSTM, KNN, and Random Forest," Journal of Computer Science and Technology Studies, Al-Kindi Center for Research and Development, vol. 6(1), pages 49-57, January.
  • Handle: RePEc:alk:jcsts0:v:6:y:2024:i:1:id:6568
    DOI: 10.32996/jcsts.2024.6.1.6
    as

    Download full text from publisher

    File URL: https://al-kindipublisher.com/index.php/jcsts/article/view/6568
    File Function: Abstract page
    Download Restriction: no

    File URL: https://al-kindipublisher.com/index.php/jcsts/article/download/6568/5517
    File Function: Full text
    Download Restriction: no

    File URL: https://libkey.io/10.32996/jcsts.2024.6.1.6?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:alk:jcsts0:v:6:y:2024:i:1:id:6568. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Al-Kindi Center for Research and Development (email available below). General contact details of provider: https://al-kindipublisher.com/index.php/jcsts .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.