Architecting software monitors for control-flow anomaly detection through large language models and conformance checking
Francesco Vitale, Francesco Flammini, Mauro Caporuscio, Nicola Mazzocca

TL;DR
This paper presents a methodology using large language models and conformance checking to develop software monitors for detecting control-flow anomalies, demonstrated on a railway system case study.
Contribution
It introduces a novel approach combining LLMs and conformance checking for automated source-code instrumentation and anomaly detection in complex systems.
Findings
Achieved up to 82.849% control-flow coverage of the design model.
Reached 95.957% F1-score in anomaly detection.
Demonstrated effectiveness on European Railway Traffic Management System.
Abstract
Context: Ensuring high levels of dependability in modern computer-based systems has become increasingly challenging due to their complexity. Although systems are validated at design time, their behavior can be different at runtime, possibly showing control-flow anomalies due to ``unknown unknowns''. Objective: We aim to detect control-flow anomalies through software monitoring, which verifies runtime behavior by logging software execution and detecting deviations from expected control flow. Methods: We propose a methodology to develop software monitors for control-flow anomaly detection through Large Language Models (LLMs) and conformance checking. The methodology builds on existing software development practices to maintain traditional V\&V while providing an additional level of robustness and trustworthiness. It leverages LLMs to link design-time models and implementation code,…
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.
