Context-Aware ML/NLP Pipeline for Real-Time Anomaly Detection and Risk Assessment in Cloud API Traffic
Aziz Abibulaiev, Petro Ya Pukach, Myroslava Vovk
Lviv Polytechnic National University
Key points
From the paper's conclusion- 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.
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- TRUST-API: A Novel Deep-Learning-Based Adaptive Risk-Scoring Framework for Real-Time API Security in Digital ServicesFuture Internet · 2026
- CyberRAG: An agentic RAG cyber attack classification and reporting toolFuture Generation Computer Systems · 2025
- Protecting Web Applications using a Multimodal AI-based System for Classifying Web Injection AttacksarXiv · 2026
- Advanced risk assessment using machine learning and sentiment analysis on log dataIAES International Journal of Artificial Intelligence · 2025
- Response-Level Identification of Cloud API Misconfigurations Using Large Language Models †Pragmatic Cybersecurity · 2026
- Hybrid Hierarchical Runtime Verification for Edge-IoT Security: Combining MonPoly and RTLolaarXiv · 2026