betaFeedback

WorksComputer Science

Phantomware: a Data Augmentation Framework for the Detection of Emerging Malware Campaigns

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.

Introduction

Malicious software, commonly known as malware, has existed for decades and continues to represent one of the most persistent threats in modern computing systems. With the widespread adoption of the Internet and the growing interconnectedness of devices, the speed and scale at which malware can propagate have increased dramatically. Moreover, the evolution of artificial intelligence has enabled adversaries to deploy malicious code rapidly, diversify their attack vectors, and coordinate large-scale campaigns with unprecedented efficiency.

A major challenge in malware detection arises from the continual creation of malware variants. These variants are often generated through obfuscation techniques specifically engineered to evade existing defenses. Common evasion strategies, such as instruction reordering [40], function reordering [37], insertion of NOP operations [44, 59], and other semantic-preserving transformations, allow attackers to produce syntactically distinct programs that nevertheless retain their malicious functionality [6].

Malware variants that share the same behavioral intent but differ in their syntactic representation collectively constitute a malware family. In practice, variants belonging to well-represented families (i.e., families with a large number of known samples) are comparatively easier to detect, because classifiers can learn richer and more stable malicious patterns from the abundant training data. Conversely, variants from small families pose a harder detection problem due to the scarcity of available samples from which to learn discriminative features.

Motivations To address this issue, a natural strategy is to proactively generate malware variants that can supplement the training set, anticipating the evolution of small families. However, generating functional malware variants is time consuming because error-prone and computationally expensive: variants must remain executable and preserve the original malicious behavior, which typically requires validation through dynamic analysis in sandbox environments.

Malware generation can also be performed adversarially, that is, by creating variants specifically designed to evade a target detection system. The attack seeks functionality-preserving perturbations that moves the classifier’s decision toward the benign class while maintaining the malicious behavior of the original sample. The resulting evasion samples can then be used to retrain the detector, initiating a continual arms race in which the model is iteratively adapted to emerging attack strategies. However, despite the considerable progress achieved by adversarial malware generation as an offensive technique, its actual contribution to cybersecurity remains largely unexplored. Indeed, state-of-the-art adversarial approaches have been evaluated exclusively in terms of their evasion capability, where success is measured by their ability to bypass existing malware detectors (e.g., VirusTotal), whereas their effectiveness as defensive tools for improving detector robustness and generalization has been underinvestigated. Moreover, these approaches suffer from three critical limitations: (i) the process is time-consuming due to the need for functional correctness checks; (ii) when only a limited number of malware samples is available, the generation procedure may fail to produce a sufficiently large and/or diverse number of adversarial samples for effective finetuning; and (iii) it assumes the availability of a well-trained detector, which is unlikely in scarce-data scenarios, making the adversarial component practically ineffective when dealing with early-stage malware campaigns.

An alternative approach is to generate representations of malware variants, that is, synthetic malware embeddings within a learned latent domain rather than constructing functional executables. These generated embeddings do not correspond to real malware samples; instead, they serve as constructive artifacts that approximate the potential distribution of small malware families. By enriching the embedding space in this way, detectors can be trained on a more diverse set of representations and can expand their decision boundaries toward regions that real future variants may plausibly occupy, eliminating the need for costly functionality validation. However, existing approaches rely on an adversarial generation objective, which provides only limited control over the location of the generated samples, as their primary goal is to induce misclassification. Consequently, the generated samples typically concentrate around the detector’s decision boundary, providing limited coverage of other potentially challenging regions of the latent space. Moreover, these approaches generally assume access to tens or hundreds of real samples [29, 52], and their effectiveness in early-stage malware campaigns, where only a handful of samples are available, has not been demonstrated.

Contribution To fill these gaps, we propose Phantomware, a geometry-guided embedding generation approach which synthesizes malware-like latent representations by perturbing representative benign embeddings along malware-discriminative directions. The method does not require a large corpus of malware data, and leverages the geometric structure of the benign manifold to generate hard synthetic malware embeddings that populate challenging regions of the feature space. Since Phantomware operates entirely in the learned latent space, the generated samples correspond to plausible feature-space variations of malware rather than fully functional or semantically meaningful executable files. These synthetic representations are subsequently used to finetune the detector, enhancing its robustness against underrepresented malware families. The name Phantomware reflects the essence of the approach: the generated embeddings are “phantoms” – latent representations with no corresponding physical counterpart.1

Our contributions can be summarized as follows:

  • We provide a systematic assessment of adversarial malware generation techniques as data augmentation strategies. Through both formal analysis and extensive empirical evaluation, we demonstrate that existing adversarial approaches cannot guarantee the generation of sufficiently diverse and representative synthetic samples, thereby limiting their effectiveness in improving detector robustness and generalization.

  • We present Phantomware, a geometry-guided data augmentation framework designed for improving the detection performance of pretrained malware detectors with minimal computational effort and minimal reliance on malware data, making it suitable for extreme data-scarce scenarios such as emerging malware campaigns. We demonstrate the effectiveness of Phantomware through an extensive experimental evaluation on both real malware families and adversarially generated malware samples. We make the Phantomware implementation publicly available in an open-source repository.2

The rest of the paper is organized as follows. In Section 2 we discuss related work; in Section 3 we formally demonstrate the limitations of adversarial generation approaches; in Section 4 we describe the Phantomware framework; in Section 5 we empirically demonstrate either the effectiveness of Phantomware and the shortcomings of adversarial approaches through an extensive set of experiments; finally, in Section 6 we conclude the paper.

Related Work

Malware research has progressed along two complementary directions, often regarded as two sides of the same coin: malware detection and malware variant generation. Detection methods typically rely on supervised models trained on large datasets and fall into two categories: static analysis [19, 22, 30, 47, 48], which is fast and lightweight but struggles with obfuscated samples, and dynamic analysis [26, 35, 46], which handles obfuscation better but is slower and resource-intensive.

The second research direction focuses on generating variants to anticipate attackers and improve detector robustness. Problem-space approaches produce variants that preserve malicious behavior, often using adversarial strategies aimed at evading a target detector. Feature-space approaches operate directly in the embedding space, producing synthetic malware representations in place of functional executables.

Problem-space approaches

Problem-space approaches generate functional malware variants by modifying malware artifacts at different levels of abstraction, including source code, assembly code, and binary code, as well as by leveraging intermediate representations such as embedding spaces. A key challenge across these approaches is preserving malware functionality. In particular, methods operating on intermediate or surrogate representations, such as embeddings, must map the generated variants back into the original malware space to obtain executable samples while preserving their behavior.

We can be broadly distinguish these approaches into adversarial and non-adversarial, depending on whether the generated variants are explicitly designed to evade detection.

Non-adversarial methods

At the source-code level, researchers have leveraged the semantic and syntactic code comprehension abilities of Large Language Models to automate variant creation. Botacin [5] show that GPT-3 can readily obfuscate code, for example by generating multiple alternative implementations of the same function. Building on this idea, Akil et al. introduce LLMalMorph [1], a Codestral-22B–based framework that extracts function-level characteristics and uses custom prompts and transformation rules to guide variant generation without requiring model finetuning.

At the assembly-code level, other methods generate variants by inserting new API-call sequences into the program [38], or by replacing the system call dependency graph with a semantically equivalent alternative, producing syntactically different yet behaviorally identical malware samples [41].

Adversarial methods

Recent studies [21, 23, 27, 60] employ GAN-based frameworks to generate adversarial malware samples capable of evading black-box detectors. In [21, 27, 60], the generator takes both benign and malicious samples as input to produce adversarial variants. These variants, together with benign samples, are submitted to the black-box detector to obtain target labels. The labeled data is then used to train the GAN’s discriminator, allowing it to serve as an effective surrogate for the black-box detector. Samples that successfully evade this surrogate model are considered valid adversarial examples. In [23], Gilbert et al. propose applying mutations directly in the embedding space. The generator aims to produce malware samples whose feature representations closely resemble those of benign executables, while the discriminator outputs a “benignness” score for each sample. The feature set includes byte-frequency distributions, imported libraries and functions, and ASCII strings extracted from the executable.

Grosse et al. [25], followed by Greco et al. [24], employ the Jacobian-based Saliency Map Attack (JSMA) as the core mechanism of their malware generation frameworks. Introduced by Papernot et al. [43], JSMA is an adversarial crafting technique that leverages the model’s Jacobian matrix to identify the minimal set of input features whose modification is most likely to induce misclassification.

In [18, 57, 58, 59] the authors propose a reinforcement learning–based approach in which an agent learns to modify executables to evade detection. During training, the agent observes the current version of the malware and decides which modification to apply.

Ling et al. [37] modify the control-flow graph (CFG) of the original malware by replacing CALL instructions with a JUMP to a relocated CALL, producing a semantically equivalent executable with a different CFG.

Kolosnjaji et al. [31] and Lucas et al. [40] adopt a gradient-based optimization approach in which manipulations are iteratively applied to the executable as long as they move in the malware direction. Then, the process terminates as soon as the sample is classified as goodware.

The manipulation and perturbation techniques employed in the adversarial approaches discussed above are diverse. Beyond code reorganization [37], malware variants are also commonly generated through code insertion and code modification techniques. In [10, 14, 53], the authors use a genetic algorithm to mutate malware code by inserting pass statements [10], API calls [53], or padding bytes [14]. Each mutated sample is tested against a detector, and further mutations are applied until evasion is achieved. In [14, 31, 33], the authors consider the addition of padding bytes only, to guarantee that the original malware code remains untouched. In [44, 59], the authors propose to insert NOP operations iteratively until the obtained variant evades a given detector. In [18, 51], bytes are injected to the empty sections of the executable (e.g., file overlay and empty spaces between sections) that does not affect the execution logic. In [17, 27, 53, 57, 60], the authors select a set of API calls to be injected among those that do not disrupt the original functionality of the program. Lucas et al. [40] apply simple transformations to the assembly code, such as in-place randomization or code displacement.

Rosenberg et al. [50] emulate a black-box detector using a white-box model, to which an explainability technique is applied to identify the features that most strongly influence classification. These features are then modified to generate adversarial samples. The selected features, such as the total number of strings, average string length, Windows path count, and byte histogram, are chosen to preserve program semantics. Similarly, De Rose et al. propose OLIVANDER [11], a counterfactual-based method which provides LIEF-based explanations for model predictions by suggesting the minimal changes to input examples to modify the original prediction.

