Detection of injections in API requests using recurrent neural networks and transformers
| dc.contributor.author | Sujan Reddy, A. | |
| dc.contributor.author | Rudra, B. | |
| dc.date.accessioned | 2026-02-04T12:28:26Z | |
| dc.date.issued | 2022 | |
| dc.description.abstract | Application 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.citation | International Journal of Electronic Security and Digital Forensics, 2022, 14, 6, pp. 638-658 | |
| dc.identifier.issn | 1751911X | |
| dc.identifier.uri | https://doi.org/10.1504/ijesdf.2022.126451 | |
| dc.identifier.uri | https://idr.nitk.ac.in/handle/123456789/22741 | |
| dc.publisher | Inderscience Publishers | |
| dc.subject | Application programming interfaces (API) | |
| dc.subject | Heuristic methods | |
| dc.subject | Query languages | |
| dc.subject | Applications programming interfaces | |
| dc.subject | BERT | |
| dc.subject | Bidirectional recurrent neural networks | |
| dc.subject | Gated recurrent unit | |
| dc.subject | GRU | |
| dc.subject | RNN | |
| dc.subject | Security | |
| dc.subject | SQL | |
| dc.subject | Structured Query Language | |
| dc.subject | Vanillum recurrent neural network | |
| dc.subject | Recurrent neural networks | |
| dc.title | Detection of injections in API requests using recurrent neural networks and transformers |
