BinVulRAG: Knowledge-Level Retrieval-Augmented Detection of Known Vulnerabilities in Binary Functions

Detecting known vulnerabilities in binary functions requires associating each function with relevant Common Vulnerabilities and Exposures (CVE) knowledge and determining the function’s state with respect to a specified CVE. Compilation obscures source-level semantics, while security patches often modify only a local check or control-flow condition. We present BinVulRAG, a function-level assessment framework that retrieves provenance-aware knowledge units rather than plain documents or code fragments. Each unit integrates vulnerability conditions, vulnerability and repair behavior, binary-difference evidence, and provenance metadata. During inference, given a target CVE, BinVulRAG retrieves relevant knowledge units and assesses vulnerability and repair behavior. The confidence-gating mechanism then assigns the final labels: vulnerable, non-vulnerable, or unknown. On 380 vulnerable–patched function pairs, BinVulRAG achieved F1 scores of 66.2% (vulnerable-class) and 59.1% (non-vulnerable-class), and a pair accuracy of 26.1%. These three metrics exceeded the corresponding best baseline values by 4.2, 11.2, and 12.2 percentage points, respectively. The ablation results show different precision–recall profiles across evidence configurations, indicating complementary roles for paired-binary evidence and structured vulnerability knowledge. These findings support grounding retrieved vulnerability knowledge in binary-observable evidence when distinguishing vulnerable functions from patched functions.

Authors

Institutions

Publication Details

Journal
Electronics
Published
2026-08-17
DOI
https://doi.org/10.3390/electronics15163666
Primary Topic
Advanced Malware Detection Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

BinVulRAG: Knowledge-Level Retrieval-Augmented Detection of Known Vulnerabilities in Binary Functions

Ye Tian, Hongmei Wei, Qian Xiao, Fei Wang
Electronics
Advanced Malware Detection Techniques
article

BinVulRAG: Knowledge-Level Retrieval-Augmented Detection of Known Vulnerabilities in Binary Functions

Ye Tian, Hongmei Wei, Qian Xiao, Fei Wang
article en

Abstract

Detecting known vulnerabilities in binary functions requires associating each function with relevant Common Vulnerabilities and Exposures (CVE) knowledge and determining the function’s state with respect to a specified CVE. Compilation obscures source-level semantics, while security patches often modify only a local check or control-flow condition. We present BinVulRAG, a function-level assessment framework that retrieves provenance-aware knowledge units rather than plain documents or code fragments. Each unit integrates vulnerability conditions, vulnerability and repair behavior, binary-difference evidence, and provenance metadata. During inference, given a target CVE, BinVulRAG retrieves relevant knowledge units and assesses vulnerability and repair behavior. The confidence-gating mechanism then assigns the final labels: vulnerable, non-vulnerable, or unknown. On 380 vulnerable–patched function pairs, BinVulRAG achieved F1 scores of 66.2% (vulnerable-class) and 59.1% (non-vulnerable-class), and a pair accuracy of 26.1%. These three metrics exceeded the corresponding best baseline values by 4.2, 11.2, and 12.2 percentage points, respectively. The ablation results show different precision–recall profiles across evidence configurations, indicating complementary roles for paired-binary evidence and structured vulnerability knowledge. These findings support grounding retrieved vulnerability knowledge in binary-observable evidence when distinguishing vulnerable functions from patched functions.

ElectronicsVol. 15(16)
University of Science and Technology of China (CN), Tsinghua University (CN)
Reduced inequalities
Openalex Percentile: Top 8%
Advanced Malware Detection Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

BinVulRAG: Knowledge-Level Retrieval-Augmented Detection of Known Vulnerabilities in Binary Functions — Ye Tian, Hongmei Wei, et al. · Electronics (2026) | TGRS Research Map | TGRS