Small language model-augmented synthesis for application programming interface threat detection
Application Programming Interfaces (APIs) face constant threats from malicious actors seeking to exploit vulnerabilities for illicit gains. Effective anomaly detection depends on diverse, representative datasets that capture real-world API behaviors. However, existing datasets are often limited in scope, privacy-restricted, or lack the structural variability needed to train robust detection models. To address this challenge, we propose a Small Language Model (SLM)-augmented synthesis framework designed to expand limited API datasets with constraints intended to preserve request structure and contextual relevance. The proposed framework, referred to as SLM-API, leverages a compact Transformer-based model to replace selected tokens in benign and malicious requests, subject to structural restrictions and a separately trained discriminator consistency check. We evaluate our framework on two benchmark datasets, the Spanish National Research Council (CSIC) 2010 Hypertext Transfer Protocol (HTTP) dataset and the API Traffic Research Dataset Framework (ATRDF) 2023, and compare it with pretrained models, plain masked language models, DeepSeek generation, and a duplication control to assess controlled augmentation. In addition, we apply our augmented data to various anomaly detection models to evaluate its impact on classification performance. Our method achieves Random Forest F1 scores of 97.67% on CSIC 2010 and 91.24% on ATRDF 2023, improvements of 1.00 and 21.12 percentage points, respectively, over training without augmentation. Component ablations and endpoint-family holdout reveal the role of replacement restrictions and uneven transfer to excluded routes.
- Link
- https://arxiv.org/abs/2405.11258
- Found by
- arXiv
- Authors
- Udi Aharon, Revital Marbel, Ran Dubin, Amit Dvir, Chen Hajaj, Amit Z. Dvir
- Organizations
- Ariel University, Holon Institute of Technology
- Categories
- benchmark, evaluation, dataset
- Published
- 2026-12-02
- Last seen by the radar
- 2026-12-03
- Citations
- 7
- Radar score
- 56.89 / 100 (how it is scored)
- Why it scored so
- Also found via OpenAlex; Matched: benchmark, dataset, evaluat; Recency discount: updated event ×0.5; Primary record: arXiv
- Related links
- https://doi.org/10.1016/j.engappai.2026.116850