Context-Aware ML/NLP Pipeline for Real-Time Anomaly Detection and Risk Assessment in Cloud API Traffic
Top Cited Papers
Open Access
- 22 January 2026
- journal article
- research article
- Published by MDPI AG in Machine Learning and Knowledge Extraction
- Vol. 8 (1) , 25
Abstract
We present a combined ML/NLP (Machine Learning, Natural Language Processing) pipeline for protecting cloud-based APIs (Application Programming Interfaces), which works both at the level of individual HTTP (Hypertext Transfer Protocol) requests and at the access log file reading mode, linking explicitly technical anomalies with business risks. The system processes each event/access log through parallel numerical and textual branches: a set of anomaly detectors trained on traffic engineering characteristics and a hybrid NLP stack that combines rules, TF-IDF (Term Frequency-Inverse Document Frequency), and character-level models trained on enriched security datasets. Their results are integrated using a risk-aware policy that takes into account endpoint type, data sensitivity, exposure, and authentication status, and creates a discrete risk level with human-readable explanations and recommended SOC (Security Operations Center) actions. We implement this design as a containerized microservice pipeline (input, preprocessing, ML, NLP, merging, alerting, and retraining services), orchestrated using Docker Compose and instrumented using OpenSearch Dashboards. Experiments with OWASP-like (Open Worldwide Application Security Project) attack scenarios show a high detection rate for injections, SSRF (Server-Side Request Forgery), Data Exposure, and Business Logic Abuse, while the processing time for each request remains within real-time limits even in sequential testing mode. Thus, the pipeline bridges the gap between ML/NLP research for security and practical API protection channels that can evolve over time through feedback and retraining.Keywords
This publication has 25 references indexed in Scilit:
- Cost observability as a security control in multi-cloud environments based on SOC 2 security standardComputers & Security, 2025
- A Review of AI/ML Algorithms for Security Enhancement in Cloud Computing with Emphasis on Artificial Neural Networks2024
- Advancements of SMS Spam Detection: A Comprehensive Survey of NLP and ML TechniquesProcedia Computer Science, 2024
- A Secure Cloud Service for Managing User's Crucial Data Using NLP, Blockchain, and Smart ContractsPreprints.org, 2024
- How the power of machine – machine learning, data science and NLP can be used to prevent spoofing and reduce financial risksGlobal Journal of Engineering and Technology Advances, 2024
- Smart Governance among Smart Cities for Legal Consideration to International Data Migration in Cloud Using Machine Learning , Nlp and Blockchain Smart ContractPreprints.org, 2024
- Cloud Privacy Beyond Legal Compliance: An NLP Analysis of Certifiable Privacy and Security Standards2024
- Research trends in deep learning and machine learning for cloud computing securityArtificial Intelligence Review, 2024
- Comprehensive review on intelligent security defences in cloud: Taxonomy, security issues, ML/DL techniques, challenges and future trendsJournal of King Saud University Computer and Information Sciences, 2022
- NLP-based platform as a service: a brief reviewJournal of Big Data, 2022