arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2309.03524cs.SE
收藏

ReuNify:迈向 React Native Android 应用的全程序分析

ReuNify: A Step Towards Whole Program Analysis for React Native Android Apps

Yonghui Liu, Xiao Chen, Pei Liu, John Grundy, Chunyang Chen, Li Li

AI总结:

针对 React Native 应用分析不完整的问题,提出原型工具 REUNIFY,将 JavaScript 与原生端代码集成至 Soot 框架的中间语言,显著提升了静态分析覆盖率、调用图节点数及隐私泄露检测能力。

摘要:

React Native 是一个广泛使用的开源框架,旨在促进跨平台移动应用的开发。该框架允许 JavaScript 代码与原生端代码(如 iOS 的 Objective-C/Swift 和 Android 的 Java/Kotlin)通过 React Native 提供的通信机制进行交互。然而,以往的研究和工具忽略了这一机制,导致对 React Native 应用代码的分析不完整。为了解决这一局限性,我们开发了 REUNIFY,这是一个原型工具,它将 React Native 应用的 JavaScript 和原生端代码集成到一种可由 Soot 静态分析框架处理的中间语言中。通过这种方式,REUNIFY 能够生成应用行为的综合模型。我们的评估表明,通过利用 REUNIFY,基于 Soot 的框架能够提高其对 1,007 个最受欢迎的 React Native Android 应用的静态分析覆盖率,使 Jimple 代码行数增加了 70%。此外,在集成 REUNIFY 之后,我们观察到这些应用的调用图中到达的新节点平均增加了 84%。当将 REUNIFY 用于污点流分析时,平均发现了 2 个额外的隐私泄露。总体而言,我们的结果表明,REUNIFY 显著增强了基于 Soot 的框架分析 React Native Android 应用的能力。

英文摘要:

React Native is a widely-used open-source framework that facilitates the development of cross-platform mobile apps. The framework enables JavaScript code to interact with native-side code, such as Objective-C/Swift for iOS and Java/Kotlin for Android, via a communication mechanism provided by React Native. However, previous research and tools have overlooked this mechanism, resulting in incomplete analysis of React Native app code. To address this limitation, we have developed REUNIFY, a prototype tool that integrates the JavaScript and native-side code of React Native apps into an intermediate language that can be processed by the Soot static analysis framework. By doing so, REUNIFY enables the generation of a comprehensive model of the app's behavior. Our evaluation indicates that, by leveraging REUNIFY, the Soot-based framework can improve its coverage of static analysis for the 1,007 most popular React Native Android apps, augmenting the number of lines of Jimple code by 70%. Additionally, we observed an average increase of 84% in new nodes reached in the callgraph for these apps, after integrating REUNIFY. When REUNIFY is used for taint flow analysis, an average of two additional privacy leaks were identified. Overall, our results demonstrate that REUNIFY significantly enhances the Soot-based framework's capability to analyze React Native Android apps.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