arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2108.01763cs.LGcs.CR
收藏

HTTP2vec:嵌入HTTP请求以检测异常流量

HTTP2vec: Embedding of HTTP Requests for Detection of Anomalous Traffic

Wroclaw University of Science and Technology(弗罗茨瓦夫理工大学)

Mateusz Gniewkowski, Henryk Maciejewski, Tomasz R. Surmacz, Wiktor Walentynowicz

摘要:

超文本传输协议(HTTP)是Internet上使用最广泛的协议之一。因此,大多数攻击(即,SQL注入,XSS)使用HTTP作为传输机制。因此,开发一种智能解决方案至关重要,可以有效地检测和过滤HTTP流量中的异常。目前,大多数异常检测系统要么是基于规则的,要么是使用手动选择的特征进行训练的。我们建议利用现代无监督语言表示模型嵌入HTTP请求,然后使用它来分类异常的流量。该解决方案的动机是使用自然语言处理(NLP)的方法,如Doc 2 Vec,它可以捕获HTTP消息的真实理解,从而提高入侵检测系统的效率。在我们的工作中,我们的目标不仅是生成一个合适的嵌入空间,而且在所提出的模型的可解释性。我们决定使用目前最先进的RoberTa,据我们所知,它从未被用于类似的问题。为了验证该解决方案在实际条件下如何工作,我们仅使用合法流量对模型进行训练。我们还试图解释基于向量化请求空间中出现的聚类和简单逻辑回归分类器的结果。我们比较了我们的方法与类似的,以前提出的方法。我们在三个不同的数据集上评估了我们的方法的可行性:CSIC 2010,CSE-CIC-IDS 2018和我们自己准备的数据集。我们显示的结果与其他人相当或更好,最重要的是-可解释。

英文摘要:

Hypertext transfer protocol (HTTP) is one of the most widely used protocols on the Internet. As a consequence, most attacks (i.e., SQL injection, XSS) use HTTP as the transport mechanism. Therefore, it is crucial to develop an intelligent solution that would allow to effectively detect and filter out anomalies in HTTP traffic. Currently, most of the anomaly detection systems are either rule-based or trained using manually selected features. We propose utilizing modern unsupervised language representation model for embedding HTTP requests and then using it to classify anomalies in the traffic. The solution is motivated by methods used in Natural Language Processing (NLP) such as Doc2Vec which could potentially capture the true understanding of HTTP messages, and therefore improve the efficiency of Intrusion Detection System. In our work, we not only aim at generating a suitable embedding space, but also at the interpretability of the proposed model. We decided to use the current state-of-the-art RoBERTa, which, as far as we know, has never been used in a similar problem. To verify how the solution would work in real word conditions, we train the model using only legitimate traffic. We also try to explain the results based on clusters that occur in the vectorized requests space and a simple logistic regression classifier. We compared our approach with the similar, previously proposed methods. We evaluate the feasibility of our method on three different datasets: CSIC2010, CSE-CIC-IDS2018 and one that we prepared ourselves. The results we show are comparable to others or better, and most importantly - interpretable.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