Only a limited number of studies have investigated the effectiveness of adversarial malware generation techniques as a defensive mechanism through adversarial training. Existing evaluations [20, 39] rely on the same attack strategies to generate both training and test samples, leaving it unclear whether the resulting models can generalize to unseen attacks. To fill this gap, Zainab et al. [56] have explicitly investigated the applicability of adversarial training, revealing substantial variability in attack effectiveness and transferability across models and datasets, and showing that adversarial hardening, although beneficial in some cases, does not consistently protect against diverse attack strategies.

Feature-space approaches

Unlike behavior-preserving malware generation techniques, which focus on producing functional executables, feature-space approaches aim to construct a sufficiently large and diverse set of training data to support effective learning. Since machine learning models operate on vectorial representations, it is sufficient to generate synthetic malware embeddings that closely resemble those observed in practice, as they can still provide meaningful training signals for the model. A common approach to generate such vectorial representations is the use of a GAN [2, 3, 7, 9, 29, 49, 52], which learns the underlying distribution of real malware embeddings and generate new samples that lie on the same data manifold. Malware embeddings are often obtained as images derived from the malware bytecode, with each pixel determined by the byte value.

In [29], Kim et al. train an autoencoder on malware samples and then repurpose the decoder as the generator in a GAN. After training the GAN, the discriminator is employed as a malware detector. Rahman et al. [49] propose a hybrid data augmentation technique based on a deep convolutional GAN plus traditional image transformation methods. In [3, 52], the authors focus on generating realistic malware variants by learning feature transformations between similar samples using a CycleGAN. Tekerek and Yapici [52] implement this by training a CycleGAN on intra-family samples to synthesize new variants. Ashawa et al. [3] train a CycleGAN to convert a static binary image into an image derived from a memory dump of its execution, and vice versa. Note that while CycleGANs are typically used for image translation between two distinct domains, in this setting the domains correspond to different malware samples within the same family.

Recently, Yang et al. [54] have shown that diffusion models can be adopted as data augmentation tools in the malware domain. They pre-train a diffusion model on existing malware image data to capture generic malicious textures, then they finetune this foundation model using images from the target family. Finally, images from the target family act as seeds for the finetuned model, which iteratively generates new variants. The newly generated images are continually added back into the target family’s training set to serve as seeds for subsequent epochs.

In [28] and [8] the authors use image-specific data augmentation techniques such as feature standardization, image flipping, shifting, and rotation, as well as the addition of Gaussian, Poisson, and Laplace noise as data augmentation approaches.

In [4, 45], the authors propose the use of a pre-trained LLM to map malware instructions into a latent space. Then, a variational autoencoder [4] and an adversarial reconstruction network [45] are used to generating realistic embedding variants of malware.

Finally, Al-Essa et al. [2] propose deriving synthetic malware embeddings from adversarial examples rather than from real samples. While this strategy outperforms methods relying solely on adversarial samples, it remains less efficient than approaches operating entirely within the latent space. Indeed, generating synthetic data still requires first crafting adversarial examples in the original malware space, which entails the computational and semantic constraints associated with malware manipulation before any latent-space processing can occur. Furthermore, like the other works discussed so far, Al-Essa et al. do not address emerging malware campaign scenarios, as their method still relies on thousands of original malware to generate the adversarial examples.

Discussion

Despite the advancements in (adversarial) functional malware generation, several significant limitations persist, particularly regarding their real-world applicability and defensive utility. A primary challenge stems from the nature of acceptable perturbations in the malware domain: unlike image classification, where changes are continuous, malware inputs consist of discrete features, greatly reducing the span of acceptable modifications. Moreover, perturbations that are syntactically valid in the problem space may be irrelevant to the detector. This challenge is further compounded by the requirement that any modification must preserve malicious functionality, often necessitating dynamic analysis in sandbox environments.

Beyond inefficiency, several other factors limit the effectiveness of these approaches for defensive purposes. First, many existing methods rely on iterative random transformations, however, greedily selecting effective manipulations tends to reduce the diversity of adversarial perturbation sequences. Second, adversarial training is only effective against the specific perturbation pattern fed to the model, and exhaustively generating adversarial examples with all possible patterns may be highly time consuming. Third, the availability of a well-trained detector cannot be assumed in data-scarce settings, rendering the adversarial component largely ineffective for small malware families. Finally, the common assumption that attackers apply only minimal syntactic perturbations is not always true. For example, a ransomware family may evolve from directly encrypting files to using process injection to achieve the same malicious objective. Although the malicious intent remains unchanged, the execution semantics differ substantially, producing a semantic rather than purely syntactic variant. Consequently, obfuscation-based generation strategies may fail to capture such variations.

Overall, these limitations make adversarial malware generation a constrained strategy for learning robust and generalizable detection models from limited malware data, since they cannot guarantee the generation of sufficiently diverse, representative, and semantically rich training samples. Moreover, existing research heavily focuses on evasion capability, measuring success solely by how effectively samples bypass current detectors (e.g., VirusTotal), while completely overlooking whether these adversarial approaches actually improve a detector’s robustness and generalization.

On the other hand, feature-space approaches are generally more efficient than techniques that operate in the malware space, as they avoid the need for constraint-driven generation and computationally expensive validation procedures. However, existing methods remain fundamentally adversarial in nature, generating synthetic representations by perturbing real ones to cross the detector’s decision boundary. As a result, the generated embeddings tend to concentrate in the vicinity of the boundary, leaving more distant regions of the latent malware manifold largely unexplored.

Finally, we note that both problem-space and embedding-based approaches depend on the availability of a sufficiently large and representative set of real malware samples. For the former, the diversity of generated variants is constrained by that of the original malware instances, whereas embedding-based methods are limited by the latent distribution learned from the available training samples. Consequently, in data-scarce scenarios, both approaches struggle to generate sufficiently diverse and representative synthetic data, limiting their ability to improve detector robustness and generalization.

To address these gaps, we propose an embedding-based data augmentation framework capable of generating synthetic malware representations starting from the available goodware samples and from a limited number of malware instances, enabling the generation of representative augmentation data even in highly data-scarce scenarios.

A Formal Proof of the Limitations of Problem-space Adversarial Generation Approaches

Adversarial malware generation can be naturally formulated as a constrained optimization problem, where the objective is to identify a functionality-preserving malware variant that is misclassified by a target detector. Starting from an original malware sample, an adversarial attack iteratively explores the space of admissible perturbations by generating candidate variants, evaluating them against the target detector, and selecting the next perturbation according to its optimization strategy (e.g., gradient-based or heuristic search). Each optimization step constitutes one iteration of the attack. The effectiveness of this process therefore depends on both the existence of feasible adversarial solutions and the ability of the optimization algorithm to discover them within a finite number of iterations. In the following, we show that neither property can be guaranteed in general.

Let mm be a malware sample, let D:X→{0,1}D : \mathcal{X} \to\{0,1\} be a malware detector, where D(x)=1D(x) = 1 denotes the malware class and D(x)=0D(x) = 0 the goodware class, and let V(m)⊆X\mathcal{V}(m) \subseteq\mathcal{X} denote the set of all functionality-preserving variants of mm. An adversarial generation algorithm A(m,D)A(m,D) seeks a sample m′∈V(m)m' \in\mathcal{V}(m) such that D(m′)=0D(m') = 0. Given a malware mm and a detector DD, we define the feasible evasion set as

E(m,D)={m′∈V(m)∣D(m′)=0}\mathcal{E}(m,D) = \{m' \in\mathcal{V}(m) \mid D(m') = 0\}

We immediately observe that the existence of an adversarial sample is not guaranteed. Indeed, V(m)\mathcal{V}(m) is a discrete and highly constrained search space, since every perturbation must preserve the original malicious functionality. Consequently, it is possible that the detector correctly classifies every functionality-preserving variant as malware, i.e.,

