# DL-Droid: Deep learning based android malware detection using real devices

Mohammed K. Alzaylaee, Suleiman Y. Yerima, Sakir Sezer · arXiv · 2019-11-22

- **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](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/1911.10113v1) · [PDF ↗](https://arxiv.org/pdf/1911.10113v1)

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}
}
```

## Related papers

- [Deep learning for time series classification: a review](https://refivu.com/en/papers/29b2a81b-5835-4366-b268-5617285bb0b9-deep-learning-for-time-series-classification-a-review.md)
- [A Deep Learning Approach for Brain Tumor Classification and Segmentation Using a Multiscale Convolutional Neural Network](https://refivu.com/en/papers/c75a012b-6db8-4ef0-a0e2-0109acd56af3-a-deep-learning-approach-for-brain-tumor-classification.md)
- [NAS-FPN: Learning Scalable Feature Pyramid Architecture for Object Detection](https://refivu.com/en/papers/52a19738-611e-4c4e-b54f-2e9b88114304-nas-fpn-learning-scalable-feature-pyramid-architecture-for.md)
- [Retrieval-Augmented Generation for Large Language Models: A Survey](https://refivu.com/en/papers/ac45776a-0a09-4a03-a773-f9aa88c71453-retrieval-augmented-generation-for-large-language-models-a.md)
- [A Generalized Deep Learning Framework for Whole-Slide Image Segmentation and Analysis](https://refivu.com/en/papers/17229723-709e-4a8a-9857-8cd6f0d14883-a-generalized-deep-learning-framework-for-whole-slide.md)
- [A Survey of Convolutional Neural Networks: Analysis, Applications, and Prospects](https://refivu.com/en/papers/070c8ac2-628a-4354-98cb-c9aeae701850-a-survey-of-convolutional-neural-networks-analysis.md)

## Other paper commentary

- [Geometric Feature-Based Facial Expression Recognition in Image Sequences Using Multi-Class AdaBoost and Support Vector Machines](https://refivu.com/en/papers/35c52440-dea0-43bf-acc7-d2f2458fe00a-geometric-feature-based-facial-expression-recognition-in.md)
- [Image-to-Image Translation with Conditional Adversarial Networks](https://refivu.com/en/papers/92d09be2-7a1b-4f53-9d24-569d7cc94149-image-to-image-translation-with-conditional-adversarial.md)
- [Rethinking the Inception Architecture for Computer Vision](https://refivu.com/en/papers/5a8c1d5f-a10c-4a76-a110-b62861a7dc8a-rethinking-the-inception-architecture-for-computer-vision.md)
- [Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classification](https://refivu.com/en/papers/83083238-3fc6-4f4e-a3b1-6db4f84268de-delving-deep-into-rectifiers-surpassing-human-level.md)
- [Segment Anything](https://refivu.com/en/papers/da97e79e-c51b-4305-9514-76a2433c46a4-segment-anything.md)
- [Embodied Intelligence via Learning and Evolution](https://refivu.com/en/papers/35077a07-2c81-4b05-87d4-0a4c83ef04af-embodied-intelligence-via-learning-and-evolution.md)
- [A Deep Cascade of Convolutional Neural Networks for Dynamic MR Image Reconstruction](https://refivu.com/en/papers/c81adf70-889d-4a7a-93f1-14353887187b-a-deep-cascade-of-convolutional-neural-networks-for.md)
- [Unsupervised Dense Information Retrieval with Contrastive Learning](https://refivu.com/en/papers/2fbce187-1a33-4d74-941c-36d004c9a79b-unsupervised-dense-information-retrieval-with-contrastive.md)
- [InstructBLIP: Towards General-purpose Vision-Language Models with Instruction Tuning](https://refivu.com/en/papers/a16f8bfe-f6f1-4e2b-a409-c76d2ed97fc3-instructblip-towards-general-purpose-vision-language-models.md)
- [PandaLM: An Automatic Evaluation Benchmark for LLM Instruction Tuning Optimization](https://refivu.com/en/papers/2832dfcd-bd57-482f-9d55-f5bae8d2c8d2-pandalm-an-automatic-evaluation-benchmark-for-llm.md)
- [Chain-of-Thought Reasoning Without Prompting](https://refivu.com/en/papers/177d9294-679d-436b-897e-3ec239de41b5-chain-of-thought-reasoning-without-prompting.md)

## Terms in this paper

- [random forest](https://refivu.com/en/terms/e69b7b54f2ea-random-forest)
- [MLP](https://refivu.com/en/terms/80d2a9115406-mlp)
- [Multilayer Perceptron](https://refivu.com/en/terms/0892ee9508d3-multilayer-perceptron)
- [NAIVE BAYES](https://refivu.com/en/terms/a92b9ba76cdf-naive-bayes)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/e8c4fb2d-bb8d-43c7-b570-745e501ed499-dl-droid-deep-learning-based-android-malware-detection)
