Detection of injections in API requests using recurrent neural networks and transformers

dc.contributor.authorSujan Reddy, A.
dc.contributor.authorRudra, B.
dc.date.accessioned2026-02-04T12:28:26Z
dc.date.issued2022
dc.description.abstractApplication programming interfaces (APIs) are playing a vital role in every online business. The objective of this study is to analyse the incoming requests to a target API and flag any malicious activity. This paper proposes a solution based on sequence models and transformers for the identification of whether an API request has SQL injections, code injections, XSS attacks, operating system (OS) command injections, and other types of malicious injections or not. In this paper, we observe that transformers outperform B-RNNs in detecting malicious activity which is present in API requests. We also propose a novel heuristic procedure that minimises the number of false positives. We observe that the RoBERTa transformer outperforms and gives an accuracy of 100% on our dataset. We observe that the heuristic procedure works well in reducing the number of false positives when a large number of false positives exist in the predictions of the models. © © 2022 Inderscience Enterprises Ltd.
dc.identifier.citationInternational Journal of Electronic Security and Digital Forensics, 2022, 14, 6, pp. 638-658
dc.identifier.issn1751911X
dc.identifier.urihttps://doi.org/10.1504/ijesdf.2022.126451
dc.identifier.urihttps://idr.nitk.ac.in/handle/123456789/22741
dc.publisherInderscience Publishers
dc.subjectApplication programming interfaces (API)
dc.subjectHeuristic methods
dc.subjectQuery languages
dc.subjectApplications programming interfaces
dc.subjectBERT
dc.subjectBidirectional recurrent neural networks
dc.subjectGated recurrent unit
dc.subjectGRU
dc.subjectRNN
dc.subjectSecurity
dc.subjectSQL
dc.subjectStructured Query Language
dc.subjectVanillum recurrent neural network
dc.subjectRecurrent neural networks
dc.titleDetection of injections in API requests using recurrent neural networks and transformers

Files

Collections