mlsanityData to 14 Oct 2026

MINES: Explainable Anomaly Detection through Web API Invariant Inference

arXiv 2512.06906 ↗First posted 7 Dec 2025cs.SE cs.CR cs.DBcited by 1

Not on the map. Why?

Abstract (arXiv)

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 discriminate noise in logs to identify precise normalities and (2) detect abnormal behaviors beyond the instrumented logs. Technically, MINES (1) converts API signatures into table schema to enhance the original database shema; and (2) infers the potential database constraints on the enhanced database schema to capture the potential relationships between APIs and database tables. MINES uses LLM for extracting potential relationship based on two given table structures; and use normal log instances to reject and accept LLM-generated invariants. Finally, MINES translates the inferred constraints into invariants to generate Python code for verifying the runtime logs. We extensively evaluate MINES on web-tamper attacks on the benchmarks of TrainTicket, NiceFish, Gitea, Mastodon, and NextCloud against baselines such as LogRobust, LogFormer, and WebNorm. The results show that MINES achieves high recall for the anomalies while introducing almost zero false positives, indicating a new state-of-the-art.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 10 of its 74 references that are in the map. First posted on arXiv 7 Dec 2025.

Builds on

10 of 74 references.

References · 10

  1. 2021Towards Out-Of-Distribution Generalization: A Surveycited by 436
  2. 2021LogBERT: Log Anomaly Detection via BERTcited by 118
  3. 2021Log-based Anomaly Detection Without Log Parsingcited by 59
  4. 2020A Survey on Automated Log Analysis for Reliability Engineeringcited by 50
  5. 2018Recurrent Neural Network Attention Mechanisms for Interpretable System Log Anomaly Detectioncited by 21
  6. 2020Multi-Scale One-Class Recurrent Neural Networks for Discrete Event Sequence Anomaly Detectioncited by 19
  7. 2024LogFormer: A Pre-train and Tuning Pipeline for Log Anomaly Detectioncited by 15
  8. 2014Detection of Early-Stage Enterprise Infection by Mining Large-Scale Log Datacited by 13
  9. 2023On the Effectiveness of Log Representation for Log-based Anomaly Detectioncited by 6
  10. 2020Improving Predictability of User-Affecting Metrics to Support Anomaly Detection in Cloud Servicescited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.