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

用于动态恶意软件分析与检测的精简 Transformer 模型

A Lean Transformer Model for Dynamic Malware Analysis and Detection

Orange Innovation(奥兰治创新公司);Orange DSEC(奥兰治DSEC公司)

Tony Quertier, Benjamin Marais, Grégoire Barrué, Stéphane Morucci, Sévan Azé, Sébastien Salladin

AI总结:

针对签名检测易被绕过的问题,本文提出一种处理 API 调用序列的小型仅编码器 Transformer,在保持良好恶意软件检测效果的同时降低训练推理成本与硬件需求。

摘要:

恶意软件是现代计算世界中一种快速增长的威胁,而现有防线不足以高效解决这一问题。这主要是因为许多防护方案依赖基于签名的检测方法,而此类方法很容易被黑客绕过。因此,人们持续需要基于行为的分析:在安全环境中运行可疑文件,并收集其痕迹形成报告以供分析。先前工作已经表明,利用神经网络以及从这些执行报告中提取的 API 调用序列可以取得一定成功。近来,大语言模型和生成式 AI 主要在自然语言处理任务中展现出令人瞩目的能力,并在网络安全领域为攻击者和防御者双方都呈现出有前景的应用。本文设计了一种基于 Transformers 架构的仅编码器模型,用于检测恶意文件;该模型处理由执行仿真解决方案收集的 API 调用序列。我们还限制了模型架构规模及其参数量,因为通常认为,对于下文处理的这类特定任务,大语言模型可能过于庞大。除获得不错的检测结果外,该方法的优势还在于通过限制训练和推理时间来减少碳足迹,并以更低硬件需求便利技术运维。我们还对结果进行了一些分析,并强调了使用 Transformers 分析恶意文件时的局限和可能的改进方向。

英文摘要:

Malware is a fast-growing threat to the modern computing world and existing lines of defense are not efficient enough to address this issue. This is mainly due to the fact that many prevention solutions rely on signature-based detection methods that can easily be circumvented by hackers. Therefore, there is a recurrent need for behavior-based analysis where a suspicious file is ran in a secured environment and its traces are collected to reports for analysis. Previous works have shown some success leveraging Neural Networks and API calls sequences extracted from these execution reports. Recently, Large Language Models and Generative AI have demonstrated impressive capabilities mainly in Natural Language Processing tasks and promising applications in the cybersecurity field for both attackers and defenders. In this paper, we design an Encoder-Only model, based on the Transformers architecture, to detect malicious files, digesting their API call sequences collected by an execution emulation solution. We are also limiting the size of the model architecture and the number of its parameters since it is often considered that Large Language Models may be overkill for specific tasks such as the one we are dealing with hereafter. In addition to achieving decent detection results, this approach has the advantage of reducing our carbon footprint by limiting training and inference times and facilitating technical operations with less hardware requirements. We also carry out some analysis of our results and highlight the limits and possible improvements when using Transformers to analyze malicious files.

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

↑