Black-box Attacks Against Neural Binary Function Detection
arXiv:2208.11667 · doi:10.1145/3607199.3607200
Abstract
Binary analyses based on deep neural networks (DNNs), or neural binary analyses (NBAs), have become a hotly researched topic in recent years. DNNs have been wildly successful at pushing the performance and accuracy envelopes in the natural language and image processing domains. Thus, DNNs are highly promising for solving binary analysis problems that are typically hard due to a lack of complete information resulting from the lossy compilation process. Despite this promise, it is unclear that the prevailing strategy of repurposing embeddings and model architectures originally developed for other problem domains is sound given the adversarial contexts under which binary analysis often operates. In this paper, we empirically demonstrate that the current state of the art in neural function boundary detection is vulnerable to both inadvertent and deliberate adversarial attacks. We proceed from the insight that current generation NBAs are built upon embeddings and model architectures intended to solve syntactic problems. We devise a simple, reproducible, and scalable black-box methodology for exploring the space of inadvertent attacks - instruction sequences that could be emitted by common compiler toolchains and configurations - that exploits this syntactic design focus. We then show that these inadvertent misclassifications can be exploited by an attacker, serving as the basis for a highly effective black-box adversarial example generation process. We evaluate this methodology against two state-of-the-art neural function boundary detectors: XDA and DeepDi. We conclude with an analysis of the evaluation data and recommendations for how future research might avoid succumbing to similar attacks.
16 pages
References in corpus (6)
- Evasion Attacks against Machine Learning at Test Time
- Learning to Evade Static PE Machine Learning Malware Models via Reinforcement Learning
- PalmTree: Learning an Assembly Language Model for Instruction Embedding
- Learning the PE Header, Malware Detection with Minimal Domain Knowledge
- Revisiting Binary Code Similarity Analysis using Interpretable Feature Engineering and Lessons Learned
- Improved Semantic Representations From Tree-Structured Long Short-Term Memory Networks