[Paper Review] Can We Trust Your Explanations? Sanity Checks for Interpreters in Android Malware Analysis
This paper proposes a framework to evaluate the reliability of explanation methods in Android malware analysis using three quantitative metrics—stability, robustness, and effectiveness—applied across five malware datasets and two tasks (malware detection and familial identification). The results show that the proposed metrics effectively assess explanation quality and reveal core malicious behaviors, enabling analysts to trust model interpretations in security-critical contexts.
With the rapid growth of Android malware, many machine learning-based malware analysis approaches are proposed to mitigate the severe phenomenon. However, such classifiers are opaque, non-intuitive, and difficult for analysts to understand the inner decision reason. For this reason, a variety of explanation approaches are proposed to interpret predictions by providing important features. Unfortunately, the explanation results obtained in the malware analysis domain cannot achieve a consensus in general, which makes the analysts confused about whether they can trust such results. In this work, we propose principled guidelines to assess the quality of five explanation approaches by designing three critical quantitative metrics to measure their stability, robustness, and effectiveness. Furthermore, we collect five widely-used malware datasets and apply the explanation approaches on them in two tasks, including malware detection and familial identification. Based on the generated explanation results, we conduct a sanity check of such explanation approaches in terms of the three metrics. The results demonstrate that our metrics can assess the explanation approaches and help us obtain the knowledge of most typical malicious behaviors for malware analysis.
Motivation & Objective
- To address the lack of consensus and trust in explanation results from machine learning models in Android malware analysis.
- To identify fundamental quality properties—stability, robustness, and effectiveness—that explanation approaches must satisfy for security-critical applications.
- To provide a principled, quantitative evaluation framework for explanation methods in malware analysis, applicable across diverse datasets and tasks.
- To empirically validate the reliability of five prominent explanation approaches (LIME, SHAP, LEMNA, DeepLIFT, SmoothGrad) in real-world malware detection and familial identification tasks.
- To demonstrate that the proposed metrics can not only assess explanation quality but also uncover representative malicious behaviors.
Proposed method
- Design a novel evaluation framework based on three quantitative metrics: stability (consistency of explanations under input perturbations), robustness (resilience to adversarial input changes), and effectiveness (relevance of explained features to model decisions).
- Apply the framework to five widely used Android malware datasets collected across different years to ensure temporal diversity and real-world relevance.
- Conduct two primary tasks: malware detection (binary classification) and familial identification (multi-class classification) to test explanation performance in varied contexts.
- Use local approximation and perturbation-based explanation techniques, including LIME, SHAP, LEMNA, DeepLIFT, and SmoothGrad, to generate explanations for model predictions.
- Measure stability via feature importance consistency across multiple perturbations of the same input; robustness via changes in explanations under adversarial input modifications; and effectiveness via correlation between explained features and actual model decisions.
- Compare results across explanation methods to identify which perform reliably under all three metrics, enabling informed selection for security analysts.
Experimental results
Research questions
- RQ1Can existing explanation methods for Android malware detection produce consistent and reliable explanations across different inputs and perturbations?
- RQ2How robust are explanation methods when faced with adversarial input modifications designed to deceive them?
- RQ3To what extent do the features highlighted by explanation methods align with actual decision-making mechanisms of the underlying models?
- RQ4Do the proposed metrics—stability, robustness, and effectiveness—enable a reliable and quantitative assessment of explanation quality in malware analysis?
- RQ5Which explanation method performs best overall across the three metrics in both malware detection and familial identification tasks?
Key findings
- The proposed stability metric successfully identifies explanation methods that produce consistent feature importance rankings across multiple perturbations of the same input.
- The robustness metric reveals that some explanation methods, particularly perturbation-based ones like LIME and SHAP, are highly sensitive to small input changes, indicating low reliability.
- The effectiveness metric demonstrates that only a subset of explanation methods highlight features that are truly influential in model decisions, with DeepLIFT and SmoothGrad showing stronger alignment with actual model behavior.
- Among the five evaluated methods, DeepLIFT and SmoothGrad consistently rank higher across all three metrics, suggesting greater reliability in security-critical contexts.
- The framework successfully identifies representative malicious behaviors—such as specific system permissions and API calls—by highlighting features that are both stable and effective in model predictions.
- The study confirms that existing evaluation methods in image classification (e.g., [16, 17, 18]) are insufficient for malware analysis due to domain-specific challenges like lack of gradient access and absence of human-annotated ground truth.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.