arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2604.03561cs.SE
收藏

从UI到代码:通过LLM统一的静态-动态分析进行移动广告检测

From UI to Code: Mobile Ad Regulation via LLM Unified Static-Dynamic Analysis

University of Notre Dame(圣母大学);Arizona State University(亚利桑那州立大学)

Shang Ma, Yanfang Ye, Xusheng Xiao

AI总结:

本文提出ADWISE框架,通过结合静态分析和LLM引导的UI结构、应用语义及检索类比,有效检测移动广告。实验表明,ADWISE在广告widget检测上优于现有方法25.60%,并发现更多广告违规情况。

摘要:

移动广告(广告)对应用经济至关重要,但检测具有挑战性,因为广告内容动态从远程服务器获取并通过多样化的用户界面(UI)渲染,使广告难以定位和触发。为解决这一挑战,我们提出了ADWISE,一种新颖的框架,将移动广告检测建模为LLM引导的、面向广告的UI探索。ADWISE首先进行静态程序分析以识别用于放置广告的UI小部件,称为广告小部件。然后使用一个扎根的LLM推理循环,通过三种互补的领域指导信号导航至并触发这些小部件:(1)基于WTG的指导,提供从静态构建的窗口转换图(WTG)中获得的全局转换先验;(2)语义指导,通过应用功能推理优先考虑用户可能的交互路径;(3)结构指导,通过检索增强生成匹配当前UI与知识库中的常见广告密集布局。通过结合静态程序分析与基于UI结构、应用语义和检索类比的LLM推理,ADWISE在复杂的移动UI中实现了更有效的广告检测。在100个基准应用上的实验表明,ADWISE在广告小部件检测上优于现有最先进基线25.60%。此外,ADWISE在六个类别中发现了34.34%更多的广告违规情况,直接受益于下游广告监管。

英文摘要:

Mobile advertisements (ads) fuel the app economy, yet poorly regulated ads can degrade user experience and expose users to malware. Identifying ad regulation violations is challenging because ads are dynamically retrieved from remote servers and embedded across various user interfaces (UIs), making them difficult to locate and trigger. To address these challenges, we propose AdWise, which harnesses Large Language Models (LLMs) to unify static ad analysis and dynamic UI exploration for detecting mobile ads and assisting ad regulation. AdWise first develops novel static analysis to identify UI widgets used to place ads (ad widgets). To reach these widgets, AdWise instructs an LLM to guide dynamic exploration using three types of guidance derived from static analysis and ad placement practices: (1) WTG-based guidance, which uses a statically built window transition graph (WTG) to delineate the app's structural topology; (2) semantic guidance, which reasons about app functionality to prioritize paths users are likely to visit; and (3) structural guidance, which uses retrieval-augmented generation (RAG) to recognize common ad-heavy UI layouts from a knowledge base. Our evaluation on 100 benchmark apps shows that AdWise outperforms the strongest baseline by 25.83 percentage points in ad-widget detection and uncovers 34.34% more violations across six violation types in three regulation categories. A broader in-the-wild study identified 383 regulation violations within 2,047 apps using Meta Ads. We reported the findings to Google Play and the Abuse Track of the Meta Bug Bounty program.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