Here is a concise, engaging summary of the paper, tailored for a technically literate audience.
Empirical Analysis of Evasion and Poisoning Against Malware Data Drift Detection
TL;DR
Machine learning malware classifiers degrade over time due to evolving software patterns, prompting defenders to deploy data drift detectors to flag out-of-distribution samples. This paper reveals a fascinating security paradox: traditional evasion and poisoning attacks designed to fool classifiers often fail against these drift detectors because large adversarial perturbations or excessive poisoning samples inadvertently trigger drift alerts.
What Problem Does This Paper Address?
Malware and benign software constantly evolve—a phenomenon known as concept drift. Consequently, static machine learning (ML) malware classifiers quickly become outdated. To counter this, defenders deploy data drift detectors (such as CADE or Transcendent) alongside classifiers. These detectors flag suspicious, out-of-distribution (OOD) samples for human triage, allowing defenders to reject uncertain predictions or continuously retrain their models.
While adversarial evasion (test-time manipulation) and poisoning (training-time manipulation) attacks against standalone ML classifiers are well-studied, their efficacy against a combined system (Classifier + Drift Detector) remains unclear. For an attack to succeed in the real world, a malware sample must achieve two conflicting goals: it must fool the classifier into labeling it as benign, and it must evade the drift detector to avoid human inspection.
Methods
The authors evaluate how data drift detectors alter the security landscape under a black-box threat model where the attacker only has partial knowledge (10% of the training data) and must rely on surrogate models.
They generate a universal perturbation (or backdoor trigger) using two different surrogate strategies:
- Option 1 (Surrogate MLP): Optimizes a perturbation using cross-entropy loss to push malware samples across the classifier's decision boundary into the benign class.
- Option 2 (Surrogate Contrastive Autoencoder - CAE): Minimizes the Mean Squared Error (MSE) in the embedding space to draw malware samples closer to the centroid of the benign class.
These perturbations are evaluated across two attack scenarios:
- Evasion Attack: The universal perturbation is added directly to malware test samples.
- Clean-Label Backdoor Poisoning: The perturbation is added to benign training samples. The victim trains their models on this poisoned data, causing the classifier to later misclassify any malware containing the backdoor trigger as benign.
Datasets
The authors evaluated their approaches on two prominent security benchmarks spanning multiple months to simulate real-world drift:
- BODMAS Dataset: Contains Portable Executable (PE) malware and benignware. Features are numerical with varying ranges, scaled between 0 and 1. The authors restricted modifications to 17 specific features to ensure the malware's binary functionality remained intact.
- Androzoo Dataset: Contains Android applications with sparse binary features (0 or 1) indicating component presence. The authors used Recursive Feature Elimination (RFE) to target the top 200 and 1000 most significant modifiable features.
Key Insights and Ideas
- The Perturbation Paradox: In standalone classifiers, larger adversarial perturbations typically guarantee higher attack success. However, when attacking a combined system using CADE, larger perturbations can actually cause the overall attack success rate to drop. The underlying Contrastive Autoencoder views large feature modifications as entirely unseen patterns, pushing the sample away from the benign centroid and triggering a drift alert.
- The Poisoning Crowding Effect: Counterintuitively, injecting more poisoning samples into a CAE-based drift detector can decrease attack success. Because CAEs utilize a reconstruction loss term, the model struggles to accurately reconstruct and differentiate a high volume of poisoned samples within the limited embedding space near the benign centroid. To compensate, the model pushes the backdoored samples further away from the benign cluster, causing the drift detector to flag them.
- Architecture Dictates Vulnerability: The choice of drift detector drastically changes what type of attack works. CADE (which measures distance to a class centroid) is highly sensitive to large feature changes. Conversely, Transcendent (which measures distance to an SVM decision boundary) is easier to evade using standard cross-entropy optimization because pushing a sample deep into the benign region naturally moves it away from the decision boundary, making it appear "non-drifted."
Key Results
- Evasion Baseline vs. Reality: Against a classifier alone, increasing the perturbation magnitude yields a near-100% success rate. However, when CADE is active, the overall success rate peaks early and then sharply declines as the perturbation size increases (Figure 1).
- Poisoning Diminishing Returns: In the poisoning experiments on the BODMAS dataset, increasing the number of injected poison samples from 100 to 1000 caused a distinct downward trend in the overall attack success rate for CAE-based detectors (Figure 3), directly contradicting traditional classifier-only poisoning dynamics where more poison equals better results.
Limitations and Future Work
- Feature Constraints: The attacks operate under strict real-world constraints (e.g., features can only be increased, not decreased, to preserve malware functionality). More permissive feature spaces might yield different drift behaviors.
- Adaptive Attacks: The study primarily looks at attacks optimized against either the classifier or the embedding space independently. The authors note that future work should explore joint optimization strategies that explicitly attempt to balance minimizing classification loss while simultaneously minimizing drift anomaly scores.
Summary updated