Lune

ICSE2022Top-tier venue

ModX: Binary Level Partially Imported Third-Party Library Detection via Program Modularization and Semantic Matching

Can Yang, Zhengzi Xu, Hongxu Chen, Yang Liu, Xiaorui Gong, Baoxu Liu

Abstract

With the rapid growth of software, using third-party libraries (TPLs) has become increasingly popular. The prosperity of the library usage has provided the software engineers with a handful of methods to facilitate and boost the program development. Unfortunately, it also poses great challenges as it becomes much more difficult to manage the large volume of libraries. Researches and studies have been proposed to detect and understand the TPLs in the software. However, most existing approaches rely on syntactic features, which are not robust when these features are changed or deliberately hidden by the adversarial parties. Moreover, these approaches typically model each of the imported libraries as a whole, therefore, cannot be applied to scenarios where the host software only partially uses the library code segments. To detect both fully and partially imported TPLs at the semantic level, we propose ModX, a framework that leverages novel program modularization techniques to decompose the program into finegrained functionality-based modules. By extracting both syntactic and semantic features, it measures the distance between modules to detect similar library module reuse in the program. Experimental results show that ModX outperforms other modularization tools by distinguishing more coherent program modules with 353% higher module quality scores and beats other TPL detection tools with on average 17% better in precision and 8% better in recall.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

13 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • BinAug: Enhancing Binary Similarity Analysis with Low-Cost Input Repairing cites Asm2Vec: Boosting Static Representation Robustness for Binary Clone Search against Code Obfuscation and Compiler Optimization
  • BinAug: Enhancing Binary Similarity Analysis with Low-Cost Input Repairing cites Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detection
  • Third-Party Library Dependency for Large-Scale SCA in the C/C++ Ecosystem: How Far Are We? cites Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detection
  • BinaryAI: Binary Software Composition Analysis via Intelligent Binary Source Code Matching cites Asm2Vec: Boosting Static Representation Robustness for Binary Clone Search against Code Obfuscation and Compiler Optimization
  • BinaryAI: Binary Software Composition Analysis via Intelligent Binary Source Code Matching cites Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detection
  • BinaryAI: Binary Software Composition Analysis via Intelligent Binary Source Code Matching cites Neural Machine Translation Inspired Binary Code Similarity Comparison beyond Function Pairs
  • CNEPS: A Precise Approach for Examining Dependencies among Third-Party C/C++ Open-Source Components cites Third-Party Library Dependency for Large-Scale SCA in the C/C++ Ecosystem: How Far Are We?
  • Asm2Vec: Boosting Static Representation Robustness for Binary Clone Search against Code Obfuscation and Compiler Optimization cites Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detection
  • Asm2Vec: Boosting Static Representation Robustness for Binary Clone Search against Code Obfuscation and Compiler Optimization cites discovRE: Efficient Cross-Architecture Identification of Bugs in Binary Code
  • Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detection cites discovRE: Efficient Cross-Architecture Identification of Bugs in Binary Code
  • Improving Security Tasks Using Compiler Provenance Information Recovered At the Binary-Level cites Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detection
  • Neural Machine Translation Inspired Binary Code Similarity Comparison beyond Function Pairs cites Asm2Vec: Boosting Static Representation Robustness for Binary Clone Search against Code Obfuscation and Compiler Optimization
  • Neural Machine Translation Inspired Binary Code Similarity Comparison beyond Function Pairs cites Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detection
  • Neural Machine Translation Inspired Binary Code Similarity Comparison beyond Function Pairs cites discovRE: Efficient Cross-Architecture Identification of Bugs in Binary Code
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers13

  1. BinaryAI: Binary Software Composition Analysis via Intelligent Binary Source Code MatchingLing Jiang, Junwen An, Huihui Huang, Qiyi Tang et al.ICSE 2024 · 43 citations
  2. Third-Party Library Dependency for Large-Scale SCA in the C/C++ Ecosystem: How Far Are We?Ling Jiang, Hengchen Yuan, Qiyi Tang, Sen Nie et al.ISSTA 2023 · 24 citations
  3. CNEPS: A Precise Approach for Examining Dependencies among Third-Party C/C++ Open-Source ComponentsYoonjong Na, Seunghoon Woo, Joomyeong Lee, Heejo LeeICSE 2024 · 11 citations
  4. Improving Security Tasks Using Compiler Provenance Information Recovered At the Binary-LevelYufei Du, Omar Alrawi, Kevin Z. Snow, Manos Antonakakis et al.CCS 2023 · 8 citations
  5. BinAug: Enhancing Binary Similarity Analysis with Low-Cost Input RepairingWai Kin Wong, Huaijin Wang, Zongjie Li, Shuai WangICSE 2024 · 4 citations

Builds on12

  1. Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity DetectionXiaojun Xu, Chang Liu, Qian Feng, Heng Yin et al.CCS 2017 · 682 citations
  2. Asm2Vec: Boosting Static Representation Robustness for Binary Clone Search against Code Obfuscation and Compiler OptimizationSteven H. H. Ding, Benjamin C. M. Fung, Philippe CharlandS&P 2019 · 447 citations
  3. discovRE: Efficient Cross-Architecture Identification of Bugs in Binary CodeSebastian Eschweiler, Khaled Yakdan, Elmar Gerhards-PadillaNDSS 2016 · 342 citations
  4. Neural Machine Translation Inspired Binary Code Similarity Comparison beyond Function PairsFei Zuo, Xiaopeng Li, Patrick Young, Lannan Luo et al.NDSS 2019 · 262 citations
  5. An In-Depth Analysis of Disassembly on Full-Scale x86/x64 BinariesDennis Andriesse, Xi Chen, Victor van der Veen, Asia Slowinska et al.USENIX Security 2016 · 162 citations

Related papers

  1. Automated Third-Party Library Detection for Android Applications: Are We There Yet?Xian Zhan, Lingling Fan, Tianming Liu, Sen Chen et al.ASE 2020 · 55 citations
  2. OSSFP: Precise and Scalable C/C++ Third-Party Library Detection using Fingerprinting FunctionsJiahui Wu, Zhengzi Xu, Wei Tang, Lyuye Zhang et al.ICSE 2023 · 29 citations
  3. LibScan: Towards More Precise Third-Party Library Identification for Android ApplicationsYafei Wu, Cong Sun, Dongrui Zeng, Gang Tan et al.USENIX Security 2023
  4. Beyond Fuzzy Matching: Constraint-Guided Patch Presence Testing for Obfuscated Java BinariesLige Zhan, Jiang Ming, Chenke Luo, Letian Sha et al.ICSE 2026
  5. Enhancing Security in Third-Party Library Reuse - Comprehensive Detection of 1-day Vulnerability through Code Patch AnalysisShangzhi Xu, Jialiang Dong, Weiting Cai, Juanru Li et al.NDSS 2025
Dusk over the sea between two cliffs drawn in fine vertical lines