mlsanityData to 14 Oct 2026

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

arXiv 2605.18624 ↗First posted 18 May 2026cs.CR cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Machine learning-based malware detectors are widely deployed in antivirus and endpoint detection systems, yet their reliance on static features makes them vulnerable to adversarial manipulation. This paper investigates whether a malware sample can be intentionally misclassified as a specific benign software category, not merely as "not malware", by adding a small number of Win32 API imports characteristic of that selected category, without removing any existing imports or retraining the detector. We propose a framework centered on a Conditional Variational Autoencoder (CVAE) whose decoder is strictly additive. It can introduce new API calls but never remove existing ones, preserving malware functionality by design. For each malware sample, the framework automatically identifies which benign category it most closely resembles and uses that as the evasion target. A knowledge-distilled differentiable proxy enables gradient-based training against the non-differentiable ensemble detector. Experiments on a six-class dataset of binary Win32 API import vectors extracted from 3,799 Windows executables (five benign categories, one malware class) show that, against a detector achieving 87.5% malware recall, adding just 20 API imports reduces recall to 30%. At k=20, among samples that evaded detection, 99% are classified as the intended target category. The CVAE outperforms both a frequency-based baseline and random selection at every tested injection size (k = 5 to 50). Validation on real PE files submitted to VirusTotal confirms that the attack transfers to commercial static detection engines, with an average 54.5% reduction in flagging engines. These findings expose a concrete vulnerability in API-based malware classifiers and demonstrate that targeted evasion into a chosen benign category is achievable with minimal, functionality-preserving modifications.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 14 of its 39 references that are in the map. First posted on arXiv 18 May 2026.

Builds on

14 of 39 references.

References · 14

  1. 2015Distilling the Knowledge in a Neural Networkcited by 10,324
  2. 2020Supervised Contrastive Learningcited by 2,829
  3. 2017Generating Adversarial Malware Examples for Black-Box Attacks Based on GANcited by 75
  4. 2018Adversarial Malware Binaries: Evading Deep Learning for Malware Detection in Executablescited by 62
  5. 2018Learning to Evade Static PE Machine Learning Malware Models via Reinforcement Learningcited by 61
  6. 2020Functionality-preserving Black-box Optimization of Adversarial Windows Malwarecited by 58
  7. 2013Estimating or Propagating Gradients Through Stochastic Neuronscited by 55
  8. 2018Exploring Adversarial Examples in Malware Detectioncited by 42
  9. 2020Adversarial Deep Ensemble: Evasion Attacks and Defenses for Malware Detectioncited by 33
  10. 2018Android HIV: A Study of Repackaging Malware for Evading Machine-Learning Detectioncited by 19
  11. 2021Adversarial Attacks against Windows PE Malware Detection: A Survey of the State-of-the-Artcited by 18
  12. 2024Assessing the Impact of Packing on Machine Learning-Based Malware Detection and Classification Systemscited by 5
2 more
  1. 2021Analysis of Machine Learning Approaches to Packing Detectioncited by 2
  2. 2025Effectiveness of Adversarial Benign and Malware Examples in Evasion and Poisoning Attackscited by 2

Built on by

Not cited yet.