Skip to main content
QUICK REVIEW

[Paper Review] HAWK: Rapid Android Malware Detection through Heterogeneous Graph Attention Networks

Yiming Hei, Renyu Yang|arXiv (Cornell University)|Aug 17, 2021
Advanced Malware Detection TechniquesComputer Science45 references8 citations
TL;DR

Hawk proposes a novel, incremental malware detection framework for Android using heterogeneous graph attention networks (HAWK) to model Android entities and behavioral relationships as a heterogeneous information network (HIN). By leveraging meta-path and meta-graph based graph attention networks (MsGAT and incremental MsGAT++), Hawk enables rapid, accurate detection of out-of-sample apps with 99.2% accuracy and 3.5ms average inference time, achieving 50x faster training than prior methods.

ABSTRACT

Android is undergoing unprecedented malicious threats daily, but the existing methods for malware detection often fail to cope with evolving camouflage in malware. To address this issue, we present HAWK, a new malware detection framework for evolutionary Android applications. We model Android entities and behavioural relationships as a heterogeneous information network (HIN), exploiting its rich semantic metastructures for specifying implicit higher-order relationships. An incremental learning model is created to handle the applications that manifest dynamically, without the need for re-constructing the whole HIN and the subsequent embedding model. The model can pinpoint rapidly the proximity between a new application and existing in-sample applications and aggregate their numerical embeddings under various semantics. Our experiments examine more than 80,860 malicious and 100,375 benign applications developed over a period of seven years, showing that HAWK achieves the highest detection accuracy against baselines and takes only 3.5ms on average to detect an out-of-sample application, with the accelerated training time of 50x faster than the existing approach.

Motivation & Objective

  • Address the challenge of detecting evolving Android malware that bypasses traditional signature- and feature-based detection through dynamic, scalable learning.
  • Overcome the static nature of existing heterogeneous information network (HIN) models that cannot efficiently handle out-of-sample apps without full retraining.
  • Develop an incremental learning mechanism that enables rapid detection of new Android applications without reconstructing the entire HIN or embedding model.
  • Leverage rich semantic meta-structures in HINs to capture higher-order, implicit relationships among Android entities such as permissions, APIs, and classes.
  • Achieve high detection accuracy and low inference latency for real-time deployment in large-scale Android ecosystems.

Proposed method

  • Model Android applications as a heterogeneous information network (HIN) by extracting seven entity types: App, permission, permission type, API, class, interface, and .so file from decompiled APKs.
  • Define meta-paths and meta-graphs to capture higher-order semantic relationships between entities, such as App–Permission–API–App chains reflecting behavioral patterns.
  • Design MsGAT (Multi-semantic Graph Attention Network) to aggregate neighbor embeddings within and across different meta-structures using learnable attention weights.
  • Develop incremental MsGAT++ to enable efficient representation learning for out-of-sample apps by reusing existing HIN embeddings without full retraining.
  • Utilize graph attention mechanisms to dynamically weigh the importance of neighboring nodes based on semantic relevance, improving representation quality.
  • Integrate the learned embeddings into a classifier for malware detection, enabling inductive, scalable, and rapid inference on unseen applications.

Experimental results

Research questions

  • RQ1Can a heterogeneous information network (HIN) effectively model complex, implicit relationships among Android entities to improve malware detection beyond traditional feature engineering?
  • RQ2How can HIN-based models be made incremental to support real-time detection of new, out-of-sample Android applications without full retraining?
  • RQ3To what extent can graph attention networks (GATs) enhance representation learning in HINs by adaptively aggregating multi-sourced neighborhood information?
  • RQ4Can the proposed incremental learning mechanism achieve both high detection accuracy and low inference latency in large-scale Android malware detection?
  • RQ5How does the framework perform in detecting evolving malware that uses obfuscation or repackaging techniques to evade traditional detection?

Key findings

  • Hawk achieves 99.2% detection accuracy on a dataset of over 181,000 Android apps (80,860 malicious, 100,375 benign) collected over seven years, outperforming all baseline methods.
  • The average inference time for detecting a new, out-of-sample app is only 3.5ms, demonstrating high-speed deployment suitability.
  • Hawk reduces training time by 50x compared to the prior state-of-the-art method (AiDroid), significantly improving scalability and efficiency.
  • The incremental MsGAT++ model enables rapid detection of new apps by reusing existing HIN embeddings, avoiding costly full re-construction of the graph and embedding model.
  • The use of meta-paths and meta-graphs allows Hawk to capture higher-order, implicit relationships (e.g., App1–Permission–App2) that are undetectable via traditional feature-based methods.
  • The framework demonstrates strong robustness against evolving malware, including obfuscated and repackaged variants, due to its ability to model semantic relationships beyond explicit features.

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.