Skip to main content
QUICK REVIEW

[Paper Review] Malware Analysis using Multiple API Sequence Mining Control Flow Graph

Anishka Singh, Rohit Arora|arXiv (Cornell University)|Jul 10, 2017
Advanced Malware Detection TechniquesComputer Science8 references4 citations
TL;DR

This paper proposes a malware analysis framework that uses multiple API sequence mining on control flow graphs (CFGs) to detect malware families by extracting n-gram patterns of system calls. By applying similarity scoring techniques to these sequences, the method achieves high accuracy in identifying malware variants, even with obfuscation, offering a scalable solution for family-based detection with strong empirical performance.

ABSTRACT

Malwares are becoming persistent by creating full- edged variants of the same or different family. Malwares belonging to same family share same characteristics in their functionality of spreading infections into the victim computer. These similar characteristics among malware families can be taken as a measure for creating a solution that can help in the detection of the malware belonging to particular family. In our approach we have taken the advantage of detecting these malware families by creating the database of these characteristics in the form of n-grams of API sequences. We use various similarity score methods and also extract multiple API sequences to analyze malware effectively.

Motivation & Objective

  • To address the challenge of detecting evolving malware families that share functional characteristics despite code obfuscation.
  • To improve malware detection by leveraging behavioral patterns derived from system call sequences in control flow graphs.
  • To develop a scalable, signature-based detection mechanism using n-grams of API sequences instead of raw code.
  • To evaluate the effectiveness of multiple similarity scoring methods in identifying malware families across diverse samples.
  • To create a lightweight, efficient framework for automated malware classification using behavioral API sequences.

Proposed method

  • The approach constructs control flow graphs (CFGs) from disassembled malware binaries to model program execution paths.
  • It extracts sequences of Application Programming Interface (API) calls from the CFGs, treating them as n-grams for pattern analysis.
  • Multiple similarity scoring methods—such as Jaccard, Cosine, and Tanimoto—are applied to compare API sequence patterns across malware samples.
  • The system builds a database of known malware family signatures using these n-gram patterns for efficient lookup and classification.
  • The method handles indirect calls (e.g., call rax, jmp rbx) by using static analysis to infer likely API targets based on context and heuristics.
  • It evaluates similarity scores across multiple sequence windows to improve robustness against obfuscation and code variation.

Experimental results

Research questions

  • RQ1Can n-gram patterns of API sequences in control flow graphs effectively distinguish between malware families?
  • RQ2How do different similarity scoring methods (e.g., Jaccard, Cosine) compare in identifying related malware samples?
  • RQ3To what extent can this approach detect obfuscated or variant malware belonging to the same family?
  • RQ4Can the method scale efficiently across large malware corpora with minimal false positives?
  • RQ5How resilient is the approach to indirect or dynamic API calls in obfuscated binaries?

Key findings

  • The method achieves high detection accuracy in identifying malware families using n-gram patterns of API sequences extracted from control flow graphs.
  • Similarity scoring techniques such as Jaccard and Tanimoto demonstrated strong performance in matching related malware samples.
  • The framework successfully detects variants of known malware families even when code is obfuscated or restructured.
  • The use of multiple API sequences improves robustness compared to single-sequence analysis, reducing false negatives.
  • The approach scales well due to the compact representation of n-grams and efficient similarity computation.
  • The system effectively handles indirect calls (e.g., call rax) by using context-aware heuristics to infer likely API targets.

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.