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

Nebula:用于动态恶意软件分析的自注意力机制

Nebula: Self-Attention for Dynamic Malware Analysis

Microsoft Corporation(微软公司);University of Genova(热那亚大学);Pluribus One(Pluribus One公司);University of Cagliari(卡利亚里大学)

Dmitrijs Trizna, Luca Demetrio, Battista Biggio, Fabio Roli

AI总结:

本文提出基于自注意力 Transformer 的 Nebula 架构,融合动态日志中的异构行为信息,在三个数据集的恶意软件检测与分类任务上以低误报率超越现有方法。

摘要:

动态分析通过在受控环境中执行程序并记录其行为,实现对 Windows 恶意软件的检测。以往工作提出在运行时 API 等同质输入特征上训练机器学习模型(如卷积网络和长短期记忆网络),以检测或分类恶意软件,却忽视了来自网络和文件操作等异构数据的其他相关信息。为克服这些问题,我们提出 Nebula,一种基于自注意力 Transformer 的通用神经架构,可泛化于不同行为表示与格式,融合来自动态日志报告的多样信息。Nebula 由多个组件构成,负责对数据进行分词、过滤、归一化和编码,以输入 Transformer 架构。我们首先开展全面的消融研究,评估各组件对整体系统性能的影响,明确哪些组件可直接使用,哪些必须借助特定领域知识加以增强。我们在来自不同动态分析平台的三个数据集上,针对恶意软件检测和分类任务进行了大量实验,结果表明,在低误报率下,Nebula 平均性能优于最先进模型,最高提升达 12%。此外,我们展示了自监督学习预训练仅使用 20% 的训练数据即可达到全监督模型的性能,并通过可解释 AI 技术检视 Nebula 的输出,指出注意力如何聚焦于与恶意软件家族恶意活动相关的特定 token。为促进可复现性,我们在 https://github.com/dtrizna/nebula 开源了研究发现和模型。

英文摘要:

Dynamic analysis enables detecting Windows malware by executing programs in a controlled environment and logging their actions. Previous work has proposed training machine learning models, i.e., convolutional and long short-term memory networks, on homogeneous input features like runtime APIs to either detect or classify malware, neglecting other relevant information coming from heterogeneous data like network and file operations. To overcome these issues, we introduce Nebula, a versatile, self-attention Transformer-based neural architecture that generalizes across different behavioral representations and formats, combining diverse information from dynamic log reports. Nebula is composed by several components needed to tokenize, filter, normalize and encode data to feed the transformer architecture. We firstly perform a comprehensive ablation study to evaluate their impact on the performance of the whole system, highlighting which components can be used as-is, and which must be enriched with specific domain knowledge. We perform extensive experiments on both malware detection and classification tasks, using three datasets acquired from different dynamic analyses platforms, show that, on average, Nebula outperforms state-of-the-art models at low false positive rates, with a peak of 12% improvement. Moreover, we showcase how self-supervised learning pre-training matches the performance of fully-supervised models with only 20% of training data, and we inspect the output of Nebula through explainable AI techniques, pinpointing how attention is focusing on specific tokens correlated to malicious activities of malware families. To foster reproducibility, we open-source our findings and models at https://github.com/dtrizna/nebula.

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

↑