Poisoning behavioral malware clustering

Battista Biggio, Konrad Rieck, Davide Ariu, Christian Wressnegger, Igino Corona, Giorgio Giacinto, Fabio Roli

TL;DR

This paper explores the vulnerability of behavioral malware clustering to "poisoning attacks," where an attacker injects carefully crafted malicious samples to disrupt the clustering process. Their experiments with the Malheur tool demonstrate that even a small percentage of poisoned samples can significantly compromise clustering accuracy, highlighting the need for more robust algorithms.

What Problem Does This Paper Address?

In cybersecurity, clustering algorithms are crucial for analyzing malware behavior, identifying new families, and generating signatures for antivirus systems. These algorithms group similar malware based on their observed activities when executed in a sandbox. However, a critical assumption is that the input data is "clean." This paper addresses the gap in understanding how these algorithms perform when an adversary can manipulate the input data. Specifically, they investigate whether and to what extent an attacker can subvert behavioral malware clustering by injecting "poisoning" samples that exhibit malicious behavior designed to mislead the clustering process. This is particularly relevant as traditional clustering algorithms were not designed with adversarial scenarios in mind.

Methods

The authors extend previous work on poisoning attacks against clustering algorithms, adapting them to the specific context of behavioral malware clustering and the Malheur tool. Their approach is based on a formal threat model that defines the adversary's goal (e.g., availability violation, aiming to maximally disrupt clustering), knowledge (perfect knowledge of the system), and capability (injecting a limited number of poisoned samples).

The core of their method involves devising "bridge-based attacks." These attacks aim to create artificial samples that lie "between" existing clusters, effectively forcing the clustering algorithm to merge them. They explore three variants:

  • Bridge (Best): Iteratively adds candidate attack points and re-runs the clustering to find the one that maximally degrades the clustering quality. This is computationally intensive.
  • Bridge (Hard): Approximates the clustering result to speed up the process, using hard assignments of samples to clusters.
  • Bridge (Soft): Similar to Bridge (Hard) but uses soft clustering assignments (posterior probabilities) for a more nuanced approximation.

They also consider "Random" and "Random (Best)" attacks as baselines, which inject randomly generated or selected poisoned samples. A key challenge addressed is the creation of realistic poisoned samples that conform to Malheur's specific feature representation (binary embedding with L2 normalization) and retain some malicious functionality.

Datasets

The paper uses two datasets for evaluation:

  • Malheur data: A dataset of 3131 malware samples collected over three years, originally used in prior work on Malheur.
  • Recent Malware data: A newly collected dataset of 657 malware samples from prominent families in 2013, chosen for their recency and availability of more than 100 samples per family.

Key Insights and Ideas

  • Behavioral clustering is surprisingly vulnerable: Even with sophisticated tools like Malheur, a small percentage of poisoned samples can drastically degrade clustering performance.
  • "Bridge" attacks are effective: The strategy of creating samples that bridge existing clusters is a potent way to force mergers and reduce the number of identified malware families.
  • Realistic constraints matter: The challenge of creating poisoned samples that are both effective and realistic (i.e., exhibiting some malicious behavior) is a significant hurdle for attackers, but the paper shows it's surmountable.
  • Objective function vs. Ground Truth: The proposed objective function (maximizing distance from clean clustering) is effective even without knowledge of the ground truth, suggesting its general applicability to various clustering algorithms.

Key Results

  • Significant disruption with minimal poisoning: For the Malheur dataset, injecting as little as 2% poisoned samples using "Bridge (Best)" and "F-measure (Best)" attacks reduced the number of clusters from 40 to 5. With 5% poisoned samples, a single large cluster was formed.
  • Random attacks are ineffective: Simple random poisoning had a negligible impact on clustering quality, highlighting the importance of carefully crafted attacks.
  • Bridge (Soft) and Bridge (Hard) are computationally efficient: These variants achieve similar results to the "Best" strategies but with significantly lower computational cost.
  • Dataset dependency: While effective on the Malheur dataset, the bridge-based attacks were less effective on the "Recent Malware" dataset, potentially due to the smaller feature space limiting manipulation options. However, even in these cases, the attacks still caused substantial changes in cluster assignments.

Limitations and Future Work

The authors acknowledge several limitations and suggest future research directions:

  • Limited Adversary Knowledge: The current work assumes "perfect knowledge" of the system. Future work should investigate attacks where the adversary has limited knowledge of the system or only access to surrogate data.
  • Broader Algorithm Coverage: The current focus is on single-linkage hierarchical clustering. Future research should explore attacks against a wider range of clustering algorithms.
  • Countermeasures: The paper highlights the need for more secure clustering algorithms and discusses the need for developing appropriate countermeasures.
  • Other Attack Types: The paper briefly mentions "obfuscation attacks" where malware mimics legitimate behavior, suggesting this is another area for future research.
  • Feature Representation Impact: The effectiveness of attacks can be influenced by the feature representation used. Further understanding of how feature space constraints impact attack design is needed.

Summary updated

BibTeX
@inproceedings{biggio2014poisoning,
  author = {Battista Biggio and Konrad Rieck and Davide Ariu and Christian Wressnegger and Igino Corona and Giorgio Giacinto and Fabio Roli},
  title = {{Poisoning behavioral malware clustering}},
  booktitle = {AISec@CCS},
  year = {2014},
  doi = {10.1145/2666652.2666666},
}
Figure