AVMiner: Expansible and Semantic-Preserving Anti-Virus Labels Mining Method

Ligeng Chen, Zhongling He, Hao Wu, Yuhang Gong, Bing Mao · DOI

TL;DR

AVMiner is an unsupervised malware tagging system that automatically extracts meaningful family identifiers from noisy, inconsistent anti-virus (AV) labels. By ditching rigid, expert-defined rules in favor of natural language processing (NLP) and clustering, it achieves higher accuracy and better coverage than industry-standard tools like AVCLASS, especially as malware evolves.

What Problem Does This Paper Address?

When a new piece of malware is discovered, security analysts often turn to multi-engine scanners like VirusTotal. These services provide "AV labels" from dozens of different vendors (e.g., McAfee, Symantec, Kaspersky). However, these labels are a mess: they are inconsistent, use different naming conventions, and change over time. One vendor might call a sample "Trojan.Generic," while another calls it "Win32.Flystudio.worm."

Existing tools like AVCLASS and AVCLASS2 try to clean up this mess using massive libraries of manually written rules. The problem? These rules require constant expert maintenance and struggle to keep up with the "arms race" of rapidly mutating malware. If a new family appears that isn't in the rulebook, these tools often fail to provide a useful label.

Methods

The authors propose AVMiner, a pipeline designed to be "expansible" (adapts to new data) and "semantic-preserving" (keeps the most descriptive words). Its workflow consists of five main stages:

  1. Pre-processing (Unique Tokens Fade Away): Instead of manual filtering, AVMiner uses a statistical strategy to identify and remove meaningless "noise" tokens (like serial numbers or unique identifiers) based on their position and frequency within a vendor's labeling patterns.
  2. Vectorization (GloVe): It uses the GloVe (Global Vectors) algorithm to map tokens into a high-dimensional space. This captures semantic relationships: if two different tokens (like "hidelink" and "seohide") frequently appear together across many samples, they are placed close together in this vector space.
  3. In-Sample Clustering (Mean Shift): For each malware sample, AVMiner uses Mean Shift clustering to group related tokens. This is an unsupervised method, meaning the system doesn't need to be told how many clusters to look for—it discovers the natural groupings of labels for that specific sample.
  4. Token Correction: It uses Edit Distance to automatically merge misspellings or abbreviations (e.g., correcting "plangton" to "plankton") within a cluster, ensuring frequency counts are accurate.
  5. Ranking (TF-IDF): Finally, it uses TF-IDF (Term Frequency-Inverse Document Frequency) to rank the tokens. This ensures that specific, descriptive family names are ranked higher than generic terms like "trojan" or "virus."

Datasets

The researchers evaluated AVMiner using three primary datasets:

  • Malheur: 3,086 samples (mostly Windows executables) with manually labeled ground truth.
  • Drebin: 5,511 Android samples with manually labeled ground truth.
  • Superset: A combination of the two (8,597 samples).
  • Large-scale Real-world Data: Approximately 2 million samples collected from the wild to test the system's robustness and coverage in a production-like environment.

Key Insights and Ideas

  • Moving Beyond the "Majority Rule": Traditional tools often pick the most frequent label. AVMiner realizes that a minority label might actually be more descriptive (e.g., a specific behavior like "SEO-injection" vs. a generic "Trojan" label).
  • The Power of Co-occurrence: By treating AV labels as a "language," the authors can use NLP techniques to find synonyms and aliases without needing a human to tell the system that "A" is the same as "B."
  • Expansibility is Essential: Because AVMiner is unsupervised, it doesn't "break" when it sees a new malware family. It simply observes the new tokens and their relationships, allowing it to self-update as the threat landscape shifts.

Key Results

AVMiner significantly outperformed previous state-of-the-art tools:

  • Accuracy: On the Superset dataset, AVMiner achieved a Recall@1 of 74.5%, which jumped to 94.9% for Recall@5 (meaning the correct family name was in the top 5 suggested tokens nearly 95% of the time).
  • Coverage: In the 2-million-sample test, AVCLASS failed to provide a result for 21.8% of samples (labeling them as "Singleton"). AVMiner was able to produce a descriptive token set for every sample that had at least one AV label.
  • Robustness: The system remained stable even when 10,000 "unknown" external samples were introduced, proving it can handle the noise of real-world data streams.

Limitations and Future Work

  • Time Overhead: Because it involves vectorization and iterative clustering, AVMiner is slower than rule-based systems. It processes about 40 samples per second, whereas rule-based tools can be dozens of times faster.
  • Temporal Sensitivity: The authors noted that the "context" of tokens changes over the years as malware evolves. A sample from 2010 might be described differently than one from 2020.
  • Future Direction: The authors plan to implement a "time grouping" scheme to process samples in chronological batches, which may help account for the shifting semantics of malware labels over long periods.

Summary updated

Abstract

With the increase in the variety and quantity of malware, there is an urgent need to speed up the diagnosis and the analysis of malware. Extracting the malware family-related tokens from AV (Anti-Virus) labels, provided by online anti-virus engines, paves the way for pre-diagnosing the malware. Automatically extract the vital information from AV labels will greatly enhance the detection ability of security enterprises and equip the research ability of security analysts. Recent works like AVCLASS and AVCLASS2 try to extract the attributes of malware from AV labels and establish the taxonomy based on expert knowledge. However, due to the uncertain trend of complicated malicious behaviors, the system needs the following abilities to face the challenge: preserving vital semantics, being expansible, and free from expert knowledge. In this work, we present AVMiner, an expansible malware tagging system that can mine the most vital tokens from AV labels. AVMiner adopts natural language processing techniques and clustering methods to generate a sequence of tokens without expert knowledge ranked by importance. AVMiner can self-update when new samples come. Finally, we evaluate AVMiner on over 8,000 samples from well-known datasets with manually labeled ground truth, which outperforms previous works.
BibTeX
@misc{chen2022avminer,
  author = {Ligeng Chen and Zhongling He and Hao Wu and Yuhang Gong and Bing Mao},
  title = {{AVMiner: Expansible and Semantic-Preserving Anti-Virus Labels Mining Method}},
  year = {2022},
  eprint = {2208.14221},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2208.14221},
}
Figure