Lune

NDSS2026Top-tier venue

Enhancing Semantic-Aware Binary Diffing with High-Confidence Dynamic Instruction Alignment

Chengfeng Ye, Anshunkang Zhou, Charles Zhang

Abstract

Binary diffing, which detects differences between two pieces of binary code, is the fundamental technique in various security analysis tasks. Existing work shows that a sufficient number of fine-grained alignments as anchor points can significantly improve the overall accuracy of binary diffing. However, existing methods still suffer from numerous limitations that hinder accurate and efficient anchor point identification. Syntax-based techniques are known to be vulnerable to aggressive compiler optimizations, while semantic-based methods are limited by high computation cost or low code coverage. In this paper, we revisit dynamic analysis to seek new insights to address the limitations of existing approaches. Our main insight is that not all dynamic semantics are necessary or equally effective for identifying valid instruction alignment. Therefore, we can prioritize dynamic execution resources to partially reveal the runtime values that can effectively derive instruction alignment. Based on the above insight, we propose Barracuda, a high-confidence instruction alignment technique based on partial instruction semantics extracted from forced execution. We have implemented Barracuda and conducted extensive experiments to evaluate its effectiveness. Extensive experimental results demonstrate that Barracuda can detect 24.0% more instruction alignment as anchor points with a high precision of 92.1%. The anchor points detected by Barracuda can enhance state-of-the-art binary diffing tools, DeepBinDiff and SigmaDiff, with percentage point increases in F1 scores ranging from 12.3% to 42.7% and 2.2% to 4.1%, respectively, across various binary diffing scenarios.

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.

1 top-tier paper has 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

  • 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 discovRE: Efficient Cross-Architecture Identification of Bugs in Binary Code
  • Asm2Vec: Boosting Static Representation Robustness for Binary Clone Search against Code Obfuscation and Compiler Optimization cites Scalable Graph-based Bug Search for Firmware Images
  • Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detection cites discovRE: Efficient Cross-Architecture Identification of Bugs in Binary Code
  • Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detection cites Scalable Graph-based Bug Search for Firmware Images
  • Scalable Graph-based Bug Search for Firmware Images cites discovRE: Efficient Cross-Architecture Identification of Bugs in Binary Code
  • Neural Machine Translation Inspired Binary Code Similarity Comparison beyond Function Pairs cites Asm2Vec: Boosting Static Representation Robustness for Binary Clone Search against Code Obfuscation and Compiler Optimization
  • Neural Machine Translation Inspired Binary Code Similarity Comparison beyond Function Pairs cites Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detection
  • Neural Machine Translation Inspired Binary Code Similarity Comparison beyond Function Pairs cites discovRE: Efficient Cross-Architecture Identification of Bugs in Binary Code
  • Neural Machine Translation Inspired Binary Code Similarity Comparison beyond Function Pairs cites Scalable Graph-based Bug Search for Firmware Images
  • 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 Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detection
  • vSim: Semantics-Aware Value Extraction for Efficient Binary Code Similarity Analysis cites discovRE: Efficient Cross-Architecture Identification of Bugs in Binary Code
  • vSim: Semantics-Aware Value Extraction for Efficient Binary Code Similarity Analysis cites Scalable Graph-based Bug Search for Firmware Images
  • vSim: Semantics-Aware Value Extraction for Efficient Binary Code Similarity Analysis cites Neural Machine Translation Inspired Binary Code Similarity Comparison beyond Function Pairs
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers1

  1. vSim: Semantics-Aware Value Extraction for Efficient Binary Code Similarity AnalysisHuaijin Wang, Zhiqiang LinNDSS 2026 · 3 citations

Builds on31

  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. Scalable Graph-based Bug Search for Firmware ImagesQian Feng, Rundong Zhou, Chengcheng Xu, Yao Cheng et al.CCS 2016 · 456 citations
  3. 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
  4. discovRE: Efficient Cross-Architecture Identification of Bugs in Binary CodeSebastian Eschweiler, Khaled Yakdan, Elmar Gerhards-PadillaNDSS 2016 · 342 citations
  5. Neural Machine Translation Inspired Binary Code Similarity Comparison beyond Function PairsFei Zuo, Xiaopeng Li, Patrick Young, Lannan Luo et al.NDSS 2019 · 262 citations

Related papers

  1. BINALIGNER: Aligning Binary Code for Cross-Compilation Environment DiffingYiran Zhu, Tong Tang, Jie Wan, Ziqi Yang et al.NDSS 2026 · 1 citation
  2. PatchScope: Memory Object Centric Patch DiffingLei Zhao, Yuncong Zhu, Jiang Ming, Yichen Zhang et al.CCS 2020 · 21 citations
  3. Revisiting Optimization-Resilience Claims in Binary Diffing Tools: Insights from LLVM Peephole Optimization AnalysisXiaolei Ren, Mengfei Ren, Yu Lei, Jiang MingFSE 2025
  4. DeepBinDiff: Learning Program-Wide Code Representations for Binary DiffingYue Duan, Xuezixiang Li, Jinghan Wang, Heng YinNDSS 2020
  5. BinSim: Trace-based Semantic Binary Diffing via System Call Sliced Segment Equivalence CheckingJiang Ming, Dongpeng Xu, Yufei Jiang, Dinghao WuUSENIX Security 2017 · 118 citations
Dusk over the sea between two cliffs drawn in fine vertical lines