Gaspard Baye
API security in large enterprises: Leveraging machine learning for anomaly detection
Baye, Gaspard; Hussain, Fatima; Oracevic, Alma; Hussain, Rasheed; Ahsan Kazmi, S.M.
Authors
Fatima Hussain
Alma Oracevic
Rasheed Hussain
Ahsan Kazmi Ahsan.Kazmi@uwe.ac.uk
Senior Lecturer in Data Science
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.
Presentation Conference Type | Conference Paper (published) |
---|---|
Conference Name | 2021 International Symposium on Networks, Computers and Communications (ISNCC) |
Start Date | Oct 31, 2021 |
End Date | Nov 2, 2021 |
Acceptance Date | Nov 10, 2021 |
Online Publication Date | Nov 25, 2021 |
Publication Date | Nov 25, 2021 |
Deposit Date | Jun 24, 2023 |
Publisher | Institute of Electrical and Electronics Engineers (IEEE) |
Pages | 1-6 |
Book Title | 2021 International Symposium on Networks, Computers and Communications (ISNCC) |
ISBN | 978-1-6654-4829-1 |
DOI | https://doi.org/10.1109/ISNCC52172.2021.9615638 |
Keywords | Application Programming Interface (API), Machine Learning, Support Vector Machine (SVM), Micro-service, Anomalies |
Public URL | https://uwe-repository.worktribe.com/output/10582705 |
Publisher URL | https://ieeexplore.ieee.org/document/9615638 |
You might also like
Cache sharing in UAV-enabled cellular network: A deep reinforcement learning-based approach
(2024)
Journal Article
Multiple adversarial domains adaptation approach for mitigating adversarial attacks effects
(2022)
Journal Article
PbCP: A profit-based cache placement scheme for next-generation IoT-based ICN networks
(2022)
Journal Article
Downloadable Citations
About UWE Bristol Research Repository
Administrator e-mail: repository@uwe.ac.uk
This application uses the following open-source libraries:
SheetJS Community Edition
Apache License Version 2.0 (http://www.apache.org/licenses/)
PDF.js
Apache License Version 2.0 (http://www.apache.org/licenses/)
Font Awesome
SIL OFL 1.1 (http://scripts.sil.org/OFL)
MIT License (http://opensource.org/licenses/mit-license.html)
CC BY 3.0 ( http://creativecommons.org/licenses/by/3.0/)
Powered by Worktribe © 2025
Advanced Search