arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1905.06987cs.CRcs.AIcs.LG
收藏

从上下文中学习:利用和解释文件路径信息以更好地检测恶意软件

Learning from Context: Exploiting and Interpreting File Path Information for Better Malware Detection

Sophos PLC(Sophos公司)

Adarsh Kyadige, Ethan M. Rudd, Konstantin Berlin

摘要:

用于静态可移植可执行(PE)恶意软件检测的机器学习(ML)通常在训练期间采用每文件数字特征向量表示作为具有一个或多个目标标签的输入。但是,可以从文件所在的\textit{context}中收集到许多正交信息。在本文中,我们建议利用静态源的上下文信息-PE文件的路径-作为分类器的辅助输入。虽然文件路径本身不是恶意的或良性的,但它们确实为恶意/良性的确定提供了有价值的上下文。与动态上下文信息不同,文件路径可用的开销很小,并且可以无缝集成到多视图静态ML检测器中,从而以极高的吞吐量和最小的基础设施更改获得更高的检测率。在这里,我们提出了一个多视图神经网络,它采取的PE文件内容以及相应的文件路径作为输入的特征向量,并输出检测分数。为了确保真实的评估,我们使用了一个大约1000万个样本的数据集--来自实际安全供应商网络的用户端点的文件和文件路径。然后,我们通过LIME建模进行可解释性分析,以确保我们的分类器已经学习了合理的表示,并查看文件路径的哪些部分对分类器得分的变化贡献最大。我们发现,我们的模型学习了文件路径的有用方面以进行分类,同时还从测试供应商产品的客户那里学习了工件,例如,通过下载恶意软件样本的目录,每个样本都以其散列命名。我们从我们的测试数据集中修剪这些工件,并证明在$10^{-3}$假阳性率(FPR)和33.1%,在$10^{-4}$ FPR的假阴性率降低32.3%,在一个类似的拓扑结构的单输入PE文件内容的唯一模型。

英文摘要:

Machine learning (ML) used for static portable executable (PE) malware detection typically employs per-file numerical feature vector representations as input with one or more target labels during training. However, there is much orthogonal information that can be gleaned from the \textit{context} in which the file was seen. In this paper, we propose utilizing a static source of contextual information -- the path of the PE file -- as an auxiliary input to the classifier. While file paths are not malicious or benign in and of themselves, they do provide valuable context for a malicious/benign determination. Unlike dynamic contextual information, file paths are available with little overhead and can seamlessly be integrated into a multi-view static ML detector, yielding higher detection rates at very high throughput with minimal infrastructural changes. Here we propose a multi-view neural network, which takes feature vectors from PE file content as well as corresponding file paths as inputs and outputs a detection score. To ensure realistic evaluation, we use a dataset of approximately 10 million samples -- files and file paths from user endpoints of an actual security vendor network. We then conduct an interpretability analysis via LIME modeling to ensure that our classifier has learned a sensible representation and see which parts of the file path most contributed to change in the classifier's score. We find that our model learns useful aspects of the file path for classification, while also learning artifacts from customers testing the vendor's product, e.g., by downloading a directory of malware samples each named as their hash. We prune these artifacts from our test dataset and demonstrate reductions in false negative rate of 32.3% at a $10^{-3}$ false positive rate (FPR) and 33.1% at $10^{-4}$ FPR, over a similar topology single input PE file content only model.

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

↑