Exploring Backdoor Poisoning Attacks Against Malware Classifiers

Giorgio Severi, Jim Meyer, Scott Coull, Alina OpreaarXiv 2020

TL;DR

This paper introduces a novel, model-agnostic method for creating "clean-label" backdoor attacks against machine learning-based malware classifiers. By leveraging explainable AI techniques, the authors demonstrate how attackers can subtly inject malicious triggers into training data, causing classifiers to misclassify malware as benign without altering the original labels. This research highlights a significant vulnerability in current ML-driven security systems and underscores the difficulty of defending against such sophisticated attacks.

What Problem Does This Paper Address?

The increasing reliance on Machine Learning (ML) for malware classification, particularly by security vendors who often use crowdsourced threat feeds for training data, presents a critical vulnerability. While evasion attacks aim to fool models at inference time, this paper focuses on poisoning attacks, where the training data itself is manipulated. Specifically, they address backdoor poisoning attacks, where a hidden trigger is embedded into the model's learning process. The challenge is that attackers often don't control the labeling process (hence "clean-label" attacks), meaning they can't simply flip labels. This paper tackles how to create effective backdoors in feature-based ML malware classifiers under these constraints, aiming to make malicious files appear benign without raising suspicion.

Methods

The core innovation lies in using explainable AI (XAI) techniques, specifically SHapley Additive exPlanations (SHAP), to guide the creation of backdoor triggers. The authors propose a two-step process:

  1. Feature Selection: Using SHAP values, they identify features that have the most significant influence (either positive or negative) on a model's decision. They explore two strategies:
  2. LargeSHAP: Summing SHAP values to find features important for a specific class (malware or benign).
  3. LargeAbsSHAP: Summing the absolute SHAP values to find features that are generally important, regardless of class.
  4. Value Selection: Once features are selected, they choose specific values for these features to form the trigger. They employ three selectors:
  5. MinPopulation: Selects values that appear infrequently in the benign dataset, aiming for high leverage in sparse, weak-confidence areas.
  6. CountSHAP: Selects values that are common in the benign dataset and have strong "benign" SHAP values, aiming to blend in.
  7. CountAbsSHAP: A hybrid approach that balances feature importance with low confidence.

They also introduce two attack strategies: Independent Selection (optimizing each feature/value pair independently) and Greedy Combined Selection (iteratively building the backdoor by selecting feature-value pairs that are consistent with existing benign data).

Datasets

The paper utilizes several well-established datasets for malware classification:

  • EMBER (Windows executables): A large dataset of Windows Portable Executable (PE) files with 2,351-dimensional features.
  • Contagio (PDFs): A dataset of PDF files with 135-dimensional features extracted using the PDFRate specification.
  • Drebin (Android executables): A dataset of Android applications represented by boolean vectors of over 545,000 statically extracted features.

The authors also developed a watermarking utility for Windows PE files and similar behavior-preserving alteration methodologies for Android and PDF files to demonstrate the practical feasibility of their attacks.

Key Insights and Ideas

  • XAI as an Attacker's Tool: The paper demonstrates that explainability techniques, often developed for understanding models, can be repurposed by attackers to craft highly effective, targeted attacks.
  • Clean-Label Backdoors are Feasible: The research shows that it's possible to create powerful backdoor attacks without needing to alter the original labels of the training data, making them harder to detect.
  • Model-Agnostic Attacks: The SHAP-based approach allows the attack methodology to be applied to a diverse range of ML models, not just specific architectures.
  • Stealthy Attacks: The "Greedy Combined Selection" strategy, which embeds triggers in high-density benign regions, is particularly stealthy, making it difficult to distinguish from normal data variations.
  • Transferability: Attacks can be transferable, meaning a backdoor trained on one model can sometimes affect another, even with different architectures.

Key Results

  • High Attack Success Rates: The proposed attacks achieved high success rates in reducing the accuracy of backdoored malware classifiers (Acc(F♭, X♭)) to very low levels (e.g., <3% for LightGBM with a 1% poison rate).
  • Good Generalization: Despite successful poisoning, the backdoored models generally maintained good generalization on clean data (Acc(F♭, X) remained high).
  • Stealthy Impact: The "Combined" strategy resulted in minimal changes to the clean model's accuracy on benign samples, making it hard to detect.
  • EmberNN Resilience: Neural networks (EmberNN) showed more resilience than tree-based models (LightGBM), requiring larger trigger sizes for comparable attack effectiveness.
  • Mitigation Challenges: Existing defensive strategies (spectral signatures, HDBSCAN, Isolation Forest) showed varying degrees of success, with the "Combined" attack strategy proving particularly difficult to mitigate.

Limitations and Future Work

  • Feature Space Knowledge: The current attacks assume the attacker knows the feature space used by the victim model. Future work could explore more generic attacks that don't require this knowledge.
  • General Mitigation: Developing robust defenses against stealthy, model-agnostic, clean-label attacks, especially the "Combined" strategy, remains a significant challenge.
  • Dynamic Analysis: The paper primarily focuses on static features. Extending these attacks to models that incorporate dynamic analysis would be a valuable future direction.
  • Advanced Attackers: The current evaluation uses commodity goodware/malware. Advanced attackers could create custom software to better align with watermarks, potentially increasing attack impact.

Summary updated

BibTeX
@misc{severi2020exploring,
  author = {Giorgio Severi and Jim Meyer and Scott Coull and Alina Oprea},
  title = {{Exploring Backdoor Poisoning Attacks Against Malware Classifiers}},
  year = {2020},
  eprint = {2003.01031},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2003.01031},
}
Figure