Recall-Oriented Precise Binary-to-Source Function Matching
Junlin Li, Jianjun Huang, Wei You, Bin Liang
Key points
From the paper's conclusion- Experiments show that BScout is effective in binary-to-source function matching.
Abstract
Binary-to-source function matching supports software composition analysis by identifying reused third-party code, but existing embedding-based approaches restrict subsequent refinement to initially retrieved candidates. When the correct source function is absent from this set, selecting or filtering the available candidates cannot recover the match. Inlining further complicates the retrieval by combining multiple source functions into one binary function. In this paper, we propose BScout to improve matching precision and uncover additional matches. BScout uses the positional information of existing matches to supplement candidates for unresolved binary functions, extending the search beyond the initial candidate set, and adopts composition-aware training to address the inlined composition matching. Large language models are adopted to select and review matches, while positional information also helps filter inconsistent results. Experiments show that BScout is effective in binary-to-source function matching. BScout achieves overall higher precision, recall and F1 scores than BinaryAI and SBridge with acceptable analysis costs. Particularly, on large stripped binaries, BScout outperforms the competitors with a precision increment of 32% and approximately 2.9 times the recall.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- From Similarity Ranking to Definitive Verdict: LLM-Enhanced Source-to-Binary Function LocalizationProceedings of the ACM on Programming Languages · 2026
- Locate, Then Reason: End-to-End Patch Presence Testing in Stripped BinariesarXiv · 2026
- Behavioral Containment: Source-to-Binary Function Matching for 1-Day Vulnerability DetectionarXiv · 2026
- Fixed-Candidate Reliability Auditing for Closed-Set Binary Function Retrieval Under Known-Source Cross-Compilation Protocols.Entropy (Basel, Switzerland) · 2026
- SoK: Are LLMs Reliable at Source Code Recovery? A Taxonomy and Empirical EvaluationarXiv · 2026
- BinXSight: Fast Binary Program Summarization via Hierarchical Modular DecompositionarXiv · 2026