API Security in Large Enterprises: Leveraging Machine Learning for Anomaly Detection
Open accessThe DOI matches its Crossref record; 16 of the 16 references it cites were found in a registry or an index.
Abstract
Large enterprises offer thousands of micro-services applications to support their daily business activities by using Application Programming Interfaces (APIs). These applications generate huge amounts of traffic via millions of API calls every day, which is difficult to analyze for detecting any potential abnormal behaviour and application outage. This phenomenon makes Machine Learning (ML) a natural choice to leverage and analyze the API traffic and obtain intelligent predictions. This paper proposes an ML-based technique to detect and classify API traffic based on specific features like bandwidth and number of requests per token. We employ a Support Vector Machine (SVM) as a binary classifier to classify the abnormal API traffic using its linear kernel. Due to the scarcity of the API dataset, we created a synthetic dataset inspired by the real-world API dataset. Then we used the Gaussian distribution outlier detection technique to create a training labeled dataset simulating real-world API logs data which we used to train the SVM classifier. Furthermore, to find a trade-off between accuracy and false positives, we aim at finding the optimal value of the error term (C) of the classifier. The proposed anomaly detection method can be used in a plug and play manner, and fits into the existing micro-service architecture with little adjustments in order to provide accurate results in a fast and reliable way. Our results demonstrate that the proposed method achieves an F1-score of 0.964 in detecting anomalies in API traffic with a 7.3% of false positives rate.
Overview
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
In the citing paper
“Other lightweight approaches include SVMs for API traffic [95], randomized matrix sketching for streaming data [118], and regression-based models such as Syslrn [70] that reduce data requirements through offline feature selection.”
From Anomaly detection and root-cause identification in microservices: a survey (2026) · cites this paper as [95]
In the citing paper
“many systems monitor CPU and memory utilization [93,94], network traffic [95], cache metrics, and I/O operations [14,44,96]”
From Anomaly detection and root-cause identification in microservices: a survey (2026) · cites this paper as [95]
In the citing paper
“Based on the analysis of the individual anomaly detection methods, we can determine the top five methods: • Tree-matching [14] (Precision: 97%, Recall: 99%, F1-Score: 98%); • Deep Variational Bayesian networks [78] (Precision: 98%, Recall: 97%, F1-Score: 97%); • Support Vector Machine [95] (F1-Score: 96.4%); • Variational graph auto-encoder and an LSTM autoencoder [11] (Precision: 97.6%, Recall: 9”
From Anomaly detection and root-cause identification in microservices: a survey (2026) · cites this paper as [95]
Citations
Cites
1 retracted
Retracted: Network Anomaly Traffic Detection Method Based on Support Vector Machine
Yan, G. (2016) · International Conference on Smart City and Systems Engineering · doi:10.1109/icscse.2016.0011 · Cited by 26
RetractedA survey of network anomaly detection techniques
Ahmed, M., Naser Mahmood, A., & Hu, J. (2016) · Journal of Network and Computer Applications · doi:10.1016/j.jnca.2015.11.016 · Cited by 1,750
A Deep Learning Approach for Network Intrusion Detection System
Javaid, A., Niyaz, Q., Sun, W., & Alam, M. (2016) · Proceedings of the 9th EAI International Conference on Bio-inspired Information and Communications Technologies (formerly BIONETICS) · doi:10.4108/eai.3-12-2015.2262516 · Cited by 1,274
Deep Learning for Anomaly Detection: A Survey
Chalapathy, R., & Chawla, S. (2019) · arXiv · doi:10.48550/arxiv.1901.03407 · Cited by 1,240
High-dimensional and large-scale anomaly detection using a linear one-class SVM with deep learning
Erfani, S. M., Rajasegarar, S., Karunasekera, S., & Leckie, C. (2016) · Pattern Recognition · doi:10.1016/j.patcog.2016.03.028 · Cited by 1,162
A survey of deep learning-based network anomaly detection
Kwon, D., Kim, H., Kim, J., Suh, S. C., Kim, I., & Kim, K. J. (2019) · Cluster Computing · doi:10.1007/s10586-017-1117-8 · Cited by 778
A comprehensive survey on network anomaly detection
Fernandes, G., Rodrigues, J. J. P. C., Carvalho, L. F., Al-Muhtadi, J. F., & Proença, M. L. (2019) · Telecommunication Systems · doi:10.1007/s11235-018-0475-8 · Cited by 382
Web traffic anomaly detection using C-LSTM neural networks
Kim, T.-Y., & Cho, S.-B. (2018) · Expert Systems with Applications · doi:10.1016/j.eswa.2018.04.004 · Cited by 340
A holistic review of Network Anomaly Detection Systems: A comprehensive survey
Moustafa, N., Hu, J., & Slay, J. (2019) · Journal of Network and Computer Applications · doi:10.1016/j.jnca.2018.12.006 · Cited by 317
Two-tier network anomaly detection model: a machine learning approach
Pajouh, H. H., Dastghaibyfard, G., & Hashemi, S. (2017) · Journal of Intelligent Information Systems · doi:10.1007/s10844-015-0388-x · Cited by 180
Research works printed but not linked: 5
- huizinga, 2019, Using machine learning in network traffic analysis for penetration testing auditability
- 2019, OWASP API Security Top 10the ten most critical api security risks
- 2019, Gartner’s api strategy maturity model
- 2019, State of the internet / security retail attacks and api traffic, 5
- 2020, I. S. International Business Machines, Cost of a data breach report 2020
Cited by
Security in Cloud-Native Services: A Survey
Θεοδωρόπουλος, Θ., Rosa, L., Benzaïd, C., Gray, P., Marin, E., Makris, A., Cordeiro, L., Diego, F., Sorokin, P., Girolamo, M. D., et al. (2023) · Journal of Cybersecurity and Privacy · doi:10.3390/jcp3040034 · Cited by 171
“Cloud computing security challenges and solutions: a survey [33].”
BackgroundBaye, G., Silva, P. M. D. C., Broggi, A., Fiondella, L., Bastian, N. D., & Kul, G. (2023) · IEEE/IFIP Network Operations and Management Symposium (NOMS) · doi:10.1109/noms56928.2023.10154410 · Cited by 23
“For NIDS, it is the proportion of samples correctly classified as malignant to those that are malignant [1].”
BackgroundSelf-citationAPI Traffic Anomaly Detection in Microservice Architecture
Sowmya, M., Rai, A. J., Spoorthi, V., Irfan, M., Honnavalli, P. B., & Nagasundari, S. (2023) · doi:10.1109/ccgridw59191.2023.00044 · Cited by 11
“97, the SVM-based approach is represented in green [3], the Hybrid-approach is represented in red [ 1 4 ]mentioned in the related work have F1-scores of 0.”
BackgroundMethodInfluentialvarMax: Towards Confidence-Based Zero-Day Attack Recognition
Baye, G., Silva, P. M. D. C., Broggi, A., Bastian, N. D., Fiondella, L., & Kul, G. (2024) · IEEE Military Communications Conference (MILCOM) · doi:10.1109/milcom61039.2024.10773707 · Cited by 11
Self-citationA classification-by-retrieval framework for few-shot anomaly detection to detect API injection
Aharon, U., Dubin, R., Dvir, A. Z., & Hajaj, C. (2024) · Computers & Security · doi:10.1016/j.cose.2024.104249 · Cited by 25
“…2 https://owasp.org/API-Security/editions/2023/en/ 0xaa-unsafe-consumption-of-apis/ Kharkar, Moghaddam, Mohylevskyy, Helyar, Kamal, Elka-mhawy and Sundaresan, 2023; Baye, Hussain, Oracevic, Hussain and Kazmi, 2021; Harlicaj et al., 2021), there are lingering concerns that remain unresolved.”
MethodPașca, E. M., Delinschi, D., Erdei, R., & Matei, O. (2025) · IEEE Access · doi:10.1109/access.2025.3554960 · Cited by 17
A Real-Time Approach to Detecting API Abuses Based on Behavioral Patterns
Prinakaa, S., Bavanika, V., Sanjana, S., Srinivasan, S., & Sarasvathi, V. (2024) · International Conference on Cryptography, Security and Privacy (CSP) · doi:10.1109/csp62567.2024.00012 · Cited by 5
“Certain features such as token size, bandwidth consumption, HTTP response codes and number of consecutive requests [13] were chosen to classify the API traffic.”
BackgroundMethodInfluentialBest Practices to Secure API Implementations in Core Banking System (CBS) in Banks
Alam, M. U., Azad, M. A. K., & Ali, M. S. (2022) · IEEE Annual Computing and Communication Workshop and Conference (CCWC) · doi:10.1109/ccwc54503.2022.9720840 · Cited by 3
Overview of Machine Learning Processes Used in Improving Security in API-Based Web Applications
Pașca, E. M., Erdei, R., Delinschi, D., & Matei, O. (2023) · Lecture notes in networks and systems · doi:10.1007/978-3-031-35314-7_33 · Cited by 6
Analysis of Anomaly Detection Techniques Applied to Web API Network Scenario
Huang, Z., Fan, X., Li, Z., Zhao, C., Chen, G., & Liu, Y. (2023) · IEEE Joint International Information Technology and Artificial Intelligence Conference (ITAIC) · doi:10.1109/itaic58329.2023.10408896 · Cited by 3
“According to the above range, the research literature is selected, and the model to be evaluated is found as follows: 1) Anomaly detection model for Web API network scenarios. a) Baye [4] introduced a machine learning (ML) approach tailored for large enterprises to bolster API security.”
A Critical Review : Malware Detection and Analysis in Android Devices using Machine Learning
Multani, T., Joshi, V., & Wadmare, J. G. (2026) · SN Computer Science · doi:10.1007/s42979-026-04865-1 · Cited by 2
Open Banking API Security: Anomalous Access Behaviour
Behbehani, D., Komninos, N., Al‐Begain, K., & Rajarajan, M. (2023) · International Conference on Innovations in Intelligent Systems and Applications (INISTA) · doi:10.1109/inista59065.2023.10310517 · Cited by 2
“In this study, we will use the dataset provided by [11], which has 1700 entries and ( if needed) generate an extended dataset using the techniques mentioned in [10].”
BackgroundMethodInfluentialAdapt and Defend: Reinforcement Learning for Hardware-Assisted Security
Sayadi, H., & He, Z. (2024) · Springer eBooks · doi:10.1007/978-3-031-71436-8_12 · Cited by 4
TAD-LLM: API Traffic Anomaly Detection Based on Large Language Model
Zhang, Y., Liu, B., Liu, J., Zhang, F., Liu, Y., & Liu, Q. (2024) · International Conference on Mobility, Sensing and Networking (MSN) · doi:10.1109/msn63567.2024.00071 · Cited by 6
Sharma, I., Saini, J., Chhabra, G., & Kaushik, K. (2023) · International Conference on Innovative Mechanisms for Industry Applications · doi:10.1109/icimia60377.2023.10426240 · Cited by 2
“According to a 2017 Cisco Visual Networking Index (VNI) study, DDoS attacks could approach 14.5 million worldwide by 2022, double current incidence [13].”
BackgroundInfluentialPai, B. A., Hebbar, A. P., & Manoj Kumar, M., V (2023) · Lecture notes in networks and systems · doi:10.1007/978-981-19-6634-7_41 · Cited by 1
API Behavior Anomaly Detection Method Based on Deep Learning and Adaptive Clustering
Liu, X., Zhang, J., Su, B., Shang, Z., Zhao, J., & Dong, Z. (2023) · IEEE International Conference on Frontiers Technology of Information and Computer (ICFTIC) · doi:10.1109/icftic59930.2023.10456177 · Cited by 1
“Baye G[15] and others proposed an API security detection technology based on machine learning to detect and classify API traffic based on characteristics such as bandwidth and the number of requests per token.”
BackgroundFault Estimation for Operational Systems
Ozkent, T., & Soyak, E. G. (2022) · Innovations in Intelligent Systems and Applications Conference (ASYU) · doi:10.1109/asyu56188.2022.9925423 · Cited by 1
“…behavior and detect outliers, some of these efforts utilized data collected from a dedicated cloud testbed by manually implementing anomalies such as memory leak, packet loss, high latency [2], while some efforts utilized synthetic traffic generated via simulations of real-world attacks [3].”
Anomaly detection and root-cause identification in microservices: a survey
Barata, L. M., Sequeira, S., Lopes, E., Inácio, P. R. M., & Freire, M. M. (2026) · Cluster Computing · doi:10.1007/s10586-026-06095-9 · Cited by 4
“Baye et al. [95] centre their attention on the security of APIs because these components are easy targets for e Performance of the Algorithm (viz., PFR - False Positive Rate, A - Accuracy, P - Precision, R - Recall, F1 - F1-score, S - Specificity, AC@1 - Top-1 Accuracy, AC@3 - Top-3 Accuracy, AC@5…”
InfluentialDigital Transformation through APIs
Kumar, B., & Falhi, O. A. (2022) · International Conference on Machine Learning, Big Data, Cloud and Parallel Computing (COM-IT-CON) · doi:10.1109/com-it-con54601.2022.9850728 · Cited by 17
Machine Learning-Based Detection of API Security Attacks
Sharma, I., Kaur, A., Kaushik, K., & Chhabra, G. (2024) · Lecture notes in networks and systems · doi:10.1007/978-981-99-7814-4_23
Analysing API Access Behaviour for Enhanced Security: A Machine Learning Approach
Bhesaniya, N., Ladani, D., & Patel, S. (2025) · International Conference on Artificial Intelligence and Machine Vision (AIMV) · doi:10.1109/aimv66517.2025.11225867
Leveraging AI to Detect Anomaly and Secure API
Choudhary, S. N., Rayarao, S. R., Achanta, A., & Rastogi, A. (2025) · International Conference on Sustainable Communication Networks and Application (ICSCNA) · doi:10.1109/icscn67106.2025.11308263
“L ITERATURE REVIEW Baye et al [12] that relying on parameters such as bandwidth and number of requests per token, the proposed technique utilizes a Support Vector Machine (SVM) with a linear kernel to detect anomalous API data.”
Acquatella, F., & Chung, C. (2025) · doi:10.3917/ems.chanu.2025.01.0094
Ratra, K. K., Seth, D. K., Verma, D. C., & Burman, H. (2025) · IEEE Annual Information Technology, Electronics and Mobile Communication Conference (IEMCON) · doi:10.1109/iemcon67450.2025.11381185
“The static nature of these approaches fails to adapt effectively to quick traffic pattern changes and advanced attack methods that stay within defined limits, thus requiring modern API environments to adopt more intelligent security measures [6].”
Metadata
- Authors
- Baye, G., Hussain, F., Oracevic, A., Hussain, R., & Ahsan Kazmi, S. M.
- Affiliations
- Innopolis University (RU)
- Royal Bank of Canada (CA)
- University of Bristol (GB)
- Venue
- 2021 International Symposium on Networks, Computers and Communications (ISNCC)
- Publisher
- IEEE
- Published
- 2021-10-31
- Pages
- 1-6
- OpenAlex
- W3217504530
- Semantic Scholar
- 501c63344569349fbe0ba898b74a43a3a1d48f8f
- Cited by
- 25
- References
- 16
- Citations by year
- 2026: 2 · 2025: 5 · 2024: 6 · 2023: 9 · 2022: 3
- FWCI
- 4.16
- Type
- conference paper
- Language
- en
- Open access
- Licence
- Locations
- International Symposium on Networks, Computers and Communications (ISNCC) (publishedVersion)
- Explore Bristol Research (submittedVersion)
- UWE Research Repository (UWE Bristol) (submittedVersion, cc-by)
- Topics
- Physical Sciences › Computer Science › Computer Networks and Communications › Software System Performance and Reliability
- Physical Sciences › Computer Science › Computer Networks and Communications › Network Security and Intrusion Detection
- Physical Sciences › Computer Science › Artificial Intelligence › Anomaly Detection Techniques and Applications
- Keywords
- API security, anomaly detection, microservices, support vector machine, synthetic dataset, false positive rate, large corporations
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.