跳到主要导航 跳到搜索 跳到主要内容

HarmoBridge: Bridging ArkTS and C/C++ for Cross-Language Static Analysis on HarmonyOS

  • Jiale Wu
  • , Jiapeng Deng
  • , Yanjie Zhao*
  • , Li Li
  • , Haoyu Wang
  • *此作品的通讯作者
  • Huazhong University of Science and Technology

科研成果: 书/报告/会议事项章节会议稿件同行评审

摘要

HarmonyOS is Huawei's distributed operating system designed for diverse smart devices, featuring ArkTS as its primary app development language. To enhance performance and leverage existing libraries, HarmonyOS apps can integrate native C/C++ modules through its Native Development Kit (NDK) mechanism. This creates significant challenges for static analysis, as critical data flows spanning ArkTS and native C/C++ boundaries remain invisible to existing single-language analyzers. Therefore, we present HarmoBridge, the first cross-language static analysis system for HarmonyOS that bridges this gap through novel summary based SumIR abstraction and seamless ecosystem integration. Our approach extracts dataflow summaries from native code (supporting both binary and source code analysis) and translates these summaries into intermediate representations that integrate seamlessly with the existing HarmonyOS analysis infrastructure. HarmoBridge introduces SumIR, a specialized intermediate representation that captures Node-API interaction semantics and converts them to ArkIR-compatible function bodies for downstream analysis tools. Also, we develop CrossFlowBench, a comprehensive benchmark covering representative Node-API interaction patterns, and identify potential security implications where established cross-language attack patterns widely prevalent in mobile ecosystems could adapt to HarmonyOS's architecture. Results demonstrate that HarmoBridge achieves 81.0% accuracy in recovering cross-language data flows on CrossFlowBench, significantly outperforming baseline approaches that treat native calls as opaque operations, establishing a foundation for comprehensive cross-language analysis in the emerging HarmonyOS ecosystem.

源语言英语
主期刊名Proceedings - 2025 40th IEEE/ACM International Conference on Automated Software Engineering, ASE 2025
出版商Institute of Electrical and Electronics Engineers Inc.
3168-3179
页数12
ISBN(电子版)9798350357332
DOI
出版状态已出版 - 2025
活动2025 40th IEEE/ACM International Conference on Automated Software Engineering, ASE 2025 - Seoul, 韩国
期限: 16 11月 202520 11月 2025

出版系列

姓名Proceedings - 2025 40th IEEE/ACM International Conference on Automated Software Engineering, ASE 2025

会议

会议2025 40th IEEE/ACM International Conference on Automated Software Engineering, ASE 2025
国家/地区韩国
Seoul
时期16/11/2520/11/25

指纹

探究 'HarmoBridge: Bridging ArkTS and C/C++ for Cross-Language Static Analysis on HarmonyOS' 的科研主题。它们共同构成独一无二的指纹。

引用此