Lune

EMNLP Findings2024

Enhancing Learning-Based Binary Code Similarity Detection Model through Adversarial Training with Multiple Function Variants

Lichen Jia, Chenggang Wu, Bowen Tang, Peihua Zhang, Zihan Jiang, Yang Yang, Ning Liu, Jingfeng Zhang, Zhe Wang

Abstract

Compared to identifying binary versions of the same function under different compilation options, existing Learning-Based Binary Code Similarity Detection (LB-BCSD) methods exhibit lower accuracy in recognizing functions with the same functionality but different implementations.To address this issue, we introduces an adversarial attack method called FuncFooler, which focuses on perturbing critical code to generate multiple variants of the same function.These variants are then used to retrain the model to enhance its robustness.Current adversarial attacks against LB-BCSD mainly draw inspiration from the FGSM (Fast Gradient Sign Method) method in the image domain, which involves generating adversarial bytes and appending them to the end of the executable file.However, this approach has a significant drawback: the appended bytes do not affect the actual code of the executable file, thus failing to create diverse code variants.To overcome this limitation, we proposes a gradientguided adversarial attack method based on critical code-FuncFooler.This method designs a series of strategies to perturb the code while preserving the program's semantics.Specifically, we first utilizes gradient information to locate critical nodes in the control flow graph.Then, fine-grained perturbations are applied to these nodes, including control flow, data flow, and internal node perturbations, to obtain adversarial samples.The experimental results show that the application of the FuncFooler method can increase the accuracy of the state-of-the-art (SOTA) LB-BCSD model by 5%-7%.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

2 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Improving Binary Code Similarity Transformer Models by Semantics-Driven Instruction Deemphasis cites Order Matters: Semantic-Aware Neural Networks for Binary Code Similarity Detection
  • Improving Binary Code Similarity Transformer Models by Semantics-Driven Instruction Deemphasis cites Asm2Vec: Boosting Static Representation Robustness for Binary Clone Search against Code Obfuscation and Compiler Optimization
  • Improving Binary Code Similarity Transformer Models by Semantics-Driven Instruction Deemphasis cites jTrans: jump-aware transformer for binary code similarity detection
  • Improving Binary Code Similarity Transformer Models by Semantics-Driven Instruction Deemphasis cites PMP: Cost-effective Forced Execution with Probabilistic Memory Pre-planning
  • A Large Scale Study of AI-based Binary Function Similarity Detection Techniques for Security Researchers and Practitioners cites Improving Binary Code Similarity Transformer Models by Semantics-Driven Instruction Deemphasis
  • A Large Scale Study of AI-based Binary Function Similarity Detection Techniques for Security Researchers and Practitioners cites Order Matters: Semantic-Aware Neural Networks for Binary Code Similarity Detection
  • A Large Scale Study of AI-based Binary Function Similarity Detection Techniques for Security Researchers and Practitioners cites Asm2Vec: Boosting Static Representation Robustness for Binary Clone Search against Code Obfuscation and Compiler Optimization
  • Unveiling the Fragility of Binary Code Similarity Detection via Targeted Attacks with Model Explanations cites jTrans: jump-aware transformer for binary code similarity detection
  • jTrans: jump-aware transformer for binary code similarity detection cites Order Matters: Semantic-Aware Neural Networks for Binary Code Similarity Detection
  • jTrans: jump-aware transformer for binary code similarity detection cites Asm2Vec: Boosting Static Representation Robustness for Binary Clone Search against Code Obfuscation and Compiler Optimization
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers2

  1. A Large Scale Study of AI-based Binary Function Similarity Detection Techniques for Security Researchers and PractitionersJingyi Shi, Yufeng Chen, Yang Xiao, Yuekang Li et al.ASE 2025
  2. Unveiling the Fragility of Binary Code Similarity Detection via Targeted Attacks with Model ExplanationsMingjie Chen, Tiancheng Zhu, Mingxue Zhang, Yiling He et al.FSE 2026

Builds on6

  1. Asm2Vec: Boosting Static Representation Robustness for Binary Clone Search against Code Obfuscation and Compiler OptimizationSteven H. H. Ding, Benjamin C. M. Fung, Philippe CharlandS&P 2019 · 447 citations
  2. Order Matters: Semantic-Aware Neural Networks for Binary Code Similarity DetectionZeping Yu, Rui Cao, Qiyi Tang, Sen Nie et al.AAAI 2020 · 265 citations
  3. jTrans: jump-aware transformer for binary code similarity detectionHao Wang, Wenjie Qu, Gilad Katz, Wenyu Zhu et al.ISSTA 2022 · 139 citations
  4. PMP: Cost-effective Forced Execution with Probabilistic Memory Pre-planningWei You, Zhuo Zhang, Yonghwi Kwon, Yousra Aafer et al.S&P 2020 · 29 citations
  5. Improving Binary Code Similarity Transformer Models by Semantics-Driven Instruction DeemphasisXiangzhe Xu, Shiwei Feng, Yapeng Ye, Guangyu Shen et al.ISSTA 2023 · 25 citations

Related papers

  1. Fool Me If You Can: On the Robustness of Binary Code Similarity Detection Models against Semantics-Preserving TransformationsJiyong Uhm, Minseok Kim, Michalis Polychronakis, Hyungjoon KooFSE 2026 · 1 citation
  2. Improving ML-based Binary Function Similarity Detection by Assessing and Deprioritizing Control Flow Graph FeaturesJialai Wang, Chao Zhang, Longfei Chen, Yi Rong et al.USENIX Security 2024 · 15 citations
  3. Generating Adversarial Examples for Holding Robustness of Source Code Processing ModelsHuangzhao Zhang, Zhuo Li, Ge Li, Lei Ma et al.AAAI 2020 · 148 citations
  4. BINALIGNER: Aligning Binary Code for Cross-Compilation Environment DiffingYiran Zhu, Tong Tang, Jie Wan, Ziqi Yang et al.NDSS 2026 · 1 citation
  5. Adversarial Training for Raw-Binary Malware ClassifiersKeane Lucas, Samruddhi Pai, Weiran Lin, Lujo Bauer et al.USENIX Security 2023
Dusk over the sea between two cliffs drawn in fine vertical lines