Learning to Look Benign: Targeted Evasion of Malware Detectors via API Import Injection
Juozas Dautartas, Olga Kurasova, Juozapas Rokas \v{C}ypas, Viktor Medvedev

TL;DR
This paper demonstrates that malware can be intentionally misclassified as benign by adding a small number of API calls, exposing a vulnerability in static malware detectors.
Contribution
It introduces a CVAE-based framework for targeted API import injection that preserves malware functionality and effectively evades detection.
Findings
Adding 20 API imports reduces malware recall from 87.5% to 30%.
99% of evading samples are classified as the target benign category.
The attack transfers to commercial detection engines, reducing detection rates by 54.5%.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
