针对签名检测易被绕过的问题,本文提出一种处理 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.
MalBERT: Using Transformers for Cybersecurity and Malicious Software Detection
Université de Moncton(蒙克顿大学)
近年来,我们目睹了不同平台上的网络威胁和恶意软件攻击的增加,对个人和企业造成了重要影响。找到自动化的机器学习技术来主动防御恶意软件已变得至关重要。Transformers是一类基于注意力的深度学习技术,最近在解决主要与自然语言处理(NLP)领域相关的不同任务方面取得了令人印象深刻的结果。在本文中,我们提出了使用一个Transformers的架构来自动检测恶意软件。我们提出了一种基于BERT(Bidirectional Encoder Representations from Transformers)的模型,该模型使用预处理的特征对Android应用程序的源代码进行静态分析,以表征现有的恶意软件并将其分类为不同的代表性恶意软件类别。所得到的结果是有前途的,并显示了高性能的基于transformer的恶意软件检测模型。
Packet Inspection Transformer: A Self-Supervised Journey to Unseen Malware Detection with Few Samples
Department of Intelligent Systems and Robotics, University of West Florida, Pensacola, FL, USA(智能系统与机器人系,西佛罗里达大学,佛罗里达州彭萨科大,USA);Florida Institute For Human and Machine Cognition (IHMC), Pensacola, FL, USA(佛罗里达人类与机器认知研究所(IHMC),佛罗里达州彭萨科大,USA);Center for Cybersecurity, University of West Florida, Pensacola, FL, USA(网络安全中心,西佛罗里达大学,佛罗里达州彭萨科大,USA)
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(西佛罗里达大学网络安全中心)
Combining AI and AM - Improving Approximate Matching through Transformer Networks
Technical University of Darmstadt(达姆施塔特工业大学);SEC Consult Unternehmensberatung GmbH(SEC咨询企业顾问有限公司);University of the Bundeswehr Munich(慕尼黑联邦国防军大学);German Research Center for Artificial Intelligence (DFKI)(德国人工智能研究中心(DFKI));Hessian Center for AI (hessian.AI)(黑森人工智能中心(hessian.AI))