COLLABORATIVE SQL AND JSON INJECTION DETECTION SYSTEM USING MACHINE LEARNING
SQL and JSON injection attacks are still a significant security vulnerability in contemporary web applications, particularly in API-based systems. This paper introduces a new collaborative machine learning system designed to detect and mitigate SQL and JSON injection attacks in real time. The system adopts a stratified defensive approach, integrating database query analysis, behavioural scrutiny of API requests, and instantaneous anomaly detection to establish a resilient protective framework. Utilizing advanced machine learning techniques—including Support Vector Machines (SVM), Naive Bayes (NB), Decision Trees (DT), and Random Forest (RF)—it achieves high-fidelity discrimination between benign and malicious queries. Also, the system maintains dynamic response to new attack methods through real-time threat monitoring, input sanitization mechanisms, and adaptive learning strategies. The model is trained on a mixed dataset of labelled SQL and JSON injection attempts along with actual queries, which enhances its accuracy in detection. Empirical evaluations demonstrate 94% accuracy with zero false positives compared to conventional syntax-based detection mechanisms. Future improvements may involve the application of transformer-based architectures (e.g., BERT, GPT-activated detection), graph neural networks (GNNs), and reinforcement learning to enhance accuracy and responsiveness. This research highlights the need for multi-pronged security that is AI-driven to safeguard modern database systems and API infrastructures against advanced SQL-JSON injection attacks.
Authors
- Journal of Theoretical and Applied Information Technology
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2025-06-15
- DOI
- https://doi.org/10.5281/zenodo.18062728
- Primary Topic
- Web Application Security Vulnerabilities
- Type
- article
- Field-Weighted Citation Impact
- 0.00