[Paper Review] Adversarial Deep Learning for Robust Detection of Binary Encoded Malware
This paper proposes a robust adversarial training framework, Sleipnir, for detecting binary-encoded malware by adapting continuous-space saddle-point optimization to the discrete binary domain. It introduces four methods to generate functionally preserved adversarial malware examples and demonstrates that randomized inner maximization achieves up to 3.0× higher blind spot coverage and 2.4% lower false negative rate than baseline models, with an online measure ($\bar{\mathcal{N}}_{BS}$) correlating with robustness.
Malware is constantly adapting in order to avoid detection. Model based malware detectors, such as SVM and neural networks, are vulnerable to so-called adversarial examples which are modest changes to detectable malware that allows the resulting malware to evade detection. Continuous-valued methods that are robust to adversarial examples of images have been developed using saddle-point optimization formulations. We are inspired by them to develop similar methods for the discrete, e.g. binary, domain which characterizes the features of malware. A specific extra challenge of malware is that the adversarial examples must be generated in a way that preserves their malicious functionality. We introduce methods capable of generating functionally preserved adversarial malware examples in the binary domain. Using the saddle-point formulation, we incorporate the adversarial examples into the training of models that are robust to them. We evaluate the effectiveness of the methods and others in the literature on a set of Portable Execution~(PE) files. Comparison prompts our introduction of an online measure computed during training to assess general expectation of robustness.
Motivation & Objective
- To address the vulnerability of malware detectors to adversarial examples that evade detection while preserving malicious functionality.
- To adapt continuous-domain robust adversarial training methods—specifically saddle-point optimization—to the discrete, binary feature space typical of malware.
- To develop a training framework that generates adversarial examples preserving functionality and improves model robustness against evasion.
- To introduce an online training metric ($\bar{\mathcal{N}}_{BS}$) to assess the general expectation of model robustness during training.
- To evaluate the framework on Portable Executable (PE) files and compare robustness against existing adversarial crafting methods.
Proposed method
- The Sleipnir framework uses a saddle-point optimization formulation to train deep neural networks (DNNs) on binary-encoded malware features, treating robustness as a min-max game.
- Four inner maximization methods—dFGSM$^k$, rFGSM$^k$, BGA$^k$, and BCA$^k$—are proposed to generate adversarial malware examples in the binary domain while preserving functionality.
- Randomization is applied during the rounding step of projected gradient descent to enhance exploration of the adversarial space and increase blind spot coverage.
- The framework incorporates adversarial examples into the training process via adversarial training, minimizing the worst-case loss over perturbations.
- An online measure $\bar{\mathcal{N}}_{BS}$, computed using a Bloom filter, approximates the number of distinct adversarial samples generated during training to assess robustness.
- The method is evaluated on a dataset of 7,600 PE files (3,800 benign, 3,800 malicious) with $k=50$ perturbations per sample.
Experimental results
Research questions
- RQ1Can saddle-point optimization formulations from continuous domains be effectively adapted to the discrete binary domain of malware features?
- RQ2Can adversarial examples be generated in the binary domain such that they preserve the malicious functionality of the original malware?
- RQ3Does incorporating randomized inner maximization in adversarial training significantly improve model robustness against evasion attacks?
- RQ4Can an online training metric $\bar{\mathcal{N}}_{BS}$ reliably reflect the general expectation of model robustness during training?
- RQ5How does the proposed framework compare in robustness to existing adversarial crafting methods, such as [13]’s method, on real-world PE files?
Key findings
- The randomized rFGSM$^k$ method achieved the highest blind spot coverage ($\mathbf{+3.0}$) and the lowest false negative rate ($\mathbf{-2.4}$) compared to the natural baseline.
- The rFGSM$^k$ method reduced the false positive rate by 3.6% and maintained high accuracy, outperforming other adversarial training methods.
- The model trained with rFGSM$^k$ showed an evasion rate of only 5.7% against its own expected adversary, indicating strong robustness.
- The online measure $\bar{\mathcal{N}}_{BS}$ showed a strong correlation with evasion rates and blind spot coverage, validating its use as a real-time robustness indicator.
- The model trained with the randomized method was robust to [13]’s adversarial crafting method, achieving a 15.6% evasion rate—significantly lower than the 99.7% evasion rate of the natural model.
- The framework demonstrated that randomization in the rounding step of projected gradient descent uncovered roughly four times more malicious samples in the binary feature space than natural training.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.