arXiv:2611.00574cs.SEOct 2026

Manuscript Offprint

arXiv:2611.00574

DERED: Enhancing Third-Party Library Detection in Binaries via Deceptive Reuse Mitigation

Shengjia Chang, Shouguo Yang, Xiao Deng, Qi Meng, Dan Wang, Bin Wang, Baojiang Cui, Shaocong Feng, Haoran Yu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ARTICLE INFO

Keywords:

Binary Similarity Analysis

Third-party Library Detection

Reuse Discrimination

Vulnerability Detection

ABSTRACT

Third-Party Libraries (TPLs) are widely adopted to accelerate software development by offering reusable components. However, TPL reuse also introduces significant security risks, particularly due to the propagation of vulnerabilities. To address this, TPL detection techniques have been proposed, primarily based on syntactic and semantic feature matching. Despite their effectiveness, these methods overlook the directionality of code reuse, often leading to false positive vulnerability reports.

To overcome this limitation, this paper introduces the concept of deceptive reuse—a misleading reuse relationship between recipient software that share common TPL code—and proposes a novel approach, DERED, to enhance TPL detection by distinguishing between real reuse and deceptive reuse. DERED exploits key differences between donor code areas (TPL) and recipient code areas (software) in terms of function call graph centrality and connectivity to exported functions. It further introduces algorithms to quantify these differences for accurate reuse classification. Additionally, to achieve efficient and scalable homologous code matching, DERED integrates a Markov matrix and MobileNet for function matching, combined with Graph Convolutional Networks operating on Attributed Function Call Graphs for area alignment. Experimental results demonstrate that DERED effectively distinguishes between real and deceptive reuse, significantly outperforming existing TPL detection methods. Furthermore, its core components exhibit strong robustness across different architectures and compiler optimization levels. A real-world case study comparing DERED with the commercial Software Composition Analysis tool, BinaryAI, demonstrates that DERED outperforms BinaryAI in mitigating deceptive reuse, thereby significantly reducing false positives during vulnerability detection. The source code is available at https://github.com/kitsch0x97/dered-artifacts.

References (58)