样式引导的Web应用程序探索
Style-Guided Web Application Exploration
摘要:
针对现代Web应用程序的各种分析和测试技术都依赖于通过触发模拟用户交互的事件来自动探索其状态空间。然而,找出哪些元素在Web应用程序中是可操作的并不是一项简单的任务。为了提高探索Web应用程序的事件空间的效率,我们提出了一个独立于浏览器的,无工具的方法,基于结构和视觉风格的线索。我们的方法在一个名为StyleX的工具中实现,采用机器学习模型,在来自1,000个真实网站的70万个网络元素上进行训练,以先验地预测网页上的可操作元素。此外,我们的方法在探索应用时使用风格线索对这些可操作元素进行排序,当考虑点击事件监听器时,我们的可操作预测模型达到了90.14%的准确率和87.76%的召回率,当考虑五种最常见的事件类型时,平均达到了75.42%的准确率和77.76%的召回率。我们的评估表明,StyleX可以提高JavaScript代码覆盖率达到了23%的通用爬虫。
英文摘要:
A wide range of analysis and testing techniques targeting modern web apps rely on the automated exploration of their state space by firing events that mimic user interactions. However, finding out which elements are actionable in web apps is not a trivial task. To improve the efficacy of exploring the event space of web apps, we propose a browser-independent, instrumentation-free approach based on structural and visual stylistic cues. Our approach, implemented in a tool called StyleX, employs machine learning models, trained on 700,000 web elements from 1,000 real-world websites, to predict actionable elements on a webpage a priori. In addition, our approach uses stylistic cues for ranking these actionable elements while exploring the app. Our actionable predictor models achieve 90.14\% precision and 87.76\% recall when considering the click event listener, and on average, 75.42\% precision and 77.76\% recall when considering the five most-frequent event types. Our evaluations show that StyleX can improve the JavaScript code coverage achieved by a general-purpose crawler by up to 23\%.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。