利用高斯混合模型執行異常偵測來偵測殭屍網路
An Anomaly Detection Model to Detect Botnet Network Flows Using Gaussian Mixture Model
摘要
網路是讓現代社會快速發展非常重要的原因之一。網路讓大家即使分隔兩地,也可以非常快速即時地共享資訊,但是隨之而來的議題就是安全的問題。殭屍網路是其中非常嚴重的問題之一,因此大約從2010年開始,便有大量的研究人員從事相關研究,並發表了許多研究的成果。
然而,雖然殭屍網路並不少見,但是對於研究者來說,要取得殭屍網路的樣本與其流量卻是非常的困難。基於以上情形,本研究提出一個只需要一般正常網路流量作為訓練資料的機器學習模型。我們首先將不同類型的網路流分類,並且使用一般常見的特徵,例如:一個網路流的封包大小的總和、封包個數、第一個封包的大小等等,來為每一類建立一個高斯混合模型,以這些高斯混合模型來當作一般正常網路流量的側寫。當我們想要判斷一個未知的網路流是否為殭屍網路的網路流的時候,我們就會將此未知的網路流透過先前建立的高斯混合模型來和之前已看過的正常網路流的特徵做比較,若未達一定相似度,則將此未知網路流判斷為殭屍網路的網路流。
然而,雖然殭屍網路並不少見,但是對於研究者來說,要取得殭屍網路的樣本與其流量卻是非常的困難。基於以上情形,本研究提出一個只需要一般正常網路流量作為訓練資料的機器學習模型。我們首先將不同類型的網路流分類,並且使用一般常見的特徵,例如:一個網路流的封包大小的總和、封包個數、第一個封包的大小等等,來為每一類建立一個高斯混合模型,以這些高斯混合模型來當作一般正常網路流量的側寫。當我們想要判斷一個未知的網路流是否為殭屍網路的網路流的時候,我們就會將此未知的網路流透過先前建立的高斯混合模型來和之前已看過的正常網路流的特徵做比較,若未達一定相似度,則將此未知網路流判斷為殭屍網路的網路流。
Internet is one of the most important reasons that modern society has been evolving so fast. Even if people are separated far away from each other, they can still communicate with each other via Internet. However, that’s where the Internet security issues come in. Botnet is one of the vital problems among them. As a result, researchers have devoted themselves into botnet detection related research since 2010.
Nevertheless, traditional botnet researches need botnet traffic as their training data, which is hard to collect. Because of that, we aim at proposing a botnet detection model that needs only normal network traffic as our training data. We first separate different types of network traffic into groups, and use the features that are commonly used in botnet detections, such as total packet size, total number of packets, or first packet size in a network flow, to create a Gaussian Mixture Model(GMM) as a profiling for each group. When we want to classify an unknown network flow, we compare the unknown one with all the normal ones we have seen before. If they are similar according to our profiling, then we classify the unknown flow as normal network flow, otherwise, as bot network flow.
Nevertheless, traditional botnet researches need botnet traffic as their training data, which is hard to collect. Because of that, we aim at proposing a botnet detection model that needs only normal network traffic as our training data. We first separate different types of network traffic into groups, and use the features that are commonly used in botnet detections, such as total packet size, total number of packets, or first packet size in a network flow, to create a Gaussian Mixture Model(GMM) as a profiling for each group. When we want to classify an unknown network flow, we compare the unknown one with all the normal ones we have seen before. If they are similar according to our profiling, then we classify the unknown flow as normal network flow, otherwise, as bot network flow.