Skip to main content
QUICK REVIEW

[Paper Review] Android-COCO: Android Malware Detection with Graph Neural Network for Byte- and Native-Code

Peng Xu|arXiv (Cornell University)|Dec 19, 2021
Advanced Malware Detection TechniquesComputer Science7 citations
TL;DR

This paper proposes Android-COCO, a graph neural network-based approach that detects Android malware by analyzing both DEX byte-code and native code (.so files) through program dependence graph (PDG) embeddings. It achieves 99.86% accuracy on a large dataset of 100,113 apps, outperforming state-of-the-art methods by over 5% in F-measure, marking the first work to jointly analyze byte- and native-code using graph embeddings for malware detection.

ABSTRACT

With the popularity of Android growing exponentially, the amount of malware has significantly exploded. It is arguably one of the most viral problems on mobile platforms. Recently, various approaches have been introduced to detect Android malware, the majority of these are either based on the Manifest File features or the structural information, such as control flow graph and API calls. Among those methods, nearly all of them only consider the Java byte-code as the target to detect malicious behaviors. However, Recent research and our own statistics show that native payloads are commonly used in both benign and malicious apps. Current state-of-the-art Android static analysis tools avoid handling native method invocation. None of those tools have the capability to capture the inter-language behaviors. In this work, we explore an ensemble mechanism, which presents how the combination of byte-code and native-code analysis of Android applications can be efficiently used to cope with the advanced sophistication of Android malware. We, therefore, present a multi-layer approach that utilizes deep learning, natural language processing (NLP), as well as graph embedding techniques to handle the threats of Android malware, both from the Java byte-code and native code. After that, we design an ensemble algorithm to get the final result of malware detection system. To be specific, the first layer of our detection approach operates on the byte-code of application and the native code level, whereas the second layer focuses on the ensemble algorithm. Large-scale experiments on 100,113 samples (35,113 malware and 65,000 benign) show that only byte-code sub-system yields 99.8% accuracy and native-code sub-system yields an accuracy of 96.6%, whereas the Android-COCO method attains an accuracy of 99.86% which outperforms various related works.

Motivation & Objective

  • Address the limitation of Manifest-based malware detection, which fails against obfuscated apps that hide malicious behavior through code obfuscation.
  • Overcome the gap in existing detection systems that focus only on DEX bytecode and ignore malicious native code, which is present in 86% of Android apps.
  • Develop a robust, structure-aware malware detection system resilient to common obfuscation techniques like instruction substitution and code hiding.
  • Integrate byte-code and native-code analysis into a unified, ensemble-based framework to improve detection accuracy and generalization.
  • Demonstrate the effectiveness of graph embedding techniques—specifically for PDGs and FCGs—in capturing deep structural patterns indicative of malware.

Proposed method

  • Transform DEX bytecode into Program Dependence Graphs (PDGs) to model data and control dependencies across functions.
  • Apply graph embedding techniques to convert PDGs into fixed-size vector representations that preserve topological and semantic features of the code structure.
  • Process native code (.so files) using the same graph embedding approach to generate structural embeddings for inter-language analysis.
  • Train separate multi-layer perceptron (MLP) classifiers on the embedded representations from both byte-code and native-code sub-systems.
  • Combine the outputs of the two classifiers using an ensemble learning algorithm to improve overall detection performance.
  • Use a two-layer architecture: the first layer performs structural detection via graph embeddings on DEX and native code, and the second layer fuses the results via ensemble learning.

Experimental results

Research questions

  • RQ1Can program dependence graphs (PDGs) derived from DEX bytecode and native code effectively capture structural patterns indicative of Android malware?
  • RQ2To what extent do graph embedding techniques improve malware detection accuracy compared to traditional feature-based or signature-based methods?
  • RQ3How does combining byte-code and native-code analysis enhance detection performance, especially against obfuscated malware?
  • RQ4Can an ensemble model that fuses results from separate byte-code and native-code detectors achieve higher accuracy than individual sub-systems?
  • RQ5How robust is the proposed approach against advanced obfuscation techniques that alter code appearance without changing behavior?

Key findings

  • The byte-code sub-system using PDG embeddings achieved a detection accuracy of 99.8% on a dataset of 100,113 Android apps (35,113 malware, 65,000 benign).
  • The native-code sub-system achieved a detection accuracy of 96.66% using graph embeddings on .so files, demonstrating the viability of native code analysis for malware detection.
  • The ensemble model combining both sub-systems improved the overall accuracy to 99.86%, significantly outperforming state-of-the-art methods by over 5.27% in F-measure.
  • The proposed approach is the first to jointly analyze both DEX bytecode and native code using graph embeddings, enabling detection of malware that evades traditional signature- and manifest-based systems.
  • The method remains effective against common obfuscation techniques such as identifier renaming, code hiding, and instruction substitution, due to its focus on structural program properties.
  • Despite high performance, the method faces scalability challenges: graphs with over 90,000 nodes could not be processed due to high memory consumption, limiting the dataset size.

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.