D(m′)=1,∀m′∈V(m)D(m') = 1, \forall m' \in\mathcal{V}(m)

which implies E(m,D)=∅\mathcal{E}(m,D)=\varnothing. In this case, the underlying optimization problem admits no feasible solution, and therefore no adversarial generation algorithm can produce a successful evading sample.

Even when E(m,D)≠∅\mathcal{E}(m,D)\ne\varnothing, no finite iteration budget can guarantee that an iterative adversarial algorithm AA will find an evading sample. Let

T(m,D,A)=min⁡{t>0∣At(m,D)∈E(m,D)}T(m,D,A)=\min\{t>0\mid A_t(m,D)\in\mathcal{E}(m,D)\}

denote the first iteration at which the attack generates a successful adversarial example, where AtA_t is the state of the attack after tt iterations. Since T(m,D,A)=∞T(m,D,A)=\infty whenever E(m,D)=∅\mathcal{E}(m,D)=\varnothing, and may be arbitrarily large even when E(m,D)≠∅\mathcal{E}(m,D)\ne\varnothing, no finite upper bound B<∞B<\infty exists such that T(m,D,A)≤BT(m,D,A)\le B for every malware sample mm, detector DD, and attack AA. Therefore, there exists no adversarial generation algorithm that can guarantee for every detector–malware pair the production of even a single successful evading sample within a finite number of iterations.

In practice, the number of adversarial samples generated from a given malware instance may vary significantly across attack strategies and can, in some cases, be zero. On the other hand, a given attack strategy may generate multiple successful variants for some malware samples, whereas for others it may fail to generate any. This uncertainty is further exacerbated in data-scarce scenarios, as the pool of adversarial samples is inherently constrained by the number and diversity of available real malware instances. As a result, both the size and diversity of the resulting synthetic malware set are difficult to control, limiting the reliability of adversarial generation as a data augmentation strategy.

The Phantomware Data Augmentation Pipeline

The limitations of existing data augmentation pipelines motivate the need for a non-adversarial approach that minimizes dependence on malware data to address the severe data scarcity characterizing emerging malware campaigns. To this end, we present Phantomware, a data augmentation pipeline that operates entirely in the representation space of a pretrained malware detector. Unlike previous approaches, Phantomware eliminates the need for binary manipulation and validation, avoids adversarial optimization procedures, and operates effectively in highly data-scarce settings, requiring even a single malware sample to characterize malware behavior while leveraging the diversity of the goodware population to generate representative synthetic malware embeddings. The proposed framework is model-independent as it can be applied to any machine learning-based malware detector.

Problem formulation

Let TT denote a target malware family, and MT={x1,…,xn}\mathcal{M}^{T}=\{x_1,\ldots,x_n\} denote the corresponding set of malware samples. Our objective is to augment the set MT\mathcal{M}^{T} with a synthetic dataset M~T={x~1…x~q}\widetilde{\mathcal{M}}^{T}=\{\widetilde{x}_1\ldots\widetilde{x}_q\} that captures relevant characteristics of TT while providing additional information about potential future variants. The resulting augmented dataset is then used to finetune a pretrained malware detector, with the goal of improving its ability to correctly classify unseen variants of TT. To achieve this, M~T\widetilde{\mathcal{M}}^{T} must provide sufficient diversity with respect to the available real samples in MT\mathcal{M}^{T}. A key requirement is that the augmentation procedure remains effective when ∣MT∣\lvert\mathcal{M}^{T}\rvert is small and therefore does not depend on the availability of a large corpus of target-family samples. Thus, the goal is not simply to increase the number of training samples, but to enrich the representation of a small malware family with informative samples that are complementary to the available real data.

In the context of Phantomware, we address this problem directly in the latent space of a pretrained malware detector. Rather than generating functional malware executables and subsequently processing them through the detector, we directly generate their latent vector representations, as these are the representations on which the machine learning model ultimately operates to perform classification. This avoids the constraints associated with generating, validating, and executing functional malware while allowing the augmentation process to directly target the representation space relevant to the detector.

The proposed framework consists of two complementary phases: (ii) a geometry-guided embedding generation method that produces synthetic representations of the target family, and (iiii) a lightweight finetuning procedure that incorporates both real and synthetic representations to adapt the detector to previously unseen variants.

Geometry-guided embedding generation

The core intuition behind Phantomware is to generate synthetic malware embeddings that lie close to the benign manifold while preserving discriminative characteristics of the target malware family, thereby populating benign-adjacent regions of the latent space with representative malicious samples. This design is motivated by the observation that the most challenging threats are not those located just beyond the decision boundary, but those whose representations closely resemble benign software, occupying regions where malicious samples are sparse or entirely absent.

Unlike existing adversarial malware generation approaches [21, 23, 27, 60], which perturb real malware samples with benign content (e.g., API calls, byte-frequency distributions, or ASCII strings) to induce detector evasion, our approach exploits the abundance of benign samples to characterize latent regions where future evasive malware may emerge. Rather than perturbing the few available malware samples from the target family, we generate synthetic embeddings by moving representative benign anchors along malware-discriminative directions. The resulting samples preserve the local geometry of the benign manifold while acquiring malware-specific characteristics, yielding hard training examples that enrich regions of the latent space largely unexplored by conventional adversarial methods. By explicitly populating these peripheral regions with synthetic malware representations, Phantomware exposes the detector to a broader spectrum of challenging scenarios, ultimately improving its robustness against subtle, benign-looking malware variants.

Goodware anchor selection

We select the goodware anchor set as the union of two complementary subsets of embeddings: boundary samples and frontier samples. Boundary samples are benign points located close to malware instances in the latent space and therefore near the decision boundary, where classification uncertainty is highest. Frontier samples, on the other hand, are benign points located at the periphery of the benign distribution. These samples capture low-density peripheral regions underrepresented in the training data, and where evading, benign-looking malware may appear. Together, boundary and frontier samples offer a diverse set of anchors from which realistic and challenging malware-like embeddings can be synthesized.

Let G\mathcal{G} denote the set of goodware embeddings, and MT\mathcal{M}^{T} denote the set of malware embeddings of the target family TT. To identify boundary samples, we define for each point g∈G\mathbf{g} \in\mathcal{G} a proximity-based score spbs_{\mathrm{pb}} measuring its closeness to the MT\mathcal{M}^{T} manifold:

spb(g)=log⁡∑j=1∣MT∣exp⁡(−∥g−mj∥2)s_{\mathrm{pb}}(\mathbf{g}) = \log\sum_{j=1}^{|\mathcal{M}^{T}|} \exp\left(-\lVert\mathbf{g} - \mathbf{m}_{j}\rVert_{2}\right)

where mj∈MT\mathbf{m}_{j} \in\mathcal{M}^{T}. The negative distance is converted into a similarity measure through the exponential function, such that malware samples closer to g\mathbf{g} contribute more strongly to the resulting score. The logarithm provides a smooth aggregation of these contributions, yielding a soft approximation of the negative distance to the nearest target-family malware sample. Consequently, goodware embeddings with higher scores are located in regions that are closer to the target-family malware representations and are therefore more likely to correspond to ambiguous regions of the latent space.

The set of boundary samples B\mathcal{B} is defined as the top-kk goodware embeddings with the highest proximity score:

B=arg max⁡g∈Gk(spb(g))\mathcal{B} = \underset{\mathbf{g}\in\mathcal{G}}{\operatorname{arg\,max}}^{k}\left(s_{\mathrm{pb}}(\mathbf{g})\right)

To capture the outer structure of the benign manifold, we identify frontier samples using a PCA-based representation. Let {vj}j=1k\{\mathbf{v}_{j}\}_{j=1}^{k} denote the top-kk principal components of G\mathcal{G}, obtained from a PCA decomposition of the goodware embedding space. We define the projection score of each embedding gi∈G\mathbf{g}_{i} \in\mathcal{G} onto direction vj\mathbf{v}_{j} as

si,j=giTvjs_{i,j} = \mathbf{g}_{i}^{\mathsf{T}}\mathbf{v}_{j}

For each principal direction jj, we select frontier samples as the ll largest and smallest projections:

Fj+={gi∈G∣si,j is among the top-l}\mathcal{F}^{+}_{j}=\{g_i\in\mathcal{G}\mid s_{i,j}\text{ is among the top-}l\}
Fj−={gi∈G∣si,j is among the bottom-l}\mathcal{F}^{-}_{j}=\{g_i\in\mathcal{G}\mid s_{i,j}\text{ is among the bottom-}l\}

The frontier set is defined as

F=⋃j=1k(Fj+∪Fj−)\mathcal{F}=\bigcup_{j=1}^{k}\left(\mathcal{F}^{+}_{j}\cup\mathcal{F}^{-}_{j}\right)

The final goodware anchor pool GA=B∪F\mathcal{G}^{A}=\mathcal{B}\cup\mathcal{F} is obtained by combining boundary and frontier samples, thereby covering both decision-interface regions and the outer geometry of the benign manifold.

Synthetic embedding generation

To guide the synthesis process, we first identify the latent directions associated with malicious behavior by computing a malware-discriminative displacement vector that captures the differences between the malware and goodware embedding distributions. For each latent dimension ii, we compute the difference between the corresponding class centroids:

di=μM,i−μG,id_i=\mu_{M,i}-\mu_{G,i}

where μM\mu_M and μG\mu_G are the mean embeddings of malware and goodware samples that belong to MT\mathcal{M}^{T} and GA\mathcal{G}^{A}, respectively. The sign of did_i encodes the direction of the shift toward the malware distribution, while its magnitude indicates how the latent dimension changes between the two classes.

To identify the dimensions that are most informative for distinguishing malware from goodware, we compute a Fisher-inspired discriminative score:

Fi=∣di∣σM,i+σG,i+ϵF_i=\frac{\lvert d_i\rvert}{\sigma_{M,i}+\sigma_{G,i}+\epsilon}

where σM,i\sigma_{M,i} and σG,i\sigma_{G,i} are the standard deviations of the ii-th latent dimension for malware and goodware embeddings, respectively. This score assigns higher importance to dimensions that exhibit a large separation between malware and goodware while having low intra-class variability.

The resulting scores are normalized and sharpened to obtain a continuous importance vector:

wi=(Fimax⁡jFj+ϵ)w_i=\left(\frac{F_i}{\max_j F_j+\epsilon}\right)

Finally, the malware-discriminative direction is obtained by weighting the signed displacement vector:

Δi=di⋅wi\Delta_i=d_i\cdot w_i

Δ\Delta preserves both the importance and the direction of each latent dimension, allowing the generation process to move benign embeddings toward the malware manifold while maintaining the intrinsic geometry of the latent space.

Given a benign anchor embedding g∈GAg\in\mathcal{G}^{A}, a synthetic malware embedding m~\tilde{m} is generated as:

m~=g+αΔ\tilde{m}=g+\alpha\Delta

where α\alpha controls the magnitude of the displacement. By varying α\alpha, the procedure can generate a set of synthetic embeddings spanning different regions between the benign manifold and malware regions of the latent space. For the generation of each single m~\tilde{m}, α\alpha is randomly sampled from a uniform distribution between 0.1 and 1.

This procedure generates hard synthetic samples that populate both the vicinity of the benign manifold and regions beyond the decision boundary. Notably, the approach ensures data generation even when only a single malware sample is available, as this suffices to extract malware-discriminative features that guide the perturbation of benign representations, making the method naturally suited to extreme data-scarce scenarios. In practice, the generation process provides a constructive guarantee on the existence of synthetic embeddings: a valid set of samples is always produced by design, unlike methods based on the adversarial generation of functional malware samples, which require a large corpus of real malware to be effective yet still cannot guarantee the creation of even a single successful evasion sample.

Finetuning procedure

After generating the synthetic malware embeddings, we adapt the pretrained detector through a lightweight finetuning procedure. Let θ={θf,θh}\theta= \{\theta_f, \theta_h\} denote the parameters of the pretrained detection model, where ff denotes the feature extraction layers and hh the classifier head. During optimization, θf\theta_f are frozen while only the parameters θh\theta_h of the final classification layer are updated. This design preserves the latent representation learned from real binaries while refining the decision boundary only. At each training iteration, we sample a batch BrB_r of real binaries xx and their corresponding labels yy. Predictions are obtained from the pretrained detection model and optimized using the standard cross-entropy loss:

Lreal=−1∣Br∣∑i=1∣Br∣log⁡pθ(yi∣xi)\mathcal{L}_{\mathrm{real}} = -\frac{1}{|B_r|}\sum_{i=1}^{|B_r|} \log p_{\theta}(y_i \mid x_i)

We additionally sample a batch BsB_s of synthetic embeddings m~\tilde{\mathbf{m}} generated by the procedure described in § 4.2. Since these embeddings are constructed to represent malware-like latent points, they are assigned the malware label y=1y = 1. The corresponding classification loss is

Lsyn=−1∣Bs∣∑j=1∣Bs∣log⁡pθh(yj=1∣m~j)\mathcal{L}_{\mathrm{syn}} = -\frac{1}{|B_s|}\sum_{j=1}^{|B_s|} \log p_{\theta_h}(y_j = 1 \mid\tilde{\mathbf{m}}_j)

where pθh(yj=1∣m~j)p_{\theta_h}(y_j = 1 \mid\tilde{\mathbf{m}}_j) denotes the probability assigned by the classifier head hh to the malware class for the synthetic embedding m~j\tilde{\mathbf{m}}_j. Note that, while the real binaries in BrB_r are processed through the entire detector pipeline, including both the feature extractor ff and the classifier head hh, each synthetic embedding m~j\tilde{\mathbf{m}}_j is processed only by hh, as it already resides in the detector’s embedding space. The overall training objective is defined as

L=Lreal+λLsyn\mathcal{L} = \mathcal{L}_{\mathrm{real}} + \lambda\mathcal{L}_{\mathrm{syn}}

where λ>1\lambda> 1 is a confidence term that maximizes the malware probability assigned to generated representations. Since synthetic embeddings are designed to represent challenging malware-like points, increasing the confidence of their classification encourages the classifier to move the decision boundary away from benign regions of the latent space.

By jointly optimizing on real binaries and synthetic malware embeddings, the classifier learns to expand the malware region of the latent space around the benign manifold, thereby improving robustness against evading malware while preserving performance on known samples.

Experiments

In this section we present an extensive experimental evaluation of Phantomware and compare it with state-of-the-art adversarial augmentation approaches. To this end, we first assess the effectiveness of a machine learning-based malware detector in the presence of emerging malware campaigns. Then, we apply the two augmentation strategies and compare the detection performance and computational efficiency of the resulting finetuned models. Finally, we evaluate the robustness of Phantomware against adversarially crafted malware, and present an ablation study to quantify the contribution of its individual components to the overall detection performance.

We restrict our evaluation to Windows Portable Executable (PE) files, which represent the primary target of modern malware detection systems due to their widespread use in Windows environments. All experiments are conducted on real-world PE malware and goodware samples.

Dataset

For our evaluation, we use the BODMAS dataset [55], which contains 57293 PE malware samples, including viruses, worms, and trojans, collected from multiple sources between August 2019 and September 2020. The dataset comprises 582 malware families, however many of these families contain only a small number of samples, making them unsuitable for our experimental setting. Thus, to ensure sufficient representation of each family, we retain only those with at least 100 samples. This filtering step results in a dataset containing 57 malware families and a total of 51974 malware samples.

Goodware samples are collected from the PE Malware Machine Learning Dataset3, composed of 86812 legitimate files extracted from instances of various versions of Windows 7 and above. To avoid an excessive imbalance between malware and benign samples, we randomly select 50% of the available goodware instances for inclusion in our experiments.

MalConv vs small malware families

We perform a preliminary experiment to assess the capability of a machine learning-based detector to identify emerging malware campaigns. To this end, we employ the MalConv architecture proposed by Raff et al. [47], specifically using the implementation provided in [48], which is memory use invariant to the length of the input, allowing us to train on files up to 16MB. We simulate an emerging malware campaign by selecting a target family and restricting its training data to the five samples immediately preceding the 10 most recent samples, which are reserved for testing. All earlier samples from the target family are excluded from training. MalConv is then trained for 30 epochs using these five target-family samples together with all samples from the remaining families in the dataset. The trained detector is evaluated on a test set comprising the 10 most recent samples from each family, including the target family, representing the next wave of variants that the detector would encounter after deployment. This procedure is repeated, with each family in the dataset serving as the target family in a rotating fashion. For each of the 57 family-specific experiments, the resulting training set contained, on average, approximately 44.5K malware samples. This ensures that, while the target family is represented by only five samples to simulate an early-stage malware campaign, the detector is still trained on a sufficiently large and diverse malware background composed of the remaining families. Timestamps correspond to the first-seen date on VirusTotal.4

The results, shown in Figure 1, show that cross-family generalization is highly inconsistent. Across 57 malware families, all variants are correctly detected for 34 target families (60%), while MalConv fails to detect between 1 and 9 samples out of 10 of the remaining families. Overall, MalConv misses 10.5% of newly introduced variants. This variability highlights the limitations of relying solely on structural or behavioral similarities across families and underscores the need for data augmentation techniques that can support robust detection in scarce-data or early-stage malware campaign settings. The 23 families for which MalConv fails to correctly classify at least one of the ten test samples constitute the focus of our evaluation, as they correspond to scenarios in which the detector exhibits limited robustness against emerging threats.

Figure 1. The detection rate achieved by MalConv on 10 test samples of 57 malware families.

Evaluation of Phantomware

To assess the effectiveness of Phantomware in improving the detection of unseen variants from small malware families, we finetune MalConv using 50 synthetic malware representations for each target family. The goodware anchor set is selected as the union of 1000 boundary samples and 1000 frontier samples, while synthetic embeddings are generated by perturbing these anchors along the most malware-discriminative dimensions as detailed in § 4.2.2. All embeddings are represented as 128-dimensional vectors, corresponding to the latent representation produced by the adopted MalConv implementation [48].

Figure 2 shows the 2D t-SNE projection of the embeddings generated by Phantomware in the MalConv latent space. For visualization purposes, we report only the synthetic samples generated for the Vflooder malware family. We observe that the generated embeddings (red diamonds) do not only populate the vicinity of the original training samples (yellow circles), but span a broader region of the latent space, extending toward the areas occupied by the malware test samples (magenta circles), and frontier goodware samples as well (blue crosses).

Figure 2. The 2D-tSNE projection of MalConvPha_{Pha} embeddings for goodware samples, Vflooder malware samples, and Phantomware-generated synthetic samples.

The finetuning procedure is performed using the following hyperparameters: epochs=10, batch of real embedding samples ∣Br∣=128|B_r| = 128, batch of synthetic embedding samples ∣Bs∣=64|B_s| = 64, λ=2\lambda= 2. Since finetuning the detector does not require the use of the entire original training set, we construct a representative subset of the available data that preserves the most informative characteristics of both classes. 500 goodware samples and 500 non-target family malware samples located close to the decision boundary are retained, as they correspond to regions where classification is most challenging. To preserve the global structure of each class, we additionally perform clustering in the embedding space and select 500 representative samples associated with cluster centroids for both classes. The resulting finetuning set therefore combines 1000 hard samples, which provide information about the decision boundary, 1000 centroid representatives, which capture the overall distribution of each class, and 50 synthetic Phantomware-generated samples. We refer to the resulting finetuned model as MalConvPha_{Pha}.

Figure 3 reports the detection rate achieved by MalConvPha_{Pha} on the 10 test samples of each of the 23 target malware families. We observe that MalConvPha_{Pha} improves the detection performance of the original MalConv model in 20 out of 23 cases, corresponding to 87% of the considered families. Overall, MalConv correctly detects 510 out of 570 target-family test samples, achieving a detection rate of 0.89, whereas MalConvPha_{Pha} detects 558 samples, increasing the detection rate to 0.98.

Figure 3. Impact of Phantomware augmentation on MalConv classification of target-family samples across malware families.

Figure 4 illustrates the detection performance of MalConvPha_{Pha} across the complete test set. Unlike the pretrained MalConv model, where the False Negative Rate (FNR) exceeds the False Positive Rate (FPR) by one order of magnitude, MalConvPha_{Pha} exhibits an inverted trend: it detects a greater volume of of malware, but this comes at the cost of missing more goodware. Specifically, while MalConv maintains an FPR consistently below 1%, shifting the decision boundary closer to the benign regions of the latent space causes MalConvPha_{Pha} to misclassify a larger fraction of benign samples, yielding an FPR between 1% and 8%. Notably, the FNR of MalConvPha_{Pha} remains consistently lower than its FPR, indicating that the improvement extends beyond the target family to also include non-target-family malware samples that were previously misclassified by MalConv. Notice that this trade-off between FNR and FPR is not unique to Phantomware, but rather reflects a fundamental behavior of machine learning classifiers when the decision boundary is shifted toward the opposing class.

Figure 4. Misclassification rate of goodware (FPR) and malware (FNR) for MalConv (dashed-blue lines) and MalConvPha_{Pha} (solid-red lines).

We repeat the same experiment by including in the finetuning set 500 synthetic malware embeddings instead of 50. The resulting performance is comparable to that reported in Figure 3, suggesting that diversity is more important than quantity. Indeed, the initial set of 50 synthetic embeddings already provide sufficient diversity with respect to the original training samples, enabling MalConvPha_{Pha} to adjust its decision boundary toward regions of the latent space occupied by unseen test samples. Increasing the number of synthetic embeddings by one order of magnitude does not provide additional benefits, indicating that they are redundant for augmentation purposes. This result suggests that the effectiveness of Phantomware stems from its ability to generate a compact set of diverse and strategically positioned representations that expand the coverage of the latent malware space.

Finally, we investigate the effect of the weighting parameter λ\lambda on the classification performance. Figure 5 reports the results obtained on the Vflooder family by varying λ\lambda in the range [1,4][1, 4]. We focus on this family because it exhibits the largest performance gap between MalConv and MalConvPha_{Pha}, providing a wider margin for analyzing the impact of different λ\lambda values. We first observe that values greater than 1 enable MalConvPha_{Pha} to correctly detect all target-family test samples, validating our choice of assigning greater importance to the synthetic embedding objective Lsyn\mathcal{L}_{\mathrm{syn}}. At the same time, increasing λ\lambda also leads to a higher FPR and lower FNR on the entire test set, reflecting the expected trade-off between malware detection and benign-sample misclassification. This behavior is expected: as λ\lambda increases, the optimizer places greater emphasis on correctly classifying synthetic embeddings as malware. Since these embeddings are intentionally generated close to the benign manifold, minimizing Lsyn\mathcal{L}_{\mathrm{syn}} encourages the classifier to expand the malware region toward nearby benign areas. Consequently, the decision boundary shifts toward the goodware distribution, improving malware recall at the cost of misclassifying a larger number of benign samples.

Figure 5. Impact of parameter λ\lambda on the classification performance of MalConvpha_{pha} for the Vflooder family.

Evaluation of adversarial approaches

In this section, we empirically validate the limitations of adversarial malware generation for data augmentation, showing that, consistently with the theoretical analysis presented in § 3, existing adversarial approaches fail to consistently produce sufficiently diverse and representative adversarial samples.

We generate adversarial malware samples using perturbation techniques that operate at the executable level. As discussed in § 2, adversarial malware generation consists of iteratively modifying a malicious executable while preserving its functionality, with the objective of reducing the detector’s confidence until the sample is classified as benign, i.e., assigned a malicious probability below 0.5. Under the standard setting, this process yields a single adversarial example for each real malware.

To obtain a richer and more diverse approximation of the malware manifold, we extend this procedure beyond the first successful evasion. Rather than terminating the generation process as soon as one evading sample is found, we continue applying perturbations for up to nn iterations. This allows the attack algorithm to discover multiple distinct evading variants originating from the same real malware. As a result, we obtain a larger and more heterogeneous set of adversarial malware instances, providing a broader coverage of the regions of the feature space associated with successful evasion.

The adversarial generation techniques used in our experiments are implemented in SecML Malware [12], an open-source Python framework for generating adversarial attacks against Windows PE malware detectors5. The library provides both whitebox and blackbox attack strategies. In the whitebox setting, the attacker has complete knowledge of the target detector, including its architecture, internal parameters, and confidence scores associated with each prediction, in addition to the final classification outcome. In the blackbox setting, by contrast, the attacker has no knowledge of the detector’s internal structure and can only observe its classification output.

In total, we use 11 adversarial generation techniques, divided into 6 whitebox and 5 blackbox. The whitebox attacks are gradient-based adversarial evasion approaches, with an optimization process that proceeds iteratively: at each step, the attack computes the loss as the malware detection score; the gradients are projected onto the byte embedding space, and only the bytes with the largest gradient impact are updated by selecting the nearest valid byte embedding along the adversarial direction. This process is repeated until the maximum number of iterations is reached. The attacks are briefly described below:

  • Header_perturbation: randomly perturbs the bytes of the DOS header except for the MZ magic number and the pointer stored at offset 0x3c that are the only immutable fields required to preserve the validity of the executable [13].

  • Header_extension: injects random adversarial perturbations into an additional space created within the executable by extending the DOS header, without altering the executable functionality [15].

  • HeaderFields_perturbation: randomly perturbs a subset of bytes in the DOS header and selected regions of the COFF/Optional PE headers, avoiding critical fields required for correct execution, while preserving malware functionality [42].

  • Section_shift: injects adversarial random noise into a new space inside the executable created by shifting the content of the first section [15].

  • Padding_injection: appends random bytes at the end of the executable [31].

  • Slack_perturbation: randomly perturbs the slack bytes of an executable. Slack bytes are the unused or partially used bytes that exist due to alignment and file structure padding. They are typically not part of any meaningful PE structure and often contain leftover data [51].

  • Padding_injection + Slack_perturbation: appends random bytes at the end of the executable, and randomly perturbs the slack bytes [34].

The blackbox attacks are implementations of the GAMMA (Genetic Adversarial Machine learning Malware Attack) adversarial approach, proposed by Demetrio et al. [14]. GAMMA is based on a genetic algorithm which tries to find the best modification by ranking and combining different sets of perturbations extracted from benign samples. The attacks are briefly described below:

  • GAMMA_API: injects benign API into the PE binary import table.

  • GAMMA_header: perturbs bytes not used by modern programs in the DOS Header.

  • GAMMA_headerFields: perturbs selected bytes in the DOS Header, including altering section names, breaking the checksum, and altering debug information.

  • GAMMA_padding: injects benign-like bytes at the end of the file.

  • GAMMA_sectionShift: creates additional space before the beginning of a section, by shifting the content forward, and injects adversarial content in between.

To asses the applicability of the adversarial generation approach, we apply the above attack techniques to the 5 real malware samples from each target family, considering all the 57 families. Then we restrict the comparison study to the subset of 23 families for which MalConv fails to correctly classify at least one sample. We set the number of iterations to 15 and 80 for white-box and black-box attacks, respectively. These values were selected empirically as a practical trade-off between execution time and the number of successfully generated adversarial samples.

The statistics of generated adversarial examples are summarized in Figure 6 and Table 1. As shown in Figure 6, the 11 attack techniques generate highly variable numbers of adversarial samples across malware families, collectively producing between 2 and 155 adversarial samples per family. This variability reflects the inherent limitation of adversarial generation algorithms we formally proved in Section 3, that is, they cannot guarantee the production of even a single successful evading sample within a finite number of iterations.

Figure 6. Distribution of malware adversarial samples grouped by family.

AttackAdv SamplesAdv/RealReal w/o AdvFamilies w/o Adv
Header extension2720.95444%12%
Header perturbation1480.51967%33%
HeaderFields perturbation90.03298%91%
Padding+Slack1440.52771%40%
Slack perturbation1470.51680%44%
Section shift1440.50559%30%
GAMMA_API2881.01079%54%
GAMMA_header570.13097%91%
GAMMA_headerFields70.02599%98%
GAMMA_padding6772.37555%33%
GAMMA_sectionShift24438.5713.5%1.8%
All attacks43361.3831.7%0%

Table 1. Statistics of generated adversarial samples grouped by attack.

The statistics reported in Table 1 further highlight this limitation. Only 3 out of the 11 attack techniques are able to generate at least one adversarial sample for every real malware sample (column "Adv/Real"), and the combination of all attacks produces an average of only 1.383 synthetic samples per real instance. Moreover, for most attacks, a large percentage of real malware samples do not lead to the generation of any adversarial variant (column "Real w/o Adv"), with GAMMA_sectionShift being the only notable exception. This further confirms that the adversarial generation process does not consistently succeed across all malware samples. Finally, none of the considered attacks guarantees the generation of at least one adversarial sample for every malware family (column "Families w/o Adv"). Even GAMMA_sectionShift, which achieves the broadest coverage among the evaluated attacks, fails to produce adversarial samples for one family (i.e., the Padodor family as shown in Figure 6).

To evaluate the contribution of adversarial samples to the detection process, we finetune MalConv following the procedure described in § 4.3: we use the feature extraction layers to compute the embeddings of the adversarial samples and subsequently use these embeddings to update the classifier head, while keeping the feature extractor frozen. We refer to the resulting model as MalConvAdv_{Adv}. This finetuning procedure is performed independently for each of the 23 target malware families for which the original MalConv model misclassifies at least one sample.

To illustrate the unpredictable effect of adversarial samples on detection performance, we consider two representative extreme cases:

  • Mira, the malware family for which the 11 attack techniques collectively generate the fewest adversarial samples (46 in total), while the original MalConv model correctly detects almost all test samples (9 out of 10);

  • Vflooder, one of the malware families for which the 11 attack techniques generate the largest number of adversarial samples (102 in total), while the original MalConv model correctly detects only a single test sample (1 out of 10).

Table 2 reports the contribute of each attack technique aa as the number of test samples correctly detected by MalConvAdva\mathrm{MalConv}_{Adv}^{a} (column "Score"), where MalConvAdva\mathrm{MalConv}_{Adv}^{a} denotes the model finetuned exclusively on the adversarial samples produced by attack aa. Column "#Samples" indicates the number of adversarial samples generated by each attack. The results confirm the behavior already observed with Phantomware, that is, diversity appears to be more influential than quantity. Indeed, for both malware families, some attacks generate a very small number of adversarial samples (i.e., 2 samples with Section_sift attack for Mira, and 5 samples with Header_extension attack for Vflooder), yet these samples are sufficiently diverse from the original malware instances to enable MalConvAdva\mathrm{MalConv}_{Adv}^{a} to correctly classify all test samples previously missed by MalConv. Conversely, other attacks produce substantially larger numbers of adversarial samples (i.e., 22 samples with GAMMA_padding attack for Mira, and 49 samples with GAMMA_sectionShift attack for Vflooder), but the generated samples lack sufficient diversity to achieve comparable improvements in detection performance. This finding further confirms the limitation discussed in § 3: the quality of the augmentation set generated by adversarial approaches is inherently unpredictable.

To better understand this phenomenon, Figure 7 shows the 2D t-SNE projection of the embeddings produced by MalConvAdv\mathrm{MalConv}_{Adv} for the Vflooder family. At first glance, most adversarial samples (colored) diamonds) appear concentrated close to the original malware training samples (yellow circles). This behavior contrasts with Phantomware (see Figure 2), which generates synthetic samples that span a broader region of the latent space, thereby providing a more diverse representation of potential malware variants. A closer analysis reveals that adversarial samples generated with the Header_Extension, Slack_Perturbation, and GAMMA_Padding attacks are located farther from the original malware training samples than those produced by the other attack strategies, introducing greater diversity into the augmented dataset. This explains why finetuning MalConv with these adversarial examples improves its ability to detect previously misclassified instances. Conversely, the GAMMA_SectionShift attack produces a significantly larger number of adversarial samples (purple diamonds), however these samples occupy a restricted region of the latent space, introducing redundancy into the augmented dataset and providing limited additional information to the detector.

