arrow
Return

Demystifying React Native Android Apps for Static Analysis

delete2024-11-12
delete0
delete
OA
AI
Y
Yonghui Liu
X
Xiao Chen
P
Pei Liu
J
Jordan Samhi
J
John Grundy
C
Chunyang Chen
L
Li Li
DOI:10.1145/3702977delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
React Native, an open source framework, simplifies cross-platform app development by allowing JavaScript-side code to interact with native-side code. Previous studies disregarded React Native, resulting in insufficient static analysis of React Native app code. This study initiates the investigation of challenges when statically analyzing React Native apps. We propose REUNIFY to improve Soot-based static analysis coverage for JavaScript-side and native-side code. REUNIFY converts Hermes bytecode to Soot's intermediate representation. Hermes bytecode, compiled from JavaScript code and integrated into React Native apps, possesses a unique syntax that eludes current JavaScript analyzers. Additionally, we investigate opcode distribution and conduct in-depth analyses of the usage of opcode between popular apps and malware. We also propose a benchmark consisting of 97 control flow-related cases to validate the control flow recovery of the generated intermediate representation. Furthermore, we model the cross-language communication mechanisms of React Native to expand the static analysis coverage for native-side code. Our evaluation demonstrates that REUNIFY enables an average increase of 84% in reached nodes within the callgraph and further identifies an average of two additional privacy leaks in taint analysis. In summary, this article demonstrates that REUNIFY significantly improves the static analysis for the React Native Android apps.
Keywords:
Android
React Native
Mobile App
Static Analysis

Journal

A
ACM Transactions on Software Engineering and Methodology
IF:
6.2
Papers:
1.2K
Citations:
3.4K

Organization

T
Tech Univ Munich
Scholars:
2.4K
Papers: 1.1K
Citations: 495
U
Univ Autonoma Madrid
Scholars:
1.3K
Papers: 673
Citations: 147
U
Univ Newcastle
Scholars:
421
Papers: 274
Citations: 74
C
CISPA
Scholars:
1
Papers: 1
Citations: 0
C
CSIROs Data61
Scholars:
6
Papers: 3
Citations: 1
researcher View more organizations