Make Evasion Harder: An Intelligent Android Malware Detection System

Shifu Hou, Yanfang Ye, Yangqiu Song, Melih Abdulhayoglu

Abstract

HinDroid is a sophisticated Android malware detection system that models the complex relationships between apps and APIs as a Heterogeneous Information Network (HIN). By leveraging multi-kernel learning to automatically weigh various semantic relationships, known as meta-paths, HinDroid achieves over 98% accuracy. This approach significantly outperforms traditional detection methods and makes evasion substantially more difficult for attackers by focusing on structural intent rather than simple API presence.

Introduction

As Android continues to dominate the global smartphone market, it has become the primary target for malware. Traditional detection systems often rely on analyzing a flat list of Application Programming Interface (API) calls. However, attackers have become adept at evasion tactics, such as reordering code, inserting junk instructions, or using different invocation methods to hide malicious intent while maintaining the same API functionality.

The core challenge is that the mere presence of an API call does not always reveal its intent. For example, both a benign app and a ransomware app might use "file write" APIs, but the ransomware uses them in a specific structural pattern—often within a specific code block alongside encryption APIs. HinDroid aims to capture these higher-level semantics to make evasion much more difficult for malware authors.

Methods

HinDroid operates through a multi-stage pipeline designed to extract and analyze complex relationships within Android applications.

System architecture of HinDroid, illustrating the pipeline from APK decompilation to malware detection.

The process begins with Decompilation, unzipping APKs and converting dex files into human-readable smali code. From this, the system performs Relationship Extraction, identifying four distinct types of relations:

  • R0 (App-API): API presence in the app.
  • R1 (API-CodeBlock): Coexistence of two APIs in the same method.
  • R2 (API-Package): APIs belonging to the same package (e.g., java.net).
  • R3 (API-InvokeMethod): Shared invocation styles (e.g., invoke-static).

These entities and relations are modeled as a Heterogeneous Information Network (HIN). The system then performs Meta-path Analysis, defining sequences of relations that capture specific semantic meanings. For instance, a path like App → API → Code Block → API → App links apps sharing different APIs within the same functional block. Finally, Multi-Kernel Learning (MKL) is used to automatically weigh these meta-paths, assigning higher importance to those most predictive of malware within an SVM-based classification framework.

Experimental Setup

The study utilized real-world data provided by the Comodo Cloud Security Center. The training set consisted of 1,834 apps (920 benign, 914 malicious), while the testing set included 500 apps (198 benign, 302 malicious). To evaluate real-world viability, the system was also deployed on a massive stream of approximately 2,700,000 Android apps over a six-month period within Comodo’s actual security infrastructure.

Key Results

HinDroid demonstrated superior performance compared to traditional machine learning baselines.

Comparison of HinDroid performance against baseline methods using different feature sets.

As shown in the table above, HinDroid achieved an Accuracy (ACC) of 0.986 and an F1-score of 0.988. It significantly outperformed models like Naive Bayes (0.836 ACC) and standard SVMs (0.944 ACC). Notably, even when baseline algorithms were provided with the same engineered relationship features (the f2 test), HinDroid's HIN-based approach remained superior.

Beyond accuracy, the system demonstrated linear scalability, proving capable of handling the high volume of new apps (over 15,000 per day) encountered in commercial security environments.

Discussion and Conclusion

A key insight from this research is that structure is harder to spoof than content. While an attacker can easily add "dummy" API calls, altering the structural relationship between APIs often breaks the malware's core functionality. By using meta-paths, HinDroid identifies similarity based on structural patterns and package relationships, providing a more robust semantic analysis.

While HinDroid represents a significant step forward, it relies on static analysis. Advanced malware using heavy encryption or dynamic code loading may still present challenges. Currently, HinDroid is integrated into the Comodo Mobile Security product, providing real-world protection against evolving Android threats.

Summary updated

BibTeX
@inproceedings{hou2018make,
  author = {Shifu Hou and Yanfang Ye and Yangqiu Song and Melih Abdulhayoglu},
  title = {{Make Evasion Harder: An Intelligent Android Malware Detection System}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.24963/ijcai.2018/737},
}
Figure