Skip to content
Open access

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

Aug 2026 · Electronics · 0 citations

TL;DR

BinVulRAG, a function-level assessment framework that retrieves provenance-aware knowledge units rather than plain documents or code fragments, supports grounding retrieved vulnerability knowledge in binary-observable evidence when distinguishing vulnerable functions from patched functions.

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.

Read PDF

Similar papers

Open access Oct 2026

From Similarity Ranking to Definitive Verdict: LLM-Enhanced Source-to-Binary Function Localization

Locating a known source function in a stripped binary is a prerequisite for many security and software engineering tasks, including Software Composition Analysis (SCA) false-positive elimination, patch presence verification, malware analysis, code plagiarism detection, and license compliance auditing. We formalize this...

Jing-Yi Shi, Cheng-Yue Liu, Zheng-Zi Xu et al. · 0 citations
#machine learning Preprint Sep 2026

CodePoisonRAG: Knowledge Poisoning Attacks on Retrieval-Augmented Code Generation

This work introduces CodePoisonRAG, a targeted upstream knowledge-poisoning framework that transforms benign fixed-code entries into poisoned artifacts and shows that RACG poisoning extends beyond the incidental propagation of existing vulnerabilities to the targeted construction and propagation of attacker-selected we...

Varun Gadey, Ziad Marey, Alexandra Dmitrienko · 1 citation
2026

LLMKernelBench: Benchmarking Large Language Models on Software Vulnerability Detection in Linux Kernel

Large language models (LLMs) demonstrate strong capabilities in code-related tasks, however their effectiveness in software vulnerability detection (SVD) remains poorly understood due to inadequate evaluation frameworks. Existing benchmarks suffer from training data contamination, isolated function evaluation without c...

Arastoo Zibaeirad, Rodrigo Pato Nogueira, Marco Vieira · 0 citations
Sep 2026

FiCoVuL: A Framework for Fine-grained and Cross-function Code Vulnerability Detection

FiCoVuL is presented, a framework for analyzing interconnected functions and providing fine-grained guidance for vulnerability fixing that significantly outperforms other methods in both vulnerability detection and localization.

Hong-Jun Huang, Fu-Tai Zou, Jia-Ping Gui et al. · 0 citations
#artificial intelligence Preprint Sep 2026

The History Is the Detector: Executing CVE Patch History, End-to-End

BUGSTONE-E2E, a framework that transforms vulnerability history into executable detection rules and validates their findings, demonstrates that CVE history can be turned into an executable workflow, transforming past vulnerabilities into reproducible detection and repair.

Qiu-Shi Wu, Kevin Eykholt, Youngja Park et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.