MDEA: Malware Detection with Evolutionary Adversarial Learning

Xiruo Wang, Risto Miikkulainen

Abstract

Deep learning models for malware detection are often vulnerable to adversarial evasion attacks. This paper introduces MDEA (Malware Detection with Evolutionary Adversarial Learning), a framework that utilizes evolutionary optimization to generate sophisticated adversarial samples. By iteratively retraining the detector on these evolved variants, the system achieves a significant boost in robustness and detection accuracy, increasing performance from 90% to 93%.

Introduction

Deep learning models, particularly architectures like MalConv, have demonstrated high efficacy in detecting malware by analyzing raw binary data. However, these models are notoriously brittle. Minor, non-functional modifications to a malicious binary—such as altering section names or appending bytes—can lead to misclassification. Traditional gradient-based attack generation is often limited to simple modifications. MDEA addresses this by employing a diverse and complex evolutionary attack generator to stress-test and harden malware defenses.

Methodology

The MDEA framework operates as a closed-loop system consisting of a detection model and an evolutionary optimizer.

The MDEA cyclic framework for adversarial training.

The Detection Model

The system uses MalConv, a convolutional neural network (CNN) that processes raw byte sequences from Windows Portable Executable (PE) files to identify malicious patterns.

The Evolutionary Optimizer

Rather than relying on gradients, which are difficult to compute for discrete binary changes, MDEA uses an Evolutionary Algorithm (EA). The EA explores an action space of 10 modification methods, including packing/unpacking, entry point creation, and header checksum modification. A population of action sequences is evolved based on their "fitness"—their ability to trick the detector. Successful evasion patterns are then used to generate adversarial samples for retraining the model.

Experimental Setup

The study utilized a dataset of 14,288 PE files, comprising 7,371 malware samples from VirusShare and 6,917 benign samples gathered via web crawling. The data was split in a 9:1 ratio for training and validation, with an additional 100-sample test set to monitor for overfitting.

Results and Discussion

The iterative retraining process improved detection accuracy from 90% to 93%. The evolutionary approach proved significantly more effective than random modifications.

Detection accuracy trends for normal and 'dead species' populations.

As shown in the figure above, detection accuracy increases significantly as the model is exposed to more complex modifications (measured by the number of modified bytes). A key finding was the "Dead Species" problem, where irreversible actions (e.g., removing signatures) led to evolutionary dead ends. The authors addressed this by implementing validation weights to prioritize safer, reversible actions. Furthermore, the EA approach was 2-3 times faster than reinforcement learning methods, as it avoids the computational overhead of backpropagating action weights.

Conclusion and Future Work

MDEA demonstrates that evolutionary adversarial learning can effectively harden malware detectors. Future work will focus on expanding the action space to include more complex obfuscation techniques and refining the handling of irreversible modifications. Additionally, extending the model to multi-class classification could improve feature granularity and further reduce overfitting.

Summary updated

BibTeX
@inproceedings{wang2020mdea,
  author = {Xiruo Wang and Risto Miikkulainen},
  title = {{MDEA: Malware Detection with Evolutionary Adversarial Learning}},
  booktitle = {CEC},
  year = {2020},
  doi = {10.1109/cec48606.2020.9185810},
}
Figure