Figure 7. The 2D-tsne projection of Vflooder family’s malware embeddings and of its adversarially generated samples.

This dominance of diversity over quantity is further reinforced by the finding that finetuning MalConv with all adversarial samples from attacks that individually provided little or no improvement does not yield any further gains. As shown in the "combined attacks" row of Table 2, aggregating samples from multiple attack techniques (grey cells) significantly increases the overall volume of training data, yet the resulting detection rate remains comparable to that achieved by the individual attacks alone. This suggests that simply increasing the number of adversarial samples does not compensate for their limited diversity.

AttackMira (9/10)Vflooder (1/10)
#SamplesScore#SamplesScore
Header_extension29510
Padding+Slack1944
Slack_perturbation19610
Header_perturbation0–24
Section_shift2100–
GAMMA_API1390–
GAMMA_padding2293610
GAMMA_sectionShift510494
combined attacks399554

Table 2. Analysis of MalConvAdv\mathrm{MalConv}_{Adv} for Mira and Vflooder families.

A second important observation is that the same adversarial attack can exhibit markedly different effectiveness across malware families. For example, the GAMMA_sectionShift attack enables MalConvAdvSecShf^{\mathrm{SecShf}}_{Adv} to correctly detect all test samples of the Mira family using only five adversarial examples for finetuning. In contrast, for the Vflooder family, the same attack generates 49 adversarial examples but does not enable MalConvAdvSecShf^{\mathrm{SecShf}}_{Adv} to detect all test samples. This result supports our initial hypothesis that the effectiveness of adversarial data augmentation is strongly dependent on the characteristics of the malware samples used to generate adversarial variants.

