The development and analysis of mobile applications have become an active research area. The concept of hybrid applications has emerged in the last three years where applications are developed in both native and web languages. The use of web languages raises certain security risks in hybrid mobile applications as it creates possible channels where malicious code can be injected inside the application. In hybrid mobile applications, WebView, an important component, implements the sandbox mechanism to protect the local resources of smartphone devices from unauthorized access of JavaScript. The WebView application program interfaces has security issues as the attackers can attack the hybrid application via JavaScript code by bypassing the sandbox security by accessing the public methods of the applications. Cross-Site Scripting is one of the most popular malicious code injection techniques for accessing the public methods of the application through JavaScript. This research study proposes the framework for the detection and prevention of XSS attacks in hybrid applications using state of the art Machine Learning algorithms. The proposed framework detects the attacks using the registered Java object features. The dataset and the sample hybrid applications have been developed using the android studio. Then the widely used RapidMiner toolkit has been used for empirical analysis. The results reveal that ensemble based Random Forest algorithm outperforms other algorithms and achieves the accuracy and F-measures as high as of 99%. The proposed framework can be helpful to detect and prevent XSS based attacks on hybrid applications in the future.
翻译:移动应用的开发和分析已成为一个积极的研究领域。在过去三年中,出现了混合应用的概念。网络语言的使用在混合移动应用中增加了某些安全风险,因为它为在应用程序中注入恶意代码创造了可能的渠道。在混合移动应用中,WebView这一重要组成部分是实施沙箱机制,以保护智能手机装置的当地资源不受非法访问JavaScript的干扰。WebView应用程序接口有安全问题,因为攻击者可以通过使用应用的公开方法绕过沙箱安全,通过JavaScript编码攻击混合应用。跨点打印是使用应用中最受欢迎的恶意代码注入技术之一,通过JavaScript进入公共应用中。在混合应用中,使用先进机器学习算法的状态来检测和预防 XSS袭击。拟议的框架利用已登记的Java物体特征来检测攻击。数据集和抽样混合应用已经利用该和机器人工作室开发。随后广泛使用的RapriginMiner应用的错误密码注射技术是利用JavaSripper 和Fralimalmamamas 系统进行其他的逻辑分析。该结果可以用来作为根据森林测算法分析。提议,用于其他的Restalmalmastralmasmasmasmabalalalmamas。