[Paper Review] Deep Anomaly Detection in Packet Payload
This paper proposes a deep learning-based framework for packet payload anomaly detection that uses block-based feature engineering and a hybrid BL-LSTM-CNN model to capture both short- and long-term dependencies in payload data. The approach achieves a 98.67% detection rate and 0.17% false positive rate on the CSIC 2010 dataset, outperforming five state-of-the-art methods.
With the widespread adoption of cloud services, especially the extensive deployment of plenty of Web applications, it is important and challenging to detect anomalies from the packet payload. For example, the anomalies in the packet payload can be expressed as a number of specific strings which may cause attacks. Although some approaches have achieved remarkable progress, they are with limited applications since they are dependent on in-depth expert knowledge, e.g., signatures describing anomalies or communication protocol at the application level. Moreover, they might fail to detect the payload anomalies that have long-term dependency relationships. To overcome these limitations and adaptively detect anomalies from the packet payload, we propose a deep learning based framework which consists of two steps. First, a novel feature engineering method is proposed to obtain the block-based features via block sequence extraction and block embedding. The block-based features could encapsulate both the high-dimension information and the underlying sequential information which facilitate the anomaly detection. Second, a neural network is designed to learn the representation of packet payload based on Long Short-Term Memory (LSTM) and Convolutional Neural Networks (CNN). Furthermore, we cast the anomaly detection as a classification problem and stack a Multi-Layer Perception (MLP) on the above representation learning network to detect anomalies. Extensive experimental results on three public datasets indicate that our model could achieve a higher detection rate, while keeping a lower false positive rate compared with five state-of-the-art methods.
Motivation & Objective
- To address the limitations of rule-based and flow-based anomaly detection methods that rely on expert knowledge or fail to detect long-term dependency anomalies in packet payloads.
- To develop a feature engineering method that captures high-dimensional and sequential information from packet payloads effectively.
- To design a deep learning model capable of learning long-term and short-term dependencies in payload data for improved anomaly detection.
- To reduce false positive rates while maintaining high detection rates in real-world network traffic scenarios.
- To evaluate the framework on multiple public datasets and demonstrate superior performance compared to existing state-of-the-art methods.
Proposed method
- Proposes a block-based feature engineering method using block sequence extraction and block embedding to transform raw packet payloads into structured, high-dimensional features.
- Employs a hybrid neural network architecture combining Long Short-Term Memory (LSTM) and Convolutional Neural Networks (CNN) to learn sequential and spatial patterns in block-based features.
- Uses a Multi-Layer Perceptron (MLP) stacked on top of the representation learning network to classify payloads as normal or anomalous.
- Applies a sliding window mechanism with tunable block length and stride to extract sequential blocks from packet payloads.
- Constructs a high-frequency dictionary of payload blocks to reduce dimensionality and retain semantically meaningful features.
- Optimizes hyperparameters such as block length, stride, dictionary size, and LSTM hidden state count to maximize detection performance.
Experimental results
Research questions
- RQ1Can a deep learning-based framework effectively detect anomalies in packet payloads without relying on expert-defined signatures or protocol-level knowledge?
- RQ2How well can the proposed block-based feature engineering method preserve both high-dimensional and sequential information from raw packet payloads?
- RQ3To what extent can the BL-LSTM-CNN model capture long-term dependency relationships in anomalous payload patterns that existing methods miss?
- RQ4How do hyperparameters such as block length, stride, and dictionary size affect the detection performance of the proposed framework?
- RQ5Does the proposed framework maintain high detection accuracy and low false positive rates across diverse public network datasets?
Key findings
- The proposed BL-LSTM-CNN model achieved a 98.67% detection rate and 0.17% false positive rate on the CSIC 2010 dataset, outperforming five state-of-the-art methods.
- On the CICIDS 2017 dataset, the model achieved a 99.78% detection rate and 0.0165% false positive rate, demonstrating strong generalization across datasets.
- The model maintained a 99.53% accuracy and 99.29% F1-score on the CSIC 2010 dataset, indicating high precision and balanced performance.
- The ablation study showed that removing the block-based feature engineering reduced detection performance by 3.1% (BL-CNN) and 1.6% (BL-LSTM), proving its effectiveness.
- Hyperparameter tuning revealed that 50 LSTM hidden states yielded the best performance, with optimal block length and stride values improving detection accuracy.
- The framework demonstrated robust performance on both short-term and long-term payload anomalies, particularly excelling in detecting scattered, low-concentration anomalous patterns.
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.