[Paper Review] Feature-level Malware Obfuscation in Deep Learning
This paper proposes a novel form of malware obfuscation that injects benign features—such as Intents, Permissions, and API calls—into malware to evade deep learning-based detection. By training a deep neural network on augmented data, the model achieves robustness against such attacks, with API-based features proving significantly more resilient than Intents or Permissions alone, reducing false negative rates substantially under obfuscation.
We consider the problem of detecting malware with deep learning models, where the malware may be combined with significant amounts of benign code. Examples of this include piggybacking and trojan horse attacks on a system, where malicious behavior is hidden within a useful application. Such added flexibility in augmenting the malware enables significantly more code obfuscation. Hence we focus on the use of static features, particularly Intents, Permissions, and API calls, which we presume cannot be ultimately hidden from the Android system, but only augmented with yet more such features. We first train a deep neural network classifier for malware classification using features of benign and malware samples. Then we demonstrate a steep increase in false negative rate (i.e., attacks succeed), simply by randomly adding features of a benign app to malware. Finally we test the use of data augmentation to harden the classifier against such attacks. We find that for API calls, it is possible to reject the vast majority of attacks, where using Intents or Permissions is less successful.
Motivation & Objective
- To investigate the vulnerability of deep learning models to feature-level obfuscation in malware detection.
- To assess the effectiveness of data augmentation in hardening models against obfuscation attacks that inject benign features into malware.
- To compare the resilience of different static features—API calls, Intents, and Permissions—against such obfuscation.
- To explore whether models can be trained to be invariant to the presence of benign features while retaining detection accuracy.
Proposed method
- Trained a deep feedforward neural network with 20 dense layers of 1024 units each on static Android app features (APIs, Intents, Permissions).
- Generated obfuscated malware samples by randomly adding benign features (from clean apps) to malware samples, preserving functionality.
- Applied data augmentation by retraining the model on a mix of original and obfuscated training samples to improve robustness.
- Used binary cross-entropy loss with ReLU activations and Adam optimization, with model evaluation on a held-out test set.
- Evaluated performance using accuracy, false negative rate (FNR), and false positive rate (FPR) on both clean and obfuscated test sets.
- Compared model performance across different feature types (APIs alone, Intents + Permissions, all three) to assess feature robustness.
Experimental results
Research questions
- RQ1How vulnerable are deep learning models to feature-level obfuscation via injection of benign features into malware?
- RQ2Can data augmentation through adversarial training with obfuscated samples significantly reduce the false negative rate under such attacks?
- RQ3Which static features—API calls, Intents, or Permissions—are most resilient to obfuscation in malware detection?
- RQ4To what extent can a model trained on augmented data maintain baseline performance on clean data while being robust to obfuscation?
Key findings
- Random injection of benign features into malware caused a steep increase in false negative rate, demonstrating high vulnerability of standard deep learning models to such obfuscation.
- Using only Intents or Permissions as features led to poor performance under obfuscation, with significantly higher false negative rates compared to API-based models.
- API-based models showed strong resilience, achieving near-baseline performance on obfuscated test sets when trained with data augmentation.
- Combining all feature types (APIs, Intents, Permissions) with data augmentation led to a substantial improvement in robustness, nearly matching baseline accuracy on clean data.
- The model trained with obfuscated data achieved a false negative rate of less than 10% on the obfuscated test set when using API features, indicating strong resistance to feature-level obfuscation.
- The study demonstrates that data augmentation can effectively program deep networks to be invariant to the amount of benign features, functioning as asymmetrical detectors focused on malicious signals.
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.