Cross-modal Retrieval Models for Stripped Binary Analysis

📅 2025-12-11
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
To address the challenge of accurately retrieving stripped binary functions under natural language queries, this paper proposes BinSeek—the first two-stage cross-modal retrieval framework. Methodologically, the first stage employs BinSeekEmbedding to align semantic representations between binary instruction sequences and natural language queries; the second stage introduces a context-aware BinSeek-Reranker for refined ranking, coupled with an LLM-driven synthetic data generation and annotation pipeline to establish the first domain-specific benchmark for this task. Key contributions include: (1) the first binary–text cross-modal embedding paradigm integrated with context-enhanced re-ranking; and (2) the open-sourcing of the first LLM-based synthetic data generation framework and benchmark. Experiments demonstrate significant improvements: +31.42% in Recall@3 and +27.17% in MRR@3, outperforming both same-scale models and general-purpose LMs with 16× more parameters.

Technology Category

Application Category

📝 Abstract
LLM-agent based binary code analysis has demonstrated significant potential across a wide range of software security scenarios, including vulnerability detection, malware analysis, etc. In agent workflow, however, retrieving the positive from thousands of stripped binary functions based on user query remains under-studied and challenging, as the absence of symbolic information distinguishes it from source code retrieval. In this paper, we introduce, BinSeek, the first two-stage cross-modal retrieval framework for stripped binary code analysis. It consists of two models: BinSeekEmbedding is trained on large-scale dataset to learn the semantic relevance of the binary code and the natural language description, furthermore, BinSeek-Reranker learns to carefully judge the relevance of the candidate code to the description with context augmentation. To this end, we built an LLM-based data synthesis pipeline to automate training construction, also deriving a domain benchmark for future research. Our evaluation results show that BinSeek achieved the state-of-the-art performance, surpassing the the same scale models by 31.42% in Rec@3 and 27.17% in MRR@3, as well as leading the advanced general-purpose models that have 16 times larger parameters.
Problem

Research questions and friction points this paper is trying to address.

Develops a cross-modal retrieval framework for stripped binary code analysis
Addresses retrieving relevant binary functions from thousands without symbolic information
Introduces a two-stage model to match binary code with natural language queries
Innovation

Methods, ideas, or system contributions that make the work stand out.

Two-stage cross-modal retrieval framework for binaries
Embedding model learns semantic code-description relevance
Reranker model judges relevance with context augmentation
🔎 Similar Papers
No similar papers found.
Guoqiang Chen
Guoqiang Chen
QI-ANXIN Technology Research Institute
Binary AnalysisLLMAgentFuzzing
L
Lingyun Ying
QI-ANXIN Technology Research Institute
Z
Ziyang Song
QI-ANXIN Technology Research Institute
D
Daguang Liu
QI-ANXIN Technology Research Institute
Q
Qiang Wang
QI-ANXIN Technology Research Institute
Zhiqi Wang
Zhiqi Wang
Ph.D student, Shanghai University of Finance and Economics, ITCS
Algorithmic Game TheorySmart Grid
L
Li Hu
University of Science and Technology of China
Shaoyin Cheng
Shaoyin Cheng
University of Science and Technology of China
W
Weiming Zhang
University of Science and Technology of China
Nenghai Yu
Nenghai Yu
University of Science and Technology of China
Computer VisionArtificial IntelligenceInformation Hiding