Skip to main content
. 2025 Jul 16;11:e2975. doi: 10.7717/peerj-cs.2975

Table 1. Performance comparison of machine learning algorithms across different injection vulnerabilities (SQL, XSS, LFI, OSC) based on F1-score.

ML algorithms F1-score for different vulnerabilities
XSS SQL OSC LFI
Logistic regression 0.9944 0.7255 0.9788 0.9245
Naive Bayes 0.9954 0.8500 0.6937 0.4457
KNN 0.9962 0.9858 0.9818 0.7190
SVM 0.9951 0.9952 0.9800 0.9376
Decision Tree 0.9965 0.9957 0.9818 0.9381