Skip to main content
QUICK REVIEW

[Paper Review] Contextual Weisfeiler-Lehman Graph Kernel For Malware Detection

A. Sankara Narayanan, Guozhu Meng|arXiv (Cornell University)|Jun 21, 2016
Advanced Malware Detection TechniquesComputer Science10 references10 citations
TL;DR

This paper proposes the Contextual Weisfeiler-Lehman Graph Kernel (CWLK), a novel graph kernel that captures both structural neighborhood information and reachability context in program representation graphs (PRGs) for improved malware detection. CWLK outperforms state-of-the-art graph kernels and malware detection techniques by 5.27% and 4.87% in F-measure, respectively, while maintaining linear-time efficiency suitable for large-scale Android app analysis.

ABSTRACT

In this paper, we propose a novel graph kernel specifically to address a challenging problem in the field of cyber-security, namely, malware detection. Previous research has revealed the following: (1) Graph representations of programs are ideally suited for malware detection as they are robust against several attacks, (2) Besides capturing topological neighbourhoods (i.e., structural information) from these graphs it is important to capture the context under which the neighbourhoods are reachable to accurately detect malicious neighbourhoods. We observe that state-of-the-art graph kernels, such as Weisfeiler-Lehman kernel (WLK) capture the structural information well but fail to capture contextual information. To address this, we develop the Contextual Weisfeiler-Lehman kernel (CWLK) which is capable of capturing both these types of information. We show that for the malware detection problem, CWLK is more expressive and hence more accurate than WLK while maintaining comparable efficiency. Through our large-scale experiments with more than 50,000 real-world Android apps, we demonstrate that CWLK outperforms two state-of-the-art graph kernels (including WLK) and three malware detection techniques by more than 5.27% and 4.87% F-measure, respectively, while maintaining high efficiency. This high accuracy and efficiency make CWLK suitable for large-scale real-world malware detection.

Motivation & Objective

  • Address the limitation of existing graph kernels in capturing reachability context—critical for detecting malicious program behavior—beyond mere structural neighborhoods.
  • Improve the expressiveness of graph kernels for malware detection by integrating domain-specific contextual information from program representation graphs (PRGs).
  • Develop a kernel that maintains high efficiency while significantly improving detection accuracy over state-of-the-art graph kernels and malware detection techniques.
  • Demonstrate the superiority of contextual graph representation in detecting malware variants that evade syntax-based and structure-only detection methods.

Proposed method

  • Extend the Weisfeiler-Lehman (WL) kernel by incorporating reachability context through a modified vertex labeling scheme that propagates labels based on both local structure and path-based context.
  • Introduce a context-aware labeling process that tracks the sequence of labels along paths from root nodes, enabling the kernel to distinguish between structurally similar but contextually different neighborhoods.
  • Design the CWLK as a positive-definite kernel that computes similarity between PRGs by comparing their iteratively refined label distributions, preserving both topological and contextual information.
  • Support explicit feature vector representation of PRGs via the kernel, enabling compatibility with kernelized classifiers such as SVM for scalable malware detection.
  • Optimize the kernel computation to run in linear time relative to the density of the PRG, ensuring scalability for large-scale app analysis.
  • Use ICFG (Interprocedural Control Flow Graph) representations with a depth limit of h=2 as the primary PRG model for empirical evaluation.

Experimental results

Research questions

  • RQ1Can a graph kernel that captures both structural neighborhoods and their reachability context significantly improve malware detection accuracy compared to existing graph kernels?
  • RQ2How does the inclusion of contextual information in PRGs affect the expressiveness and performance of graph-based malware detection models?
  • RQ3Does the proposed CWLK kernel maintain high efficiency while achieving superior accuracy on large-scale real-world malware datasets?
  • RQ4To what extent does the contextual information in PRGs help detect malware variants that evade syntax-based and structure-only detection techniques?

Key findings

  • CWLK achieves an F-measure of 95.82% (±0.66), outperforming the state-of-the-art Drebin method by 4.87% in F-measure on a dataset of over 50,000 real-world Android apps.
  • CWLK improves upon the Weisfeiler-Lehman kernel (WLK) by 5.27% in F-measure, demonstrating the value of contextual information in enhancing detection accuracy.
  • The method maintains linear-time complexity with respect to PRG density, making it scalable for large-scale malware detection despite its enhanced expressiveness.
  • CWLK achieves a precision of 97.15% (±0.28) and recall of 94.53% (±0.75), outperforming all compared methods in both metrics.
  • Efficiency comparisons show that CWLK is comparable to other PRG-based methods (e.g., Allix et al.) and significantly faster than heavy-weight approaches like Adagio, though less efficient than non-PRG-based lightweight methods.
  • The results confirm that capturing both structural and contextual features in PRGs leads to superior detection performance, validating the hypothesis that reachability context is a critical signal for identifying malicious behavior.

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.