An LSTM-based deep learning approach for classifying malicious traffic at the packet level

Ren Hung Hwang*, Min Chun Peng, Van Linh Nguyen, Yu Lun Chang

*Corresponding author for this work

Research output: Contribution to journalArticlepeer-review

100 Scopus citations

Abstract

Recently, deep learning has been successfully applied to network security assessments and intrusion detection systems (IDSs) with various breakthroughs such as using Convolutional Neural Networks (CNN) and Long Short-Term Memory (LSTM) to classify malicious traffic. However, these state-of-the-art systems also face tremendous challenges to satisfy real-time analysis requirements due to the major delay of the flow-based data preprocessing, i.e., requiring time for accumulating the packets into particular flows and then extracting features. If detecting malicious traffic can be done at the packet level, detecting time will be significantly reduced, which makes the online real-time malicious traffic detection based on deep learning technologies become very promising. With the goal of accelerating the whole detection process by considering a packet level classification, which has not been studied in the literature, in this research, we propose a novel approach in building the malicious classification system with the primary support of word embedding and the LSTM model. Specifically, we propose a novel word embedding mechanism to extract packet semantic meanings and adopt LSTM to learn the temporal relation among fields in the packet header and for further classifying whether an incoming packet is normal or a part of malicious traffic. The evaluation results on ISCX2012, USTC-TFC2016, IoT dataset from Robert Gordon University and IoT dataset collected on our Mirai Botnet show that our approach is competitive to the prior literature which detects malicious traffic at the flow level. While the network traffic is booming year by year, our first attempt can inspire the research community to exploit the advantages of deep learning to build effective IDSs without suffering significant detection delay.

Original languageEnglish
Article number3414
JournalApplied Sciences (Switzerland)
Volume9
Issue number16
DOIs
StatePublished - 1 Aug 2019

Keywords

  • Deep learning for network security
  • Long short-term memory
  • Malicious traffic classification

Fingerprint

Dive into the research topics of 'An LSTM-based deep learning approach for classifying malicious traffic at the packet level'. Together they form a unique fingerprint.

Cite this