Phantomware: a Data Augmentation Framework for the Detection of Emerging Malware Campaigns
cs.CR
Submitted: 2026-10-14
Updated: 2026-10-14
Comments: 26 pages
Code: https://github.com/ninorullo/phantomware
License: http://creativecommons.org/licenses/by/4.0/
The gist: Detecting unseen malware variants remains a major challenge as malware families continuously evolve.
Terminology
Abstract
Detecting unseen malware variants remains a major challenge as malware families continuously evolve. This issue is exacerbated in data-scarce scenarios such as emerging malware campaigns, where only a few samples are available to train robust detectors. A common strategy is to proactively generate malware variants and use them as augmentation data to expose models to a broader range of potential threats. Existing approaches that generate functional malware variants through adversarial manipulation suffer from several important limitations. Generated samples must remain executable and preserve their malicious behavior, requiring costly validation through execution and analysis. Moreover, the adversarial objective provides limited control over the resulting augmentation dataset: it cannot guarantee the generation of sufficiently diverse variants, or even a single successful sample, making the effectiveness of the augmentation process inherently unpredictable. Finally, these approaches typically rely on a well-trained detector to guide generation, an assumption that may not hold in data-scarce scenarios such as early-stage malware campaigns. We formally and empirically demonstrate these limitations and propose Phantomware, a data augmentation framework designed for extreme data scarce scenarios. Phantomware operates entirely in the representation space of a pretrained malware detector, avoiding the costly generation and validation of functional binaries. By exploiting latent-space geometry, it generates synthetic malware representations of a target family in a controlled manner, providing a constructive guarantee on the generation of diverse training samples. Extensive experiments on real malware families demonstrate that Phantomware improves detection of unseen variants and provides robustness against both real and adversarially generated malware samples.
Sources
- LLMalMorph: On The Feasibility of Generating Variant Malware using Large-Language-Models
- Explaining Vulnerabilities of Deep Learning to Adversarial Malware Binaries
- Improving Robustness of Malware Classifiers using Adversarial Strings Generated from Perturbed Latent Representations
- Certified Adversarial Robustness of Machine Learning-based Malware Detectors via (De)Randomized Smoothing
- Deceiving End-to-End Deep Learning Malware Detectors using Adversarial Examples
- Malware Detection by Eating a Whole EXE
- Breaking Windows Malware Detection: A Comprehensive Evaluation of Problem-Space Adversarial Robustness
Related papers
- SoK: AI-Augmented Binary Reversing
- Relaxed Sender Anonymity for CBDC Interbank Settlement: A Zero-Knowledge Approach on Permissioned EVM
- Calibration-Family Overfit: Why Trusted Sabotage Monitors Don't Transfer Across Lineages
- Estimating the Social Cost of Corporate Data Breaches
- Efficient Fuzzy PSI under One-Sided Assumptions
- Sealing the Audit-Runtime Gap for LLM Skills