Skip to content
#explainable ai Open access

APISentry: A Real-Time Hybrid Machine Learning Gateway for Detecting Behavioural and Payload-Based API Attacks

Sep 2026 · Zenodo (CERN European Organization for Nuclear Research)

Abstract

APISentry is a real-time, hybrid machine-learning security gateway for REST APIs. Deployed as a reverse proxy, it detects and blocks seven attack types — SQL injection, parameter tampering, brute-force login, credential stuffing, broken object level authorization (BOLA), API flooding, and token replay — by jointly analysing per-request payload features and causal behavioural features computed over per-IP and per-token sliding windows. What's included in this archive The gateway itself; a deliberately vulnerable test API used as the protected target; a traffic generator that produces labelled normal and attack traffic; the complete machine-learning pipeline (feature engineering, training, cross-validation, ablations, SHAP explainability); a labelled eight-class dataset (11,415 requests); two validation notebooks (one on the project's own dataset, one on public CSIC 2010 / ECML-PKDD benchmarks); and a ModSecurity (OWASP CRS) baseline comparison for reference. Requirements A Linux machine (developed and tested on Kali Linux) with Python 3, Docker, and Docker Compose installed. How to get it running Download and extract the zip file from this record. Run ./setup.sh once to create the Python virtual environments and install all dependencies. Run ./run.sh to start all four services: the PostgreSQL database, the target test API, the AI security gateway, and the live dashboard. Open http://localhost:8080 in a browser to view the live security dashboard. Trigger a demo attack run with ./demo.sh, or run the individual attack scripts in traffic-generator/ to see requests being classified and blocked in real time. Exact commands for all seven attack types are listed in DEMO_GUIDE.md. Stop everything with ./stop.sh. Reproducing the research The full experimental pipeline — dataset generation, feature engineering, model training, cross-validation, ablations, and the ModSecurity comparison — can be re-run end to end using the scripts in ml-pipeline/, traffic-generator/, and baseline/. The two Jupyter notebooks in validation/ reproduce the primary evaluation and the external benchmark validation independently.

View source

Similar papers

#artificial intelligence Conference Open access Apr 2020

ECCOLA - a Method for Implementing Ethically Aligned AI Systems

The method, ECCOLA, is presented, which aims at making the high-level AI ethics principles more practical, making it possible for developers to more easily implement them in practice.

Ville Vakkuri, Kai-Kristian Kemell, P. Abrahamsson · 64 citations · ⚡6
#computer vision Review Apr 2024

AI-powered Code Review with LLMs: Early Results

The goal is to not only refine the accuracy of the LLM-based tool but also to underscore its potential in streamlining the software development lifecycle through proactive code improvement and education.

Z. Rasheed, Malik Abdul Sami, Muhammad Waseem et al. · 62 citations · ⚡3
#computer vision Open access Mar 2024

LLM-based agents for automating the enhancement of user story quality: An early report

The use of large language models to automatically improve the user story quality in Austrian Post Group IT agile teams is explored, with a reference model for an Autonomous LLM-based Agent System developed and implemented at the company.

Zheying Zhang, M. Rayhan, Tomas Herda et al. · 48 citations · ⚡4
#computer vision Review Mar 2024

System for systematic literature review using multiple AI agents: Concept and an empirical evaluation

This paper introduces a novel multi-AI-agent system designed to fully automate SLRs, and demonstrates how it substantially reduces the time and effort traditionally required for SLRs while maintaining comprehensiveness and precision.

Abdul Malik Sami, Z. Rasheed, Kai-Kristian Kemell et al. · 44 citations · ⚡2
#computer vision Feb 2024

Can Large Language Models Serve as Data Analysts? A Multi-Agent Assisted Approach for Qualitative Data Analysis

The proposed LLM-based multi-agent system automates qualitative data analysis process, creating opportunities for researchers and practitioners, and future improvements focus on enhancing multilingual performance and integrating continuous expert feedback.

Z. Rasheed, Muhammad Waseem, Aakash Ahmad et al. · 41 citations
#artificial intelligence Conference Open access Jun 2018

The Key Concepts of Ethics of Artificial Intelligence

It is suggested that the focus on finding keywords is the first step in guiding and providing direction for future research in the AI ethics field.

Ville Vakkuri, P. Abrahamsson · 39 citations · ⚡2

Related blog posts

GPT-Lab Sep 17, 2026

Beyond Prompt Engineering: The Role of Tacit Knowledge in Software Engineering

AI is making software generation faster, but speed does not remove the need for expertise. As more work is delegated to AI, tacit knowledge may become one of the most important human advantages in software engineering. The post Beyond Prompt Engineering: The Role of Tacit Knowledge in Software Engineering appeared first on GPT-Lab.

MIT News · Artificial Intelligence Sep 14, 2026

New method enables AI for safety-critical situations

The “HardFlow” algorithm could help generative AI models produce high-quality outputs that obey strict requirements when “pretty close” doesn’t cut it.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.