Multi-Class Classification of Code Injection Attacks Using the Support Vector Machine Algorithm

Code injection attacks such as SQL Injection and Cross-Site Scripting remain among the most prevalent and dangerous threats to web applications. This study proposes a multi-class classification system utilizing the Support Vector Machine algorithm to detect and differentiate between SQLi, XSS, and normal web traffic. A comprehensive dataset was constructed by combining both primary data captured via automated attacks on vulnerable features of the OWASP Juice Shop using Caido and secondary data from public repositories. The collected HTTP logs underwent preprocessing, including tokenization and vectorization using Word2Vec. The resulting features were used to train an SVM classifier with a One-vs-Rest strategy. Extensive hyperparameter tuning was performed using GridSearchCV with 5-fold cross-validation. To evaluate its effectiveness, the SVM model was benchmarked against Random Forest, Logistic Regression, and K-Nearest Neighbors, all trained using identical pipelines. The optimized SVM model achieved the highest accuracy of 97.49 %, outperforming the other classifiers in most evaluation metrics. Furthermore, the model was deployed in a real-time detection system, demonstrating robust performance with a detection rate of 88.39 % on a diverse set of unseen attack payloads. The results validate the SVM model's effectiveness for practical and accurate detection of code injection attacks.

Authors

Institutions

Publication Details

Published
2025-06-12
DOI
https://doi.org/10.1109/icera66156.2025.11087265
Citations
1
Primary Topic
Network Security and Intrusion Detection
Type
article
Field-Weighted Citation Impact
1.49
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Multi-Class Classification of Code Injection Attacks Using the Support Vector Machine Algorithm

Kharisma Monika Dian Pertiwi, Mustafa Kamal, Hanggoro Seto Firmandani
1 citations
Network Security and Intrusion Detection
1.49
article

Multi-Class Classification of Code Injection Attacks Using the Support Vector Machine Algorithm

Kharisma Monika Dian Pertiwi, Mustafa Kamal, Hanggoro Seto Firmandani
article en
1 citations

Abstract

Code injection attacks such as SQL Injection and Cross-Site Scripting remain among the most prevalent and dangerous threats to web applications. This study proposes a multi-class classification system utilizing the Support Vector Machine algorithm to detect and differentiate between SQLi, XSS, and normal web traffic. A comprehensive dataset was constructed by combining both primary data captured via automated attacks on vulnerable features of the OWASP Juice Shop using Caido and secondary data from public repositories. The collected HTTP logs underwent preprocessing, including tokenization and vectorization using Word2Vec. The resulting features were used to train an SVM classifier with a One-vs-Rest strategy. Extensive hyperparameter tuning was performed using GridSearchCV with 5-fold cross-validation. To evaluate its effectiveness, the SVM model was benchmarked against Random Forest, Logistic Regression, and K-Nearest Neighbors, all trained using identical pipelines. The optimized SVM model achieved the highest accuracy of 97.49 %, outperforming the other classifiers in most evaluation metrics. Furthermore, the model was deployed in a real-time detection system, demonstrating robust performance with a detection rate of 88.39 % on a diverse set of unseen attack payloads. The results validate the SVM model's effectiveness for practical and accurate detection of code injection attacks.

University of Surabaya (ID), Universitas 45 Surabaya (ID)
Openalex Percentile: Top 14%
Network Security and Intrusion Detection
1.49
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Multi-Class Classification of Code Injection Attacks Using the Support Vector Machine Algorithm — Kharisma Monika Dian Pertiwi, Mustafa Kamal, et al. · (2025) | TGRS Research Map | TGRS