Detecting and Explaining Anomalies Caused by Web Tamper Attacks via Building Consistency-based Normality
Open Access
- 27 October 2024
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 531-543
Abstract
Web applications are crucial infrastructures in the modern society, which have high demand of reliability and security. However, their frontend can be manipulable by the clients (e.g., the frontend code can be modified to bypass some validation steps), which incurs the runtime anomaly when operating the web service. Existing state-of-the-art anomaly detectors largely learn a deep learning model from the collected logs to predict abnormal logs with a probability. While effective in general, those approaches can suffer from (1) inaccuracy caused by subtle difference between the normal and abnormal/attack logs and (2) additional efforts for root cause analysis. In this work, we propose WebNorm, an anomaly detection approach to detect and explain the attack-caused anomalies on web applications in a unified way. Our rationale lies in learning the behaviorial normalities of a running web application as invariants. The normalities are designed regarding data normality (e.g., what information must be consistent across different events), flow normality (e.g., what events must happen under certain circumstances), and common-sense normality (e.g., what is the normal range of some parameters). The violation of the invariants indicates both the alarm and its explanation. WebNorm first monitors the normal behaviors of subject application and captures its information flows between entities such as frontend, service, and database. Then, it learns the behaviorial normalities in terms of logical rules so that it can detect and explain behaviorial anomaly by the inconsistency between the learned normalities and the runtime application behaviors. We model the invariants as first-order logics, transferrable to executable Python scripts to generate alarm with explainable root cause. Our extensive experiment shows that, on detecting the tamper attacks on the web applications as TrainTicket and NiceFish. WebNorm improves the precision and the recall of the baselines such as LogAnomaly, LogRobust, DeepLog, NeuralLog, PLELog, ReplicaWatcher by more than 56.1% and 35.1% respectively, serving as a new state-of-the-art anomaly detection solution.Keywords
This publication has 34 references indexed in Scilit:
- Twin Graph-Based Anomaly Detection via Attentive Multi-Modal Learning for Microservice System2023
- GUI-Based Software Testing: An Automated Approach Using GPT-4 and Selenium WebDriver2023
- Log-based Anomaly Detection Without Log Parsing2021
- Detecting User-Perceived Failure in Mobile Applications via Mining User Traces2021
- PLELog: Semi-Supervised Log-Based Anomaly Detection via Probabilistic Label Estimation2021
- Studying the Usage of Text-To-Text Transfer Transformer to Support Code-Related Tasks2021
- Evaluating the monolithic and the microservice architecture pattern to deploy web applications in the cloud2015
- Characterizing logging practices in open-source software2012
- Automatic Generation of Object Usage Specifications from Large Method Traces2009
- Inferring Finite-State Models with Temporal Constraints2008