APIECHO: Training-Less Anomaly Detection via Intra-API Behavioral Comparison for Web Applications
Yihao Peng, Yiming Wu, Du Wu, Shouling Ji, Hai Wan, Xibin Zhao
Abstract
Anomaly detection is crucial for web application security, yet existing methods like rule-based validation and learning-based models face significant limitations. Rule-based systems struggle with novel attacks, while learning-based approaches require frequent, costly retraining to adapt to dynamic application updates, often leading to high false positives. While recent self-comparison methods address retraining by comparing replicas in microservice scenarios, they are ill-suited for monolithic applications due to functional heterogeneity, offer coarse-grained detection, lack adaptive comparison baselines, and are vulnerable to coordinated poisoning. This paper presents APIEcho, a novel web server intrusion detection method for monolithic applications that operates without large-scale pre-training. APIEcho's core insight is that legitimate requests to the same API endpoint exhibit highly similar underlying behavioral patterns. Our system shifts the comparison granularity from replicas to individual requests within the same API, employing dynamic API classification, fine-grained behavioral feature extraction (including sequential and set-based features), per-API adaptive similarity thresholds, and an antipoisoning sliding window update mechanism. Extensive evaluations on 16 real-world scenarios demonstrate that APIEcho significantly outperforms state-of-the-art methods. It effectively adapts to application updates without retraining, resists coordinated poisoning attacks, surpasses existing methods in average detection score, and achieves attack recall rates exceeding 90% while maintaining benign event detection accuracy above 99%, all with low overhead, processing more than 12000 log events per second with less than 7 GB memory consumption.
Ask about this paper
Ask your agent about it.
Lune has read the top-tier papers around this one, so every answer names the papers it rests on.
Your agent calls
Lunesearch_papers
Free to start. No credit card required.
Terminal
Install the CLIlune papers get 10e6411c-8d2b-4a13-822f-5901c402ccb1Related papers
- REPLICAWATCHER: Training-less Anomaly Detection in Containerized MicroservicesAsbat El Khairi, Marco Caselli, Andreas Peter, Andrea ContinellaNDSS 2024
- Learning from Limited Heterogeneous Training Data: Meta-Learning for Unsupervised Zero-Day Web Attack Detection across Web DomainsPeiyang Li, Ye Wang, Qi Li, Zhuotao Liu et al.CCS 2023 · 13 citations
- MINES: Explainable Anomaly Detection through Web API Invariant InferenceWenjie Zhang, Yun Lin, Chun Fung Amos Kwok, Xiwen Teoh et al.ICSE 2026
- Detecting and Explaining Anomalies Caused by Web Tamper Attacks via Building Consistency-based NormalityYifan Liao, Ming Xu, Yun Lin, Xiwen Teoh et al.ASE 2024 · 1 citation
- LARA: A Light and Anti-overfitting Retraining Approach for Unsupervised Time Series Anomaly DetectionFeiyi Chen, Zhen Qin, Mengchu Zhou, Yingying Zhang et al.WWW 2024 · 18 citations
