[Paper Review] Adversarial Attacks on Transformers-Based Malware Detectors
This paper investigates adversarial vulnerabilities in Transformer-based malware detectors by applying the Fast Gradient Sign Method (FGSM) to generate perturbed malware samples, achieving a 23.9% misclassification rate. It proposes defenses through adversarial training and feature space reduction, reducing the misclassification rate to 11.2% and 21.5%, respectively, demonstrating the susceptibility of state-of-the-art models to evasion attacks.
Signature-based malware detectors have proven to be insufficient as even a small change in malignant executable code can bypass these signature-based detectors. Many machine learning-based models have been proposed to efficiently detect a wide variety of malware. Many of these models are found to be susceptible to adversarial attacks - attacks that work by generating intentionally designed inputs that can force these models to misclassify. Our work aims to explore vulnerabilities in the current state of the art malware detectors to adversarial attacks. We train a Transformers-based malware detector, carry out adversarial attacks resulting in a misclassification rate of 23.9% and propose defenses that reduce this misclassification rate to half. An implementation of our work can be found at https://github.com/yashjakhotiya/Adversarial-Attacks-On-Transformers.
Motivation & Objective
- To evaluate the vulnerability of state-of-the-art Transformer-based malware detectors to adversarial attacks.
- To assess the effectiveness of various defense mechanisms against evasion attacks in malware detection systems.
- To demonstrate that even advanced deep learning models like Transformers are susceptible to small, targeted perturbations in malware binaries.
- To provide a practical implementation of adversarial attacks and defenses for malware detection models.
Proposed method
- Trained a Transformer-based malware detector using disassembled assembly code and static features extracted from PE files.
- Applied the Fast Gradient Sign Method (FGSM) to generate adversarial samples by adding small, targeted perturbations to the input features.
- Used targeted FGSM with the target class label to maximize misclassification probability.
- Implemented adversarial training by retraining the model on adversarial examples to improve robustness.
- Reduced the feature space to limit the number of dimensions available for perturbation.
- Evaluated defense performance by measuring the resulting misclassification rate on adversarial inputs.
Experimental results
Research questions
- RQ1Can adversarial attacks successfully bypass a state-of-the-art Transformer-based malware detector?
- RQ2What is the effectiveness of FGSM in generating adversarial malware samples that evade detection?
- RQ3How do different defense strategies—adversarial training and feature space reduction—affect the robustness of the model?
- RQ4To what extent does reducing the feature space mitigate adversarial attacks?
Key findings
- The FGSM-based adversarial attack achieved a misclassification rate of 23.9% on the Transformer-based malware detector.
- Adversarial training reduced the misclassification rate to 11.2%, demonstrating a significant improvement in robustness.
- Feature space reduction only marginally improved robustness, reducing the misclassification rate to 21.5%.
- The results confirm that even advanced deep learning models like Transformers are vulnerable to evasion attacks via small input perturbations.
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.