TRUST-API: A Novel Deep-Learning-Based Adaptive Risk-Scoring Framework for Real-Time API Security in Digital Services
Year: 2026
Type: article
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.
Source: Future Internet
DOI: 10.3390/fi18110637
Institutions: Al-Ahliyya Amman University, Hashemite University
Language: English
Subfield: Computer Networks and Communications
Field: Computer Science
Domain: Physical Sciences
Keywords: API security, rate limiting
Open Access status: gold
Estimated APC paid: $1,930
OpenAlex ID: W7236209996
