Intelligent threat detection and prevention in REST APIs using machine learning

With the increasing adoption of RESTful APIs as the backbone of modern web and mobile applications, ensuring their security has become a critical concern. Traditional security mechanisms such as rule-based firewalls and static rate-limiting policies are often ineffective against sophisticated, evolving threats like zero-day attacks, automated bot traffic, and API abuse patterns. This research proposes an intelligent, machine learning-based framework to detect and prevent malicious activity in REST API traffic. The approach involves collecting and preprocessing real-time API request logs to extract behavioural and contextual features. Supervised and unsupervised machine learning models such as isolation forests, LSTM-based anomaly detectors, and decision trees are evaluated for their effectiveness in detecting anomalies, injection attacks, and abnormal usage behavior. Furthermore, the study incorporates reinforcement learning to dynamically adjust security policies (e.g., rate limits, IP bans) in response to detected threats without impacting legitimate users. A proof-of-concept prototype will be developed and deployed in a controlled environment to evaluate performance in terms of detection accuracy, false positive rates, and system latency. The outcome of this research aims to advance the state-of-the-art in API security by introducing adaptive, self-learning mechanisms capable of protecting APIs from modern security threats while maintaining usability and performance.

Authors

Publication Details

Journal
International Journal of Science and Research Archive
Published
2025-05-06
DOI
https://doi.org/10.30574/ijsra.2025.15.2.1281
Primary Topic
Network Security and Intrusion Detection
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Intelligent threat detection and prevention in REST APIs using machine learning

Muhammad Sohail
International Journal of Science and Research Archive
Network Security and Intrusion Detection
article

Intelligent threat detection and prevention in REST APIs using machine learning

Muhammad Sohail
article en

Abstract

With the increasing adoption of RESTful APIs as the backbone of modern web and mobile applications, ensuring their security has become a critical concern. Traditional security mechanisms such as rule-based firewalls and static rate-limiting policies are often ineffective against sophisticated, evolving threats like zero-day attacks, automated bot traffic, and API abuse patterns. This research proposes an intelligent, machine learning-based framework to detect and prevent malicious activity in REST API traffic. The approach involves collecting and preprocessing real-time API request logs to extract behavioural and contextual features. Supervised and unsupervised machine learning models such as isolation forests, LSTM-based anomaly detectors, and decision trees are evaluated for their effectiveness in detecting anomalies, injection attacks, and abnormal usage behavior. Furthermore, the study incorporates reinforcement learning to dynamically adjust security policies (e.g., rate limits, IP bans) in response to detected threats without impacting legitimate users. A proof-of-concept prototype will be developed and deployed in a controlled environment to evaluate performance in terms of detection accuracy, false positive rates, and system latency. The outcome of this research aims to advance the state-of-the-art in API security by introducing adaptive, self-learning mechanisms capable of protecting APIs from modern security threats while maintaining usability and performance.

International Journal of Science and Research ArchiveVol. 15(2)
Openalex Percentile: Top 91%
Network Security and Intrusion Detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Intelligent threat detection and prevention in REST APIs using machine learning — Muhammad Sohail · International Journal of Science and Research Archive (2025) | TGRS Research Map | TGRS