Skip to main content
QUICK REVIEW

[Paper Review] Emulating malware authors for proactive protection using GANs over a distributed image visualization of dynamic file behavior

Vineeth S. Bhaskara, Debanjan Bhattacharyya|arXiv (Cornell University)|Jul 19, 2018
Advanced Malware Detection TechniquesComputer Science8 citations
TL;DR

This paper proposes a GAN-based framework that generates synthetic malware by training on a distributed RGB image representation of dynamic file behavior, enabling proactive threat detection. By encoding API call n-grams into images, the model generates novel, semantically coherent malware variants through noise vector arithmetic, improving detection of unknown threats.

ABSTRACT

Malware authors have always been at an advantage of being able to adversarially test and augment their malicious code, before deploying the payload, using anti-malware products at their disposal. The anti-malware developers and threat experts, on the other hand, do not have such a privilege of tuning anti-malware products against zero-day attacks pro-actively. This allows the malware authors to being a step ahead of the anti-malware products, fundamentally biasing the cat and mouse game played by the two parties. In this paper, we propose a way that would enable machine learning based threat prevention models to bridge that gap by being able to tune against a deep generative adversarial network (GAN), which takes up the role of a malware author and generates new types of malware. The GAN is trained over a reversible distributed RGB image representation of known malware behaviors, encoding the sequence of API call ngrams and the corresponding term frequencies. The generated images represent synthetic malware that can be decoded back to the underlying API call sequence information. The image representation is not only demonstrated as a general technique of incorporating necessary priors for exploiting convolutional neural network architectures for generative or discriminative modeling, but also as a visualization method for easy manual software or malware categorization, by having individual API ngram information distributed across the image space. In addition, we also propose using smart-definitions for detecting malwares based on perceptual hashing of these images. Such hashes are potentially more effective than cryptographic hashes that do not carry any meaningful similarity metric, and hence, do not generalize well.

Motivation & Objective

  • Address the imbalance in adversarial testing by enabling anti-malware systems to emulate malware authors proactively.
  • Overcome the limitation of cryptographic hashing in detecting zero-day malware by modeling behavioral patterns instead of file signatures.
  • Enable deep learning models to proactively discover unknown vulnerabilities by generating synthetic malware with realistic behavioral semantics.
  • Develop a reversible image representation of malware behavior that preserves semantic structure for both visualization and machine learning.
  • Explore vector arithmetic in latent space to combine behavioral traits of known malware into new, hybrid malware patterns

Proposed method

  • Transform dynamic file behavior into a reversible distributed RGB image representation using API call n-grams and term frequency encoding.
  • Train a deep convolutional GAN on the image representations to learn the distribution of malicious behaviors and generate new synthetic malware images.
  • Use the generator network to sample new malware representations from latent noise vectors, enabling controlled generation of novel malware behaviors.
  • Apply noise vector arithmetic (e.g., $ \vec{z}_{\text{A}} - \vec{z}_{\text{B}} + \vec{z}_{\text{C}} $) in the latent space to combine semantic features of different malware behaviors into hybrid variants.
  • Decode generated images back into API call sequences to validate semantic coherence and behavioral plausibility.
  • Implement perceptual hashing on image representations to detect malware families based on visual similarity, improving generalization over cryptographic hashes.

Experimental results

Research questions

  • RQ1Can a deep generative model like a GAN be effectively trained on image-visualized dynamic malware behavior to generate realistic synthetic malware?
  • RQ2Does the image representation preserve sufficient semantic information to allow accurate decoding of API call sequences and behavioral patterns?
  • RQ3Can vector arithmetic in the latent space of the GAN produce coherent hybrid malware behaviors by combining features from multiple malware samples?
  • RQ4Can perceptual hashing of the image representations improve malware family detection compared to traditional cryptographic hashing?
  • RQ5To what extent can this framework enable proactive threat detection by simulating adversarial testing before real-world deployment?

Key findings

  • The image representation successfully encodes API call n-grams and term frequencies into a format compatible with convolutional neural networks, enabling effective generative and discriminative modeling.
  • The GAN generator produces synthetic malware images that can be decoded back into meaningful API call sequences, demonstrating semantic fidelity of the generated behavior.
  • Noise vector arithmetic in the latent space produces hybrid malware representations that retain coherent malicious semantics, such as registry modification and remote command execution.
  • Perceptual hashing of the image representations enables detection of malware families based on visual similarity, offering better generalization than cryptographic hashes.
  • The model enables proactive threat detection by simulating adversarial testing through synthetic malware generation, reducing the window of exposure to zero-day threats.
  • The approach demonstrates that architectural engineering in deep learning can be adapted to executable behavior modeling, even without direct access to source code.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.