[Paper Review] Black-Box Attacks against RNN based Malware Detection Algorithms
The paper presents a generative RNN-based method to create sequential adversarial API-strings that bypass RNN-based malware detectors in a black-box setting, using a substitute RNN and Gumbel-Softmax for gradient propagation.
Recent researches have shown that machine learning based malware detection algorithms are very vulnerable under the attacks of adversarial examples. These works mainly focused on the detection algorithms which use features with fixed dimension, while some researchers have begun to use recurrent neural networks (RNN) to detect malware based on sequential API features. This paper proposes a novel algorithm to generate sequential adversarial examples, which are used to attack a RNN based malware detection system. It is usually hard for malicious attackers to know the exact structures and weights of the victim RNN. A substitute RNN is trained to approximate the victim RNN. Then we propose a generative RNN to output sequential adversarial examples from the original sequential malware inputs. Experimental results showed that RNN based malware detection algorithms fail to detect most of the generated malicious adversarial examples, which means the proposed model is able to effectively bypass the detection algorithms.
Motivation & Objective
- Demonstrate vulnerability of RNN-based malware detection to sequential adversarial examples.
- Develop a black-box attack framework using a substitute RNN and a generative RNN to insert misleading API sequences.
- Evaluate transferability of adversarial examples across different victim RNN architectures and training sets.
Proposed method
- Train a substitute bidirectional RNN with attention to mimic victim RNN behavior.
- Use a generative RNN (sequence-to-sequence) to insert irreverent APIs into malware API sequences.
- Apply Gumbel-Softmax to produce differentiable, gradient-friendly outputs for insertion decisions.
- Compute a loss that maximizes the likelihood of the adversarial output being classified as malware by the substitute RNN and minimize detection by the victim RNN via a second loss.
- Train with a two-stage objective: (i) substitute RNN to reflect victim outputs, (ii) generative RNN to produce adversarial sequences that fool the victim.
Experimental results
Research questions
- RQ1Can a black-box victim RNN for malware detection be fooled by sequential adversarial examples?
- RQ2Does a generative RNN coupled with a substitute RNN effectively approximate and exploit the victim RNN?
- RQ3Are adversarial sequences transferable across different victim RNN architectures and training sets?
Key findings
- Most adversarial examples bypassed the victim RNNs, reducing detection from around 90% to single-digit percentages.
- Detection rates on adversarial examples ranged from 0.44% to 12.10% across several victim RNN variants.
- The attack demonstrated transferability: adversarial sequences generated for one model/training set could affect other models as well.
- BiLSTM-Attention showed relatively higher resistance to adversarial examples, yet still dropped to around 3% on adversarial samples.
- The proposed method generalizes to unseen malware and different victim architectures, indicating a broad vulnerability of RNN-based malware detectors.
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.