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

International Collaboration

cited authors

  • Raptis, GE; Khan, MT; Koulamas, C; Serpanos, D
  • Raptis, George E; Khan, Muhammad Taimoor; Koulamas, Christos; Serpanos, Dimitrios

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.

date/time interval

  • August 4, 2025 -

publication date

  • January 1, 2025

keywords

  • Computer Science
  • Computer Science, Information Systems
  • Computer Science, Theory & Methods
  • Industrial Control Systems (ICS)
  • Java Modeling Language (JML)
  • Science & Technology
  • Technology
  • cyberphysical systems
  • formal specification
  • generative AI
  • inline monitors
  • large language models (LLMs)
  • runtime verification
  • security monitoring
  • water distribution systems

Digital Object Identifier (DOI)

International Standard Book Number (ISBN) 13

start page

  • 957
  • 963

end page

  • 962
  • 968