[Paper Review] Reconstruction-based LSTM-Autoencoder for Anomaly-based DDoS Attack Detection over Multivariate Time-Series Data
This paper proposes a reconstruction-based LSTM-Autoencoder (LSTM-AE) model for anomaly detection in multivariate time-series network traffic to identify DDoS attacks. By leveraging LSTM units to capture long-term temporal dependencies and autoencoders to compute reconstruction error for anomaly scoring, the model achieves over 99% accuracy, particularly excelling in LDAP attack detection with 99.96% accuracy and 99.99% precision.
A Distributed Denial-of-service (DDoS) attack is a malicious attempt to disrupt the regular traffic of a targeted server, service, or network by sending a flood of traffic to overwhelm the target or its surrounding infrastructure. As technology improves, new attacks have been developed by hackers. Traditional statistical and shallow machine learning techniques can detect superficial anomalies based on shallow data and feature selection, however, these approaches cannot detect unseen DDoS attacks. In this context, we propose a reconstruction-based anomaly detection model named LSTM-Autoencoder (LSTM-AE) which combines two deep learning-based models for detecting DDoS attack anomalies. The proposed structure of long short-term memory (LSTM) networks provides units that work with each other to learn the long short-term correlation of data within a time series sequence. Autoencoders are used to identify the optimal threshold based on the reconstruction error rates evaluated on each sample across all time-series sequences. As such, a combination model LSTM-AE can not only learn delicate sub-pattern differences in attacks and benign traffic flows, but also minimize reconstructed benign traffic to obtain a lower range reconstruction error, with attacks presenting a larger reconstruction error. In this research, we trained and evaluated our proposed LSTM-AE model on reflection-based DDoS attacks (DNS, LDAP, and SNMP). The results of our experiments demonstrate that our method performs better than other state-of-the-art methods, especially for LDAP attacks, with an accuracy of over 99.
Motivation & Objective
- Address the limitations of traditional statistical and shallow machine learning methods in detecting unseen or zero-day DDoS attacks.
- Overcome the vanishing gradient problem in RNNs and sensitivity to anomalies in autoencoders by combining LSTM and autoencoder architectures.
- Develop a deep learning model capable of learning complex temporal patterns in multivariate network traffic for robust anomaly detection.
- Improve detection performance on reflection-based DDoS attacks (DNS, LDAP, SNMP) using the CICDDoS2019 dataset.
- Establish an optimal threshold for anomaly detection using reconstruction error, minimizing false positives while maximizing detection of malicious traffic.
Proposed method
- Employ a deep autoencoder architecture with a bidirectional LSTM encoder and a symmetric decoder to reconstruct input time-series sequences.
- Use the reconstruction error—computed as the mean squared error (MSE) between original and reconstructed sequences—as the anomaly score.
- Train the LSTM-AE model end-to-end on multivariate time-series network flow data from the CICDDoS2019 dataset, including benign and attack flows.
- Apply a thresholding mechanism on the reconstruction error distribution of benign traffic to classify anomalies, with optimal thresholds determined via validation.
- Use time-windowed sliding sequences of network features (e.g., packet counts, byte counts, duration) as input to the model, with window lengths tested at 10, 50, and 100.
- Optimize hyperparameters, including learning rate (0.001, 0.0001, 0.00001), to balance convergence speed and detection performance.
Experimental results
Research questions
- RQ1Can a hybrid LSTM-Autoencoder model detect previously unseen DDoS attacks more effectively than traditional shallow learning methods?
- RQ2How does the reconstruction error of benign versus malicious traffic sequences differ in the proposed LSTM-AE model?
- RQ3What is the optimal time window length for achieving high detection accuracy across diverse DDoS attack types (DNS, LDAP, SNMP)?
- RQ4How do different learning rates affect the model’s convergence, reconstruction error, and detection performance?
- RQ5To what extent does the model outperform state-of-the-art deep learning models in detecting reflection-based DDoS attacks?
Key findings
- The LSTM-AE model achieved 99.96% accuracy, 99.99% precision, 99.93% recall, and 99.96% F1-score in detecting LDAP-based DDoS attacks, outperforming all compared state-of-the-art methods.
- For DNS and SNMP attacks, the model achieved AUC-ROC scores of 97.14% and 97.75%, respectively, with the highest AUC-ROC observed at a time window length of 10.
- The model demonstrated robustness across different learning rates, with 0.001 yielding the best balance of speed and performance, while 0.00001 required significantly longer training time.
- The reconstruction error was consistently higher for attack samples than for benign traffic, validating the model’s ability to distinguish anomalies based on reconstruction fidelity.
- The model achieved the highest detection performance for LDAP attacks, with F1-score and AUC-ROC exceeding 99.9%, indicating strong generalization on complex attack patterns.
- The model’s performance was stable across varying time window lengths, with minimal degradation in metrics when window size increased from 10 to 100, suggesting scalability and robustness.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.