Can We Leverage Predictive Uncertainty to Detect Dataset Shift and Adversarial Examples in Android Malware Detection?

Deqiang Li, Tian Qiu, Shuo Chen, Qianmu Li, Shouhuai Xu
9/20/2021
cs.CRstat.ML

Official code: deqangss/malware-uncertainty (17 stars, Python, last commit 2021-11-30).

Abstract

The deep learning approach to detecting malicious software (malware) is promising but has yet to tackle the problem of dataset shift, namely that the joint distribution of examples and their labels associated with the test set is different from that of the training set. This problem causes the degradation of deep learning models without users' notice.

Show full abstract

In order to alleviate the problem, one approach is to let a classifier not only predict the label on a given example but also present its uncertainty (or confidence) on the predicted label, whereby a defender can decide whether to use the predicted label or not. While intuitive and clearly important, the capabilities and limitations of this approach have not been well understood. In this paper, we conduct an empirical study to evaluate the quality of predictive uncertainties of malware detectors. Specifically, we re-design and build 24 Android malware detectors (by transforming four off-the-shelf detectors with six calibration methods) and quantify their uncertainties with nine metrics, including three metrics dealing with data imbalance. Our main findings are: (i) predictive uncertainty indeed helps achieve reliable malware detection in the presence of dataset shift, but cannot cope with adversarial evasion attacks; (ii) approximate Bayesian methods are promising to calibrate and generalize malware detectors to deal with dataset shift, but cannot cope with adversarial evasion attacks; (iii) adversarial evasion attacks can render calibration methods useless, and it is an open problem to quantify the uncertainty associated with the predicted labels of adversarial examples (i.e., it is not effective to use predictive uncertainty to detect adversarial examples).

View on arXivView PDF

Code Implementations(1)

deep learning, malware detection, predictive uncertainty, dataset shift, calibration, uncertainty quantification, android malware

176Python, ShellSep 2, 20215 years ago
deep-malware-detectionmalware-uncertaintyuncertainty-quantification

Similar Papers

Cite this paper

@article{li2021leverage,
  title  = {Can We Leverage Predictive Uncertainty to Detect Dataset Shift and Adversarial Examples in Android Malware Detection?},
  author = {Deqiang Li and Tian Qiu and Shuo Chen and Qianmu Li and Shouhuai Xu},
  year   = {2021},
  eprint = {2109.09654},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.09654}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2109.09654.svg)](https://codeofpaper.com/paper/2109.09654)

Discussion