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

解码恶意软件分类中机器学习的秘密:深入探讨数据集、特征提取与模型性能

Decoding the Secrets of Machine Learning in Malware Classification: A Deep Dive into Datasets, Feature Extraction, and Model Performance

Norton Research Group(诺顿研究组);INRIA(法国国家信息与自动化研究所);EURECOM(欧洲通信学院);IMDEA Software Institute(IMDEA软件研究所)

Savino Dambra, Yufei Han, Simone Aonzo, Platon Kotzias, Antonino Vitale, Juan Caballero, Davide Balzarotti, Leyla Bilge

AI总结:

本文深入探讨了基于机器学习的恶意软件分类,通过构建迄今最大平衡数据集,发现静态特征优于动态特征,家族数量增加降低准确率,而每家族样本增多及均匀分布能提升泛化能力。

摘要:

许多研究提出了用于恶意软件检测和分类的机器学习(ML)模型,并报告了近乎完美的性能。然而,它们以不同方式组装真实标签,使用多样的静态和动态分析技术进行特征提取,甚至在什么构成恶意软件家族这一问题上也存在分歧。因此,我们的社区仍然缺乏对恶意软件分类结果的理解:这些结果是否与收集数据集的性质和分布有关,训练数据集中家族和样本的数量在多大程度上影响性能,以及静态和动态特征能在多大程度上相互补充。这项工作通过调查影响基于ML的恶意软件检测和分类的关键因素,阐明了这些开放性问题。为此,我们收集了迄今为止最大的平衡恶意软件数据集,包含来自670个家族的67K个样本(每个家族100个样本),并使用我们的数据集训练了用于恶意软件检测和家族分类的最先进模型。我们的结果显示,静态特征的表现优于动态特征,并且将两者结合仅比静态特征提供边际改进。我们发现加壳与分类准确性之间没有相关性,并且动态提取特征中缺失的行为极大地损害了其性能。我们还证明了需要分类的家族数量越多,分类就越困难,而每个家族的样本数量越多,准确性就越高。最后,我们发现基于每个家族样本均匀分布训练的模型在未见数据上具有更好的泛化能力。

英文摘要:

Many studies have proposed machine-learning (ML) models for malware detection and classification, reporting an almost-perfect performance. However, they assemble ground-truth in different ways, use diverse static- and dynamic-analysis techniques for feature extraction, and even differ on what they consider a malware family. As a consequence, our community still lacks an understanding of malware classification results: whether they are tied to the nature and distribution of the collected dataset, to what extent the number of families and samples in the training dataset influence performance, and how well static and dynamic features complement each other. This work sheds light on those open questions. by investigating the key factors influencing ML-based malware detection and classification. For this, we collect the largest balanced malware dataset so far with 67K samples from 670 families (100 samples each), and train state-of-the-art models for malware detection and family classification using our dataset. Our results reveal that static features perform better than dynamic features, and that combining both only provides marginal improvement over static features. We discover no correlation between packing and classification accuracy, and that missing behaviors in dynamically-extracted features highly penalize their performance. We also demonstrate how a larger number of families to classify make the classification harder, while a higher number of samples per family increases accuracy. Finally, we find that models trained on a uniform distribution of samples per family better generalize on unseen data.

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

↑