MINES: Explainable Anomaly Detection through Web API Invariant Inference
Wenjie Zhang, Yun Lin, Chun Fung Amos Kwok, Xiwen Teoh, Xiaofei Xie, Frank Liauw, Hongyu Zhang, Jin Song Dong

TL;DR
MINES introduces an explainable, schema-based anomaly detection method for web APIs that leverages inferred database invariants to accurately identify abnormal behaviors with high recall and minimal false positives.
Contribution
This work presents a novel approach that infers API invariants from schema level data using LLMs, improving anomaly detection accuracy and explainability over existing log-based methods.
Findings
Achieves high recall in anomaly detection
Maintains near-zero false positives
Outperforms state-of-the-art baselines
Abstract
Detecting the anomalies of web applications, important infrastructures for running modern companies and governments, is crucial for providing reliable web services. Many modern web applications operate on web APIs (e.g., RESTful, SOAP, and WebSockets), their exposure invites intended attacks or unintended illegal visits, causing abnormal system behaviors. However, such anomalies can share very similar logs with normal logs, missing crucial information (which could be in database) for log discrimination. Further, log instances can be also noisy, which can further mislead the state-of-the-art log learning solutions to learn spurious correlation, resulting superficial models and rules for anomaly detection. In this work, we propose MINES which infers explainable API invariants for anomaly detection from the schema level instead of detailed raw log instances, which can (1) significantly…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware System Performance and Reliability · Web Application Security Vulnerabilities · Software Engineering Research