Figure 8 reports the detection rate across the 10 test samples from each of the 23 target malware families achieved by MalConvAdv_{Adv} when finetuned with the adversarial samples generated by all attack techniques. Overall, MalConvAdv_{Adv} performs comparably to MalConvPha_{Pha}, except for five malware families (i.e., Urelas, Lunam, Fuerboos, Upatre, and Tofsee) for which MalConvPha_{Pha} achieves superior results.

Figure 8. Detection rate of MalConv, MalConvAdv_{Adv}, and MalConvPha_{Pha} across malware families.

The detection performance of MalConvAdv_{Adv} on the complete test set is reported in Figure 9. MalConvAdv_{Adv} exhibits behavior comparable to that of MalConvPha_{Pha}: the FNR is approximately one order of magnitude lower than that achieved by the pretrained MalConv model for most malware families, and this improvement comes at the cost of an increased FPR. This confirms that the trade-off between FPR and FNR is not specific to Phantomware but is also observed with other data augmentation strategies. On average, MalConvAdv_{Adv} performs slightly worse than MalConvPha_{Pha} as shown by the rightmost series of Figure 9. In particular, we note that its FPR exceeds 10% for three malware families (i.e., Gepys, Blocker, and Vobfus).

Figure 9. Misclassification rate of goodware (top) and malware (bottom).

