[Paper Review] Generic Black-Box End-to-End Attack Against State of the Art API Call Based Malware Classifiers
This paper presents a generic black-box adversarial attack that generates malware binaries with perturbed API call sequences and static features (e.g., printable strings), evading state-of-the-art machine learning malware classifiers without altering functionality. The attack achieves high transferability across RNNs, DNNs, and traditional classifiers like SVM, demonstrating 82.27% effectiveness on hybrid models, and is implemented via the GADGET framework for end-to-end evasion without source code access.
In this paper, we present a black-box attack against API call based machine learning malware classifiers, focusing on generating adversarial sequences combining API calls and static features (e.g., printable strings) that will be misclassified by the classifier without affecting the malware functionality. We show that this attack is effective against many classifiers due to the transferability principle between RNN variants, feed forward DNNs, and traditional machine learning classifiers such as SVM. We also implement GADGET, a software framework to convert any malware binary to a binary undetected by malware classifiers, using the proposed attack, without access to the malware source code.
Motivation & Objective
- To develop a practical, end-to-end black-box attack that evades modern API call-based malware classifiers without requiring source code access.
- To demonstrate transferability of adversarial examples across diverse classifier architectures, including RNNs, DNNs, and traditional ML models like SVM and random forest.
- To extend the attack to multi-feature classifiers combining dynamic (API sequences) and static (e.g., strings) features, reflecting real-world detection systems.
- To validate the attack’s effectiveness on a large-scale dataset of 500,000 malware and benign samples across multiple classifier types.
- To implement and evaluate GADGET, a framework that automatically generates functionally intact adversarial malware binaries from any input.
Proposed method
- The attack uses a surrogate model trained on a representative subset of the dataset to generate adversarial perturbations, leveraging gradient-based optimization to modify API call sequences and printable strings.
- For API sequence attacks, the method applies gradient-based perturbations to the one-hot encoded API sequences while preserving semantic meaning and malware functionality.
- For static feature attacks, the method selects and appends strings to the binary using the surrogate model’s gradient estimates, ensuring the final sample remains malicious and undetected.
- The combined attack modifies both dynamic and static features simultaneously, using a hybrid classifier as the target and validating evasion on the original model.
- GADGET integrates the attack pipeline, injecting modified features (e.g., strings) into the binary via IAT patching or new sections without disrupting execution.
- The method relies on the transferability principle: adversarial examples crafted against a surrogate model successfully evade the target black-box classifier.
Experimental results
Research questions
- RQ1Can a black-box adversarial attack effectively evade state-of-the-art API call-based malware classifiers across diverse architectures, including RNNs, DNNs, and traditional ML models?
- RQ2To what extent does the inclusion of static features (e.g., printable strings) in hybrid classifiers mitigate the effectiveness of targeted adversarial attacks?
- RQ3Can adversarial perturbations be generated end-to-end on real malware binaries without access to source code, while preserving functionality?
- RQ4How effective is the attack when applied to multi-feature classifiers that combine dynamic and static features, as used in real-world systems?
- RQ5Is the transferability of adversarial examples from surrogate models to real classifiers valid and consistent across different RNN variants and non-RNN architectures in the malware detection context?
Key findings
- The attack achieved 96.03% effectiveness against a classifier trained only on dynamic features (API sequences), demonstrating high success on specialized models.
- When targeting a hybrid classifier combining dynamic and static features, the attack maintained 82.27% effectiveness, showing resilience to multi-feature defenses.
- The strings-only attack achieved 68.66% effectiveness on the hybrid model, compared to 77.33% on a static-only classifier, indicating partial mitigation by hybrid models.
- The attack was effective across a broad range of classifier types, including LSTM, GRU, feedforward DNNs, 1D CNNs, SVMs, random forests, logistic regression, and GBDT, confirming broad transferability.
- The GADGET framework successfully generated functionally intact adversarial binaries by injecting modified features into the binary without source code, proving end-to-end feasibility.
- The study demonstrates, for the first time in the cyber security domain, that adversarial examples crafted against surrogate models can successfully evade real-world black-box malware classifiers with high reliability.
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.