[论文解读] Malware Detection with LSTM using Opcode Language
该论文将恶意软件的操作码序列视为一种语言,使用词嵌入和带均值池化的两阶段 LSTM,在静态分析设置下检测并对 Windows 可执行文件进行分类。它在包含 969 个恶意样本和 123 个正常样本的数据集上报告了高 AUC 分数(检测 ~0.99,分类 ~0.987)。
Nowadays, with the booming development of Internet and software industry, more and more malware variants are designed to perform various malicious activities. Traditional signature-based detection methods can not detect variants of malware. In addition, most behavior-based methods require a secure and isolated environment to perform malware detection, which is vulnerable to be contaminated. In this paper, similar to natural language processing, we propose a novel and efficient approach to perform static malware analysis, which can automatically learn the opcode sequence patterns of malware. We propose modeling malware as a language and assess the feasibility of this approach. First, We use the disassembly tool IDA Pro to obtain opcode sequence of malware. Then the word embedding technique is used to learn the feature vector representation of opcode. Finally, we propose a two-stage LSTM model for malware detection, which use two LSTM layers and one mean-pooling layer to obtain the feature representations of opcode sequences of malwares. We perform experiments on the dataset that includes 969 malware and 123 benign files. In terms of malware detection and malware classification, the evaluation results show our proposed method can achieve average AUC of 0.99 and average AUC of 0.987 in best case, respectively.
研究动机与目标
- 通过将操作码视为单词,将静态恶意软件分析建模为语言建模问题。
- 通过词嵌入自动学习操作码表示,减少手工特征工程。
- 开发带均值池化的两阶段 LSTM 架构以捕捉操作码序列模式用于检测和分类。
- 在混合的恶意软件/正常样本数据集上评估该方法,并与其他神经模型进行比较。
提出的方法
- 使用 IDA Pro 对可执行文件进行反汇编,从 .text 段提取操作码序列。
- 构建 391 操作码词汇表,使用维度为 100 的 CBOW 词嵌入表示操作码。
- 应用两阶段 LSTM,第一阶段将操作码向量编码为函数级表示,第二阶段将函数表示编码为整体样本表示。
- 在第二个 LSTM 之后添加均值池化层以提高特征表示的不变性。
- 在最终表示上使用 softmax 分类器进行恶意软件检测(二分类)和恶意软件分类(多分类)。
实验结果
研究问题
- RQ1操作码序列通过 CBOW 嵌入学习能否捕捉到用于区分恶意软件与正常文件的判别模式?
- RQ2两阶段 LSTM 结合均值池化是否优于单阶段 LSTM 或其他神经基线在恶意软件检测与分类上的表现?
- RQ3词嵌入方法(CBOW 与 Skip-gram)和窗口大小对检测准确性有何影响?
- RQ4与 CNN、RNN 和 MLP 基线相比,该方法在准确率和训练时间方面的表现如何?
主要发现
- 在测试的嵌入配置中,CBOW 与窗口大小为 10 的配置表现最佳。
- 两阶段 LSTM 在检测和分类上普遍优于单阶段或无第二个 LSTM 的基线。
- 两阶段 LSTM 的表现优于 RNN 与 MLP,在与 CNN 的对比中具有竞争力且训练时间更短。
- 在 969 个恶意样本和 123 个正常样本的数据集上,该方法恶意检测的平均 AUC 为 0.99,恶意软件分类的 AUC 为 0.987。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。