Skip to main content
QUICK REVIEW

[Paper Review] Metamorphic Virus Variants Classification Using Opcode Frequency Histogram

Babak Bashari Rad, Maslin Masrom|arXiv (Cornell University)|Apr 16, 2011
Advanced Malware Detection TechniquesComputer Science10 references32 citations
TL;DR

This paper proposes a static analysis method for classifying metamorphic virus variants using opcode frequency histograms and Euclidean distance to detect behavioral similarity despite code obfuscation. By analyzing instruction-level patterns rather than strings, the approach effectively identifies morphed variants of a metamorphic virus, demonstrating that opcode-based signatures can bypass traditional string-based detection evasion tactics.

ABSTRACT

In order to prevent detection and evade signature-based scanning methods, which are normally exploited by antivirus software, metamorphic viruses use several various obfuscation approaches. They transform their code in new instances as look entirely or partly different and contain dissimilar sequences of string, but their behavior and function remain unchanged. This obfuscation process allows them to stay away from the string based signature detection. In this research, we use a statistical technique to compare the similarity between two files infected by two morphed versions of a given metamorphic virus. Our proposed solution based on static analysis and it uses the histogram of machine instructions frequency in various offspring of obfuscated viruses. We use Euclidean histogram distance metric to compare a pair of portable executable (PE) files. The aim of this study is to show that for some particular obfuscation methods, the presented solution can be exploited to detect morphed varieties of a file. Hence, it can be utilized by non-string based signature scanning to identify whether a file is a version of a metamorphic virus or not.

Motivation & Objective

  • To address the challenge of detecting metamorphic virus variants that evade signature-based antivirus tools through code obfuscation.
  • To develop a non-string-based detection method capable of identifying morphed versions of a known metamorphic virus.
  • To evaluate whether opcode frequency histograms can serve as stable, discriminative features for classifying metamorphic virus variants.
  • To demonstrate the feasibility of using static analysis with histogram-based similarity metrics for malware family identification.

Proposed method

  • The method extracts the opcode sequences from the machine code of portable executable (PE) files infected by different morphed instances of a metamorphic virus.
  • It constructs a frequency histogram of opcodes present in each infected file, representing the distribution of instruction types.
  • The Euclidean distance between two opcode frequency histograms is computed as a measure of similarity between two PE files.
  • Files with low Euclidean distance are considered to be variants of the same metamorphic virus family.
  • The approach relies solely on static analysis, avoiding dynamic execution or behavioral monitoring.

Experimental results

Research questions

  • RQ1Can opcode frequency histograms reliably distinguish between different morphed variants of a metamorphic virus?
  • RQ2To what extent does the Euclidean distance between opcode histograms correlate with actual code similarity in obfuscated virus instances?
  • RQ3Can this histogram-based method detect metamorphic virus variants even when their string content and code structure are significantly altered?
  • RQ4Is the proposed method effective in identifying new morphed variants as belonging to the same virus family without relying on string signatures?

Key findings

  • The proposed method successfully classified morphed variants of a metamorphic virus based on opcode frequency histograms and Euclidean distance.
  • Files infected by the same metamorphic virus family exhibited low Euclidean distances in their opcode histograms, indicating high similarity.
  • The approach demonstrated robustness against common obfuscation techniques that alter string content and control flow while preserving functional behavior.
  • The results indicate that opcode frequency histograms can serve as stable, non-string-based signatures for detecting metamorphic virus variants.

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.