[Paper Review] Adversary Resistant Deep Neural Networks with an Application to Malware Detection
This paper proposes Random Feature Nullification (RFN), a technique that enhances deep neural network robustness against adversarial samples by stochastically nullifying input features during training and inference. RFN significantly improves resistance to adversarial attacks—achieving up to 91.28% resistance on MNIST and 78.18% on CIFAR-10—while maintaining high classification accuracy, and provides both empirical and theoretical guarantees of robustness.
Beyond its highly publicized victories in Go, there have been numerous successful applications of deep learning in information retrieval, computer vision and speech recognition. In cybersecurity, an increasing number of companies have become excited about the potential of deep learning, and have started to use it for various security incidents, the most popular being malware detection. These companies assert that deep learning (DL) could help turn the tide in the battle against malware infections. However, deep neural networks (DNNs) are vulnerable to adversarial samples, a flaw that plagues most if not all statistical learning models. Recent research has demonstrated that those with malicious intent can easily circumvent deep learning-powered malware detection by exploiting this flaw. In order to address this problem, previous work has developed various defense mechanisms that either augmenting training data or enhance model's complexity. However, after a thorough analysis of the fundamental flaw in DNNs, we discover that the effectiveness of current defenses is limited and, more importantly, cannot provide theoretical guarantees as to their robustness against adversarial sampled-based attacks. As such, we propose a new adversary resistant technique that obstructs attackers from constructing impactful adversarial samples by randomly nullifying features within samples. In this work, we evaluate our proposed technique against a real world dataset with 14,679 malware variants and 17,399 benign programs. We theoretically validate the robustness of our technique, and empirically show that our technique significantly boosts DNN robustness to adversarial samples while maintaining high accuracy in classification. To demonstrate the general applicability of our proposed method, we also conduct experiments using the MNIST and CIFAR-10 datasets, generally used in image recognition research.
Motivation & Objective
- To address the critical vulnerability of deep neural networks (DNNs) to adversarial samples, which can be exploited by malware authors to bypass detection.
- To overcome the limitations of existing defenses that lack theoretical guarantees and are empirically limited in robustness.
- To develop a defense mechanism that is theoretically and empirically robust against adversarial manipulation in security-critical applications like malware detection.
- To demonstrate the generalizability of the proposed method across diverse datasets, including malware, MNIST, and CIFAR-10.
- To maintain high classification accuracy while significantly increasing resistance to adversarial attacks through a non-deterministic input processing mechanism.
Proposed method
- Introduces Random Feature Nullification (RFN), a technique that stochastically nullifies input features during both training and inference, making the model's behavior non-deterministic.
- RFN is implemented by randomly setting a subset of input features to zero with a fixed probability (e.g., 50%), effectively acting as a form of input-level regularization.
- The method is inspired by, but distinct from, traditional dropout; while dropout operates on hidden layer neurons, RFN operates directly on input features, disrupting adversarial feature engineering.
- RFN is applied during both training and testing phases, ensuring that the model cannot be reliably reverse-engineered by attackers to identify critical features.
- The approach is architecture-agnostic and compatible with various DNNs, including fully connected networks and convolutional neural networks (CNNs).
- Theoretical analysis shows that RFN prevents attackers from constructing effective, model-specific adversarial samples due to the inherent uncertainty in feature importance.
Experimental results
Research questions
- RQ1Can a defense mechanism be designed that provides both theoretical and empirical guarantees against adversarial attacks in deep neural networks?
- RQ2How effective is Random Feature Nullification (RFN) in improving robustness against adversarial samples in malware detection compared to existing defenses?
- RQ3Does RFN maintain high classification accuracy while significantly increasing resistance to adversarial perturbations across diverse datasets?
- RQ4How does RFN perform when combined with adversarial training, and does this combination yield superior robustness?
- RQ5Is RFN generalizable across different data types, such as malware binaries and image datasets like MNIST and CIFAR-10?
Key findings
- RFN achieved 91.28% resistance against adversarial samples on the MNIST dataset, outperforming standard DNNs (8.19%), dropout (19.51%), and adversarial training (67.68%) under the same conditions.
- On CIFAR-10, RFN achieved 78.18% resistance, surpassing adversarial training (33.97%) and standard models (10.68%), demonstrating strong robustness in complex image recognition tasks.
- The combination of RFN and adversarial training achieved the highest resistance (91.28% on MNIST, 74.12% on CIFAR-10), indicating synergistic benefits.
- At a 50% feature nullification rate, RFN maintained high classification accuracy—96.78% on MNIST and 74.02% on CIFAR-10—showing minimal accuracy degradation despite strong robustness.
- Empirical results on a real-world malware dataset of 14,679 variants and 17,399 benign programs confirmed that RFN significantly boosts DNN robustness while preserving high accuracy.
- Theoretical analysis confirmed that RFN prevents attackers from reliably identifying critical features, making adversarial sample construction ineffective due to model non-determinism.
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.