arXiv:2502.12863cs.CRcs.LG2025-02被引 4

不依赖调用顺序分析API,高效识别恶意软件家族

Malware Detection based on API calls

  • 忽略API调用顺序,提取函数调用频次特征进行检测
  • 仅用ntdll.dll调用即可实现85%以上F1分数
  • 模型轻量高效,适合资源受限环境部署

恶意软件攻击在当今互联数字环境中构成重大威胁,造成数十亿美元损失。早期识别恶意软件家族可有效提升防护能力。本文提出一种轻量级、无序无关的恶意软件检测方法:分析API调用而不考虑其序列。我们发布了一个包含三十余万样本及其函数调用参数的公开数据集,标注为良性或恶意,原始大小超过550GB。采用随机森林等机器学习算法,通过分析API调用模式与异常行为进行行为分析。研究发现,忽略调用顺序仍可识别具有区分性的特征,实现早期恶意软件检测。所提模型不仅有效,且轻量高效,可在任意设备上运行,性能开销极小,达到85%以上的F1分数。实证表明,仅需ntdll.dll库的调用即可实现有效识别。研究通过实验证明该方法具备高准确率与可扩展性,代码与数据已开源,托管于GitHub和Zenodo。

原文摘要 · Abstract (English)

Malware attacks pose a significant threat in today's interconnected digital landscape, causing billions of dollars in damages. Detecting and identifying families as early as possible provides an edge in protecting against such malware. We explore a lightweight, order-invariant approach to detecting and mitigating malware threats: analyzing API calls without regard to their sequence. We publish a public dataset of over three hundred thousand samples and their function call parameters for this task, annotated with labels indicating benign or malicious activity. The complete dataset is above 550GB uncompressed in size. We leverage machine learning algorithms, such as random forests, and conduct behavioral analysis by examining patterns and anomalies in API call sequences. By investigating how the function calls occur regardless of their order, we can identify discriminating features that can help us identify malware early on. The models we've developed are not only effective but also efficient. They are lightweight and can run on any machine with minimal performance overhead, while still achieving an impressive F1-Score of over 85\%. We also empirically show that we only need a subset of the function call sequence, specifically calls to the ntdll.dll library, to identify malware. Our research demonstrates the efficacy of this approach through empirical evaluations, underscoring its accuracy and scalability. The code is open source and available at Github along with the dataset on Zenodo.

恶意软件检测API分析轻量模型行为分析

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。