iLibScope:面向iOS移动应用的可靠第三方库检测
iLibScope: Reliable Third-Party Library Detection for iOS Mobile Apps
摘要:
审查iOS应用中第三方库引入的安全影响需要可靠的库检测技术。特别是当在第三方库中发现新的漏洞(或隐私侵犯行为)时,实际上需要精确识别iOS应用程序的库及其版本的存在。然而,很少有研究已经提出来解决这个问题,他们都遭受不同库中的代码重复问题。在本文中,我们重点关注iOS应用程序中的第三方库检测。给定一个应用程序,我们的目标是识别集成库并确定其版本(或版本范围)。为此,我们首先对iOS第三方库进行深入研究,以消除代码重复挑战的神秘性。通过这样做,我们有两个关键的观察结果:1)即使两个库可以共享类,共享的类也不能同时集成到应用程序中,而不会导致类名冲突; 2)两个库的多个版本之间的代码重复可能会有所不同。基于这些发现,我们提出了一种新的基于配置文件的相似性比较方法来执行检测。具体来说,我们建立了一个库数据库,由具有不同版本的原始库二进制文件组成。在提取每个库版本和目标应用的配置文件后,我们进行相似性比较以找到最佳匹配。我们在iLibScope中实现了这种方法。我们建立了一个由5,807个应用程序和10,495个库集成组成的基准测试,并将我们的工具应用于其中。我们的评估表明,iLibScope实现了库检测的召回率超过99%,准确率超过97%。我们还应用了iLibScope来检测现实世界中iOS移动应用程序中存在的知名易受攻击的第三方库,以显示我们的工具的前景。它成功地从4,249个应用程序中识别出405个易受攻击的库使用。
英文摘要:
Vetting security impacts introduced by third-party libraries in iOS apps requires a reliable library detection technique. Especially when a new vulnerability (or a privacy-invasive behavior) was discovered in a third-party library, there is a practical need to precisely identify the existence of libraries and their versions for iOS apps. However, few studies have been proposed to tackle this problem, and they all suffer from the code duplication problem in different libraries. In this paper, we focus on third-party library detection in iOS apps. Given an app, we aim to identify the integrated libraries and pinpoint their versions (or the version range).To this end, we first conduct an in-depth study on iOS third-party libraries to demystify the code duplication challenge. By doing so, we have two key observations: 1) even though two libraries can share classes, the shared classes cannot be integrated into an app simultaneously without causing a class name conflict; and 2) code duplication between multiple versions of two libraries can vary. Based on these findings, we propose a novel profile-based similarity comparison approach to perform the detection. Specifically, we build a library database consists of original library binaries with distinct versions. After extracting profiles for each library version and the target app, we conduct a similarity comparison to find the best matches. We implemented this approach in iLibScope. We built a benchmark consists of 5,807 apps with 10,495 library integrations and applied our tool to it. Our evaluation shows that iLibScope achieves a recall exceeds 99% and a precision exceeds 97% for library detection. We also applied iLibScope to detect the presence of well-known vulnerable third-party libraries in real-world iOS mobile apps to show the promising usage of our tool. It successfully identified 405 vulnerable library usage from 4,249 apps.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。