一句话:提出抗代码缩减与混淆的 Android 第三方库检测工具 LibSleuth。
Android 第三方库管理对漏洞评估和许可证合规至关重要,但现有软件成分分析多关注混淆,忽视构建时缩减/优化对库结构的破坏。本文提出 LibSleuth,基于缩减后保留代码仍具功能完整性的观察。方法将特征匹配细化到方法级,以表示已用功能的相关方法构成功能模块,按其完整性检测库;并利用上下文增强特征稳定性,采用由粗到细的多级过滤抗混淆。在含混淆和优化的 Android 应用上,LibSleuth 优于现有学术与商业工具;缩减与混淆组合下版本级 F1 平均提升 27.74%。对 10,000 个真实应用,20.35% 仍依赖含漏洞库。
Managing third-party libraries is a costly and critical task for enterprises, essential for both vulnerability assessment and license compliance. Existing android software composition analysis tools focus on mitigating code obfuscation but neglect the impact of code optimization, which is deeply integrated into build pipelines and disrupts library structure.To tackle these challenges, we developed LibSleuth, a detection tool designed to be resilient to code shrinking and obfuscation. It is based on the observation that even after shrinking, the remaining code still retains functional completeness. LibSleuth adopts two novel strategies: (1) Method level functional module matching: We break down feature matching to method level and define a functional module as related methods that represent used functionality. This allows us to detect libraries based on functional module completeness to address code shrinking. (2) Context-enhanced multi-level filtering: To improve robustness against obfuscation and reduce the cost of pairing, LibSleuth leverages contextual relationships to enhance feature stability and adopts a coarse-to-fine progressive matching process.We evaluated LibSleuth on datasets containing obfuscated and optimized Android apps. LibSleuth outperforms state-of-the-art academic and commercial tools in both scenarios. Under combined code shrinking and obfuscation, LibSleuth achieves an average 27.74% higher version level F1-score. Moreover, our analysis of 10,000 real world Android apps shows that 20.35% still depend on vulnerable library, demonstrating the practical utility of LibSleuth for downstream tasks.
DOI 原文 ·
@inproceedings{paperbot9522,
title = {Shrunk, Yet Complete: Code Shrinking-Resilient Android Third-Party Library Detection},
author = {Jingkun Zhang and Jingzheng Wu and Xiang Ling and Tianyue Luo and Bolin Zhou and Mutian Yang},
booktitle = {ASE},
year = {2025},
doi = {10.1109/ase63991.2025.00294}
}