An efficient artificial intelligence approach for early detection of cross-site scripting attacks

Faizan Younas , Ali Raza , Nisrean Thalji , Laith Abualigah , Raed Abu Zitar , Heming Jia
{"title":"An efficient artificial intelligence approach for early detection of cross-site scripting attacks","authors":"Faizan Younas ,&nbsp;Ali Raza ,&nbsp;Nisrean Thalji ,&nbsp;Laith Abualigah ,&nbsp;Raed Abu Zitar ,&nbsp;Heming Jia","doi":"10.1016/j.dajour.2024.100466","DOIUrl":null,"url":null,"abstract":"<div><p>Cross-Site Scripting (XSS) attacks continue to pose a significant threat to web applications, compromising the security and integrity of user data. XSS is a web application vulnerability where malicious scripts are injected into websites, allowing attackers to execute arbitrary code in the victim’s browser. The consequences of XSS attacks can be severe, ranging from financial losses to compromising sensitive user information. XSS attacks enable attackers to deface websites, distribute malware, or launch phishing campaigns, compromising the trust and reputation of affected organizations. This study proposes an efficient artificial intelligence approach for the early detection of XSS attacks, utilizing machine learning and deep learning approaches, including Long Short-Term Memory (LSTM). Additionally, advanced feature engineering techniques, such as the Term Frequency-Inverse Document Frequency (TFIDF), are applied and compared to evaluate results. We introduce a novel approach named LSTM-TFIDF (LSTF) for feature extraction, which combines temporal and TFIDF features from the cross-site scripting dataset, resulting in a new feature set. Extensive research experiments demonstrate that the random forest method achieved a high performance of 0.99, outperforming state-of-the-art approaches using the proposed features. A k-fold cross-validation mechanism is utilized to validate the performance of applied methods, and hyperparameter tuning further enhances the performance of XSS attack detection. We have applied Explainable Artificial Intelligence (XAI) to understand the interpretability and transparency of the proposed model in detecting XSS attacks. This study makes a valuable contribution to the growing body of knowledge on XSS attacks and provides an efficient model for developers and security practitioners to enhance the security of web applications.</p></div>","PeriodicalId":100357,"journal":{"name":"Decision Analytics Journal","volume":"11 ","pages":"Article 100466"},"PeriodicalIF":0.0000,"publicationDate":"2024-04-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.sciencedirect.com/science/article/pii/S2772662224000705/pdfft?md5=d8337fc3e6c7d9511262ccfa7ec0e613&pid=1-s2.0-S2772662224000705-main.pdf","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Decision Analytics Journal","FirstCategoryId":"1085","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S2772662224000705","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Cross-Site Scripting (XSS) attacks continue to pose a significant threat to web applications, compromising the security and integrity of user data. XSS is a web application vulnerability where malicious scripts are injected into websites, allowing attackers to execute arbitrary code in the victim’s browser. The consequences of XSS attacks can be severe, ranging from financial losses to compromising sensitive user information. XSS attacks enable attackers to deface websites, distribute malware, or launch phishing campaigns, compromising the trust and reputation of affected organizations. This study proposes an efficient artificial intelligence approach for the early detection of XSS attacks, utilizing machine learning and deep learning approaches, including Long Short-Term Memory (LSTM). Additionally, advanced feature engineering techniques, such as the Term Frequency-Inverse Document Frequency (TFIDF), are applied and compared to evaluate results. We introduce a novel approach named LSTM-TFIDF (LSTF) for feature extraction, which combines temporal and TFIDF features from the cross-site scripting dataset, resulting in a new feature set. Extensive research experiments demonstrate that the random forest method achieved a high performance of 0.99, outperforming state-of-the-art approaches using the proposed features. A k-fold cross-validation mechanism is utilized to validate the performance of applied methods, and hyperparameter tuning further enhances the performance of XSS attack detection. We have applied Explainable Artificial Intelligence (XAI) to understand the interpretability and transparency of the proposed model in detecting XSS attacks. This study makes a valuable contribution to the growing body of knowledge on XSS attacks and provides an efficient model for developers and security practitioners to enhance the security of web applications.

早期检测跨站脚本攻击的高效人工智能方法
跨站脚本 (XSS) 攻击继续对网络应用程序构成重大威胁,损害用户数据的安全性和完整性。XSS 是一种网络应用程序漏洞,它将恶意脚本注入网站,允许攻击者在受害者的浏览器中执行任意代码。XSS 攻击的后果可能很严重,轻则造成经济损失,重则泄露敏感的用户信息。XSS 攻击使攻击者能够篡改网站、分发恶意软件或发起网络钓鱼活动,从而损害受影响组织的信任和声誉。本研究利用机器学习和深度学习方法(包括长短期记忆(LSTM)),提出了一种早期检测 XSS 攻击的高效人工智能方法。此外,还应用了术语频率-反向文档频率(TFIDF)等先进的特征工程技术,并对结果进行了比较和评估。我们引入了一种名为 LSTM-TFIDF(LSTF)的特征提取新方法,它将跨站脚本数据集中的时间特征和 TFIDF 特征结合起来,形成了一个新的特征集。广泛的研究实验表明,随机森林方法的性能高达 0.99,优于使用所提特征的最先进方法。我们利用 k 倍交叉验证机制来验证应用方法的性能,并通过超参数调整进一步提高了 XSS 攻击检测的性能。我们还应用了可解释人工智能(XAI)来了解所提模型在检测 XSS 攻击时的可解释性和透明度。这项研究为不断增长的 XSS 攻击知识库做出了宝贵贡献,并为开发人员和安全从业人员提供了一个有效的模型,以增强网络应用程序的安全性。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
CiteScore
3.90
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信