Fool Me If You Can: On the Robustness of Binary Code Similarity Detection Models against Semantics-preserving Transformations
Not on the map. Why?
Abstract (arXiv)
Binary code analysis plays an essential role in cybersecurity, facilitating reverse engineering to reveal the inner workings of programs in the absence of source code. Traditional approaches, such as static and dynamic analysis, extract valuable insights from stripped binaries, but often demand substantial expertise and manual effort. Recent advances in deep learning have opened promising opportunities to enhance binary analysis by capturing latent features and disclosing underlying code semantics. Despite the growing number of binary analysis models based on machine learning, their robustness to adversarial code transformations at the binary level remains underexplored. We evaluate the robustness of deep learning models for the task of binary code similarity detection (BCSD) under semantics-preserving transformations. The unique nature of machine instructions presents distinct challenges compared to the typical input perturbations found in other domains. We introduce asmFooler, a system that evaluates the resilience of BCSD models using a diverse set of adversarial code transformations that preserve functional semantics. We construct a dataset of 9,565 binary variants from 620 baseline samples by applying eight semantics-preserving transformations across six representative BCSD models. Our major findings highlight several key insights: i) model robustness relies on the processing pipeline, including code pre-processing, architecture, and feature selection; ii) adversarial transformation effectiveness is bounded by a budget shaped by model-specific constraints like input size and instruction expressive capacity; iii) well-crafted transformations can be highly effective with minimal perturbations; and iv) such transformations efficiently disrupt model decisions (e.g., misleading to false positives or false negatives) by focusing on semantically significant instructions.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 25 of its 99 references that are in the map. First posted on arXiv 13 Feb 2026.
Builds on
25 of 99 references.
References · 25
- 2017Attention Is All You Needcited by 59,932
- 2014Explaining and Harnessing Adversarial Examplescited by 7,287
- 2017A Unified Approach to Interpreting Model Predictionscited by 6,488
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
- 2013Intriguing properties of neural networkscited by 5,114
- 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,462
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2016Towards Evaluating the Robustness of Neural Networkscited by 2,976
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 2,914
- 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 663
- 2020BERT-ATTACK: Adversarial Attack Against BERT Using BERTcited by 488
- 2017Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detectioncited by 65
13 more
- 2022jTrans: Jump-Aware Transformer for Binary Code Similaritycited by 44
- 2020Trex: Learning Execution Semantics from Micro-Traces for Binary Similaritycited by 34
- 2018SAFE: Self-Attentive Function Embeddings for Binary Similaritycited by 33
- 2019Malware Makeover: Breaking ML-based Static Analysis by Modifying Executable Bytescited by 31
- 2018Neural Machine Translation Inspired Binary Code Similarity Comparison beyond Function Pairscited by 25
- 2021Augmenting Decompiler Output with Learned Variable Names and Typescited by 23
- 2019A Survey of Binary Code Similaritycited by 18
- 2022RoPGen: Towards Robust Code Authorship Attribution via Automatic Coding Style Transformationcited by 13
- 2022Interpreting BERT-based Text Similarity via Activation and Saliency Mapscited by 8
- 2024Cross-Inlining Binary Function Similarity Detectioncited by 4
- 2022FuncFooler: A Practical Black-box Attack Against Learning-based Binary Code Similarity Detection Methodscited by 3
- 2023Adversarial Attacks against Binary Similarity Systemscited by 3
- 2023Good-looking but Lacking Faithfulness: Understanding Local Explanation Methods through Trend-based Testingcited by 2
Built on by
Citing papers per year: 2026: 1.
1 paper.
- 2026SoK: AI-Augmented Binary Reversingcited by 0
- 2026SoK: AI-Augmented Binary Reversing16 Jun 2026