Paper commentary
DL-Droid: Deep learning based android malware detection using real devices
- Problem Dynamic detection of Android malware depends on how many app behaviours the test input events trigger, and most existing platforms drive apps with stateless random events.
- Method Runs apps on real phones with DroidBot or Monkey, logs dynamic features, adds permission features, ranks them with InfoGain and trains a multilayer perceptron in H2O.
- Results Reached a w-FM of 0.9627 with dynamic features and 0.9882 with static plus dynamic features, both for DL(200,200,200) under stateful input generation.
Why the way apps are exercised matters
Android malware detection has moved toward dynamic analysis because obfuscation, encryption and update attacks make static analysis easier to evade. Dynamic analysis runs an app in a controlled environment and watches its behaviour, but a malicious behaviour is only recorded if it occurs during that run. The amount of code a run reaches therefore depends on the stream of input events the tool sends, which makes input generation a determining factor.
Monkey sends pseudo-random events and has been the default in most existing dynamic platforms, whereas DroidBot chooses each event from the current state of the interface. Earlier studies by these authors reported that a stateful tool could exceed the code coverage of Monkey and was more stable than the stateless approach.
DL-Droid keeps stateful generation as its default and uses the stateless method as the comparison baseline, with both running on real phones. Real phones were chosen over emulators because an earlier study found them more effective in stability and in the number of features detected.
From an app run to a feature vector
DynaLog installs each app on one of eight phones and runs it there, logging API calls and actions/events during the run.
The logged features are converted into binary vectors that mark each feature as present (1) or absent (0). DynaLog originally extracted 178 dynamic features, and InfoGain kept the top 120 of them, while permissions are extracted statically before each dynamic run. Table 1 totals 420 features: 97 application attribute features, 23 actions/events features and 300 permission features.
The 420 features are then ranked with InfoGain in WEKA.
Each configuration is scored with the weighted F-measure \(W\text{-}FM = (F_m N_m + F_b N_b)/(N_m + N_b)\), where \(F_m\) and \(F_b\) are the F-measures of the malware and benign classes and \(N_m\) and \(N_b\) are their sample counts.
What stateful input changes in feature ranking
The InfoGain score of TelephonyManager getDeviceId is 0.099 under stateful DroidBot input and 0.075 under stateless Monkey input. The same direction appears for getSubscriberId, which scores 0.057 with DroidBot and 0.042 with Monkey, and for action.SMS_RECEIVED, which scores 0.096 with DroidBot and 0.057 with Monkey.
Each ranking is computed on the features of its own input condition, so the scores show how informative a feature is within that run set. The authors read the higher scores under DroidBot as evidence that the stateful method triggered more behaviours than the stateless method.
Choosing the hidden layer configuration
Table 6 tests 22 combinations of hidden neurons across two, three and four layers, using stateful input generation and dynamic features only. DL(200,200,200) gave the highest w-FM, 0.9627, with a running time of 09:05 minutes.
Under stateless generation with dynamic features, the best configuration was 300,100,300, with a w-FM of 0.9589 and a running time of 08:08. The stateful model therefore holds the top spot in the dynamic-only setting.
With permissions added, the stateful 200,200,200 network reached a w-FM of 0.9882, the highest value in Table 7.
DL against seven classifiers
With stateful input and dynamic features only, DL(200,200,200) reached a w-FM of 0.9627, above Random Forest at 0.937, PART at 0.92, J48 at 0.917 and the SVM and logistic classifiers between 0.868 and 0.873. Naive Bayes was lowest at 0.764. The text rounds the Random Forest figure to 0.94, while Table 10 gives 0.937, and the table value is used here.
With permissions added, DL(200,200,200) reached a w-FM of 0.9882, above Random Forest at 0.971, PART at 0.954 and J48 at 0.949. Naive Bayes again scored lowest at 0.86 among the eight models.
With dynamic features only, stateful input improved the w-FM over stateless input for every classifier except Naive Bayes and J48 Decision Tree. With static plus dynamic features, stateful input was superior for all the classifiers, and their stateless scores appear only in the comparison figure, so the per-classifier gaps are not restated here.
Comparison with earlier deep learning systems
DroidDetector reached 96.76 accuracy with static and dynamic features on 880 benign and 880 malware samples with [150,150] neurons. DL-Droid with stateful input and static plus dynamic features reached 98.5 accuracy on 19,620 benign and 11,505 malware samples with [200,200,200] neurons.
Deep4MalDroid reached 93.68 with dynamically extracted system calls, and AutoDroid reached 96.66 with static API calls, while Maldozer reached 96.29 with static features. These systems use different feature types and sample sizes from DL-Droid, so the figures are read as reported values rather than a controlled comparison.
The authors state that DL-Droid outperformed DroidDetector in all other metrics while using more samples. In the dynamic-only setting, the stateful DL-Droid reached 95.21 accuracy and the stateless version 94.95.
Limitations
Only the multilayer perceptron implementation available in H2O was used as the deep classifier, so other deep architectures were not tested.
The best configurations were selected from the same tables that report their scores, and the results come from 10-fold cross validation. Stateful and stateless runs were given different time budgets, 180 s and 300 s, so run length differs between the two input methods.
The abstract gives 97.8% and 99.6% as detection rates, and the table lists 97.76 and 99.56 as recall for the stateful rows. The dataset is available to other researchers only on request.
Paper info
- Authors
- Mohammed K. Alzaylaee, Suleiman Y. Yerima, Sakir Sezer
- Venue
- arXiv · Preprint
- First published
- 2019-11-22
- Added
- 2026-11-6
- Updated
- 2019-11-22
- Version
- v1
- arXiv
- 1911.10113
- DOI
- 10.1016/j.cose.2019.101663
- Category
- cs.CR · cs.LG · cs.NE · stat.ML
- Original paper terms
- CC BY 4.0
- What we show
- Paper info, commentary and permitted figures from the original paper
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Abstract
The Android operating system has been the most popular for smartphones and tablets since 2012. This popularity has led to a rapid raise of Android malware in recent years. The sophistication of Android malware obfuscation and detection avoidance methods have significantly improved, making many traditional malware detection methods obsolete. In this paper, we propose DL-Droid, a deep learning system to detect malicious Android applications through dynamic analysis using stateful input generation. Experiments performed with over 30,000 applications (benign and malware) on real devices are presented. Furthermore, experiments were also conducted to compare the detection performance and code coverage of the stateful input generation method with the commonly used stateless approach using the deep learning system. Our study reveals that DL-Droid can achieve up to 97.8% detection rate (with dynamic features only) and 99.6% detection rate (with dynamic + static features) respectively which outperforms traditional machine learning techniques. Furthermore, the results highlight the significance of enhanced input generation for dynamic analysis as DL-Droid with the state-based input generation is shown to outperform the existing state-of-the-art approaches.
Quote from the paper
Mohammed K. Alzaylaee, Suleiman Y. Yerima, Sakir Sezer (2019). DL-Droid: Deep learning based android malware detection using real devices. arXiv:1911.10113v1. https://doi.org/10.1016/j.cose.2019.101663
BibTeX
@article{alzaylaee2019droid,
title = {{DL-Droid: Deep learning based android malware detection using real devices}},
author = {Mohammed K. Alzaylaee and Suleiman Y. Yerima and Sakir Sezer},
year = {2019},
eprint = {1911.10113},
archivePrefix = {arXiv},
doi = {10.1016/j.cose.2019.101663},
url = {https://arxiv.org/abs/1911.10113v1}
}