TRUST-API: A Novel Deep-Learning-Based Adaptive Risk-Scoring Framework for Real-Time API Security in Digital Services
Yaseen Shehadeh, Ayoup Alsarhan, Mohammad Alhawarat
Key points
From the paper's conclusion- The results demonstrate that TRUST-API provides accurate, stable, and risk-aware API security decisions while preserving an interpretable path from behavioral evidence to graded actions.
Abstract
Application Programming Interfaces (APIs) are central to modern digital services, yet their distributed and dynamic nature creates security challenges that are not fully addressed by conventional binary or multiclass attack detection. This paper proposes TRUST-API, an adaptive deep-learning-based framework for real-time API risk assessment that transforms heterogeneous and chronologically evolving request behavior into a continuous and operationally interpretable security score. The framework integrates leakage-controlled preprocessing, behavioral feature engineering, chronological sequence construction, an Attention–BiLSTM temporal learner, explicit request-side risk components, calibrated nonlinear meta-risk estimation, and adaptive hybrid fusion. The experimental study uses 4282 labeled API requests for development and internal evaluation, together with a subsequent future-unlabeled request stream for distributional stability analysis. The Attention–BiLSTM converts posterior probabilities over Low-, Medium-, High-, and Critical-risk states into a continuous deep temporal-risk component, which is fused with contextual, header-morphology, authentication/session, and request-rate evidence to generate the final score, RTRUST. On the internal test set, TRUST-API achieved 99.518% accuracy, 99.689% Macro-F1, 99.760% balanced accuracy, 99.825% macro specificity, and a minimum class recall of 99.042%, with no Critical observations missed. Robustness was further assessed through ablation, sensitivity, additive-noise, missingness, moving-block bootstrap, chronological block analysis, and McNemar testing. The results demonstrate that TRUST-API provides accurate, stable, and risk-aware API security decisions while preserving an interpretable path from behavioral evidence to graded actions. External unlabeled observations are treated strictly as stability evidence rather than supervised performance validation. The resulting risk states support proportionate automated responses including normal access, enhanced monitoring, rate limitation, re-authentication, blocking, and security alert generation.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Context-Aware ML/NLP Pipeline for Real-Time Anomaly Detection and Risk Assessment in Cloud API TrafficMachine Learning and Knowledge Extraction · 2026
- Client-side brute force attack detection leveraging large language modelsFuture Technology · 2026
- Suspected Until Inspected: Neuro-Symbolic Detection of Broken Access Control in Server-Side Web ApplicationsarXiv · 2026
- Reinforcement Learning-based Cybersecurity Model for Adaptive Intrusion Detection and Automated ResponsesEPJ Web of Conferences · 2026
- Artificial Intelligence in Next-Generation Firewalls for Discriminating Cyber Attacks from Legitimate Service Traffic SurgesInternational Journal of Information & Digital Security · 2026
- The Devil Wears Markdown: Detecting Malicious Intent Hidden in AI Agent Skill Instructions through Hybrid Static, Dynamic, and Agentic AnalysisarXiv · 2026