[Paper Review] Malicious Web Request Detection Using Character-level CNN
This paper proposes a character-level CNN-based model for detecting malicious web requests, enhancing feature extraction through a character-embedding layer and modified vertical filters to capture low-level patterns in query strings. The system achieves a 0.02% false positive rate, significantly outperforming SVM (0.13%) and random forest (0.38%), demonstrating improved detection accuracy and re-learning capability for unknown attacks.
Web parameter injection attacks are common and powerful. In this kind of attacks, malicious attackers can employ HTTP requests to implement attacks against servers by injecting some malicious codes into the parameters of the HTTP requests. Against the web parameter injection attacks, most of the existing Web Intrusion Detection Systems (WIDS) cannot find unknown new attacks and have a high false positive rate (FPR), since they lack the ability of re-learning and rarely pay attention to the intrinsic relationship between the characters. In this paper, we propose a malicious requests detection system with re-learning ability based on an improved convolution neural network (CNN) model. We add a character-level embedding layer before the convolution layer, which makes our model able to learn the intrinsic relationship between the characters of the query string. Further, we modify the filters of CNN and the modified filters can extract the fine-grained features of the query string. The test results demonstrate that our model has lower FPR compared with support vector machine (SVM) and random forest (RF).
Motivation & Objective
- To address the limitations of existing Web Intrusion Detection Systems (WIDS) in detecting unknown attacks and reducing high false positive rates.
- To develop a dynamic detection model with re-learning capability to adapt to evolving attack patterns.
- To improve feature representation by modeling intrinsic character-level relationships in HTTP query strings.
- To reduce false positives by learning both normal and malicious features simultaneously, rather than relying on anomaly detection of normal behavior alone.
Proposed method
- Introduces a character-level embedding layer that transforms raw query strings into dense vector representations, capturing hidden character similarities.
- Employs a modified one-dimensional CNN with vertical filters to extract fine-grained local features from character sequences.
- Uses a single convolutional layer followed by a fully connected layer with softmax activation for binary classification of malicious vs. benign requests.
- Applies L2 regularization and dropout to improve generalization and reduce overfitting during training.
- Implements online re-learning by updating the model incrementally with new data, enabling adaptation to novel attack variants.
- Trains the model end-to-end using backpropagation to minimize cross-entropy loss with L2 regularization.
Experimental results
Research questions
- RQ1Can a character-level CNN model detect unknown malicious web requests more effectively than traditional signature-based or anomaly-based WIDS?
- RQ2How does character-level embedding improve feature representation compared to token-based or TF-IDF methods in detecting injection attacks?
- RQ3To what extent does modifying CNN filters to focus on vertical, character-level patterns reduce false positive rates in malicious request detection?
- RQ4Can a deep learning model with re-learning capability maintain high detection accuracy while adapting to new attack patterns over time?
- RQ5Does joint learning of normal and malicious features lead to lower false positive rates than models trained only on normal traffic?
Key findings
- The proposed CNN model achieved a 0.02% false positive rate, significantly lower than SVM (0.13%) and random forest (0.38%).
- The model achieved 100% recall and precision for RFI, SQLi, and XSS attacks, indicating near-perfect detection of these attack types.
- The character-level embedding layer enabled the model to learn intrinsic character-level relationships, improving detection of obfuscated or variant attack patterns.
- The use of vertical filters in the CNN allowed for fine-grained feature extraction from sequential query strings, enhancing local pattern detection.
- The model demonstrated re-learning capability, allowing dynamic updates with new data to adapt to evolving attack techniques.
- Despite high performance on the test set, the authors note that dataset imbalance and limited model depth (single convolutional layer) may constrain real-world scalability, suggesting further improvements with deeper architectures.
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.