Skip to main content
QUICK REVIEW

[Paper Review] MAB-Malware: A Reinforcement Learning Framework for Attacking Static Malware Classifiers

Wei Song, Xuezixiang Li|arXiv (Cornell University)|Mar 6, 2020
Advanced Malware Detection TechniquesComputer Science53 references22 citations
TL;DR

MAB-Malware proposes a black-box reinforcement learning framework that frames adversarial malware attack generation as a multi-armed bandit problem, optimizing exploration and exploitation to maximize evasion rates. It achieves 74%–97% evasion on state-of-the-art ML detectors and 32%–48% on commercial AVs by minimizing payload changes and reusing successful payloads, enabling effective, interpretable attacks on static malware classifiers.

ABSTRACT

Modern commercial antivirus systems increasingly rely on machine learning to keep up with the rampant inflation of new malware. However, it is well-known that machine learning models are vulnerable to adversarial examples (AEs). Previous works have shown that ML malware classifiers are fragile to the white-box adversarial attacks. However, ML models used in commercial antivirus products are usually not available to attackers and only return hard classification labels. Therefore, it is more practical to evaluate the robustness of ML models and real-world AVs in a pure black-box manner. We propose a black-box Reinforcement Learning (RL) based framework to generate AEs for PE malware classifiers and AV engines. It regards the adversarial attack problem as a multi-armed bandit problem, which finds an optimal balance between exploiting the successful patterns and exploring more varieties. Compared to other frameworks, our improvements lie in three points. 1) Limiting the exploration space by modeling the generation process as a stateless process to avoid combination explosions. 2) Due to the critical role of payload in AE generation, we design to reuse the successful payload in modeling. 3) Minimizing the changes on AE samples to correctly assign the rewards in RL learning. It also helps identify the root cause of evasions. As a result, our framework has much higher black-box evasion rates than other off-the-shelf frameworks. Results show it has over 74\%--97\% evasion rate for two state-of-the-art ML detectors and over 32\%--48\% evasion rate for commercial AVs in a pure black-box setting. We also demonstrate that the transferability of adversarial attacks among ML-based classifiers is higher than the attack transferability between purely ML-based and commercial AVs.

Motivation & Objective

  • To develop a practical black-box adversarial attack framework for static malware classifiers, given that real-world AVs only expose hard labels.
  • To overcome the limitations of stateful modeling in existing RL-based attack frameworks by adopting a stateless, multi-armed bandit approach to reduce search space complexity.
  • To improve evasion success by reusing successful payloads and minimizing feature modifications to maintain functionality and improve reward signal clarity.
  • To enable interpretable evasion analysis by identifying key actions and features responsible for bypassing AVs and ML detectors.
  • To evaluate transferability of adversarial examples across different malware detection systems, including commercial AVs and ML-based classifiers.

Proposed method

  • Models the adversarial attack generation as a multi-armed bandit problem, where each action (e.g., adding a section, modifying headers) is treated as an arm with a stochastic reward.
  • Uses a stateless action selection mechanism to avoid combinatorial explosion, assuming actions are independent and do not depend on prior actions.
  • Introduces an Action Minimization module that filters out ineffective actions and limits changes to minimal, functional modifications to preserve malware behavior.
  • Reuses successful payload content from prior trials to accelerate convergence and improve exploration efficiency in the bandit setting.
  • Assigns rewards based on classification outcomes (evasion success), with a focus on minimizing perturbations to ensure meaningful reward signals and interpretability.
  • Dynamically adds new actions with unseen content based on observed success, enabling adaptive exploration without prior knowledge of the attack surface.

Experimental results

Research questions

  • RQ1Can a reinforcement learning-based black-box framework achieve significantly higher evasion rates than existing off-the-shelf methods on both ML-based malware detectors and commercial AVs?
  • RQ2How does the stateless multi-armed bandit formulation improve scalability and performance compared to stateful RL models in adversarial malware generation?
  • RQ3To what extent can successful payloads be reused to accelerate the discovery of effective adversarial transformations?
  • RQ4What minimal changes to PE files are sufficient to evade detection while preserving functionality, and which features are most responsible for evasion?
  • RQ5How transferable are adversarial examples across different malware detection systems, particularly between ML-based classifiers and commercial AVs?

Key findings

  • MAB-Malware achieves an evasion rate of 74%–97% on two state-of-the-art machine learning-based malware detectors in a pure black-box setting.
  • The framework demonstrates a 32%–48% evasion rate against six commercial antivirus engines, significantly outperforming prior RL-based methods.
  • The use of a stateless bandit model reduces learning complexity and enables faster convergence compared to stateful RL approaches.
  • Reusing successful payloads and minimizing feature changes leads to more stable and interpretable adversarial examples, with clear attribution of evasion causes.
  • Adversarial attacks show higher transferability among ML-based classifiers than between ML-based models and commercial AVs, indicating architectural and detection mechanism differences.
  • The framework enables interpretable analysis by identifying key actions and features responsible for evasion, such as specific section additions or header modifications.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.