动态分析通过在受控环境中执行程序并记录其行为,实现对 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.
HashTran-DNN: A Framework for Enhancing Robustness of Deep Neural Networks against Adversarial Malware Samples
Nanjing University of Science and Technology(南京理工大学);Florida International University(佛罗里达国际大学);Nanjing University of Posts and Telecommunications(南京邮电大学);University of Texas at San Antonio(德克萨斯大学圣安东尼奥分校)
Leopard Mobile Inc.(猎豹移动公司);National Cheng Kung University(国立成功大学)
深度学习对图像识别和自然语言处理的影响在全球引起了极大的关注。卷积神经网络无需事先提取特征即可学习,非常适合应对Android恶意软件的快速迭代。检测Android恶意软件的传统解决方案需要通过预提取的特征进行持续学习,以保持识别恶意软件的高性能。为了在不提取预先选择的特征的情况下减少特征工程的人力,我们开发了一个基于coloR启发的卷积神经网络(CNN)的AndroiD恶意软件检测(R2-D2)系统。系统可以将Android存档文件中的classes.dex字节码转换为RGB颜色代码,并将其存储为固定大小的彩色图像。彩色图像输入到卷积神经网络进行自动特征提取和训练。数据收集时间为2017年1月至2017年8月。在此期间,我们在研究合作伙伴Leopard Mobile Inc.的帮助下,收集了大约200万个良性和恶意Android应用程序进行实验。实验结果表明,该系统能够对合约进行准确的安全分析.此外,我们将研究结果和实验材料保存在http://R2D2.TWMAN.ORG上。
A Transformer-Based Framework for Payload Malware Detection and Classification
University of West Florida(西佛罗里达大学);Florida Institute For Human and Machine Cognition (IHMC)(佛罗里达人机认知研究所);Center for Cybersecurity, University of West Florida(西佛罗里达大学网络安全中心)
A Graph-Attentive LSTM Model for Malicious URL Detection
Department of Electrical and Electronic Engineering, Dhaka University of Engineering & Technology, Gazipur, Bangladesh(达卡工程与技术大学电子与电气工程系,孟加拉国加兹ipur);Department of Computer Science and Engineering, Atish Dipankar University of Science and Technology, Dhaka, Bangladesh(阿蒂什迪帕克尔科学技术大学计算机科学与工程系,孟加拉国达卡);Department of Computer Science, Utah Valley University, 800 W University Pkwy, Orem, UT 84058, USA(犹他山谷大学计算机科学系,美国奥尔姆,UT 84058)