一句话:用 LLM 引导的 GUI Agent 遍历 Android 应用 UI,自动发现并抽取用户权利声明的路径与结构化信息。
移动应用需遵守 GDPR、CCPA 等隐私法规,为用户提供账户删除、数据导出等权利行使路径,但这些入口常深藏于复杂 UI 层级中,人工审计难以规模化。本文提出 RightsGen 框架,利用大语言模型的语义推理能力在动态 UI 状态中导航,替代传统随机 UI fuzzer。它采用路径导向机制,并以结构化权利元组(rights tuples)指导一个 GUI Agent 充当权利测试者,自动发现并文档化 Android 应用中的用户权利声明。作者在 144 个流行应用上评估,RightsGen 在动态测试中识别用户权利路径的召回率达 92.5%,抽取权利元组的召回率达 87.3%,表明其能有效自动化生成用户权利声明。
Ensuring compliance with privacy regulations, such as GDPR and CCPA, has become a critical challenge for mobile applications. These regulations mandate that apps provide accessible paths for users to exercise rights, such as account deletion and data export. However, these paths are often buried deep within complex UI hierarchies, making manual auditing unscalable. In this paper, we introduce RightsGen, a framework that leverages Large Language Models (LLMs) to automate the discovery and documentation of user rights declarations in Android applications. Unlike traditional random UI fuzzers, RightsGen utilizes the semantic reasoning capabilities of LLMs to navigate dynamic UI states. It employs a path-oriented mechanism and a GUI Agent acting as a rights tester guided by structured rights tuples. In our evaluation across 144 popular apps, RightsGen demonstrated high efficiency in dynamic testing, achieving a recall rate of 92.5% in recognizing user rights paths and 87.3% in extracting rights tuples. These results highlight the effectiveness of RightsGen in automating the generation of user rights declarations.