Execution times

Figure 10 compares the average time required by the two approaches to generate augmentation data for a single malware family. For Phantomware, it reports the time required by the two stages described in Section 4.2, that are goodware anchor selection and synthetic embedding generation. The results show that the time required by Phantomware to generate synthetic embeddings is negligible compared with that needed for selecting the goodware anchors, which takes approximately six minutes in our experimental setting. This indicates that the computational cost of Phantomware is dominated by the anchor selection phase and therefore scales primarily with the size of the goodware training set (∼45K samples in our dataset).

Execution times of adversarial approaches and Phantomware

Figure 10. Execution time of adversarial approaches and Phantomware.

For the adversarial approach, the figure reports the execution time of each of the 11 attack techniques used to generate adversarial malware samples, which ranges from 7.5 to 153 minutes, amounting to approximately 655 minutes (∼ 7 hours) when all 11 attack techniques are executed. It is worth noting that these times account only for the generation of adversarial malware samples and do not include sample validation, which would require executing each generated variant in a controlled sandbox environment to verify that it preserves the malicious functionality of the original malware. Although this validation step is essential in offensive scenarios, it is unnecessary in our setting, where the generated samples are used solely for data augmentation in support of malware detection. Nevertheless, even without functional validation, adversarial malware generation remains substantially more time-consuming than Phantomware. Including this additional step would further increase the overall execution time while potentially reducing both the number and the diversity of the resulting adversarial dataset, as variants failing the validation process would have to be discarded.

Results discussion

Our findings confirm that the effectiveness of data augmentation depends primarily on the diversity and representativeness of the generated samples rather than on their quantity. However, adversarial generation techniques provide no guarantees with respect to either of these properties, making the effectiveness of the resulting augmented dataset inherently unpredictable and at a considerably higher computational cost and execution time. Successful adversarial augmentation requires that at least one of the adopted attack technique generates a sufficiently diverse and representative set of adversarial samples capable of guiding the detector toward a more appropriate decision boundary. While this condition is partially met in our experiments, achieving it required the use of 11 different attack techniques, with no guarantee that any of them would succeed. Thus, the observed improvements should be regarded as largely contingent on the specific attack–family combination rather than as a reliable property of adversarial augmentation. Indeed, our results show that no individual attack technique consistently generates sufficiently diverse and representative adversarial samples across all target families, highlighting the inherently unpredictable nature of adversarial generation as a data augmentation strategy.

In contrast, Phantomware ensures the generation of a highly diverse and representative set of synthetic malware embeddings with minimal computational effort, enabling the finetuned detector to reshape its decision boundary toward previously unexplored regions of the latent space, and thereby improving its ability to generalize to unseen malware samples.

It is worth emphasizing that the adversarial augmentation results reported in this work are obtained using five real malware samples per target family. Since this amount of data already proves insufficient to consistently generate diverse adversarial samples with a single attack, further reducing the training set would likely exacerbate this limitation, making the resulting augmented dataset even less representative. In contrast, Phantomware is specifically designed for extreme data-scarce scenarios, where the diversity of its synthetic embeddings is derived primarily from the goodware distribution rather than from the number of available malware samples, ensuring the generation of augmentation data even when only a single malware instance is available.

Transfer attacks against Phantomware

We next evaluate Phantomware against transfer attacks [16]. In a transfer attack, adversarial samples are optimized against a specific malware detector and then evaluated against a different detector. Such attacks are particularly practical in black-box settings, as attackers can craft adversarial samples using a classifier they control, without requiring access to or knowledge of the target model. Transfer attacks are more likely to succeed when the source and target detectors employ similar models and are trained on similar datasets. To emulate this setting, we evaluate the robustness of Phantomware by testing MalConvPha_{Pha} against adversarial samples crafted using MalConv as the source detector, following the procedure described in § 5.4. Results reported in Figure 11 demonstrate that MalConvPha_{Pha} maintains high detection performance against state-of-the-art adversarial techniques, successfully identifying 1886 out of 1961 samples for a 96% detection rate. This result suggests that, by prioritizing structural diversity over learning specific evasion patterns, Phantomware provides robust, generalized defense capabilities that effectively neutralize both emerging malware campaigns and adaptive adversarial threats.

Figure 11. Detection rate of MalConvPha_{Pha} against adversarial malware samples.

In a recent study, Kozac et al. [32] proposed EXE-scanner, a malware detector trained exclusively on adversarial examples and designed to be chained with existing detectors. Its goal is to detect malware samples that evade the underlying detector, thereby mitigating the classification regressions that may arise when the existing model is fine-tuned or retrained. The authors show that adversarial samples capable of bypassing the target detector are detected by EXE-scanner, increasing the detection rate from 91% to over 97%. However, the adversarial examples used for evaluation are generated using the same attacks employed to construct the training set. Consequently, it remains unclear whether EXE-scanner would maintain its effectiveness against adversarial samples generated using attacks different from those adopted for the generation of the training set. This raises concerns about the generalizability of the approach, as its effectiveness may heavily depend on the quality and diversity of the adversarial examples used for training. Since these samples are themselves generated using adversarial techniques, there is no guarantee that they adequately capture the diversity of all possible adversarial samples.

A related limitation is also evident in the adversarial-training strategy proposed by Li and Li [36]. Their approach combines multiple attack algorithms and file manipulations to broaden the space of adversarial examples. The training procedure exploits them into a min-max optimization framework, in which the defender iteratively minimizes the model’s loss on the strongest adversarial example of the current iteration, for a finite number of iterations, thereby approximating robustness against strongest attacks. While this strategy is effective for identifying and mitigating difficult attack instances, increasing the diversity of attack mechanisms and then optimizing for attack strength are not equivalent to explicitly maximizing the size, diversity, or coverage of a synthetic malware distribution. Indeed, the reported results indicate that greater attack diversity does not translate into robustness against broader and potentially unknown distributions of future malware variants.

In general, adversarial-training approaches treat adversarial examples primarily as a mechanism for exposing the detector to specific evasion behaviors. However, the number and diversity of adversarial samples are determined by the underlying malware corpus, the adopted attack mechanisms, and the ability of those attacks to successfully generate evasive variants. This limitation is particularly relevant in data-scarce settings, where a small malware corpus constrains the diversity of the resulting adversarial training set. Also, it is impossible to predict whether future malware variants will arise from adversarial, syntax-level manipulations of existing samples or from non-adversarial, semantic evolutions of the target family. Consequently, an effective data augmentation strategy should generate synthetic samples that cover a broad spectrum of plausible malware variants rather than specializing in specific transformation mechanisms. Adversarial data augmentation inherently learns the perturbation patterns induced by the adopted attack techniques. As a result, when future variants are generated through different adversarial strategies, or evolve through entirely different semantic transformations, the learned robustness may not generalize effectively.

Phantomware addresses this limitation from a fundamentally different perspective. Rather than modeling specific evasion patterns, it enriches the latent malware distribution by generating diverse synthetic embeddings that span a broader region of the latent space. This enables the detector to learn more general malware characteristics, resulting in improved robustness against both adversarial and non-adversarial variants.

Ablation study

To better understand the contribution of the individual components of Phantomware, we perform an ablation study focusing on the two main design choices of the proposed framework: the geometry-aware anchor selection, and the malware-discriminative perturbation direction.

We evaluate the importance of the proposed goodware anchor selection strategy by replacing the boundary and frontier samples with a randomly selected subset of benign embeddings of equal size. This experiment assesses whether exploiting the geometry of the benign manifold is necessary for generating effective synthetic malware representations. Then, we separately analyze the contribution of the two anchor components by generating synthetic embeddings using only boundary samples or only frontier samples. This allows us to quantify the complementary role of near-boundary regions, which capture classification ambiguity, and peripheral benign regions, which provide coverage of unexplored areas of the latent space.

