Pro2Vec: 透過圖嵌入技術學習程式的結構

Pro2Vec: Learning Program Structures Using Graph Embedding

檔案

全文未公開。

日期

2018

類型

語言

英文

摘要

由於程式碼混淆技術與自動生成技術的發展,使得以往利用人工抽取特徵碼的惡意程式偵測技術無法有效的運用在大規模的樣本偵測中。許多研究者開始研究如何利用程式中的控制流程圖與資料流程圖來識別相似的結構變化與行為。這些圖雖然可以有效的保留許多有關程式行為的資訊,但是面對往後大規模的惡意程式相似度比對與分群等應用時,會遭遇到複雜度過高與耗時的問題。在這篇研究中,我們利用機器學習中的圖嵌入技術,依照程式兩兩之間的結構相似度將二進位檔的程式轉化為向量表示。由於利用了程式的結構,這種透過程式向量而訓練出來的偵測模型資訊較能抵禦特定種類的混淆攻擊手法,這些攻擊手法包含常針對導入函式表與特定程式特徵碼這些被廣泛應用於AI偵測法的特徵。惡意程式甚至可以透過不同的編譯選項與指令替換技術簡易地產生新的變種。更甚者,一個攻擊方法也可以有許多不同的實作方法。因此,許多看似歧異度很大的惡意程式其實有著相同的行為。然而,決定兩個程式是不是有相同的語意已經被證實是一個”不可決定的問題”。為了解決上述的問題,我們提出了pro2vec,是一個能夠基於程式的結構與語意產生簡潔描述向量的程式嵌入模型。其中,我們透過隨機選取的程式對做為負樣本克服由編譯與實作產生的雜訊。而正樣本對包含一對由不同編譯選項所產生或擁有相同語意的程式,負樣本則是隨機選取的一對程式。理論上,程式的嵌入向量由於考量了上述特點所產生的函式的相似度,所以可以幫助模型識別經過混淆的惡意程式。在我們的實驗中,我們示範了pro2vec可以產生程式在目標的向量空間中良好的向量表示,而這種向量可以作為一種新型態的特徵,用以偵測惡意程式。
Due to the code obfuscation, auto-generation and mutation techniques, signature-based detection is no longer effective against malware. Researchers start to use program graphs such as control-flow and data-flow graphs to recognize similar variants or extract suspicious behaviors. Although graphs can preserve information about program behaviors, it is difficult to process graphs for similarity comparison and clustering when applied to a large corpus of malware. In this paper, we use graph embedding to transform program binaries into vectors in accordance with the similarity of program structures. With structural information, the detection model trained by program embeddings can be more resistant to obfuscation on static features, such as contained strings, import APIs, and specific code patterns, commonly used by conventional AI-based detection methods. Malware can easily mutate by applying different compilation arguments and instruction substitution. Thus, malware programs having divergent binaries may actually behave the same. On the other hand, a single attack method can be achieved by different implementations. It has been proven that the determination of two programs having the same semantics is an undecidable problem. To address the problems, we propose Pro2Vec which is a program embedding network that produces a concise code based on the structure and program semantics thereof. The noises induced from compilers and implementation can be mitigated by negative sampling through randomly choosing binary pairs for training at both function and program levels. The positive pairs contain two binaries compiled with different arguments or implementations over the same program semantics; the negative ones are randomly paired. The program embeddings is expected to be learned by considering the functional similarity that are helpful to recognize the obfuscated malware variants. In our experiment, we demonstrate that the proposed system, Pro2Vec, can generate a concise representation of programs, and is effective in malware detection merely by using program embeddings as features.
顯示完整詮釋資料 統計資料

引用此條目

Chiang, Y.-T. (2018). Pro2Vec: Learning Program Structures Using Graph Embedding. https://thesis.lib.nycu.edu.tw/handle/20.500.14371/69130

BibTeX RIS

引用文字依 APA 第 7 版格式自動產生,使用前請再核對。

分享

永久網址:https://thesis.lib.nycu.edu.tw/handle/20.500.14371/69130