[Paper Review] Defense Methods Against Adversarial Examples for Recurrent Neural Networks
The paper introduces sequence squeezing and four additional RNN defenses to mitigate adversarial sequences, evaluated in cyber security API-call based malware classifiers, achieving substantial reduction in attack success.
Adversarial examples are known to mislead deep learning models to incorrectly classify them, even in domains where such models achieve state-of-the-art performance. Until recently, research on both attack and defense methods focused on image recognition, primarily using convolutional neural networks (CNNs). In recent years, adversarial example generation methods for recurrent neural networks (RNNs) have been published, demonstrating that RNN classifiers are also vulnerable to such attacks. In this paper, we present a novel defense method, termed sequence squeezing, to make RNN classifiers more robust against such attacks. Our method differs from previous defense methods which were designed only for non-sequence based models. We also implement four additional RNN defense methods inspired by recently published CNN defense methods. We evaluate our methods against state-of-the-art attacks in the cyber security domain where real adversaries (malware developers) exist, but our methods can be applied against other discrete sequence based adversarial attacks, e.g., in the NLP domain. Using our methods we were able to decrease the effectiveness of such attack from 99.9% to 15%.
Motivation & Objective
- Motivate the need for defenses against adversarial examples in RNNs within cybersecurity and discrete sequence domains.
- Propose sequence squeezing to reduce adversarial space without retraining the classifier.
- Introduce four CNN-inspired defenses adapted for RNNs: sequence-GAN, nearest neighbor, RNN ensemble, and adversarial signatures.
- Compare defense methods against state-of-the-art attacks and adversarial training as a baseline.
Proposed method
- Propose sequence squeezing by embedding API calls/words with GloVe embeddings, clustering to a smaller squeezed vocabulary, and replacing members with a closest center of mass to reduce adversarial space while preserving classifier input semantics.
- Implement defense sequence-GAN using sequence GANs trained per class to generate benign and malicious sequences and select the nearest sequence to the input for classification.
- Apply a nearest neighbor defense that classifies based on the closest training sample to the input sequence to resist perturbations.
- Construct an RNN ensemble including regular, bagging, adversarial, and subsequence models to detect perturbations via ensemble voting and diverse input partitions.
- Introduce adversarial signatures that detect attack-specific perturbation patterns and adversarial training as a comparative baseline.
- Evaluate against attack-specific and attack-agnostic schemes, discussing adaptive attacks and the practicality in cyber security contexts.
Experimental results
Research questions
- RQ1Can sequence squeezing reduce the adversarial space for RNN classifiers on discrete sequences without retraining the model?
- RQ2Do sequence-GAN, nearest neighbor, RNN ensemble, and other adaptations improve robustness of API-call based RNN malware classifiers against adversarial sequences?
- RQ3How do these defenses compare to adversarial training in terms of effectiveness and practicality in cyber security scenarios?
- RQ4Are defense methods effective under both white-box and black-box attack settings, including adaptive attacks?
Key findings
- Sequence squeezing reduced adversarial effectiveness from 99.9% to 15% in evaluated attacks.
- The methods collectively reduce the success of adversarial sequences without retraining the classifier.
- Sequence-GAN and nearest-neighbor approaches provide robust, attack-agnostic defenses suitable for discrete sequence inputs.
- RNN ensemble and subsequence-based models improve resilience by distributing risk across models and input segments.
- The paper argues defense methods can be practical in cyber security contexts where adversaries exist and perfect detection is not always feasible.
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.