Figure 12 reports the classification performance obtained when selecting goodware anchors using four alternative strategies: random sampling, boundary samples only, frontier samples only, and the Phantomware configuration, which combines both boundary and frontier samples. As in the previous experiments, we focus this ablation study on the Vflooder family, since it has the largest performance gap between MalConv and MalConvPha_{Pha}, providing a wider margin for analyzing the contribution of the individual components of Phantomware. We observe that each component provides complementary information: removing either the geometry-aware selection strategy or one of the two anchor subsets consistently reduces the detection rate of target-family samples (blue bars). Moreover, the original Phantomware configuration achieves the lowest FNR (green line), as it also enables the detection of non-target-family samples that remain misclassified under the other configurations. This improvement, however, comes at the cost of a higher FPR (red line). Overall, these results confirm that explicitly exploiting the geometry of the benign manifold is crucial for generating effective and informative synthetic malware representations.

Figure 12. Ablation study: classification performance with four alternative anchor selection strategies.

Finally, we investigate the importance of the malware-discriminative direction used during the generation process by replacing the target-family-guided perturbation with a direction extracted from a different malware family. This experiment assesses whether the effectiveness of Phantomware depends on capturing latent characteristics specific to the target family, or whether generic malware-related directions are sufficient to generate effective synthetic representations.

Figure 13 reports the detection rates obtained when selected anchors are perturbed using either target-family-specific features (i.e., the Phantomware configuration) or features extracted from non-target malware families. For the latter setting, a random family is selected for each target family. We observe that the use of target-family features provides a measurable advantage: in 14 out of 23 cases, perturbing anchors with target-family-specific directions achieves higher detection rates than using directions derived from unrelated malware families. This confirms that capturing the latent characteristics of the target family plays an important role in generating effective synthetic malware representations.

Figure 13. Ablation study: non-target-family vs target-family perturbations of goodware anchors. In bold are the families for which Phantomware performs better.

Conclusions

In this paper we presented Phantomware, a geometry-guided data augmentation pipeline designed to improve the robustness of pretrained malware detectors against unseen variants of small malware families. Through both formal analysis and empirical evaluation, we demonstrated the limitations of adversarial malware generation approaches for cybersecurity applications, particularly in data-scarce scenarios. These approaches typically require a substantial number of real malware samples, provide no guarantees on the diversity of the generated variants, and cannot even ensure the production of a single successful functional malware sample. In contrast, Phantomware provides a practical alternative by operating directly in the latent space of a pretrained detector and guaranteeing the generation of synthetic augmentation data in a controlled manner, starting from only a handful of malware samples. Our experiments show that diversity, rather than quantity, is the key factor determining the effectiveness of augmentation data, and that latent-space generation enables the creation of challenging samples, more effective for downstream augmentation compared with problem-space approaches. These findings suggest the need for a shift in research direction, moving beyond purely offensive strategies focused on evasion capabilities toward data augmentation methodologies explicitly designed to improve the robustness and generalization of malware detectors.

As future work, we plan to extend Phantomware to the Android malware domain, which presents similar challenges related to rapidly evolving threats and limited availability of samples from emerging malware families.

