pith. sign in

arxiv: 1801.08917 · v2 · pith:7VLIQB2Vnew · submitted 2018-01-26 · 💻 cs.CR

Learning to Evade Static PE Machine Learning Malware Models via Reinforcement Learning

classification 💻 cs.CR
keywords learningmalwareanti-malwaremachinemodeladversarialattacksdetection
0
0 comments X
read the original abstract

Machine learning is a popular approach to signatureless malware detection because it can generalize to never-before-seen malware families and polymorphic strains. This has resulted in its practical use for either primary detection engines or for supplementary heuristic detection by anti-malware vendors. Recent work in adversarial machine learning has shown that deep learning models are susceptible to gradient-based attacks, whereas non-differentiable models that report a score can be attacked by genetic algorithms that aim to systematically reduce the score. We propose a more general framework based on reinforcement learning (RL) for attacking static portable executable (PE) anti-malware engines. The general framework does not require a differentiable model nor does it require the engine to produce a score. Instead, an RL agent is equipped with a set of functionality-preserving operations that it may perform on the PE file. Through a series of games played against the anti-malware engine, it learns which sequences of operations are likely to result in evading the detector for any given malware sample. This enables completely black-box attacks against static PE anti-malware, and produces functional evasive malware samples as a direct result. We show in experiments that our method can attack a gradient-boosted machine learning model with evasion rates that are substantial and appear to be strongly dependent on the dataset. We demonstrate that attacks against this model appear to also evade components of publicly hosted antivirus engines. Adversarial training results are also presented: by retraining the model on evasive ransomware samples, a subsequent attack is 33% less effective. However, there are overfitting dangers when adversarial training, which we note. We release code to allow researchers to reproduce and improve this approach.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 3 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. Learning to Look Benign: Targeted Evasion of Malware Detectors via API Import Injection

    cs.CR 2026-05 unverdicted novelty 6.0

    A strictly additive CVAE framework injects 20 API imports to reduce malware recall from 87.5% to 30% while routing 99% of evaded samples into a pre-selected benign category, with transfer shown on VirusTotal.

  2. Adversarial Vulnerability Under Temporal Concept Drift: A Longitudinal Study of Android Malware Detection

    cs.CR 2026-05 unverdicted novelty 4.0

    Longitudinal evaluation over yearly Android app slices shows temporal drift reduces adversarial robustness of malware detectors, with expanding-window retraining providing partial mitigation but not full recovery.

  3. Adversarial Evasion in Non-Stationary Malware Detection: Minimizing Drift Signals through Similarity-Constrained Perturbations

    cs.CR 2026-04 unverdicted novelty 4.0

    Similarity-constrained adversarial perturbations reduce drift signals in malware classifiers while achieving evasion, with l2 regularization performing best.