Abstract
Malware family classification is a significant issue with public safety and research implications that has been hindered by the high cost of expert labels. The vast majority of corpora use noisy labeling approaches that obstruct definitive quantification of results and study of deeper interactions. In order to provide the data needed to advance further, we have created the Malware Open-source Threat Intelligence Family (MOTIF) dataset. MOTIF contains 3,095 malware samples from 454 families, making it the largest and most diverse public malware dataset with ground truth family labels to date, nearly 3x larger than any prior expert-labeled corpus and 36x larger than the prior Windows malware corpus. MOTIF also comes with a mapping from malware samples to threat reports published by reputable industry sources, which both validates the labels and opens new research opportunities in connecting opaque malware samples to human-readable descriptions. This enables important evaluations that are normally infeasible due to non-standardized reporting in industry. For example, we provide aliases of the different names used to describe the same malware family, allowing us to benchmark for the first time accuracy of existing tools when names are obtained from differing sources. Evaluation results obtained using the MOTIF dataset indicate that existing tasks have significant room for improvement, with accuracy of antivirus majority voting measured at only 62.10% and the well-known AVClass tool having just 46.78% accuracy. Our findings indicate that malware family classification suffers a type of labeling noise unlike that studied in most ML literature, due to the large open set of classes that may not be known from the sample under consideration.
Introduction
To train machine learning models for malware detection and classification, researchers require massive datasets of labeled malicious files. However, obtaining "ground truth" labels—where a human expert reverse-engineers a file to definitively identify its malware family—is incredibly expensive and time-consuming. Consequently, the industry typically relies on approximate, automated labeling methods, such as the majority vote of multiple Antivirus (AV) scanners or tools like AVClass.
Unfortunately, AV vendors use wildly different naming conventions (aliases), and their signatures are often generic or incorrect. Training and evaluating ML models on these "noisy" labels creates a feedback loop that overestimates model accuracy and masks the real-world difficulty of malware classification. The authors introduced MOTIF to provide a reliable, ground-truth benchmark to break this cycle.
Methodology
Instead of relying on automated AV scans, the MOTIF dataset was built by mining human intelligence through a multi-step process:
- Report Mining: Analysts manually reviewed thousands of open-source threat intelligence reports published by 14 reputable cybersecurity organizations (such as FireEye, Kaspersky, and CISA) between 2016 and 2021.
- Curation & Disarming: File hashes explicitly linked to specific malware families by expert analysts were extracted. The corresponding Windows Portable Executable (PE) files were then downloaded and "disarmed" (modifying file headers to prevent execution) to ensure safe distribution.
- Alias Resolution: Because different vendors use different names for the same malware, the authors meticulously mapped out family aliases using threat reports and secondary databases.
- Benchmarking: With this ground-truth dataset, the authors benchmarked standard industry tools, metadata hashing algorithms, and ML models to determine their actual performance against expert consensus.
Dataset Characteristics
The MOTIF dataset contains 3,095 disarmed Windows PE malware samples across 454 distinct families. It includes raw EMBER features and a comprehensive alias mapping. As shown in the comparison below, MOTIF significantly expands the scale and diversity of expert-labeled malware data available to the public.
Key Results and Insights
The "AV Consensus" Illusion
The security community's reliance on AV majority voting is fundamentally challenged by MOTIF. When tested against actual expert analysis, AV engines fail to reach a consensus or agree on the wrong family far more often than expected. Standard AV majority voting correctly classified only 62.10% of the samples.
AVClass Performance Gap
The popular AVClass tool achieved only 46.78% accuracy on MOTIF. This is a stark contrast to the >90% F1 scores it achieves on older, noisier datasets, proving that past benchmarks were artificially inflated by label noise.
Machine Learning and Metadata Challenges
Standard ML models trained on MOTIF showed moderate performance, with LightGBM achieving 72.4% accuracy and MalConv2 reaching 48.7%. Furthermore, common metadata hashing algorithms (like Imphash or peHash) struggled to balance precision and recall. A major blind spot was identified in novelty detection: standard anomaly detection models, such as Isolation Forest, failed to identify novel malware families, highlighting a weakness in current ML defenses against zero-day threats.
Conclusion
MOTIF provides a critical high-fidelity benchmark for the malware research community. While the dataset is smaller than unlabelled corpora and features a selection bias toward high-profile threats, its ground-truth labels enable rigorous evaluation of classification tools. Future work suggests using MOTIF for few-shot learning and as a fine-tuning set for models pre-trained on massive, noisily-labeled datasets.
Summary updated