Skip to main content
QUICK REVIEW

[论文解读] Malicious Web Request Detection Using Character-level CNN

Rong Wei, Bowen Zhang|arXiv (Cornell University)|Nov 21, 2018
Network Security and Intrusion DetectionComputer Science参考文献 9被引用 3
一句话总结

该论文提出了一种基于字符级卷积神经网络(CNN)的模型,用于检测恶意网络请求,通过字符嵌入层和改进的垂直卷积核提取查询字符串中的低级模式,实现更优的特征提取。该系统实现了0.02%的误报率,显著优于支持向量机(SVM,0.13%)和随机森林(0.38%),证明了其在检测准确率和未知攻击再学习能力方面的优势。

ABSTRACT

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).

研究动机与目标

  • 解决现有Web入侵检测系统(WIDS)在检测未知攻击时的局限性,并降低高误报率。
  • 开发一种具备再学习能力的动态检测模型,以适应不断演变的攻击模式。
  • 通过建模HTTP查询字符串中的内在字符级关系,改进特征表示。
  • 通过同时学习正常与恶意特征,而非仅依赖对正常行为的异常检测,来降低误报率。

提出的方法

  • 引入字符级嵌入层,将原始查询字符串转换为密集向量表示,捕捉隐藏的字符相似性。
  • 采用改进的一维CNN,结合垂直卷积核,从字符序列中提取细粒度的局部特征。
  • 使用单个卷积层后接具有Softmax激活函数的全连接层,实现对恶意与良性请求的二分类。
  • 应用L2正则化和Dropout以提升泛化能力,减少训练过程中的过拟合。
  • 通过增量式地使用新数据更新模型,实现在线再学习,使模型能够适应新型攻击变种。
  • 采用端到端反向传播训练模型,以最小化交叉熵损失并结合L2正则化。

实验结果

研究问题

  • RQ1字符级CNN模型是否能比传统的基于签名或异常检测的WIDS更有效地检测未知恶意网络请求?
  • RQ2与基于标记或TF-IDF的方法相比,字符级嵌入在检测注入攻击时如何提升特征表示能力?
  • RQ3通过修改CNN卷积核以聚焦于垂直字符级模式,能在多大程度上降低恶意请求检测中的误报率?
  • RQ4具备再学习能力的深度学习模型是否能在随时间适应新攻击模式的同时,保持高检测准确率?
  • RQ5联合学习正常与恶意特征是否能实现比仅基于正常流量训练的模型更低的误报率?

主要发现

  • 所提出的CNN模型实现了0.02%的误报率,显著低于SVM(0.13%)和随机森林(0.38%)。
  • 该模型对RFI、SQLi和XSS攻击实现了100%的召回率和精确率,表明对这些攻击类型的检测近乎完美。
  • 字符级嵌入层使模型能够学习内在的字符级关系,从而提升对混淆或变种攻击模式的检测能力。
  • CNN中使用垂直卷积核可从序列化查询字符串中实现细粒度的特征提取,增强局部模式检测能力。
  • 该模型展示了再学习能力,可通过新数据的动态更新适应不断演变的攻击技术。
  • 尽管在测试集上表现优异,作者指出数据集不平衡和模型深度有限(单个卷积层)可能限制其在真实场景中的可扩展性,建议通过更深的网络架构进一步优化性能。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。