Skip to main content
QUICK REVIEW

[Paper Review] A Survey of Binary Code Similarity

Irfan Ul Haq, Juan Caballero|arXiv (Cornell University)|Sep 25, 2019
Software Engineering ResearchComputer Science104 references16 citations
TL;DR

This paper presents the first comprehensive survey of binary code similarity, analyzing 61 approaches across four dimensions: applications, approach characteristics, implementation, and evaluation. It systematizes key trends, challenges, and open problems in the field, including cross-architecture support, obfuscation resistance, and scalability for large-scale firmware analysis, providing a foundational reference for researchers in binary analysis and software security.

ABSTRACT

Binary code similarity approaches compare two or more pieces of binary code to identify their similarities and differences. The ability to compare binary code enables many real-world applications on scenarios where source code may not be available such as patch analysis, bug search, and malware detection and analysis. Over the past 20 years numerous binary code similarity approaches have been proposed, but the research area has not yet been systematically analyzed. This paper presents a first survey of binary code similarity. It analyzes 61 binary code similarity approaches, which are systematized on four aspects: (1) the applications they enable, (2) their approach characteristics, (3) how the approaches are implemented, and (4) the benchmarks and methodologies used to evaluate them. In addition, the survey discusses the scope and origins of the area, its evolution over the past two decades, and the challenges that lie ahead.

Motivation & Objective

  • To provide a systematic analysis of binary code similarity research, which has lacked prior comprehensive surveys.
  • To identify and categorize 61 binary code similarity approaches based on their applications, design characteristics, implementation, and evaluation methodologies.
  • To trace the evolution of the field from binary code diffing to cross-architecture, semantic-aware similarity detection.
  • To highlight open challenges such as robustness to obfuscation, scalability to billions of functions, and fair evaluation across approaches.
  • To advocate for standardized benchmarks and open datasets to enable reproducible and comparable research.

Proposed method

  • A systematic literature review was conducted on over 100 papers from venues in security, software engineering, programming languages, and machine learning.
  • The 61 identified approaches were classified along four dimensions: applications enabled, approach characteristics (e.g., granularity, analysis type, similarity type), implementation (platforms, languages, architectures, public release), and evaluation (datasets, metrics, robustness testing).
  • The survey includes detailed tables summarizing each approach’s features, enabling side-by-side comparison across dimensions such as one-to-one vs. many-to-many comparison, static vs. dynamic analysis, and use of hashing, embeddings, or indexing for scalability.
  • The authors evaluated the robustness of approaches against common transformations, including compiler changes, optimization levels, different operating systems, and CPU architectures.
  • The survey also examines semantic similarity techniques, particularly for domain-agnostic and domain-specific functions like cryptographic operations.
  • The paper discusses the limitations of current evaluation practices, including inconsistent datasets and lack of source code availability, and calls for standardized benchmarking.

Experimental results

Research questions

  • RQ1What are the primary applications enabled by binary code similarity approaches, and how have they evolved over the past two decades?
  • RQ2How do different binary code similarity approaches vary in terms of granularity, analysis type (static/dynamic/symbolic), and similarity modeling (syntactic, structural, semantic)?
  • RQ3What are the most common implementation platforms, programming languages, and supported architectures used in existing approaches?
  • RQ4How are approaches evaluated, and what are the limitations of current benchmarking practices in terms of dataset diversity and robustness to code transformations?
  • RQ5What are the key open challenges in binary code similarity, particularly regarding obfuscation, cross-architecture support, and scalability to large-scale firmware?

Key findings

  • The field has evolved from basic binary diffing to advanced binary code search, with increasing focus on structural and semantic similarity to improve robustness.
  • 61 binary code similarity approaches were identified and systematized, with a majority using static analysis and syntactic/structural comparison, while a growing number employ learning-based techniques like embeddings.
  • Only 30% of the surveyed approaches are publicly released, and many lack source code availability, hindering reproducibility and fair comparison.
  • The largest evaluation to date analyzed 420 million functions across 8,126 firmware images, but scaling to 50 billion functions (e.g., for 100K IoT firmware images) remains a major open challenge.
  • No current approach handles virtualization-based packers like Themida or VMProtect, and state-of-the-art unpacking tools still miss 20%–60% of code due to incomplete function detection.
  • There is a critical need for standardized, open benchmark datasets covering real-world obfuscations and diverse code transformations to enable fair and reproducible evaluation across approaches.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.