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:
- 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.
- 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.
- 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.
- 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.
- 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