MiniScope: Automated UI Exploration and Privacy Inconsistency Detection of MiniApps via Two-phase Iterative Hybrid Analysis
Shenao Wang, Yuekang Li, Kailong Wang, Yi Liu, Hui Li, Yang Liu, Haoyu Wang
TL;DR
MiniScope tackles the privacy-inconsistency problem in WeChat MiniApps by introducing a two-phase hybrid analysis that jointly handles sub-package loading, UI state transitions, and event-driven callback control flow. Central to the approach are three interconnected graphs—UTG (UI State Transition Graph), CCFG (Callback Control Flow Graph), and UDFG (Universal Data Flow Graph)—merged into a unified MDG (MiniApp Dependency Graph) to guide both static and dynamic analysis. The framework combines a directed UI explorer with a privacy detector that includes Frida-based runtime monitoring and an LLM-driven privacy policy analysis to cross-validate actual data practices against declared policies, achieving near-perfect detection in experiments (Precision 99.2%, Recall 95.6%, F1 97.4%). Large-scale evaluation on 127,460 MiniApps reveals substantial privacy risks, with 5.7% over-collection and 33.4% over-claim among those with policies, underscoring urgent needs for tighter privacy monitoring by SuperApp operators. The work demonstrates practical impact through responsible disclosure to thousands of developers, provides open-source tooling, and suggests broad applicability of the approach to other MiniApp ecosystems beyond WeChat.”
Abstract
The advent of MiniApps, operating within larger SuperApps, has revolutionized user experiences by offering a wide range of services without the need for individual app downloads. However, this convenience has raised significant privacy concerns, as these MiniApps often require access to sensitive data, potentially leading to privacy violations. Despite existing privacy regulations and platform guidelines, there is a lack of effective mechanisms to safeguard user privacy fully. To address this critical gap, we introduce MiniScope, a novel two-phase hybrid analysis approach, specifically designed for the MiniApp environment. This approach overcomes the limitations of existing static analysis techniques by incorporating UI transition states analysis, cross-package callback control flow resolution, and automated iterative UI exploration. This allows for a comprehensive understanding of MiniApps' privacy practices, addressing the unique challenges of sub-package loading and event-driven callbacks. Our empirical evaluation of over 120K MiniApps using MiniScope demonstrates its effectiveness in identifying privacy inconsistencies. The results reveal significant issues, with 5.7% of MiniApps over-collecting private data and 33.4% overclaiming data collection. We have responsibly disclosed our findings to 2,282 developers, receiving 44 acknowledgments. These findings emphasize the urgent need for more precise privacy monitoring systems and highlight the responsibility of SuperApp operators to enforce stricter privacy measures.
