HM-SAF: Cross-Layer Static Analysis Framework For HarmonyOS

HM-SAF: Межслойный фреймворк статического анализа для HarmonyOS
Xiaosong Zhang, Yi Shen, Yukun Zhu, JiChao Guo, FengHua Xu, RuiDong Chen, Jia Yu
2023-08-28

HM-SAFHMICCBenchHMNativeFlowBenchHarmonyOSbottom-up data flow analysiscross-layer static analysissummarized memorytaint analysis
HarmonyOS is a new operating system that is compatible with Android and widely used in various Internet of Things (IoT) applications. However, like the Android system, HarmonyOS is also susceptible to privacy risks due to numerous applications in the Android ecosystem. Given the unique architecture of HarmonyOS, the conventional Android analysis framework cannot be directly applied. Consequently, there is an urgent need to develop a security analysis tool specifically designed for reviewing HarmonyOS applications. This paper proposes a static analysis approach for analyzing HarmonyOS applications and addresses the challenge of cross-layer analysis in the existing framework. The approach introduces a bottom-up data flow analysis algorithm based on summarized memory to achieve more accurate taint analysis capabilities. Additionally, the paper introduces benchmark suites, HMICCBench, and HMNativeFlowBench, to evaluate the effectiveness and accuracy of taint analysis tools for HarmonyOS.The experimental results presented in this paper demonstrate that Static Analysis Framework for HarmonyOS (HM-SAF) can effectively detect data leakage within and across components, as well as in Native layers, with a high degree of analysis accuracy. On the above three benchmark sets, HM-SAF achieves 93.6% accuracy, which is 4.1% higher than the FlowDroid framework in the Android world, and 4.0% higher than the JN-SAF framework. At the same time, HM-SAF also detected data leakage in real applications, indicating that HM-SAF has practical value.
1
Created two benchmark suites, HMICCBench and HMNativeFlowBench, to evaluate HarmonyOS taint analysis tools.
2
HM-SAF achieved 93.6% accuracy on three benchmark sets, outperforming FlowDroid by 4.1% and JN-SAF by 4.0%.
3
HM-SAF successfully detected data leakage within and across components and in native layers, and found leaks in real applications.
4
Introduced HM-SAF, a static analysis framework specifically designed for HarmonyOS to detect privacy-related data leakage.
5
Proposed a bottom-up data flow analysis algorithm based on summarized memory to improve taint analysis accuracy for cross-layer scenarios.

HarmonyOS applications (including their components and native layers)

Cross-layer static taint/data-flow analysis for detecting data leakage within and across components and native layers using a bottom-up summarized-memory algorithm and evaluated on HMICCBench and HMNativeFlowBench

Publication Details
Publication Date
2023-08-28
Journal
Publisher
ISSN
Cited by
1
Access Type
Author Information
Authors
Xiaosong Zhang
Yi Shen
Yukun Zhu
JiChao Guo
FengHua Xu
RuiDong Chen
Jia Yu
Explore further
Open the scid.ai AI chat with a ready-made request: it will find papers on a similar topic and help build a literature review.
Find similar papers in the chat
Make a presentation
100%