Skip to main content
QUICK REVIEW

[Paper Review] Why an Android App is Classified as Malware? Towards Malware Classification Interpretation

Bozhi Wu, Sen Chen|arXiv (Cornell University)|Apr 24, 2020
Advanced Malware Detection TechniquesComputer Science66 references8 citations
TL;DR

This paper proposes XMal, a novel interpretable machine learning framework for Android malware detection that combines a multi-layer perceptron with a customized attention mechanism to identify key features and generate natural language explanations of malicious behaviors. XMal achieves high detection accuracy and outperforms LIME and Drebin in interpretability by accurately linking model decisions to domain-specific malware behaviors through attention-driven feature weighting and human-readable descriptions.

ABSTRACT

Machine learning (ML) based approach is considered as one of the most promising techniques for Android malware detection and has achieved high accuracy by leveraging commonly-used features. In practice, most of the ML classifications only provide a binary label to mobile users and app security analysts. However, stakeholders are more interested in the reason why apps are classified as malicious in both academia and industry. This belongs to the research area of interpretable ML but in a specific research domain (i.e., mobile malware detection). Although several interpretable ML methods have been exhibited to explain the final classification results in many cutting-edge Artificial Intelligent (AI) based research fields, till now, there is no study interpreting why an app is classified as malware or unveiling the domain-specific challenges. In this paper, to fill this gap, we propose a novel and interpretable ML-based approach (named XMal) to classify malware with high accuracy and explain the classification result meanwhile. (1) The first classification phase of XMal hinges multi-layer perceptron (MLP) and attention mechanism, and also pinpoints the key features most related to the classification result. (2) The second interpreting phase aims at automatically producing neural language descriptions to interpret the core malicious behaviors within apps. We evaluate the behavior description results by comparing with the existing interpretable ML-based methods (i.e., Drebin and LIME) to demonstrate the effectiveness of XMal. We find that XMal is able to reveal the malicious behaviors more accurately. Additionally, our experiments show that XMal can also interpret the reason why some samples are misclassified by ML classifiers. Our study peeks into the interpretable ML through the research of Android malware detection and analysis.

Motivation & Objective

  • To address the lack of interpretability in machine learning-based Android malware detection, where only binary labels are provided without insight into why an app is classified as malicious.
  • To develop a method that explains malware classification by identifying the most influential features and translating them into human-understandable descriptions of malicious behaviors.
  • To overcome limitations of existing interpretable ML methods like LIME and Drebin, which fail to account for feature correlations and produce mismatched or low-fidelity explanations in malware detection.
  • To enable security analysts and app stores to understand not just whether an app is malicious, but precisely how and why the model made that decision.
  • To improve model robustness by revealing potential misclassifications and exposing adversarial vulnerabilities through interpretable analysis.

Proposed method

  • XMal employs a two-phase approach: first, a multi-layer perceptron (MLP) with a customized attention mechanism to classify apps as malware or benign, while identifying the most relevant features.
  • The attention mechanism is adapted for scalar-valued features by using a fully connected network to compute attention weights that reflect the importance of each feature in the classification decision.
  • The second phase generates natural language descriptions of the malicious behaviors by mapping the top-weighted features to semantic interpretations using a pre-defined knowledge base of malware semantics.
  • The model is trained end-to-end to jointly optimize for classification accuracy and faithful attention-based feature attribution.
  • Feature correlation is preserved through the attention mechanism, which avoids the linear approximation flaws common in LIME and similar methods.
  • The framework is evaluated via human studies and quantitative analysis to validate the quality and fidelity of the generated explanations.

Experimental results

Research questions

  • RQ1How can we improve the interpretability of machine learning-based Android malware detection models beyond binary classification labels?
  • RQ2To what extent can a customized attention mechanism accurately identify the most influential features in malware classification, especially when features are interdependent?
  • RQ3Can the generated natural language descriptions of malicious behaviors be both accurate and meaningful to security analysts?
  • RQ4How does XMal’s interpretability compare to existing methods like LIME and Drebin in terms of fidelity and relevance to actual malware behaviors?
  • RQ5Can XMal reveal the root causes of misclassifications in ML-based malware detectors, thereby enhancing model transparency and robustness?

Key findings

  • XMal achieves high detection accuracy, comparable to state-of-the-art models, while simultaneously providing interpretable explanations of malicious behaviors.
  • The attention mechanism in XMal effectively captures feature dependencies, outperforming LIME, which relies on local linear approximations and fails to model correlations.
  • Human evaluation confirms that the natural language descriptions generated by XMal are more accurate and semantically meaningful than those from LIME and Drebin.
  • XMal successfully identifies and explains core malicious behaviors such as unauthorized data exfiltration, SMS spamming, and privilege escalation, with high alignment to ground-truth malware semantics.
  • The framework reveals misclassification causes by highlighting misleading or adversarially perturbed features, demonstrating improved robustness analysis capability.
  • XMal’s explanation fidelity is quantitatively superior, as shown by in-depth analysis comparing attention weights to known malware behavior patterns.

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.