JSLibD: Reliable and Heuristic Detection of Third-party Libraries in Miniapps

Junjie Tao,Jifei Shi,Ming Fan,Yin Wang,Junfeng Liu,Ting Liu
DOI: https://doi.org/10.1145/3605762.3624428
2023-01-01
Abstract:Miniapps have become an indispensable part of people's lives. Meanwhile, the utilization of third-party libraries greatly streamlines, expedites, and enhances the development of miniapps. However, ensuring the security of these third-party libraries presents a challenge, as they may harbor security vulnerabilities, such as plaintext transmission. In this paper, we propose JSLibD, an automated extraction method for third-party libraries in miniapps. Unlike conventional extraction methods that heavily rely on prior knowledge, JSLibD introduces a heuristic prediction approach, comprising two integral components: a whitelist matching method to match the known libraries and a heuristic prediction method to extract the unknown libraries using function call relationships. The results demonstrate that JSLibD can efficiently match known libraries, and accurately predict unknown libraries, achieving an impressive precision rate of 85.9% and a high recall rate of 97.2%.
What problem does this paper attempt to address?