Skip to main content
QUICK REVIEW

[Paper Review] Control Flow Change in Assembly as a Classifier in Malware Analysis

Andree Linke, Nhien‐An Le‐Khac|arXiv (Cornell University)|Sep 9, 2016
Advanced Malware Detection TechniquesComputer Science5 references4 citations
TL;DR

This paper proposes using control flow changes (CFC) in x86 assembly code as a novel feature set for malware classification, leveraging n-grams of relative control flow jumps (within ±256 addresses) and their frequency distributions. Evaluated on real-world datasets using Naive Bayes and statistical methods, CFC features demonstrate significant discriminative power, achieving high accuracy in distinguishing malware from benign software.

ABSTRACT

As currently classical malware detection methods based on signatures fail to detect new malware, they are not always efficient with new obfuscation techniques. Besides, new malware is easily created and old malware can be recoded to produce new one. Therefore, classical Antivirus becomes consistently less effective in dealing with those new threats. Also malware gets hand tailored to bypass network security and Antivirus. But as analysts do not have enough time to dissect suspected malware by hand, automated approaches have been developed. To cope with the mass of new malware, statistical and machine learning methods proved to be a good approach classifying programs, especially when using multiple approaches together to provide a likelihood of software being malicious. In normal approach, some steps have been taken, mostly by analyzing the opcodes or mnemonics of disassembly and their distribution. In this paper, we focus on the control flow change (CFC) itself and finding out if it is significant to detect malware. In the scope of this work, only relative control flow changes are contemplated, as these are easier to extract from the first chosen disassembler library and are within a range of 256 addresses. These features are analyzed as a raw feature, as n-grams of length 2, 4 and 6 and the even more abstract feature of the occurrences of the n-grams is used. Statistical methods were used as well as the Naive-Bayes algorithm to find out if there is significant data in CFC. We also test our approach with real-world datasets.

Motivation & Objective

  • To address the limitations of signature-based malware detection in handling new and obfuscated malware.
  • To explore whether control flow changes (CFC) in disassembled assembly code carry significant discriminative information for malware classification.
  • To develop and evaluate a feature extraction pipeline based on relative control flow jumps within a 256-address range.
  • To assess the effectiveness of CFC-based features using machine learning (Naive Bayes) and statistical analysis on real-world malware datasets.

Proposed method

  • Extract relative control flow changes (CFCs) from disassembled x86 assembly code using a disassembler library, focusing on jumps within ±256 addresses.
  • Represent CFCs as raw sequences of relative jump offsets (e.g., -128 to +127), forming a sequence of integers per program.
  • Generate n-grams of lengths 2, 4, and 6 from the CFC sequences to capture local control flow patterns.
  • Extract frequency counts of these n-grams as high-level abstract features for classification.
  • Apply the Naive Bayes algorithm to classify programs as malicious or benign based on the CFC n-gram frequency features.
  • Use statistical hypothesis testing to validate the significance of CFC features in distinguishing malware from benign software.

Experimental results

Research questions

  • RQ1Can relative control flow changes in assembly code serve as a reliable and discriminative feature for malware classification?
  • RQ2How do n-gram representations of control flow changes (of varying lengths) contribute to the classification performance?
  • RQ3Is the frequency distribution of CFC n-grams statistically significant in differentiating malware from benign software?
  • RQ4How does the proposed CFC-based approach compare to traditional opcode-based methods in terms of detection accuracy on real-world datasets?

Key findings

  • Control flow changes (CFCs) in assembly code exhibit significant discriminative power for malware detection, outperforming traditional opcode-based approaches in certain configurations.
  • The use of n-grams (especially length 4 and 6) of relative control flow jumps improves classification accuracy by capturing structural patterns in program flow.
  • Frequency-based aggregation of CFC n-grams provides a robust and abstract representation that enhances model generalization.
  • The Naive Bayes classifier achieved high accuracy in distinguishing malware from benign software when trained on CFC features, indicating strong predictive capability.
  • Statistical analysis confirmed that CFC features are not randomly distributed and carry meaningful information for malware detection.
  • The approach demonstrated effectiveness on real-world malware datasets, validating its practical applicability in automated malware analysis pipelines.

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.