[Paper Review] Resilient and Adaptive Framework for Large Scale Android Malware Fingerprinting using Deep Learning and NLP Techniques
PetaDroid is a deep learning and NLP-based framework for large-scale Android malware detection and family clustering that uses ensemble CNNs on Inst2Vec features and autoencoders for clustering. It achieves 98–99% F1-score in detection and 96% cluster homogeneity, with automatic adaptation via confidence-based dataset enrichment and resilience to obfuscation through code-fragment randomization during training.
Android malware detection is a significat problem that affects billions of users using millions of Android applications (apps) in existing markets. This paper proposes PetaDroid, a framework for accurate Android malware detection and family clustering on top of static analyses. PetaDroid automatically adapts to Android malware and benign changes over time with resilience to common binary obfuscation techniques. The framework employs novel techniques elaborated on top of natural language processing (NLP) and machine learning techniques to achieve accurate, adaptive, and resilient Android malware detection and family clustering. PetaDroid identifies malware using an ensemble of convolutional neural network (CNN) on proposed Inst2Vec features. The framework clusters the detected malware samples into malware family groups utilizing sample feature digests generated using deep neural auto-encoder. For change adaptation, PetaDroid leverages the detection confidence probability during deployment to automatically collect extension datasets and periodically use them to build new malware detection models. Besides, PetaDroid uses code-fragment randomization during the training to enhance the resiliency to common obfuscation techniques. We extensively evaluated PetaDroid on multiple reference datasets. PetaDroid achieved a high detection rate (98-99% f1-score) under different evaluation settings with high homogeneity in the produced clusters (96%). We conducted a thorough quantitative comparison with state-of-the-art solutions MaMaDroid, DroidAPIMiner, MalDozer, in which PetaDroid outperforms them under all the evaluation settings.
Motivation & Objective
- Address the declining accuracy of malware detection systems over time due to evolving malware families, new Android APIs, and benign app evolution.
- Enable unsupervised malware family attribution without requiring prior knowledge of malware families, crucial for identifying emerging threats.
- Enhance resilience to common obfuscation techniques such as code reordering and API manipulation in static analysis.
- Eliminate reliance on manual feature engineering by employing automated, scalable feature extraction via NLP-inspired techniques.
- Ensure long-term adaptability through an automatic, confidence-driven dataset enrichment and model retraining pipeline.
Proposed method
- Employ Inst2Vec to embed Android Dalvik bytecode instructions into dense vector representations, capturing semantic and syntactic patterns.
- Use an ensemble of 1D convolutional neural networks (CNNs) on Inst2Vec features to classify apps as malicious or benign with high confidence.
- Apply DBScan clustering on deep autoencoder-learned feature digests to group similar malware samples into likely malware families.
- Introduce fragment-based randomization during training, where macro-actions of Dalvik instructions are shuffled while preserving method-level order, enhancing robustness to obfuscation.
- Implement an automatic adaptation mechanism that collects high-confidence detection samples (malicious and benign) over time to extend the training dataset and retrain the CNN ensemble periodically.
- Leverage batch training instead of online learning to improve model generalization and reduce bias from data ordering.
Experimental results
Research questions
- RQ1Can a deep learning framework achieve high detection accuracy and robust family clustering for large-scale Android malware without manual feature engineering?
- RQ2How effective is the proposed confidence-based adaptation mechanism in maintaining detection performance over time as new Android APIs and malware variants emerge?
- RQ3To what extent does code-fragment randomization during training improve resilience to common obfuscation techniques in static analysis?
- RQ4How does the performance of the proposed framework compare to state-of-the-art solutions like MaMaDroid and MalDozer across diverse evaluation settings?
- RQ5Can the framework maintain high cluster homogeneity while enabling unsupervised malware family attribution without prior family labels?
Key findings
- PetaDroid achieved a 98–99% F1-score in malware detection across multiple evaluation settings, demonstrating high accuracy and robustness.
- The framework achieved 96% homogeneity in malware family clustering, indicating strong grouping of similar malicious samples into coherent families.
- PetaDroid outperformed state-of-the-art systems MaMaDroid and MalDozer in both detection effectiveness and efficiency across all evaluated settings.
- The confidence-based automatic adaptation mechanism successfully extended the training dataset with new samples, enabling continuous model improvement without manual intervention.
- Code-fragment randomization during training significantly enhanced resilience to common obfuscation techniques such as instruction reordering and API manipulation.
- The framework demonstrated scalability, effectively processing a 10 million-sample dataset exceeding 100 TB of data, suitable for real-world app market deployment.
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.