References

  1. [1]Md Aiwad Akil, Adrian Shuai Li, Imtiaz Karim, Arun Iyengar, Ashish Kundu, Vinny Parla, and Elisa Bertino. Lmalmorph: On the feasibility of generating variant malware using large-language-models. arXiv preprint arXiv:2507.09411, 2025.arxiv.org/abs/2507.09411
  2. [2]Malik Al-Essa, Felice Franchini, Stefano Galantucci, Muhammad Imran, and Giuseppe Pirlo. Improving robustness and explainability of pe malware classifiers using gan-generated synthetic adversarial examples. Cybersecurity, 9(1):169, 2026.DOI
  3. [3]Moses Ashawa, Robert McGregor, Nsikak Pius Owoh, Jude Osamor, and John Adejoh. Static and dynamic malware analysis using cyclegan data augmentation and deep learning techniques. Applied Sciences, 15(17):9830, 2025.DOI
  4. [4]Giacomo Benedetti, Luca Caviglione, Michał Choraś, Massimo Guarascio, Angelica Liguori, Giuseppe Manco, and Antonino Rullo. Days of future past: Towards robust detection of malware variants via llm-based embedding generation. In 2025 IEEE International Conference on Data Mining Workshops (ICDMW), pages 1230–1237. IEEE, 2025.DOI
  5. [5]Marcus Botacin. Gpthreats-3: Is automatic malware generation a threat?. in 2023 ieee security and privacy workshops (spw), 2023.DOI
  6. [6]Kenneth Brezinski and Ken Ferens. Metamorphic Malware and Obfuscation: A Survey of Techniques, Variants, and Generation Kits. Security and Communication Networks, 2023(1), 2023.
  7. [7]Roland Burks, Kazi Aminul Islam, Yan Lu, and Jiang Li. Data augmentation with generative models for improved malware detection: A comparative study. In 2019 IEEE 10th Annual Ubiquitous Computing, Electronics & Mobile Communication Conference (UEMCON), pages 0660–0665. IEEE, 2019.DOI
  8. [8]Ferhat Ozgur Catak, Javed Ahmed, Kevser Sahinbas, and Zahid Hussain Khand. Data augmentation based malware detection using convolutional neural networks. PeerJ computer science, 7:e346, 2021.DOI
  9. [9]Yi-Ming Chen, Chun-Hsien Yang, and Guo-Chung Chen. Using generative adversarial networks for data augmentation in android malware detection. In 2021 IEEE conference on dependable and secure computing (DSC), pages 1–8. IEEE, 2021.DOI
  10. [10]Jusop Choi, Dongsoon Shin, Hyoungsuk Kim, Jason Seotis, and Jin B Hong. Amvg: Adaptive malware variant generation framework using machine learning. In 2019 IEEE 24th Pacific Rim International Symposium on Dependable Computing (PRDC), pages 246–24609. IEEE, 2019.DOI
  11. [11]Luca De Rose, Giuseppina Andresini, Annalisa Appice, and Donato Malerba. Olivander: a counterfactual-based method to generate adversarial windows pe malware. Data Mining and Knowledge Discovery, 39(5):46, 2025.
  12. [12]Luca Demetrio and Battista Biggio. secml-malware: A python library for adversarial robustness evaluation of windows malware classifiers, 2021.
  13. [13]Luca Demetrio, Battista Biggio, Giovanni Lagorio, Fabio Roli, and Alessandro Armando. Explaining vulnerabilities of deep learning to adversarial malware binaries. arXiv preprint arXiv:1901.03583, 2019.arxiv.org/abs/1901.03583
  14. [14]Luca Demetrio, Battista Biggio, Giovanni Lagorio, Fabio Roli, and Alessandro Armando. Functionality-preserving black-box optimization of adversarial windows malware. IEEE Transactions on Information Forensics and Security, 16:3469–3478, 2021.DOI
  15. [15]Luca Demetrio, Scott E Coull, Battista Biggio, Giovanni Lagorio, Alessandro Armando, and Fabio Roli. Adversarial examples: A survey and experimental evaluation of practical attacks on machine learning for windows malware detection. ACM Transactions on Privacy and Security (TOPS), 24(4):1–31, 2021.DOI
  16. [16]Ambra Demontis, Marco Melis, Maura Pintor, Matthew Jagielski, Battista Biggio, Alina Oprea, Cristina Nita-Rotaru, and Fabio Roli. Why do adversarial attacks transfer? explaining transferability of evasion and poisoning attacks. In 28th USENIX security symposium (USENIX security 19), pages 321–338, 2019.arxiv.org/abs/1809.02861
  17. [17]Gabriele Di Gregorio, Salvatore Maccarrone, Mario D’Onghia, Luigi Gallo, Michele Carminati, Mario Polino, and Stefano Zanero. Tarralo: Evading behavioral malware detectors in the problem space. In International Conference on Detection of Intrusions and Malware, and Vulnerability Assessment, pages 128–149. Springer, 2024.
  18. [18]Reza Ebrahimi, Jason Pacheco, James Hu, and Hsinchun Chen. Learning contextualized action representations in sequential decision making for adversarial malware optimization. IEEE Transactions on Dependable and Secure Computing, 2024.
  19. [19]Pengbin Feng, Le Gai, Li Yang, Qin Wang, Teng Li, Ning Xi, and Jianfeng Ma. Dawnngn: Documentation augmented windows malware detection using graph neural network. Computers & Security, 140:103788, 2024.DOI
  20. [20]Marek Galovic, Branislav Bosansky, and Viliam Lisy. Improving robustness of malware classifiers using adversarial strings generated from perturbed latent representations. arXiv preprint arXiv:2110.11987, 2021.arxiv.org/abs/2110.11987
  21. [21]Caixia Gao, Yao Du, Fan Ma, Q i u y a n Lan, J i a n y i n g Chen, and Jingjing Wu. A new adversarial malware detection method based on enhanced lightweight neural network. Computers & Security, 147:104078, 2024.DOI
  22. [22]Daniel Gibert, Luca Demetrio, Giulio Zizzo, Quan Le, Jordi Planes, and Battista Biggio. Certified adversarial robustness of machine learning-based malware detectors via (de) randomized smoothing. arXiv preprint arXiv:2405.00392, 2024.DOI
  23. [23]Daniel Gibert, Jordi Planes, Quan Le, and Giulio Zizzo. A wolf in sheep’s clothing: Query-free evasion attacks against machine learning-based malware detectors with generative adversarial networks. In 2023 IEEE European Symposium on Security and Privacy Workshops (EuroS&PW), pages 415–426. IEEE, 2023.DOI
  24. [24]Claudia Greco, Michele Ianni, Antonella Guzzo, and Giancarlo Fortino. Evasion of deep learning malware detection via adversarial selective obfuscation. In 2025 IEEE International Conference on Cyber Security and Resilience (CSR), pages 17–22. IEEE, 2025.DOI
  25. [25]Kathrin Grosse, Nicolas Papernot, Praveen Manoharan, Michael Backes, and Patrick McDaniel. Adversarial examples for malware detection. In European symposium on research in computer security, pages 62–79. Springer, 2017.DOI
  26. [26]Sibel Gulmez, Arzu Gorgulu Kakisim, and Ibrahim Sogukpinar. Xran: Explainable deep learning-based ransomware detection using dynamic analysis. Computers & Security, 139:103703, 2024.DOI
  27. [27]Weiwei Hu and Ying Tan. Generating adversarial malware examples for black-box attacks based on gan. In International Conference on Data Mining and Big Data, pages 409–423. Springer, 2022.arxiv.org/abs/1702.05983
  28. [28]B Ikram, Lotfi Elaachak, A Yasser, Mohammed Bouhorma, Adeliya Burova, Alexander Shemyakov, Andrey Sorokin, Javier Gamboa Cruzado, Christopher Menendez-Morales, Carlos Franco Del Carpio, et al. Malimg2022: Data augmentation and transfer learning to solve imbalanced training data for malware classification. Journal of Theoretical and Applied Information Technology, 101(4), 2022.
  29. [29]Jin-Young Kim, Seok-Jun Bu, and Sung-Bae Cho. Malware detection using deep transferred generative adversarial networks. In International conference on neural information processing, pages 556–564. Springer, 2017.DOI
  30. [30]TaeGuen Kim, BooJoong Kang, Mina Rho, Sakir Sezer, and Eul Gyu Im. A multimodal deep learning method for android malware detection using various features. IEEE Transactions on Information Forensics and Security, 14(3):773–788, 2018.DOI
  31. [31]Bojan Kolosnjaji, Ambra Demontis, Battista Biggio, Davide Maiorca, Giorgio Giacinto, Claudia Eckert, and Fabio Roli. Adversarial malware binaries: Evading deep learning for malware detection in executables. In 2018 26th European signal processing conference (EUSIPCO), pages 533–537. IEEE, 2018.arxiv.org/abs/1803.04173
  32. [32]Matous Kozak, Luca Demetrio, Dmitrijs Trizna, and Fabio Roli. Updating windows malware detectors: Balancing robustness and regression against adversarial examples. Computers & Security, 155:104466, 2025.DOI
  33. [33]Felix Kreuk, Assi Barak, Shir Aviv-Reuven, Moran Baruch, Benny Pinkas, and Joseph Keshet. Adversarial examples on discrete sequences for beating whole-binary malware detection. arXiv preprint arXiv:1802.04528, pages 490–510, 2018.
  34. [34]Felix Kreuk, Assi Barak, Shir Aviv-Reuven, Moran Baruch, Benny Pinkas, and Joseph Keshet. Deceiving end-to-end deep learning malware detectors using adversarial examples. arXiv preprint arXiv:1802.04528, 2018.arxiv.org/abs/1802.04528
  35. [35]Ce Li, Quijian Lv, Ning Li, Yan Wang, Degang Sun, and Yuanyuan Qiao. A novel deep framework for dynamic malware detection based on api sequence intrinsic features. Computers & Security, 116:102686, 2022.DOI
  36. [36]Deqiang Li and Qianmu Li. Adversarial deep ensemble: Evasion attacks and defenses for malware detection. IEEE Transactions on Information Forensics and Security, 15:3886–3900, 2020.DOI
  37. [37]Xiang Ling, Zhiyu Wu, Bin Wang, Wei Deng, Jingzheng Wu, Shouling Ji, Tianyue Luo, and Yanjun Wu. A wolf in sheep’s clothing: Practical black-box adversarial attacks for evading learning-based windows malware detection in the wild. In 33rd USENIX Security Symposium (USENIX Security 24), pages 7393–7410, 2024.arxiv.org/abs/2407.02886
  38. [38]Faming Lu, Zhaoyang Cai, Zedong Lin, Yunxia Bao, and Mengfan Tang. Research on the construction of malware variant datasets and their detection method. Applied Sciences, 12(15):7546, 2022.DOI
  39. [39]Keane Lucas, Samruddhi Pai, Weiran Lin, Lujo Bauer, Michael K Reiter, and Mahmood Sharif. Adversarial training for {Raw-Binary} malware classifiers. In 32nd USENIX Security Symposium (USENIX Security 23), pages 1163–1180, 2023.
  40. [40]Keane Lucas, Mahmood Sharif, Lujo Bauer, Michael K Reiter, and Saurabh Shintre. Malware makeover: Breaking ml-based static analysis by modifying executable bytes. In Proceedings of the 2021 ACM Asia Conference on Computer and Communications Security, pages 744–758, 2021.DOI
  41. [41]Jiang Ming, Zhi Xin, Pengwei Lan, Dinghao Wu, Peng Liu, and Bing Mao. Impeding behavior-based malware analysis via replacement attacks to malware specifications. Journal of Computer Virology and Hacking Techniques, 13(3):193–207, 2017.DOI
  42. [42]Dario Nisi, Mariano Graziano, Yanick Fratantonio, and Davide Balzarotti. Lost in the loader: The many faces of the windows pe file format. In Proceedings of the 24th International Symposium on Research in Attacks, Intrusions and Defenses, pages 177–192, 2021.DOI
  43. [43]Nicolas Papernot, Patrick McDaniel, Xi Wu, Somesh Jha, and Ananthram Swami. Distillation as a defense to adversarial perturbations against deep neural networks. In 2016 IEEE symposium on security and privacy (SP), pages 582–597. IEEE, 2016.arxiv.org/abs/1511.04508
  44. [44]Daniel Park, Haidar Khan, and Bülent Yener. Generation & evaluation of adversarial examples for malware obfuscation. In 2019 18th IEEE international conference on machine learning and applications (ICMLA), pages 1283–1290. IEEE, 2019.DOI
  45. [45]Francesco Pasqualatto, Luca Caviglione, Massimo Guarascio, Angelica Liguori, Giuseppe Manco, Ettore Ritacco, and Antonino Rullo. Malarn: an adversarial reconstruction network for improving detection of evolving malware. In International Symposium on Methodologies for Intelligent Systems, pages 170–177. Springer, 2026.DOI
  46. [46]Weizhong Qiang, Lin Yang, and Hai Jin. Efficient and robust malware detection based on control flow traces using deep neural networks. Computers & Security, 122:102871, 2022.
  47. [47]Edward Raff, Jon Barker, Jared Sylvester, Robert Brandon, Bryan Catanzaro, and Charles Nicholas. Malware detection by eating a whole exe. arXiv preprint arXiv:1710.09435, 2017.arxiv.org/abs/1710.09435
  48. [48]Edward Raff, William Fleshman, Richard Zak, Hyrum S Anderson, Bobby Filar, and Mark McLean. Classifying sequences of extreme length with constant memory applied to malware detection. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 35, pages 9386–9394, 2021.
  49. [49]Md Mahbubur Rahman, Md Delwar Hossain, Hideya Ochiai, Youki Kadobayashi, Tanjim Sakib, and Syed Taha Yeasin Ramadan. Vision based malware classification using deep neural network with hybrid data augmentation. In ICISSP, pages 823–830, 2024.DOI
  50. [50]Ishai Rosenberg, Shai Meir, Jonathan Berrebi, Ilay Gordon, Guillaume Sicard, and Eli Omid David. Generating end-to-end adversarial examples for malware classifiers using explainability. In 2020 international joint conference on neural networks (IJCNN), pages 1–10. IEEE, 2020.arxiv.org/abs/2009.13243
  51. [51]Octavian Suciu, Scott E Coull, and Jeffrey Johns. Exploring adversarial examples in malware detection. In 2019 IEEE Security and Privacy Workshops (SPW), pages 8–14. IEEE, 2019.arxiv.org/abs/1810.08280
  52. [52]Adem Tekerek and Muhammed Mutlu Yapici. A novel malware classification and augmentation model based on convolutional neural network. Computers & Security, 112:102515, 2022.DOI
  53. [53]Xu, Yaochang, Yong Fang, Yijia Xu, and Zhan Wang. Automatic optimization for generating adversarial malware based on prioritized evolutionary computing. Applied Soft Computing, 173:112933, 2025.DOI
  54. [54]Gang Yang, Jun He, Bo Wu, Tao Xia, Linna Fan, and Lin Ni. Malimgda: Diffusion-based data augmentation for long-tailed malware family classification. In ICASSP 2025-2025 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 1–5. IEEE, 2025.DOI
  55. [55]Limin Yang, Arridhana Ciptadi, Ihar Laziuk, Ali Ahmadzadeh, and Gang Wang. Bodmas: An open dataset for learning based temporal analysis of pe malware. In 2021 IEEE Security and Privacy Workshops (SPW), pages 78–84. IEEE, 2021.DOI
  56. [56]Mashal Zainab, Salijona Dyrmishi, Hamid Bostani, Lorenzo Cavallaro, and Maxime Cordy. Breaking windows malware detection: A comprehensive evaluation of problem-space adversarial robustness. arXiv preprint arXiv:2609.34456, 2026.arxiv.org/abs/2609.34456
  57. [57]Dazhi Zhan, Xin Liu, Wei Bai, Wei Li, Shize Guo, and Zhisong Pan. Game-rl: Generating adversarial malware examples against api call based detection via reinforcement learning. IEEE Transactions on Dependable and Secure Computing, 2025.DOI
  58. [58]Dazhi Zhan, Yanyan Zhang, Ling Zhu, Jun Chen, Shiming Xia, Shize Guo, and Zhisong Pan. Enhancing reinforcement learning based adversarial malware generation to evade static detection. Alexandria Engineering Journal, 98:32–43, 2024.DOI
  59. [59]Lan Zhang, Peng Liu, Yoon-Ho Choi, and Ping Chen. Semantics-preserving reinforcement learning attack against graph neural networks for malware detection. IEEE Transactions on Dependable and Secure Computing, 20(2):1390–1402, 2022.DOI
  60. [60]Fangtian Zhong, Xiuzhen Cheng, Dongxiao Yu, Bei Gong, Shauiwen Song, and Jiguo Yu. Malfox: Camouflaged adversarial malware example generation based on conv-gans against black-box detectors. IEEE Transactions on Computers, 73(4):980–993, 2023.arxiv.org/abs/2011.01509

Paper details

vlnc:W_krxpanec
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 8

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents