Lune

ICSE2024Top-tier venue

BinAug: Enhancing Binary Similarity Analysis with Low-Cost Input Repairing

Wai Kin Wong, Huaijin Wang, Zongjie Li, Shuai Wang

Abstract

Binary code similarity analysis (BCSA) is a fundamental building block for various software security, reverse engineering, and reengineering applications. Existing research has applied deep neural networks (DNNs) to measure the similarity between binary code, following the major breakthrough of DNNs in processing media data like images. Despite the encouraging results of DNN-based BCSA, it is however not widely deployed in the industry due to the instability and the black-box nature of DNNs.

In this work, we first launch an extensive study over the stateof-the-art (SoTA) BCSA tools, and investigate their erroneous predictions from both quantitative and qualitative perspectives. Then, we accordingly design a low-cost and generic framework, namely Binaug, to improve the accuracy of BCSA tools by repairing their input binary codes. Aligned with the typical workflow of DNN-based BCSA, Binaug obtains the sorted top-𝐾 results of code similarity, and then re-ranks the results using a set of carefully-designed transformations. Binaug supports both black-and white-box settings, depending on the accessibility of the DNN model internals. Our experimental results show that Binaug can constantly improve performance of the SoTA BCSA tools by an average of 2.38pt and 6.46pt in the black-and the white-box settings. Moreover, with Binaug, we enhance the F1 score of binary software component analysis, an important downstream application of BCSA, by an average of 5.43pt and 7.45pt in the black-and the white-box settings.

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.

7 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

  • Extraction and Mutation at a High Level: Template-Based Fuzzing for JavaScript Engines cites DecLLM: LLM-Augmented Recompilable Decompilation for Enabling Programmatic Use of Decompiled Code
  • DecLLM: LLM-Augmented Recompilable Decompilation for Enabling Programmatic Use of Decompiled Code cites Preserving Privacy in Software Composition Analysis: A Study of Technical Solutions and Enhancements
  • Asm2Vec: Boosting Static Representation Robustness for Binary Clone Search against Code Obfuscation and Compiler Optimization cites Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detection
  • Asm2Vec: Boosting Static Representation Robustness for Binary Clone Search against Code Obfuscation and Compiler Optimization cites Scalable Graph-based Bug Search for Firmware Images
  • Preserving Privacy in Software Composition Analysis: A Study of Technical Solutions and Enhancements cites Asm2Vec: Boosting Static Representation Robustness for Binary Clone Search against Code Obfuscation and Compiler Optimization
  • Preserving Privacy in Software Composition Analysis: A Study of Technical Solutions and Enhancements cites Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detection
  • Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detection cites Scalable Graph-based Bug Search for Firmware Images
  • Enhancing Semantic-Aware Binary Diffing with High-Confidence Dynamic Instruction Alignment cites Asm2Vec: Boosting Static Representation Robustness for Binary Clone Search against Code Obfuscation and Compiler Optimization
  • Enhancing Semantic-Aware Binary Diffing with High-Confidence Dynamic Instruction Alignment cites Preserving Privacy in Software Composition Analysis: A Study of Technical Solutions and Enhancements
  • Enhancing Semantic-Aware Binary Diffing with High-Confidence Dynamic Instruction Alignment cites Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detection
  • Enhancing Semantic-Aware Binary Diffing with High-Confidence Dynamic Instruction Alignment cites Scalable Graph-based Bug Search for Firmware Images
  • Enhancing Semantic-Aware Binary Diffing with High-Confidence Dynamic Instruction Alignment cites vSim: Semantics-Aware Value Extraction for Efficient Binary Code Similarity Analysis
  • vSim: Semantics-Aware Value Extraction for Efficient Binary Code Similarity Analysis cites Enhancing Semantic-Aware Binary Diffing with High-Confidence Dynamic Instruction Alignment
  • vSim: Semantics-Aware Value Extraction for Efficient Binary Code Similarity Analysis cites DecLLM: LLM-Augmented Recompilable Decompilation for Enabling Programmatic Use of Decompiled Code
  • vSim: Semantics-Aware Value Extraction for Efficient Binary Code Similarity Analysis cites Asm2Vec: Boosting Static Representation Robustness for Binary Clone Search against Code Obfuscation and Compiler Optimization
  • vSim: Semantics-Aware Value Extraction for Efficient Binary Code Similarity Analysis cites Preserving Privacy in Software Composition Analysis: A Study of Technical Solutions and Enhancements
  • vSim: Semantics-Aware Value Extraction for Efficient Binary Code Similarity Analysis cites Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detection
  • vSim: Semantics-Aware Value Extraction for Efficient Binary Code Similarity Analysis cites Scalable Graph-based Bug Search for Firmware Images
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers7

  1. DecLLM: LLM-Augmented Recompilable Decompilation for Enabling Programmatic Use of Decompiled CodeWai Kin Wong, Daoyuan Wu, Huaijin Wang, Zongjie Li et al.ISSTA 2025 · 8 citations
  2. Extraction and Mutation at a High Level: Template-Based Fuzzing for JavaScript EnginesWai Kin Wong, Dongwei Xiao, Anthony Cheuk Tung Lai, Yiteng Peng et al.OOPSLA 2025 · 4 citations
  3. vSim: Semantics-Aware Value Extraction for Efficient Binary Code Similarity AnalysisHuaijin Wang, Zhiqiang LinNDSS 2026 · 3 citations
  4. Preserving Privacy in Software Composition Analysis: A Study of Technical Solutions and EnhancementsHuaijin Wang, Zhibo Liu, Yanbo Dai, Shuai Wang et al.ICSE 2025 · 2 citations
  5. Enhancing Semantic-Aware Binary Diffing with High-Confidence Dynamic Instruction AlignmentChengfeng Ye, Anshunkang Zhou, Charles ZhangNDSS 2026 · 2 citations

Builds on30

  1. Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity DetectionXiaojun Xu, Chang Liu, Qian Feng, Heng Yin et al.CCS 2017 · 682 citations
  2. Understanding over-squashing and bottlenecks on graphs via curvatureJake Topping, Francesco Di Giovanni, Benjamin Paul Chamberlain, Xiaowen Dong et al.ICLR 2022 · 628 citations
  3. Data Augmentation for Graph Neural NetworksTong Zhao, Yozen Liu, Leonardo Neves, Oliver J. Woodford et al.AAAI 2021 · 487 citations
  4. Scalable Graph-based Bug Search for Firmware ImagesQian Feng, Rundong Zhou, Chengcheng Xu, Yao Cheng et al.CCS 2016 · 456 citations
  5. 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

Related papers

  1. jTrans: jump-aware transformer for binary code similarity detectionHao Wang, Wenjie Qu, Gilad Katz, Wenyu Zhu et al.ISSTA 2022 · 139 citations
  2. Improving Binary Code Similarity Transformer Models by Semantics-Driven Instruction DeemphasisXiangzhe Xu, Shiwei Feng, Yapeng Ye, Guangyu Shen et al.ISSTA 2023 · 25 citations
  3. Unsupervised Binary Code Translation with Application to Code Clone Detection and Vulnerability DiscoveryIftakhar Ahmad, Lannan LuoEMNLP Findings 2023 · 5 citations
  4. DEEPVSA: Facilitating Value-set Analysis with Deep Learning for Postmortem Program AnalysisWenbo Guo, Dongliang Mu, Xinyu Xing, Min Du et al.USENIX Security 2019 · 67 citations
  5. BinaryAI: Binary Software Composition Analysis via Intelligent Binary Source Code MatchingLing Jiang, Junwen An, Huihui Huang, Qiyi Tang et al.ICSE 2024 · 43 citations
Dusk over the sea between two cliffs drawn in fine vertical lines