MODELS AND ALGORITHMS FOR DETECTING OBFUSCATED SQL INJECTION ATTACKS IN API REQUESTS BASED ON MULTI-SCALE HYBRID NEURAL NETWORKS AND ATTENTION MECHANISM
PDF
ZENODO

Keywords

API security, SQL injection (SQLi), obfuscation, Shannon entropy, character-level embedding, Multi-Scale 1D-CNN, Bi-LSTM, Attention mechanism, CSIC 2010.

Abstract

In modern cloud-native and microservice information systems, data exchange is predominantly executed via REST and GraphQL Application Programming Interfaces (APIs) using structured JSON and XML payloads. However, SQL injection (SQLi) attacks embedded within nested API requests and disguised through multi-stage obfuscation evade traditional regular-expression-based Web Application Firewalls (WAFs). This paper presents a structural decomposition model for hierarchical API requests, an information-theoretic Shannon entropy estimator for obfuscation detection, and a hybrid deep learning architecture integrating Multi-Scale 1D Convolutional Neural Networks (MS-1D-CNN), Bidirectional Long Short-Term Memory (Bi-LSTM), and a Bahdanau Attention mechanism. Character-level embedding is utilized to eliminate out-of-vocabulary (OOV) vulnerabilities, while class imbalance is mitigated via Focal Loss. Furthermore, the asymptotic computational complexity of the inline filtration algorithm is formally proved, and a rigorous comparative synthesis against peer-reviewed benchmarks on the CSIC 2010 HTTP dataset is provided.

PDF
ZENODO

References

1. O‘zbekiston Respublikasining «Kiberxavfsizlik to‘g‘risida»gi Qonuni, 15.04.2022-yildagi O‘RQ-764-son // Qonunchilik ma’lumotlari milliy bazasi, 16.04.2022-y., 03/22/764/0313-son.

2. Halfond W. G., Viegas J., Orso A. A classification of SQL-injection attacks and countermeasures // Proceedings of the IEEE International Symposium on Secure Software Engineering (ISSSE). – Arlington, VA, USA, 2006. – P. 13–15.

3. Hochreiter S., Schmidhuber J. Long short-term memory // Neural Computation. – 1997. – Vol. 9, No. 8. – P. 1735–1780. – DOI: 10.1162/neco.1997.9.8.1735.

4. Torrano-Gimenez C., Perez-Villegas A., Alvarez G. An anomaly-based approach for intrusion detection in web traffic // Journal of Information Assurance and Security. – 2010. – Vol. 5, No. 4. – P. 446–454.

5. Kim Y. Convolutional neural networks for sentence classification // Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP). – Doha, Qatar, 2014. – P. 1746–1751. – DOI: 10.3115/v1/D14-1181.

6. Zhang X., Zhao J., LeCun Y. Character-level convolutional networks for text classification // Advances in Neural Information Processing Systems (NeurIPS). – 2015. – Vol. 28. – P. 649–657.

7. Bahdanau D., Cho K., Bengio Y. Neural machine translation by jointly learning to align and translate // Proceedings of the 3rd International Conference on Learning Representations (ICLR). – San Diego, CA, USA, 2015. – DOI: 10.48550/arXiv.1409.0473.

8. Xie X., Ren C., Fu Y., Xu J., Guo J. SQL Injection Detection for Web Applications Based on Elastic-Pooling CNN // IEEE Access. – 2019. – Vol. 7. – P. 151475–151481. – DOI: 10.1109/ACCESS.2019.2947527.

9. Gandhi N., Patel J., Sisodiya R., Doshi N., Mishra S. A CNN-BiLSTM based Approach for Detection of SQL Injection Attacks // 2021 International Conference on Computational Intelligence and Knowledge Economy (ICCIKE). – Dubai, UAE: IEEE, 2021. – P. 378–383. – DOI: 10.1109/ICCIKE51210.2021.9410675.

10. Campazas-Vega A., Crespo-Martínez I. S., Guerrero-Higueras Á. M., et al. SQL injection attack detection in network flow data // Computers & Security (Elsevier). – 2023. – Vol. 127. – Art. no. 103093. – DOI: 10.1016/j.cose.2023.103093.

11. OWASP Foundation. OWASP API Security Top 10 2023 // Open Web Application Security Project, 2023. – URL: https://owasp.org/API-Security/editions/2023/en/0x11-t10/

12. Gers F. A., Schmidhuber J., Cummins F. Learning to forget: Continual prediction with LSTM // Neural Computation. – 2000. – Vol. 12, No. 10. – P. 2451–2471. – DOI: 10.1162/089976600300015015.

Creative Commons License

This work is licensed under a Creative Commons Attribution 4.0 International License.

Copyright (c) 2026 Europa Revue Journal

Downloads

Download data is not yet available.