On the Lack of Robustness of Binary Function Similarity Systems

Gianluca Capozzi, Tong Tang, Jie Wan, Ziqi Yang, Daniele Cono D'Elia +3 more
12/5/2024
cs.CRcs.LG

No official code found. Best implementation: Sap4Sec/BCSD_Robustness (2 stars, MIT, last commit 2025-08-06).

Abstract

Binary function similarity, which often relies on learning-based algorithms to identify what functions in a pool are most similar to a given query function, is a sought-after topic in different communities, including machine learning, software engineering, and security. Its importance stems from the impact it has in facilitating several crucial tasks, from reverse engineering and malware analysis to automated vulnerability detection. Whereas recent work cast light around performance on this long-studied problem, the research landscape remains largely lackluster in understanding the resiliency of the state-of-the-art machine learning models against adversarial attacks. As security requires to reason about adversaries, in this work we assess the robustness of such models through a simple yet effective black-box greedy attack, which modifies the topology and the content of the control flow of the attacked functions. We demonstrate that this attack is successful in compromising all the models, achieving average attack success rates of 57.06% and 95.81% depending on the problem settings (targeted and untargeted attacks). Our findings are insightful: top performance on clean data does not necessarily relate to top robustness properties, which explicitly highlights performance-robustness trade-offs one should consider when deploying such models, calling for further research.

View on arXivView PDF

Code Implementations(1)

MIT

Implementation of the attack framework proposed in the paper "On the Lack of Robustness of Binary Function Similarity Systems"

20Shell, PythonApr 16, 20251 years agoMIT

Similar Papers

Cite this paper

@article{capozzi2024lack,
  title  = {On the Lack of Robustness of Binary Function Similarity Systems},
  author = {Gianluca Capozzi and Tong Tang and Jie Wan and Ziqi Yang and Daniele Cono D'Elia and Giuseppe Antonio Di Luna and Lorenzo Cavallaro and Leonardo Querzoni},
  year   = {2024},
  eprint = {2412.04163},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.04163v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.04163.svg)](https://codeofpaper.com/paper/2412.04163)

Discussion