Hybrid Detection Framework Using Natural Language Processing (NLP) and Reinforcement Learning (RL) for Cross-Site Scripting (XSS) Attacks
International Journal of Advanced Computer Science and Applications · 2025 · 16 (6)
DOI: 10.14569/ijacsa.2025.0160673 ↗Kurz gefasst
Fachartikel in der Zeitschrift International Journal of Advanced Computer Science and Applications, 2025. Verfasst von Carlo Jude P. Abuda. Die Arbeit wurde bisher 6-mal zitiert (Crossref).
Abstract (Originalsprache)
—Cross-site scripting (XSS) attacks remained among the most persistent threats in web-based systems, often bypassing traditional input validation techniques through obfuscated or embedded scripting payloads. Existing detection models typically relied on static rules or shallow learning techniques, limiting their ability to adapt to evolving attack vectors. This research addressed that gap by developing a hybrid detection framework that integrated natural language processing (NLP) and reinforcement learning (RL) techniques to classify and interpret malicious web inputs. The study aimed to design, develop, and evaluate a system that transformed raw input strings into structured features, trained a deep neural network (DNN) for binary classification, and simulated agent-based learning through policy-driven feedback. The methodology followed the Design Development Research (DDR) framework. Preprocessing involved lowercasing, lemmatization, stopword removal, and TF-IDF vectorization. The trained DNN achieved high accuracy and demonstrated clear boundary separability through PCA and t-SNE visualizations. In the simulation phase, the RL agent optimized its classification policy using cumulative rewards, Q-value heatmaps, and decision contour projections. Results confirmed the system’s capability to generalize across input variations while maintaining interpretability and precision. This framework provided a scalable solution for web application security and demonstrated the effectiveness of semantically guided and policy-aware models for detecting XSS threats.
Zitieren
APA
Abuda, C. J. P. (2025). Hybrid Detection Framework Using Natural Language Processing (NLP) and Reinforcement Learning (RL) for Cross-Site Scripting (XSS) Attacks. International Journal of Advanced Computer Science and Applications, 16(6). https://doi.org/10.14569/ijacsa.2025.0160673
Vancouver
Abuda CJP. Hybrid Detection Framework Using Natural Language Processing (NLP) and Reinforcement Learning (RL) for Cross-Site Scripting (XSS) Attacks. International Journal of Advanced Computer Science and Applications. 2025;16(6). doi:10.14569/ijacsa.2025.0160673
BibTeX
@article{Abuda2025,
author = {Abuda, Carlo Jude P.},
title = {Hybrid Detection Framework Using Natural Language Processing (NLP) and Reinforcement Learning (RL) for Cross-Site Scripting (XSS) Attacks},
journal = {International Journal of Advanced Computer Science and Applications},
year = {2025},
volume = {16},
number = {6},
doi = {10.14569/ijacsa.2025.0160673}
}
EUVIMED