LLM-based Generation of Formal Specification for Run-time Security Monitoring of ICS Conference

Raptis, GE, Khan, MT, Koulamas, C et al. (2025). LLM-based Generation of Formal Specification for Run-time Security Monitoring of ICS . 957-962. 10.1109/CSR64739.2025.11130130

cited authors

  • Raptis, GE; Khan, MT; Koulamas, C; Serpanos, D

abstract

  • Industrial Control Systems (ICS) are vulnerable to cybersecurity threats due to their distributed architecture and critical role in infrastructure sectors. Ensuring their secure operation requires deploying runtime monitoring mechanisms to detect behavioral deviations, with inline security monitoring arising as a practical solution. However, writing these specifications manually is time-consuming, error-prone, and requires deep domain expertise. In this paper, we explore the feasibility of using large language models (LLMs) to assist in generating JML-based inline security monitors for ICS applications. Using a water distribution system as a testbed, we prompt the model with structured templates and evaluate its output against expertwritten specifications. Our results highlight that LLMs can correctly infer key security properties and produce contextaware assertions with minimal guidance, marking an early but promising step toward automated monitor synthesis.

publication date

  • January 1, 2025

Digital Object Identifier (DOI)

start page

  • 957

end page

  • 962