EUVIMEDEUVIMED entdecken
Open Access · CC BY 4.0

Detection of SQL Injection, XSS, and Command Injection Attacks in Web Payloads Using SVM, Random Forest, and XGBoost

Andrian Eko Widodo, Fabriyan Fandi Dwi Imaniawan

Journal of Information Systems and Informatics · 25.06.2026 · 8 (3) · 3516-3538

DOI: 10.63158/journalisi.v8i3.1655 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Journal of Information Systems and Informatics, online erschienen am 25.06.2026. Verfasst von Andrian Eko Widodo und 1 weiteren Autor:innen. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0).

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Web application attacks, including SQL Injection (SQLi), Cross-Site Scripting (XSS), and Command Injection (CmdI), remain major threats to digital services. This study develops and evaluates an adversarial-aware protocol for multi-class malicious payload detection, focusing on accuracy, robustness against non-adaptive mutations, and practical inference feasibility. The protocol compares LinearSVC, Random Forest, and XGBoost with character-level neural baselines, namely character CNN and BiLSTM, and a transparent rule-based comparator. Evaluation integrates stratified sampling, deduplicated validation, mutation testing, SHAP-based interpretation, and end-to-end throughput measurement. Experiments used 49,998 stratified records from the SQLi-XSS-CommandInjection dataset in Google Colaboratory. On the internal test set, XGBoost obtained the best performance, achieving 99.28% accuracy and 99.32% macro F1-score. After removing 878 exact duplicate records for stricter re-evaluation, XGBoost maintained 99.21% accuracy and 99.24% macro F1-score, indicating that the findings were not driven solely by duplicate leakage. The complete preprocessing, feature extraction, and prediction pipeline reached an average CPU inference time of 0.832 ms per sample. SHAP analysis of Random Forest highlighted injection operators, script fragments, keyword hits, and structural tokens as discriminative features. The results provide a controlled benchmark, although validation on real HTTP logs remains future work.

Zitieren

APA

Widodo, A. E., & Imaniawan, F. F. D. (2026). Detection of SQL Injection, XSS, and Command Injection Attacks in Web Payloads Using SVM, Random Forest, and XGBoost. Journal of Information Systems and Informatics, 8(3), 3516-3538. https://doi.org/10.63158/journalisi.v8i3.1655

Vancouver

Widodo AE, Imaniawan FFD. Detection of SQL Injection, XSS, and Command Injection Attacks in Web Payloads Using SVM, Random Forest, and XGBoost. Journal of Information Systems and Informatics. 2026;8(3):3516-3538. doi:10.63158/journalisi.v8i3.1655

BibTeX
@article{Widodo2026,
  author = {Widodo, Andrian Eko and Imaniawan, Fabriyan Fandi Dwi},
  title = {Detection of SQL Injection, XSS, and Command Injection Attacks in Web Payloads Using SVM, Random Forest, and XGBoost},
  journal = {Journal of Information Systems and Informatics},
  year = {2026},
  volume = {8},
  number = {3},
  pages = {3516--3538},
  doi = {10.63158/journalisi.v8i3.1655}
}
Kostenlos starten →